Reputation: 64273
Is it possible to move part of the texture into another texture part without performance hits?
I looked into opengl SDK, but haven't found anything that could do something like this.
Upvotes: 0
Views: 274
Reputation: 5361
glCopyPixels
lets you to copy from one framebuffer area into another (I never used it).
glBlitFramebuffer
lets you to copy pixels between framebuffers
glCopyTexImage
lets you to copy pixels from framebuffer into a texture
Using these function you can accomplish the task by, for example, the following actions:
glCopyTexSubImage
into the texture-2 to get the contentsUpvotes: 2