All collision functions...

This commit is contained in:
Ognjen Milan Robovic 2024-04-22 21:06:35 -04:00
parent 9f43f6342b
commit de6d282752

View File

@ -2704,7 +2704,7 @@ package Raylib is
Import => True, Import => True,
Convention => C, Convention => C,
External_Name => "DrawSplineSegmentBezierCubic"; External_Name => "DrawSplineSegmentBezierCubic";
--~################################################################
function Get_Spline_Point_Linear ( function Get_Spline_Point_Linear (
From : Vector_2D := (others => 0.0); From : Vector_2D := (others => 0.0);
To : Vector_2D := (others => 0.0); To : Vector_2D := (others => 0.0);
@ -2757,76 +2757,98 @@ package Raylib is
Convention => C, Convention => C,
External_Name => "GetSplinePointBezierCubic"; External_Name => "GetSplinePointBezierCubic";
--~function bool CheckCollisionRecs ( function Check_Collision_Recs (
--~Rectangle rec1, Rectangle rec2 Bound_1 : Rectangle := No_Rectangle;
--~) with Bound_2 : Rectangle := No_Rectangle
--~Import => True, ) return Logical with
--~Convention => C, Import => True,
--~External_Name => ""; Convention => C,
External_Name => "CheckCollisionRecs";
--~function bool CheckCollisionCircles ( function Check_Collision_Circles (
--~Vector2 center1, float radius1, Vector2 center2, float radius2 Center_1 : Vector_2D := (others => 0.0);
--~) with Radius_1 : Float := 0.0;
--~Import => True, Center_2 : Vector_2D := (others => 0.0);
--~Convention => C, Radius_2 : Float := 0.0
--~External_Name => ""; ) return Logical with
Import => True,
Convention => C,
External_Name => "CheckCollisionCircles";
--~function bool CheckCollisionCircleRec ( function Check_Collision_Circle_Rec (
--~Vector2 center, float radius, Rectangle rec Center : Vector_2D := (others => 0.0);
--~) with Radius : Float := 0.0;
--~Import => True, Bound : Rectangle := No_Rectangle
--~Convention => C, ) return Logical with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "CheckCollisionCircleRec";
--~function bool CheckCollisionPointRec ( function Check_Collision_Point_Rec (
--~Vector2 point, Rectangle rec Point : Vector_2D := (others => 0.0);
--~) with Bound : Rectangle := No_Rectangle
--~Import => True, ) return Logical with
--~Convention => C, Import => True,
--~External_Name => ""; Convention => C,
External_Name => "CheckCollisionPointRec";
--~function bool CheckCollisionPointCircle ( function Check_Collision_Point_Circle (
--~Vector2 point, Vector2 center, float radius Point : Vector_2D := (others => 0.0);
--~) with Center : Vector_2D := (others => 0.0);
--~Import => True, Radius : Float := 0.0
--~Convention => C, ) return Logical with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "CheckCollisionPointCircle";
--~function bool CheckCollisionPointTriangle ( function Check_Collision_Point_Triangle (
--~Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3 Point : Vector_2D := (others => 0.0);
--~) with Triangle_A : Vector_2D := (others => 0.0);
--~Import => True, Triangle_B : Vector_2D := (others => 0.0);
--~Convention => C, Triangle_C : Vector_2D := (others => 0.0)
--~External_Name => ""; ) return Logical with
Import => True,
Convention => C,
External_Name => "CheckCollisionPointTriangle";
--~function bool CheckCollisionPointPoly ( function Check_Collision_Point_Poly (
--~Vector2 point, Vector2 *points, int pointCount Point : Vector_2D := (others => 0.0);
--~) with Points : access Vector_2D := null;
--~Import => True, Point_Count : Natural := 0
--~Convention => C, ) return Logical with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "CheckCollisionPointPoly";
--~function bool CheckCollisionLines ( function Check_Collision_Lines (
--~Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint From_1 : Vector_2D := (others => 0.0);
--~) with To_1 : Vector_2D := (others => 0.0);
--~Import => True, From_2 : Vector_2D := (others => 0.0);
--~Convention => C, To_2 : Vector_2D := (others => 0.0);
--~External_Name => ""; Intersections : access Vector_2D := null
) return Logical with
Import => True,
Convention => C,
External_Name => "CheckCollisionLines";
--~function bool CheckCollisionPointLine ( function Check_Collision_Point_Line (
--~Vector2 point, Vector2 p1, Vector2 p2, int threshold Point : Vector_2D := (others => 0.0);
--~) with From : Vector_2D := (others => 0.0);
--~Import => True, To : Vector_2D := (others => 0.0);
--~Convention => C, Threshold : Natural := 0
--~External_Name => ""; ) return Logical with
Import => True,
--~function Rectangle GetCollisionRec ( Convention => C,
--~Rectangle rec1, Rectangle rec2 External_Name => "CheckCollisionPointLine";
--~) with
--~Import => True,
--~Convention => C,
--~External_Name => "";
function Get_Collision_Rec (
Bound_1 : Rectangle := No_Rectangle;
Bound_2 : Rectangle := No_Rectangle
) return Rectangle with
Import => True,
Convention => C,
External_Name => "GetCollisionRec";
--~################################################################
--~function Image LoadImage ( --~function Image LoadImage (
--~const char *fileName --~const char *fileName
--~) with --~) with