Handbook
Glossary
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
tdt
a
texture-data-target
level
an
integer
image
an
image
Outputs
None
Word description
Allocates a new block of GPU memory for the
level
th 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
IN:
gpu.textures
:
allocate-texture-image
( tdt level image -- )
image>texture-data
allocate-texture
;
inline