mirror of
https://github.com/lxsang/Diya-API.git
synced 2025-03-12 10:32:48 +01:00
Refactory code
This commit is contained in:
parent
142f14e936
commit
2d09a8501a
@ -36,12 +36,6 @@ DiyaBoot class >> startx [
|
||||
self uniqueInstance run
|
||||
]
|
||||
|
||||
{ #category : #events }
|
||||
DiyaBoot >> GLinit. [
|
||||
OpenGL viewportX: 0 Y:0 W: display w H: display h.
|
||||
OpenGL enable: GL_TEXTURE_2D.
|
||||
]
|
||||
|
||||
{ #category : #events }
|
||||
DiyaBoot >> createGLContext [
|
||||
context := SDL2 glCreateContext: window.
|
||||
@ -105,7 +99,9 @@ DiyaBoot >> render [
|
||||
|launcher|
|
||||
launcher := DiyaApplicationLauncher uniqueInstance.
|
||||
launcher setup.
|
||||
self GLinit.
|
||||
"Init the Open GL view port and enable 2D texture"
|
||||
OpenGL viewportX: 0 Y:0 W: display w H: display h.
|
||||
OpenGL enable: GL_TEXTURE_2D.
|
||||
[ launcher running ] whileTrue: [
|
||||
DiyaClock uniqueInstance tick.
|
||||
launcher main.
|
||||
|
Loading…
x
Reference in New Issue
Block a user