• Advertisement
Sign in to follow this  

image parting.

This topic is 4367 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. I have an image in the framebuffer. I have to convert it: change two parts of it. for ex. i want to put the topleft quarter to the bottom-right part, and the bottom-right quarter to the topleft quarter. could you tell me how to do this? thank you.

Share this post


Link to post
Share on other sites
Advertisement
You have to copy the framebuffer contents (top-left quarter and bottom-right) to two 2D textures. Use glCopyTexSubImage2D. Then just render these 2 textures in appropriate places. Another way is to use framebuffer objects (EXT_framebuffer_object) to directly render the 2 quarters into textures. The render the textures into main framebuffer.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement