mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-27 03:48:21 +01:00
Add missing code of the previous commit
This commit is contained in:
parent
26368c37ab
commit
677145f1a1
@ -103,14 +103,13 @@ DiyaBoot >> initialize [
|
|||||||
{ #category : #events }
|
{ #category : #events }
|
||||||
DiyaBoot >> render [
|
DiyaBoot >> render [
|
||||||
|launcher|
|
|launcher|
|
||||||
DiyaRendererContext uniqueInstance.
|
|
||||||
launcher := DiyaApplicationLauncher uniqueInstance.
|
launcher := DiyaApplicationLauncher uniqueInstance.
|
||||||
launcher setup.
|
launcher setup.
|
||||||
self GLinit.
|
self GLinit.
|
||||||
[ launcher running ] whileTrue: [
|
[ launcher running ] whileTrue: [
|
||||||
DiyaClock uniqueInstance tick.
|
DiyaClock uniqueInstance tick.
|
||||||
launcher main.
|
launcher main.
|
||||||
SDL2 glSwapWindow: window.
|
DiyaRendererContext uniqueInstance render.
|
||||||
SDL2 delay:
|
SDL2 delay:
|
||||||
(0 max:
|
(0 max:
|
||||||
(1000/ self class maxFPS) asInteger - (DiyaClock uniqueInstance lapDelta asMilliSeconds)).
|
(1000/ self class maxFPS) asInteger - (DiyaClock uniqueInstance lapDelta asMilliSeconds)).
|
||||||
|
Loading…
Reference in New Issue
Block a user