Handbook
Glossary
triangle-mode? ( object -- ? )
Vocabulary
gpu
.
state
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
triangle-mode
class.
Definition
USING:
kernel
;
IN:
gpu.state
:
triangle-mode?
( object -- ? )
dup
triangle-fill?
[
drop
t
]
[
dup
triangle-lines?
[
drop
t
]
[
triangle-points?
]
if
]
if
;