Handbook
Glossary
gl-feedback-primitive-mode ( primitive-mode -- gl-mode )
Vocabulary
gpu
.
render
.
private
Inputs
primitive-mode
an
object
Outputs
gl-mode
an
object
Definition
USING:
combinators
gpu.render
opengl.gl
;
IN:
gpu.render.private
:
gl-feedback-primitive-mode
( primitive-mode -- gl-mode )
{
{
points-mode
[
GL_POINTS
]
}
{
lines-mode
[
GL_LINES
]
}
{
line-strip-mode
[
GL_LINES
]
}
{
line-loop-mode
[
GL_LINES
]
}
{
triangles-mode
[
GL_TRIANGLES
]
}
{
triangle-strip-mode
[
GL_TRIANGLES
]
}
{
triangle-fan-mode
[
GL_TRIANGLES
]
}
}
case
;