]> git.xolatile.top Git - xolatile-raylib-ada.git/commitdiff
Image exporting functions...
authorxolatile <xolatile@proton.me>
Tue, 23 Apr 2024 09:01:04 +0000 (05:01 -0400)
committerxolatile <xolatile@proton.me>
Tue, 23 Apr 2024 09:01:04 +0000 (05:01 -0400)
raylib.ads

index ead6a71749de81df7247e7e2619eb8e752d35354..508f6ba37adce87ce3d56746dff7b9606b8f8f9a 100644 (file)
@@ -2904,41 +2904,45 @@ package Raylib is
       Import        => True,
       Convention    => C,
       External_Name => "LoadImageFromScreen";
---~################################################################
-   --~function bool IsImageReady (
-      --~Image image
-   --~) with
-      --~Import        => True,
-      --~Convention    => C,
-      --~External_Name => "";
 
-   --~procedure UnloadImage (
-      --~Image image
-   --~) with
-      --~Import        => True,
-      --~Convention    => C,
-      --~External_Name => "";
+   function Is_Image_Ready (
+      Data : Image := No_Image
+   ) return Logical with
+      Import        => True,
+      Convention    => C,
+      External_Name => "IsImageReady";
 
-   --~function bool ExportImage (
-      --~Image image, const char *fileName
-   --~) with
-      --~Import        => True,
-      --~Convention    => C,
-      --~External_Name => "";
+   procedure Unload_Image (
+      Data : Image := No_Image
+   ) with
+      Import        => True,
+      Convention    => C,
+      External_Name => "UnloadImage";
 
-   --~function unsigned char *ExportImageToMemory (
-      --~Image image, const char *fileType, int *fileSize
-   --~) with
-      --~Import        => True,
-      --~Convention    => C,
-      --~External_Name => "";
+   function Export_Image (
+      Data      : Image  := No_Image;
+      File_Name : String := ""
+   ) return Logical with
+      Import        => True,
+      Convention    => C,
+      External_Name => "ExportImage";
 
-   --~function bool ExportImageAsCode (
-      --~Image image, const char *fileName
-   --~) with
-      --~Import        => True,
-      --~Convention    => C,
-      --~External_Name => "";
+   function Export_Image_To_Memory (
+      Data      :        Image   := No_Image;
+      File_Type :        String  := "";
+      File_Size : access Integer := null
+   ) return Pointer with
+      Import        => True,
+      Convention    => C,
+      External_Name => "ExportImageToMemory";
+
+   function Export_Image_As_Code (
+      Data      : Image  := No_Image;
+      File_Name : String := ""
+   ) return Logical with
+      Import        => True,
+      Convention    => C,
+      External_Name => "ExportImageAsCode";
 
    --~function Image GenImageColor (
       --~int width, int height, Color color