Ported all rectangle functions...

This commit is contained in:
Ognjen Milan Robovic 2024-03-20 08:12:55 -04:00
parent 2312c3662b
commit 30e767bf93

View File

@ -2188,55 +2188,108 @@ package Raylib is
Convention => C, Convention => C,
External_Name => "DrawRectangle"; External_Name => "DrawRectangle";
--~procedure DrawRectangleV (Vector2 position, Vector2 size, Color color) with procedure Draw_Rectangle_V (
--~Import => True, Position : Vector_2D := (0.0, 0.0);
--~Convention => C, Size : Vector_2D := (0.0, 0.0);
--~External_Name => ""; Tint : Color := Black
) with
Import => True,
Convention => C,
External_Name => "DrawRectangleV";
--~procedure DrawRectangleRec (Rectangle rec, Color color) with procedure Draw_Rectangle_Rec (
--~Import => True, Data : Rectangle := No_Rectangle;
--~Convention => C, Tint : Color := Black
--~External_Name => ""; ) with
Import => True,
Convention => C,
External_Name => "DrawRectangleRec";
--~procedure DrawRectanglePro (Rectangle rec, Vector2 origin, float rotation, Color color) with procedure Draw_Rectangle_Pro (
--~Import => True, Data : Rectangle := No_Rectangle;
--~Convention => C, Origin : Vector_2D := (0.0, 0.0);
--~External_Name => ""; Rotation : Float := 0.0;
Tint : Color := Black
) with
Import => True,
Convention => C,
External_Name => "DrawRectanglePro";
--~procedure DrawRectangleGradientV (int posX, int posY, int width, int height, Color color1, Color color2) with procedure Draw_Rectangle_Gradient_V (
--~Import => True, X : Integer := 0;
--~Convention => C, Y : Integer := 0;
--~External_Name => ""; Width : Integer := 0;
Height : Integer := 0;
Color_1 : Color := Black;
Color_2 : Color := White
) with
Import => True,
Convention => C,
External_Name => "DrawRectangleGradientV";
--~procedure DrawRectangleGradientH (int posX, int posY, int width, int height, Color color1, Color color2) with procedure Draw_Rectangle_Gradient_H (
--~Import => True, X : Integer := 0;
--~Convention => C, Y : Integer := 0;
--~External_Name => ""; Width : Integer := 0;
Height : Integer := 0;
Color_1 : Color := Black;
Color_2 : Color := White
) with
Import => True,
Convention => C,
External_Name => "DrawRectangleGradientH";
--~procedure DrawRectangleGradientEx (Rectangle rec, Color col1, Color col2, Color col3, Color col4) with procedure Draw_Rectangle_Gradient_Ex (
--~Import => True, Data : Rectangle := No_Rectangle;
--~Convention => C, Color_1 : Color := Red;
--~External_Name => ""; Color_2 : Color := Green;
Color_3 : Color := Blue;
Color_4 : Color := Black
) with
Import => True,
Convention => C,
External_Name => "DrawRectangleGradientEx";
--~procedure DrawRectangleLines (int posX, int posY, int width, int height, Color color) with procedure Draw_Rectangle_Lines (
--~Import => True, X : Integer := 0;
--~Convention => C, Y : Integer := 0;
--~External_Name => ""; Width : Integer := 0;
Height : Integer := 0;
Tint : Color := Black
) with
Import => True,
Convention => C,
External_Name => "DrawRectangleLines";
--~procedure DrawRectangleLinesEx (Rectangle rec, float lineThick, Color color) with procedure Draw_Rectangle_Lines_Ex (
--~Import => True, Data : Rectangle := No_Rectangle;
--~Convention => C, Thickness : Float := 1.0;
--~External_Name => ""; Tint : Color := Black
) with
Import => True,
Convention => C,
External_Name => "DrawRectangleLinesEx";
--~procedure DrawRectangleRounded (Rectangle rec, float roundness, int segments, Color color) with procedure Draw_Rectangle_Rounded (
--~Import => True, Data : Rectangle := No_Rectangle;
--~Convention => C, Roundness : Float := 1.0;
--~External_Name => ""; Segments : Integer := 1;
Tint : Color := Black
) with
Import => True,
Convention => C,
External_Name => "DrawRectangleRounded";
--~procedure DrawRectangleRoundedLines (Rectangle rec, float roundness, int segments, float lineThick, Color color) with procedure Draw_Rectangle_Rounded_Lines (
--~Import => True, Data : Rectangle := No_Rectangle;
--~Convention => C, Roundness : Float := 1.0;
--~External_Name => ""; Segments : Integer := 1;
Thickness : Float := 1.0;
Tint : Color := Black
) with
Import => True,
Convention => C,
External_Name => "DrawRectangleRoundedLines";
--~procedure DrawTriangle (Vector2 v1, Vector2 v2, Vector2 v3, Color color) with --~procedure DrawTriangle (Vector2 v1, Vector2 v2, Vector2 v3, Color color) with
--~Import => True, --~Import => True,