diff options
| author | xolatile | 2024-04-23 05:01:04 -0400 |
|---|---|---|
| committer | xolatile | 2024-04-23 05:01:04 -0400 |
| commit | 6a3ff8d264c9db00dcb085b0b949f498df913f94 (patch) | |
| tree | bbac5aea7fa0e82edd8effa575a91f54d8e3d9e8 /raylib.ads | |
| parent | 2009b267165c0f40656645a2415f5f2419a6bf69 (diff) | |
| download | xolatile-raylib-ada-6a3ff8d264c9db00dcb085b0b949f498df913f94.tar.xz xolatile-raylib-ada-6a3ff8d264c9db00dcb085b0b949f498df913f94.tar.zst | |
Image exporting functions...
Diffstat (limited to 'raylib.ads')
| -rw-r--r-- | raylib.ads | 66 |
1 files changed, 35 insertions, 31 deletions
@@ -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 |
