read-compressed-texture-to ( tdt: texture-data-target level: integer gpu-data-ptr -- )
GPU-accelerated rendering ยป Texture objects

Prev:read-compressed-texture ( tdt: texture-data-target level: integer -- byte-array: byte-array )


Vocabulary
gpu.textures

Inputs
tdta texture-data-target
levelan integer
gpu-data-ptra byte-array


Outputs
None

Word description
Reads the entire compressed image for the levelth level of detail of a texture into the CPU or GPU memory referenced by gpu-data-ptr. The format of the written data is determined by the compressed-texture-format of the data originally allocated by allocate-compressed-texture for the texture.

Notes
Reading texture data into a GPU buffer-ptr requires OpenGL 2.1 or later or the GL_ARB_pixel_buffer_object extension.

See also
read-compressed-texture, read-texture, read-texture-image, read-texture-to

Definition