Handbook
Glossary
get-triangle-cull-state ( -- triangle-cull-state: triangle-cull-state )
Vocabulary
gpu
.
state
Inputs
None
Outputs
triangle-cull-state
a
triangle-cull-state
Word description
Retrieves the current GPU
triangle-cull-state
.
See also
triangle-cull-state
,
<triangle-cull-state>
Definition
USING:
gpu.state.private
kernel
opengl.gl
typed
;
IN:
gpu.state
TYPED:
get-triangle-cull-state
( -- triangle-cull-state: triangle-cull-state )
GL_FRONT_FACE
get-gl-int
gl-triangle-face>
GL_CULL_FACE
gl-enabled?
[
GL_CULL_FACE_MODE
get-gl-int
gl-triangle-cull>
]
[
f
]
if
<triangle-cull-state>
;