예제 #1
0
        public static bool EnclosePoints(SDL2Point[] points, int index, int count, SDL2Rect clip, out SDL2Rect result)
        {
            int max = (index + count) > points.Length ?
                      points.Length - index : count;

            return(EnclosePoints(ref points[index], max, ref clip, out result));
        }
예제 #2
0
 public static bool EnclosePoints(SDL2Point[] points, SDL2Rect clip, out SDL2Rect result)
 {
     return EnclosePoints(ref points[0], points.Length, ref clip, out result);
 }
예제 #3
0
 private static extern bool EnclosePoints(ref SDL2Point points, int count, ref SDL2Rect clip, out SDL2Rect result);
예제 #4
0
 public static extern void UnionRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
예제 #5
0
 public static extern bool IntersectRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
예제 #6
0
 public static extern bool HasIntersection(ref SDL2Rect A, ref SDL2Rect B);
 public static extern void SetTextInputRect(ref SDL2Rect rect);
예제 #8
0
 public static bool RectEmpty(SDL2Rect r)
 {
     return (r.w <= 0 || r.h <= 0) ? true : false;
 }
예제 #9
0
 public static extern bool IntersectRectAndLine(ref SDL2Rect rect, ref int x1, ref int y1, ref int x2, ref int y2);
예제 #10
0
 public static bool EnclosePoints(SDL2Point[] points, SDL2Rect clip, out SDL2Rect result)
 {
     return(EnclosePoints(ref points[0], points.Length, ref clip, out result));
 }
예제 #11
0
 private static extern bool EnclosePoints(ref SDL2Point points, int count, ref SDL2Rect clip, out SDL2Rect result);
예제 #12
0
 public static extern void UnionRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
예제 #13
0
 public static extern bool IntersectRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
예제 #14
0
        public static bool EnclosePoints(SDL2Point[] points, int index, int count, SDL2Rect clip, out SDL2Rect result)
        {
            int max = (index + count) > points.Length ?
                points.Length - index : count;

            return EnclosePoints(ref points[index], max, ref clip, out result);
        }
예제 #15
0
 public static bool RectEmpty(SDL2Rect r)
 {
     return((r.w <= 0 || r.h <= 0) ? true : false);
 }
예제 #16
0
 public static extern bool IntersectRectAndLine(ref SDL2Rect rect, ref int x1, ref int y1, ref int x2, ref int y2);
예제 #17
0
 public static bool RectEquals(SDL2Rect a, SDL2Rect b)
 {
     return(a == b);
 }
예제 #18
0
 public static bool RectEquals(SDL2Rect a, SDL2Rect b)
 {
     return a == b;
 }
예제 #19
0
 public static extern bool HasIntersection(ref SDL2Rect A, ref SDL2Rect B);
예제 #20
0
 public static extern string GetDisplayBounds(int DisplayIndex, out SDL2Rect rect);
예제 #21
0
 public static extern void SetTextInputRect(ref SDL2Rect rect);