Handbook
Glossary
draw-debug-primitives ( mode primitives mvp-matrix -- )
Vocabulary
game
.
debug
.
private
Inputs
mode
an
object
primitives
an
object
mvp-matrix
an
object
Outputs
None
Definition
USING:
gpu.render
gpu.state
kernel
sequences
;
IN:
game.debug.private
:
draw-debug-primitives
( mode primitives mvp-matrix -- )
f
origin-upper-left
1.0
<point-state>
set-gpu-state
{
{
"primitive-mode"
[
2drop
]
}
{
"uniforms"
[
2nip
debug-shapes-uniforms
boa
]
}
{
"vertex-array"
[
drop
nip
debug-shapes-vertex-array
]
}
{
"indexes"
[
drop
nip
length
0
swap
<index-range>
]
}
}
3<render-set>
render
;