copy-framebuffer ( to-fb-rect: framebuffer-rect from-fb-rect: framebuffer-rect depth? stencil? filter: texture-filter -- )
GPU-accelerated rendering ยป Framebuffer objects

Prev:read-framebuffer-image ( framebuffer-rect: framebuffer-rect -- image )


Vocabulary
gpu.framebuffers

Inputs
to-fb-recta framebuffer-rect
from-fb-recta framebuffer-rect
depth?a boolean
stencil?a boolean
filtera texture-filter


Outputs
None

Word description
Copies the rectangular region from-fb-rect to to-fb-rect. If depth? is true, depth values are also copied, and if stencil? is true, so are stencil values. If the rectangle sizes do not match, the region is scaled using nearest-neighbor or linear filtering based on filter.

Notes
This word requires OpenGL 3.0 or one of the GL_ARB_framebuffer_object or GL_EXT_framebuffer_blit extensions.

Definition