Handbook
Glossary
draw-cursor ( hit-state -- )
Vocabulary
raylib
.
demo
.
mesh-picking
Inputs
hit-state
an
object
Outputs
None
Definition
USING:
accessors
kernel
math.vectors
raylib
;
IN:
raylib.demo.mesh-picking
:
draw-cursor
( hit-state -- )
dup
nearest-hit>>
hit>>
[
[
[
nearest-hit>>
point>>
]
[
color>>
]
bi
[
[
0.3 0.3 0.3
]
]
dip
[
draw-cube
]
curry
compose
[
0.3 0.3 0.3
RED
draw-cube-wires
]
bi
]
[
nearest-hit>>
[
point>>
dup
]
[
normal>>
]
bi
v+
RED
draw-line-3d
]
bi
]
[
drop
]
if
;