Handbook
Glossary
primitive-mode? ( object -- ? )
Vocabulary
gpu
.
render
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
primitive-mode
class.
Definition
USING:
kernel
;
IN:
gpu.render
:
primitive-mode?
( object -- ? )
dup
triangle-fan-mode?
[
drop
t
]
[
dup
triangle-strip-with-adjacency-mode?
[
drop
t
]
[
dup
triangles-with-adjacency-mode?
[
drop
t
]
[
dup
triangle-strip-mode?
[
drop
t
]
[
dup
triangles-mode?
[
drop
t
]
[
dup
line-loop-mode?
~quotation~
~quotation~
if
]
if
]
if
]
if
]
if
]
if
;