Handbook
Glossary
read-texture-image ( tdt level -- image )
GPU-accelerated rendering
ยป
Texture objects
Prev:
update-texture-image ( tdt level loc image -- )
Next:
compressed-texture-format
Vocabulary
gpu
.
textures
Inputs
tdt
a
texture-data-target
level
an
integer
Outputs
image
an
image
Word description
Reads the entire image for the
level
th level of detail of a texture into a new
image
. The format of the image is determined by the
component-order
and
component-type
of the texture.
See also
read-compressed-texture
,
read-compressed-texture-to
,
read-texture
,
read-texture-to
Definition
USING:
accessors
gpu.textures.private
images
kernel
;
IN:
gpu.textures
:
read-texture-image
( tdt level -- image )
[
texture-dim
]
[
drop
texture-object
[
component-order>>
]
[
component-type>>
]
bi
f
f
]
[
read-texture
]
2tri
f
image
boa
;
inline