diff options
author | rexim <reximkut@gmail.com> | 2024-03-19 02:21:06 +0700 |
---|---|---|
committer | rexim <reximkut@gmail.com> | 2024-03-19 02:21:06 +0700 |
commit | cc17eec2ce4590a62802009c0c0d1d23981c48c9 (patch) | |
tree | 09940556b999990d71fc4da51438c7b8258a537c /raylib.ads | |
parent | 51acadb08588df4cd7348cb0953122fd641ae9f2 (diff) |
Replace Text Level format with Image
Diffstat (limited to 'raylib.ads')
-rw-r--r-- | raylib.ads | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -1,4 +1,5 @@ with Interfaces.C; use Interfaces.C; +with Interfaces.C.Pointers; with Raymath; use Raymath; package Raylib is @@ -111,6 +112,11 @@ package Raylib is Import => True, Convention => C, External_Name => "GetColor"; + function Color_To_Int(C: Color) return unsigned + with + Import => True, + Convention => C, + External_Name => "ColorToInt"; procedure Draw_Circle(centerX, centerY: int; radius: C_float; c: Color) with Import => True, @@ -171,4 +177,28 @@ package Raylib is Import => True, Convention => C, External_Name => "GetTime"; + type Addr is mod 2 ** Standard'Address_Size; + type Image is record + Data: Addr; + Width: int; + Height: int; + Mipmaps: int; + Format: int; + end record + with Convention => C_Pass_By_Copy; + function Load_Image(File_Name: Char_Array) return Image + with + Import => True, + Convention => C, + External_Name => "LoadImage"; + function Gen_Image_Color(Width, Height: Int; C: Color) return Image + with + Import => True, + Convention => C, + External_Name => "GenImageColor"; + function Export_Image(Img: Image; File_Name: Char_Array) return C_Bool + with + Import => True, + Convention => C, + External_Name => "ExportImage"; end Raylib; |