All spline functions...

This commit is contained in:
Ognjen Milan Robovic 2024-04-22 20:56:18 -04:00
parent 3f78901759
commit 9f43f6342b

View File

@ -2598,110 +2598,164 @@ package Raylib is
Convention => C, Convention => C,
External_Name => "DrawPolyLinesEx"; External_Name => "DrawPolyLinesEx";
--~procedure DrawSplineLinear ( procedure Draw_Spline_Linear (
--~Vector2 *points, int pointCount, float thick, Color color Points : access Vector_2D := null;
--~) with Point_Count : Natural := 0;
--~Import => True, Thickness : Float := 0.0;
--~Convention => C, Tint : Color := White
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "DrawSplineLinear";
--~procedure DrawSplineBasis ( procedure Draw_Spline_Basis (
--~Vector2 *points, int pointCount, float thick, Color color Points : access Vector_2D := null;
--~) with Point_Count : Natural := 0;
--~Import => True, Thickness : Float := 0.0;
--~Convention => C, Tint : Color := White
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "DrawSplineBasis";
--~procedure DrawSplineCatmullRom ( procedure Draw_Spline_Catmull_Rom (
--~Vector2 *points, int pointCount, float thick, Color color Points : access Vector_2D := null;
--~) with Point_Count : Natural := 0;
--~Import => True, Thickness : Float := 0.0;
--~Convention => C, Tint : Color := White
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "DrawSplineCatmullRom";
--~procedure DrawSplineBezierQuadratic ( procedure Draw_Spline_Bezier_Quadratic (
--~Vector2 *points, int pointCount, float thick, Color color Points : access Vector_2D := null;
--~) with Point_Count : Natural := 0;
--~Import => True, Thickness : Float := 0.0;
--~Convention => C, Tint : Color := White
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "DrawSplineBezierQuadratic";
--~procedure DrawSplineBezierCubic ( procedure Draw_Spline_Bezier_Cubic (
--~Vector2 *points, int pointCount, float thick, Color color Points : access Vector_2D := null;
--~) with Point_Count : Natural := 0;
--~Import => True, Thickness : Float := 0.0;
--~Convention => C, Tint : Color := White
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "DrawSplineBezierCubic";
--~procedure DrawSplineSegmentLinear ( procedure Draw_Spline_Segment_Linear (
--~Vector2 p1, Vector2 p2, float thick, Color color From : Vector_2D := (others => 0.0);
--~) with To : Vector_2D := (others => 0.0);
--~Import => True, Thickness : Float := 0.0;
--~Convention => C, Tint : Color := White
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "DrawSplineSegmentLinear";
--~procedure DrawSplineSegmentBasis ( procedure Draw_Spline_Segment_Basis (
--~Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color Point_1 : Vector_2D := (others => 0.0);
--~) with Point_2 : Vector_2D := (others => 0.0);
--~Import => True, Point_3 : Vector_2D := (others => 0.0);
--~Convention => C, Point_4 : Vector_2D := (others => 0.0);
--~External_Name => ""; Thickness : Float := 0.0;
Tint : Color := White
) with
Import => True,
Convention => C,
External_Name => "DrawSplineSegmentBasis";
--~procedure DrawSplineSegmentCatmullRom ( procedure Draw_Spline_Segment_Catmull_Rom (
--~Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float thick, Color color Point_1 : Vector_2D := (others => 0.0);
--~) with Point_2 : Vector_2D := (others => 0.0);
--~Import => True, Point_3 : Vector_2D := (others => 0.0);
--~Convention => C, Point_4 : Vector_2D := (others => 0.0);
--~External_Name => ""; Thickness : Float := 0.0;
Tint : Color := White
) with
Import => True,
Convention => C,
External_Name => "DrawSplineSegmentCatmullRom";
--~procedure DrawSplineSegmentBezierQuadratic ( procedure Draw_Spline_Segment_Bezier_Quadratic (
--~Vector2 p1, Vector2 c2, Vector2 p3, float thick, Color color Point_1 : Vector_2D := (others => 0.0);
--~) with Point_2 : Vector_2D := (others => 0.0);
--~Import => True, Point_3 : Vector_2D := (others => 0.0);
--~Convention => C, Thickness : Float := 0.0;
--~External_Name => ""; Tint : Color := White
) with
Import => True,
Convention => C,
External_Name => "DrawSplineSegmentBezierQuadratic";
--~procedure DrawSplineSegmentBezierCubic ( procedure Draw_Spline_Segment_Bezier_Cubic (
--~Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float thick, Color color Point_1 : Vector_2D := (others => 0.0);
--~) with Point_2 : Vector_2D := (others => 0.0);
--~Import => True, Point_3 : Vector_2D := (others => 0.0);
--~Convention => C, Point_4 : Vector_2D := (others => 0.0);
--~External_Name => ""; Thickness : Float := 0.0;
Tint : Color := White
) with
Import => True,
Convention => C,
External_Name => "DrawSplineSegmentBezierCubic";
--~################################################################
function Get_Spline_Point_Linear (
From : Vector_2D := (others => 0.0);
To : Vector_2D := (others => 0.0);
Off : Float := 0.0
) return Vector_2D with
Import => True,
Convention => C,
External_Name => "GetSplinePointLinear";
--~function Vector2 GetSplinePointLinear ( function Get_Spline_Point_Basis (
--~Vector2 startPos, Vector2 endPos, float t Point_1 : Vector_2D := (others => 0.0);
--~) with Point_2 : Vector_2D := (others => 0.0);
--~Import => True, Point_3 : Vector_2D := (others => 0.0);
--~Convention => C, Point_4 : Vector_2D := (others => 0.0);
--~External_Name => ""; Off : Float := 0.0
) return Vector_2D with
Import => True,
Convention => C,
External_Name => "GetSplinePointBasis";
--~function Vector2 GetSplinePointBasis ( function Get_Spline_Point_Catmull_Rom (
--~Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t Point_1 : Vector_2D := (others => 0.0);
--~) with Point_2 : Vector_2D := (others => 0.0);
--~Import => True, Point_3 : Vector_2D := (others => 0.0);
--~Convention => C, Point_4 : Vector_2D := (others => 0.0);
--~External_Name => ""; Off : Float := 0.0
) return Vector_2D with
Import => True,
Convention => C,
External_Name => "GetSplinePointCatmullRom";
--~function Vector2 GetSplinePointCatmullRom ( function Get_Spline_Point_Bezier_Quad (
--~Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t Point_1 : Vector_2D := (others => 0.0);
--~) with Point_2 : Vector_2D := (others => 0.0);
--~Import => True, Point_3 : Vector_2D := (others => 0.0);
--~Convention => C, Off : Float := 0.0
--~External_Name => ""; ) return Vector_2D with
Import => True,
Convention => C,
External_Name => "GetSplinePointBezierQuad";
--~function Vector2 GetSplinePointBezierQuad ( function Get_Spline_Point_Bezier_Cubic (
--~Vector2 p1, Vector2 c2, Vector2 p3, float t Point_1 : Vector_2D := (others => 0.0);
--~) with Point_2 : Vector_2D := (others => 0.0);
--~Import => True, Point_3 : Vector_2D := (others => 0.0);
--~Convention => C, Point_4 : Vector_2D := (others => 0.0);
--~External_Name => ""; Off : Float := 0.0
) return Vector_2D with
--~function Vector2 GetSplinePointBezierCubic ( Import => True,
--~Vector2 p1, Vector2 c2, Vector2 c3, Vector2 p4, float t Convention => C,
--~) with External_Name => "GetSplinePointBezierCubic";
--~Import => True,
--~Convention => C,
--~External_Name => "";
--~function bool CheckCollisionRecs ( --~function bool CheckCollisionRecs (
--~Rectangle rec1, Rectangle rec2 --~Rectangle rec1, Rectangle rec2