5 * The structure that defines a point
10 PSDL_Point = ^TSDL_Point;
17 * A rectangle, with the origin at the upper left.
27 PSDL_Rect = ^TSDL_Rect;
34 * Returns true if the rectangle has no area.
37 //changed from variant(b�����h!) to TSDL_Rect
39 function SDL_RectEmpty(X: TSDL_Rect): Boolean;
42 * Returns true if the two rectangles are equal.
45 function SDL_RectEquals(A: TSDL_Rect; B: TSDL_Rect): Boolean;
48 * Determine whether two rectangles intersect.
50 * SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
53 function SDL_HasIntersection(const A: PSDL_Rect; const B: PSDL_Rect): TSDL_Bool cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_HasIntersection' {$ENDIF} {$ENDIF};
56 * Calculate the intersection of two rectangles.
58 * SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
61 function SDL_IntersectRect(const A: PSDL_Rect; const B: PSDL_Rect; result: PSDL_Rect): TSDL_Bool cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_IntersectRect' {$ENDIF} {$ENDIF};
64 * Calculate the union of two rectangles.
67 procedure SDL_UnionRect(const A: PSDL_Rect; const B: PSDL_Rect; result: PSDL_Rect) cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_UnionRect' {$ENDIF} {$ENDIF};
70 * Calculate a minimal rectangle enclosing a set of points
72 * SDL_TRUE if any points were within the clipping rect
75 function SDL_EnclosePoints(const points: PSDL_Point; count: SInt32; const clip: PSDL_Rect; result: PSDL_Rect): TSDL_Bool cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_EnclosePoints' {$ENDIF} {$ENDIF};
78 * Calculate the intersection of a rectangle and line segment.
80 * SDL_TRUE if there is an intersection, SDL_FALSE otherwise.
83 function SDL_IntersectRectAndLine(const rect: PSDL_Rect; X1: PInt; Y1: PInt; X2: PInt; Y2: PInt): TSDL_Bool cdecl; external SDL_LibName {$IFDEF DELPHI} {$IFDEF MACOS} name '_SDL_IntersectRectAndLine' {$ENDIF} {$ENDIF};