• Advertisement

Archived

This topic is now archived and is closed to further replies.

glViewport Can't restrain glClear

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

I set glViewport to a portion of a window, then call glClear(GL_COLOR_BUFFER_BIT) to want set the portion''s backgroud color. but actually it clears the whole window. my pc''s viedo card is nvidia''s geforce, and I used to clear a viewport in D3D. Does glViewport restrain any drawings to it''s portion? How to clear a portion of a window?

Share this post


Link to post
Share on other sites
Advertisement
also glViewport can''t cut off the outside of glDrawPixels when glDrawPixel draw contents to outside.

Share this post


Link to post
Share on other sites

  • Advertisement