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-recta framebuffer-rect


Outputs
imagean 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