Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public static bool EnclosePoints(SDL2Point[] points, SDL2Rect clip, out SDL2Rect result)
 {
     return EnclosePoints(ref points[0], points.Length, ref clip, out result);
 }
Ejemplo n.º 3
0
 private static extern bool EnclosePoints(ref SDL2Point points, int count, ref SDL2Rect clip, out SDL2Rect result);
Ejemplo n.º 4
0
 public static extern void UnionRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
Ejemplo n.º 5
0
 public static extern bool IntersectRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
Ejemplo n.º 6
0
 public static extern bool HasIntersection(ref SDL2Rect A, ref SDL2Rect B);
 public static extern void SetTextInputRect(ref SDL2Rect rect);
Ejemplo n.º 8
0
 public static bool RectEmpty(SDL2Rect r)
 {
     return (r.w <= 0 || r.h <= 0) ? true : false;
 }
Ejemplo n.º 9
0
 public static extern bool IntersectRectAndLine(ref SDL2Rect rect, ref int x1, ref int y1, ref int x2, ref int y2);
Ejemplo n.º 10
0
 public static bool EnclosePoints(SDL2Point[] points, SDL2Rect clip, out SDL2Rect result)
 {
     return(EnclosePoints(ref points[0], points.Length, ref clip, out result));
 }
Ejemplo n.º 11
0
 private static extern bool EnclosePoints(ref SDL2Point points, int count, ref SDL2Rect clip, out SDL2Rect result);
Ejemplo n.º 12
0
 public static extern void UnionRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
Ejemplo n.º 13
0
 public static extern bool IntersectRect(ref SDL2Rect A, ref SDL2Rect B, out SDL2Rect result);
Ejemplo n.º 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);
        }
Ejemplo n.º 15
0
 public static bool RectEmpty(SDL2Rect r)
 {
     return((r.w <= 0 || r.h <= 0) ? true : false);
 }
Ejemplo n.º 16
0
 public static extern bool IntersectRectAndLine(ref SDL2Rect rect, ref int x1, ref int y1, ref int x2, ref int y2);
Ejemplo n.º 17
0
 public static bool RectEquals(SDL2Rect a, SDL2Rect b)
 {
     return(a == b);
 }
Ejemplo n.º 18
0
 public static bool RectEquals(SDL2Rect a, SDL2Rect b)
 {
     return a == b;
 }
Ejemplo n.º 19
0
 public static extern bool HasIntersection(ref SDL2Rect A, ref SDL2Rect B);
Ejemplo n.º 20
0
 public static extern string GetDisplayBounds(int DisplayIndex, out SDL2Rect rect);
Ejemplo n.º 21
0
 public static extern void SetTextInputRect(ref SDL2Rect rect);