Handbook
Glossary
texture-attachment
Vocabulary
gpu
.
framebuffers
Class description
This class is a union of the
texture-1d-attachment
,
texture-2d-attachment
,
texture-3d-attachment
, and
texture-layer-attachment
classes, which select layers and levels of detail of
texture
objects to serve as
framebuffer
attachments.
Notes
User-created framebuffer objects require OpenGL 3.0 or one of the
GL_ARB_framebuffer_object
or
GL_EXT_framebuffer_object
extensions.
Definition
IN:
gpu.framebuffers
UNION:
texture-attachment
texture-1d-attachment
texture-2d-attachment
texture-3d-attachment
texture-layer-attachment
;
Methods
USING:
accessors
gpu.framebuffers
gpu.framebuffers.private
gpu.textures
kernel
;
M:
texture-attachment
allocate-framebuffer-attachment
[
[
texture>>
]
[
level>>
]
bi
]
dip
f
allocate-texture
;
USING:
accessors
gpu.framebuffers
gpu.textures.private
;
M:
texture-attachment
attachment-object
texture>>
texture-object
;
USING:
accessors
destructors
gpu.framebuffers
;
M:
texture-attachment
dispose
texture>>
dispose
;
USING:
accessors
arrays
gpu.framebuffers
gpu.framebuffers.private
gpu.textures
kernel
math
sequences
;
M:
texture-attachment
framebuffer-attachment-dim
[
texture>>
]
[
level>>
]
bi
texture-dim
dup
number?
[
1
2array
]
[
2
head
]
if
;