Handbook
Glossary
texture-2d-data-target
Vocabulary
gpu
.
textures
Definition
IN:
gpu.textures
UNION:
texture-2d-data-target
texture-2d
texture-rectangle
texture-1d-array
cube-map-face
;
Methods
USING:
gpu.textures
gpu.textures.private
opengl.gl
sequences
;
M:
texture-2d-data-target
allocate-compressed-texture
[
first2
]
[
glCompressedTexImage2D
]
(allocate-compressed-texture)
;
USING:
gpu.textures
gpu.textures.private
opengl.gl
sequences
;
M:
texture-2d-data-target
allocate-texture
[
first2
]
[
glTexImage2D
]
(allocate-texture)
;
USING:
arrays
gpu.textures
gpu.textures.private
kernel
opengl.gl
opengl.textures
;
M::
texture-2d-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
]
2bi
2array
;
inline
USING:
gpu.textures
gpu.textures.private
opengl.gl
sequences
;
M:
texture-2d-data-target
update-compressed-texture
[
first2
]
[
glCompressedTexSubImage2D
]
(update-compressed-texture)
;
USING:
gpu.textures
gpu.textures.private
opengl.gl
sequences
;
M:
texture-2d-data-target
update-texture
[
first2
]
[
glTexSubImage2D
]
(update-texture)
;