• Advertisement
Sign in to follow this  

Setting of several scissor rectangles correctly

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