allocate-compressed-texture ( tdt level dim compressed-data -- )
GPU-accelerated rendering ยป Texture objects

Prev:compressed-texture-data
Next:update-compressed-texture ( tdt level loc dim compressed-data -- )


Vocabulary
gpu.textures

Inputs
tdta texture-data-target
levelan integer
diman integer or sequence of integers
compressed-dataa compressed-texture-data


Outputs
None

Word description
Allocates a new block of GPU memory for the levelth level of detail of a texture-data-target. The new data is initialized with compressed texture data from the given compressed-texture-data object.

Notes
Using a buffer-ptr as the ptr of a compressed-texture-data object requires OpenGL 2.1 or later or the GL_ARB_pixel_buffer_object extension.

See also
allocate-texture, allocate-texture-image

Definition

GENERIC#: allocate-compressed-texture 3
( tdt level dim compressed-data -- )


Methods