Setting of several scissor rectangles correctly

Started by
-1 comments, last by BlackJoker 8 years, 1 month ago

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?

This topic is closed to new replies.

Advertisement