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 -- )


Inputs and outputs
tdta texture-data-target
levelan integer
imagean image

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