Handbook
Glossary
gl-system-attachment ( side face -- attachment )
Vocabulary
gpu
.
framebuffers
.
private
Inputs
side
an
object
face
an
object
Outputs
attachment
an
object
Definition
USING:
arrays
combinators
gpu.framebuffers
opengl.gl
;
IN:
gpu.framebuffers.private
:
gl-system-attachment
( side face -- attachment )
2array
{
{
{
f
f
}
[
GL_FRONT_AND_BACK
]
}
{
{
f
front-face
}
[
GL_FRONT
]
}
{
{
f
back-face
}
[
GL_BACK
]
}
{
{
left-side
f
}
[
GL_LEFT
]
}
{
{
left-side
front-face
}
[
GL_FRONT_LEFT
]
}
{
{
left-side
back-face
}
[
GL_BACK_LEFT
]
}
{
{
right-side
f
}
[
GL_RIGHT
]
}
{
{
right-side
front-face
}
[
GL_FRONT_RIGHT
]
}
{
{
right-side
back-face
}
[
GL_BACK_RIGHT
]
}
}
case
;