Handbook
Glossary
gl-attachment ( framebuffer attachment-ref -- gl-attachment )
Vocabulary
gpu
.
framebuffers
.
private
Inputs
framebuffer
an
object
attachment-ref
an
object
Outputs
gl-attachment
an
object
Definition
USING:
gpu.framebuffers
kernel
math
opengl.gl
variants
;
IN:
gpu.framebuffers.private
:
gl-attachment
( framebuffer attachment-ref -- gl-attachment )
[
{
{
depth-attachment
[
GL_DEPTH_ATTACHMENT
]
}
{
stencil-attachment
[
GL_STENCIL_ATTACHMENT
]
}
{
color-attachment
[
GL_COLOR_ATTACHMENT0
+
]
}
{
system-attachment
[
gl-system-attachment
]
}
{
default-attachment
[
dup
(default-gl-attachment)
]
}
}
match
]
[
GL_NONE
]
if*
nip
;