Sign in to follow this  
Woltan

OpenGL Rendering a region

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this