read-compressed-texture ( tdt: texture-data-target level: integer -- byte-array: byte-array )
GPU-accelerated rendering ยป Texture objects

Prev:compressed-texture-data-size ( tdt level -- size )
Next:read-compressed-texture-to ( tdt: texture-data-target level: integer gpu-data-ptr -- )


Vocabulary
gpu.textures

Inputs
tdta texture-data-target
levelan integer


Outputs
byte-arraya byte-array


Word description
Reads the entire compressed image for the levelth level of detail of a texture into a new byte-array. The format of the data in the byte array is determined by the compressed-texture-format of the data originally allocated by allocate-compressed-texture for the texture.

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

Definition