1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-26 11:28:22 +01:00

keep old code as comment for further reference

This commit is contained in:
Dany LE 2021-12-20 01:22:29 +01:00
parent 0d254c6dd4
commit b6fbebc4d4

View File

@ -197,16 +197,21 @@ DiyaBoot >> startx [
display ifNil: [ ^self error: 'Please run #init before this method' ].
self createWindow.
self createGLContext.
"self createRenderer."
self createRenderer.
self showSystemInfo.
self render.
context delete.
renderer destroy.
window destroy.
SDL2 quit.
]
{ #category : #events }
DiyaBoot >> step [
"renderer drawColorR: 0
g: 0
b: 0
a: 255."
OpenGL begin: GL_TRIANGLES.
"draw a simple triangle here"
OpenGL color3fR: 0.1 G:0.2 B: 0.3.