Handbook
Glossary
bind-framebuffer-attachment ( attachment-target attachment -- )
Vocabulary
gpu
.
framebuffers
.
private
Inputs
attachment-target
an
object
attachment
an
object
Outputs
None
Definition
IN:
gpu.framebuffers.private
GENERIC:
bind-framebuffer-attachment
( attachment-target attachment -- )
Methods
USING:
accessors
gpu.framebuffers
gpu.framebuffers.private
opengl.gl
;
M::
renderbuffer
bind-framebuffer-attachment
( attachment-target renderbuffer -- )
GL_DRAW_FRAMEBUFFER
attachment-target
GL_RENDERBUFFER
renderbuffer
handle>>
glFramebufferRenderbuffer
;
USING:
accessors
gpu.framebuffers
gpu.framebuffers.private
gpu.textures.private
kernel
opengl.gl
;
M::
texture-1d-attachment
bind-framebuffer-attachment
( attachment-target texture-attachment -- )
GL_DRAW_FRAMEBUFFER
attachment-target texture-attachment
[
texture>>
[
texture-data-gl-target
]
[
texture-object
handle>>
]
bi
]
[
level>>
]
bi
glFramebufferTexture1D
;
USING:
accessors
gpu.framebuffers
gpu.framebuffers.private
gpu.textures.private
kernel
opengl.gl
;
M::
texture-2d-attachment
bind-framebuffer-attachment
( attachment-target texture-attachment -- )
GL_DRAW_FRAMEBUFFER
attachment-target texture-attachment
[
texture>>
[
texture-data-gl-target
]
[
texture-object
handle>>
]
bi
]
[
level>>
]
bi
glFramebufferTexture2D
;
USING:
accessors
gpu.framebuffers
gpu.framebuffers.private
gpu.textures.private
kernel
opengl.gl
;
M::
texture-3d-attachment
bind-framebuffer-attachment
( attachment-target texture-attachment -- )
GL_DRAW_FRAMEBUFFER
attachment-target texture-attachment
[
texture>>
[
texture-data-gl-target
]
[
texture-object
handle>>
]
bi
]
[
level>>
]
[
z-offset>>
]
tri
glFramebufferTexture3D
;
USING:
accessors
gpu.framebuffers
gpu.framebuffers.private
gpu.textures.private
kernel
opengl.gl
;
M::
texture-layer-attachment
bind-framebuffer-attachment
( attachment-target texture-attachment -- )
GL_DRAW_FRAMEBUFFER
attachment-target texture-attachment
[
texture>>
texture-object
handle>>
]
[
level>>
]
[
layer>>
]
tri
glFramebufferTextureLayer
;