Handbook
Glossary
get-triangle-state ( -- triangle-state: triangle-state )
Vocabulary
gpu
.
state
Inputs
None
Outputs
triangle-state
a
triangle-state
Word description
Retrieves the current GPU
triangle-state
.
See also
triangle-state
,
<triangle-state>
Definition
USING:
gpu.state.private
kernel
opengl.gl
sequences
typed
;
IN:
gpu.state
TYPED:
get-triangle-state
( -- triangle-state: triangle-state )
GL_POLYGON_MODE
2
get-gl-ints
first2
[
gl-triangle-mode>
]
bi@
GL_POLYGON_SMOOTH
gl-enabled?
<triangle-state>
;