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

Prev:read-texture ( tdt: texture-data-target level: integer -- byte-array: byte-array )
Next:allocate-texture-image ( tdt level image -- )


Vocabulary
gpu.textures

Inputs
tdta texture-data-target
levelan integer
gpu-data-ptra gpu-data-ptr


Outputs
None

Word description
Reads the entire 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 component-order and component-type of 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-compressed-texture-to, read-texture, read-texture-image

Definition