Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
texture-data
GPU-accelerated rendering
>
Texture objects
Prev:
texture
Next:
allocate-texture ( tdt level dim data -- )
Vocabulary
gpu.textures
Class description
texture-data
tuples are used to feed image data to
allocate-texture
and
update-texture
.
•
The
ptr
slot references either CPU memory (as a
byte-array
or
alien
) or a GPU
buffer-ptr
that contains the image data.
•
The
component-order
and
component-type
slots determine the
component-order
and
component-type
of the referenced data.
Notes
Using a
buffer-ptr
as the
ptr
of a
texture-data
object requires OpenGL 2.1 or later or the
GL_ARB_pixel_buffer_object
extension.
See also
<texture-data>
Definition
USING:
images
;
IN:
gpu.textures
TUPLE:
texture-data
{
ptr
read-only
}
{
component-order
component-order
read-only
initial:
RGBA
}
{
component-type
component-type
read-only
initial:
ubyte-components
}
;