Handbook
Glossary
texture-3d-data-target
Vocabulary
gpu
.
textures
Definition
IN:
gpu.textures
UNION:
texture-3d-data-target
texture-3d
texture-2d-array
;
Methods
USING:
gpu.textures
gpu.textures.private
opengl.gl
sequences
;
M:
texture-3d-data-target
allocate-compressed-texture
[
first3
]
[
glCompressedTexImage3D
]
(allocate-compressed-texture)
;
USING:
gpu.textures
gpu.textures.private
opengl.gl
sequences
;
M:
texture-3d-data-target
allocate-texture
[
first3
]
[
glTexImage3D
]
(allocate-texture)
;
USING:
arrays
gpu.textures
gpu.textures.private
kernel
opengl.gl
opengl.textures
;
M::
texture-3d-data-target
texture-dim
( tdt level -- dim )
tdt
bind-tdt
:>
texture tdt
texture-data-gl-target
level
[
GL_TEXTURE_WIDTH
get-texture-int
]
[
GL_TEXTURE_HEIGHT
get-texture-int
]
[
GL_TEXTURE_DEPTH
get-texture-int
]
2tri
3array
;
inline
USING:
gpu.textures
gpu.textures.private
opengl.gl
sequences
;
M:
texture-3d-data-target
update-compressed-texture
[
first3
]
[
glCompressedTexSubImage3D
]
(update-compressed-texture)
;
USING:
gpu.textures
gpu.textures.private
opengl.gl
sequences
;
M:
texture-3d-data-target
update-texture
[
first3
]
[
glTexSubImage3D
]
(update-texture)
;