allocate-texture-image ( tdt level image -- )
GPU-accelerated rendering ยป Texture objects

Prev:read-texture-to ( tdt: texture-data-target level: integer gpu-data-ptr -- )
Next:update-texture-image ( tdt level loc image -- )


Vocabulary
gpu.textures

Inputs
tdta texture-data-target
levelan integer
imagean image


Outputs
None

Word description
Allocates a new block of GPU memory for the levelth level of detail of a texture-data-target and initializes it with the contents of an image.

See also
allocate-compressed-texture, allocate-texture

Definition