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