Handbook
Glossary
read-framebuffer-image ( framebuffer-rect: framebuffer-rect -- image )
GPU-accelerated rendering
ยป
Framebuffer objects
Prev:
read-framebuffer-to ( framebuffer-rect: framebuffer-rect gpu-data-ptr -- )
Next:
copy-framebuffer ( to-fb-rect: framebuffer-rect from-fb-rect: framebuffer-rect depth? stencil? filter: texture-filter -- )
Vocabulary
gpu
.
framebuffers
Inputs
framebuffer-rect
a
framebuffer-rect
Outputs
image
an
image
Word description
Reads the rectangular region
framebuffer-rect
into a new
image
. The format of the image is determined by the
component-order
and
component-type
of the associated
framebuffer-attachment
.
Notes
User-created framebuffer objects require OpenGL 3.0 or one of the
GL_ARB_framebuffer_object
or
GL_EXT_framebuffer_object
extensions.
See also
read-framebuffer
,
read-framebuffer-to
Definition
USING:
accessors
combinators
gpu.framebuffers.private
images
kernel
typed
;
IN:
gpu.framebuffers
TYPED:
read-framebuffer-image
( framebuffer-rect: framebuffer-rect -- image )
[
<image>
]
dip
{
[
rect>>
dim>>
>>dim
]
[
framebuffer-rect-image-type
[
>>component-order
]
[
>>component-type
]
bi*
]
[
read-framebuffer
>>bitmap
]
}
cleave
;