Jump to content
  • Advertisement
Sign in to follow this  

Setting of several scissor rectangles correctly

This topic is 976 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,


I and developing 2D UI system and want to implement correct clipping.


For ex I want to clip control with some specific clip rectangle and at the same time clip it by parents clip rectangle to be sure it will not display out of the parent element.


For that I use several clip rectangles, but only parents rectangle works.


In msdn says that if you want to use several rectangles, you need to set several viewports.

As I am using absolute coordinates, I am setting 3 same viewports and 3 different rectangles, but seems that only last rectangle applies.


So, my question is how to correctly apply several rectangles for clipping at the same time? Is it possible?

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!