Handbook
Glossary
get-stencil-state ( -- stencil-state: stencil-state )
Vocabulary
gpu
.
state
Inputs
None
Outputs
stencil-state
a
stencil-state
Word description
Retrieves the current GPU
stencil-state
.
See also
stencil-state
,
<stencil-state>
Definition
USING:
gpu.state.private
kernel
opengl.gl
typed
;
IN:
gpu.state
TYPED:
get-stencil-state
( -- stencil-state: stencil-state )
GL_STENCIL_TEST
gl-enabled?
[
GL_STENCIL_REF
get-gl-int
GL_STENCIL_VALUE_MASK
get-gl-int
GL_STENCIL_FUNC
get-gl-int
gl-comparison>
GL_STENCIL_FAIL
get-gl-int
gl-stencil-op>
GL_STENCIL_PASS_DEPTH_FAIL
get-gl-int
gl-stencil-op>
GL_STENCIL_PASS_DEPTH_PASS
get-gl-int
gl-stencil-op>
<stencil-mode>
GL_STENCIL_BACK_REF
get-gl-int
GL_STENCIL_BACK_VALUE_MASK
get-gl-int
GL_STENCIL_BACK_FUNC
get-gl-int
gl-comparison>
GL_STENCIL_BACK_FAIL
get-gl-int
gl-stencil-op>
GL_STENCIL_BACK_PASS_DEPTH_FAIL
get-gl-int
gl-stencil-op>
GL_STENCIL_BACK_PASS_DEPTH_PASS
get-gl-int
gl-stencil-op>
<stencil-mode>
]
[
f
f
]
if
<stencil-state>
;