mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-26 03:18:22 +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 }
|
||||
DiyaBoot >> render [
|
||||
|launcher|
|
||||
DiyaRendererContext uniqueInstance.
|
||||
launcher := DiyaApplicationLauncher uniqueInstance.
|
||||
launcher setup.
|
||||
self GLinit.
|
||||
[ launcher running ] whileTrue: [
|
||||
DiyaClock uniqueInstance tick.
|
||||
launcher main.
|
||||
SDL2 glSwapWindow: window.
|
||||
DiyaRendererContext uniqueInstance render.
|
||||
SDL2 delay:
|
||||
(0 max:
|
||||
(1000/ self class maxFPS) asInteger - (DiyaClock uniqueInstance lapDelta asMilliSeconds)).
|
||||
|
Loading…
Reference in New Issue
Block a user