Sign in to follow this  

glClear

This topic is 4840 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 all, does glClear clears the viewport or window; I define two viewports and use glClear beneath the definition of viewport; but i don't get the viewports with diff. background color; It just displays one color only; online resources confuses me saying window and in certain places as viewport. help me out.... ~ kavitha

Share this post


Link to post
Share on other sites
It will clear the whole thing. Use glScissor with the same parameters as glViewport and it will only clear that viewport. (At least I think that's what I did.. been awhile.)

Share this post


Link to post
Share on other sites

This topic is 4840 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.

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