Handbook
Glossary
gl-draw-init ( world -- )
Vocabulary
ui
.
render
Inputs
world
a
world
Outputs
None
Word description
Does some OpenGL setup that is required each time the world is to be redrawn.
Definition
USING:
accessors
kernel
opengl
opengl.gl
;
IN:
ui.render
:
gl-draw-init
( world -- )
GL_SCISSOR_TEST
glEnable
GL_SRC_ALPHA
GL_ONE_MINUS_SRC_ALPHA
glBlendFunc
init-matrices
[
init-clip
]
[
background-color>>
gl-clear
]
bi
;