Beispiel #1
0
 public static void SetScissorState(ScissorState value, bool intersectWithCurrent = false)
 {
     if (intersectWithCurrent && scissorState.Enable && value.Enable)
     {
         value.Bounds = (WindowRect)IntRectangle.Intersect((IntRectangle)value.Bounds, (IntRectangle)scissorState.Bounds);
     }
     ScissorState = value;
 }
Beispiel #2
0
 public static void SetScissorState(ScissorState value)
 {
     Context.SetScissorState(value);
 }