Jump to content
  • Advertisement
Sign in to follow this  
Woltan

OpenGL Rendering a region

This topic is 3889 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

Hey Folks, I have a problem: I am using an FBO to render a texture to display that texture on a quad. Is there a way to just update that quad in the back buffer? So that all the rest does not have to be updated as well? I am a bit worried, that otherwise my CPU would blow! So question: Is there a way to just render a selected region within opengl space? I hope you understood my problem. Thx in advance for your help cherio Woltan

Share this post


Link to post
Share on other sites
Advertisement
I'm not quite sure I correctly understand what you want to do but maybe you wan't to setup a scissor region and enable scissor testing, so only a specified region would be drawn to. ( Look at glScissor and glEnable(GL_SCRISSOR_TEST) )

Share this post


Link to post
Share on other sites
That is exactly what i wanna do! Thx!
The only problem I am facing now is, to determine the window coordinates, where my rect lies.
But I think somehow I should be able to figure that out!
Thx again
cherio Woltan

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!