Added even more functions, only one more block to go...
This commit is contained in:
parent
58a94b047f
commit
52a507cff1
297
raylib.ads
297
raylib.ads
@ -1649,150 +1649,215 @@ package Raylib is
|
|||||||
Convention => C,
|
Convention => C,
|
||||||
External_Name => "UnloadFileData";
|
External_Name => "UnloadFileData";
|
||||||
|
|
||||||
--~function bool SaveFileData (const char *fileName, void *data, int dataSize) with
|
function Save_File_Data (
|
||||||
--~Import => True,
|
File_Name : String := "";
|
||||||
--~Convention => C,
|
Data : Pointer := null;
|
||||||
--~External_Name => "SaveFileData";
|
Data_Size : Natural := 0
|
||||||
|
) return Logical with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "SaveFileData";
|
||||||
|
|
||||||
--~function bool ExportDataAsCode (const unsigned char *data, int dataSize, const char *fileName) with
|
function Export_Data_As_Code (
|
||||||
--~Import => True,
|
Data : Pointer := null;
|
||||||
--~Convention => C,
|
Data_Size : Natural := 0;
|
||||||
--~External_Name => "ExportDataAsCode";
|
File_Name : String := ""
|
||||||
|
) return Logical with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ExportDataAsCode";
|
||||||
|
|
||||||
--~function char *LoadFileText (const char *fileName) with
|
function Load_File_Text (
|
||||||
--~Import => True,
|
File_Name : String := ""
|
||||||
--~Convention => C,
|
) return Strings with
|
||||||
--~External_Name => "LoadFileText";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "LoadFileText";
|
||||||
|
|
||||||
--~procedure UnloadFileText (char *text) with
|
procedure Unload_File_Text (
|
||||||
--~Import => True,
|
Text : String := ""
|
||||||
--~Convention => C,
|
) with
|
||||||
--~External_Name => "UnloadFileText";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "UnloadFileText";
|
||||||
|
|
||||||
--~function bool SaveFileText (const char *fileName, char *text) with
|
function Save_File_Text (
|
||||||
--~Import => True,
|
File_Name : String := "";
|
||||||
--~Convention => C,
|
Text : String := ""
|
||||||
--~External_Name => "SaveFileText";
|
) return Logical with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "SaveFileText";
|
||||||
|
|
||||||
--~function bool FileExists (const char *fileName) with
|
function File_Exists (
|
||||||
--~Import => True,
|
File_Name : String := ""
|
||||||
--~Convention => C,
|
) return Logical with
|
||||||
--~External_Name => "FileExists";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "FileExists";
|
||||||
|
|
||||||
--~function bool DirectoryExists (const char *dirPath) with
|
function Directory_Exists (
|
||||||
--~Import => True,
|
Directory_Path : String := ""
|
||||||
--~Convention => C,
|
) return Logical with
|
||||||
--~External_Name => "DirectoryExists";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "DirectoryExists";
|
||||||
|
|
||||||
--~function bool IsFileExtension (const char *fileName, const char *ext) with
|
function Is_File_Extension (
|
||||||
--~Import => True,
|
File_Name : String := "";
|
||||||
--~Convention => C,
|
Extension : String := ""
|
||||||
--~External_Name => "IsFileExtension";
|
) return Logical with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "IsFileExtension";
|
||||||
|
|
||||||
--~function int GetFileLength (const char *fileName) with
|
function Get_File_Length (
|
||||||
--~Import => True,
|
File_Name : String := ""
|
||||||
--~Convention => C,
|
) return Integer with
|
||||||
--~External_Name => "GetFileLength";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetFileLength";
|
||||||
|
|
||||||
--~function const char *GetFileExtension (const char *fileName) with
|
function Get_File_Extension (
|
||||||
--~Import => True,
|
File_Name : String := ""
|
||||||
--~Convention => C,
|
) return Strings with
|
||||||
--~External_Name => "GetFileExtension";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetFileExtension";
|
||||||
|
|
||||||
--~function const char *GetFileName (const char *filePath) with
|
function Get_File_Name (
|
||||||
--~Import => True,
|
File_Path : String := ""
|
||||||
--~Convention => C,
|
) return Strings with
|
||||||
--~External_Name => "GetFileName";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetFileName";
|
||||||
|
|
||||||
--~function const char *GetFileNameWithoutExt (const char *filePath) with
|
function Get_File_Name_Without_Ext (
|
||||||
--~Import => True,
|
File_Path : String := ""
|
||||||
--~Convention => C,
|
) return Strings with
|
||||||
--~External_Name => "GetFileNameWithoutExt";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetFileNameWithoutExt";
|
||||||
|
|
||||||
--~function const char *GetDirectoryPath (const char *filePath) with
|
function Get_Directory_Path (
|
||||||
--~Import => True,
|
File_Path : String := ""
|
||||||
--~Convention => C,
|
) return Strings with
|
||||||
--~External_Name => "GetDirectoryPath";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetDirectoryPath";
|
||||||
|
|
||||||
--~function const char *GetPrevDirectoryPath (const char *dirPath) with
|
function Get_Prev_Directory_Path (
|
||||||
--~Import => True,
|
Directory_Path : String := ""
|
||||||
--~Convention => C,
|
) return Strings with
|
||||||
--~External_Name => "GetPrevDirectoryPath";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetPrevDirectoryPath";
|
||||||
|
|
||||||
--~function const char *GetWorkingDirectory (void) with
|
function Get_Working_Directory return Strings with
|
||||||
--~Import => True,
|
Import => True,
|
||||||
--~Convention => C,
|
Convention => C,
|
||||||
--~External_Name => "GetWorkingDirectory";
|
External_Name => "GetWorkingDirectory";
|
||||||
|
|
||||||
--~function const char *GetApplicationDirectory (void) with
|
function Get_Application_Directory return Strings with
|
||||||
--~Import => True,
|
Import => True,
|
||||||
--~Convention => C,
|
Convention => C,
|
||||||
--~External_Name => "GetApplicationDirectory";
|
External_Name => "GetApplicationDirectory";
|
||||||
|
|
||||||
--~function bool ChangeDirectory (const char *dir) with
|
function Change_Directory (
|
||||||
--~Import => True,
|
Directory_Path : String := ""
|
||||||
--~Convention => C,
|
) return Logical with
|
||||||
--~External_Name => "ChangeDirectory";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "ChangeDirectory";
|
||||||
|
|
||||||
--~function bool IsPathFile (const char *path) with
|
function Is_Path_File (
|
||||||
--~Import => True,
|
Path : String := ""
|
||||||
--~Convention => C,
|
) return Logical with
|
||||||
--~External_Name => "IsPathFile";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "IsPathFile";
|
||||||
|
|
||||||
--~function FilePathList LoadDirectoryFiles (const char *dirPath) with
|
function Load_Directory_Files (
|
||||||
--~Import => True,
|
Directory_Path : String := ""
|
||||||
--~Convention => C,
|
) return File_Path_List with
|
||||||
--~External_Name => "LoadDirectoryFiles";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "LoadDirectoryFiles";
|
||||||
|
|
||||||
--~function FilePathList LoadDirectoryFilesEx (const char *basePath, const char *filter, bool scanSubdirs) with
|
function Load_Directory_Files_Ex (
|
||||||
--~Import => True,
|
Base_Path : String := "";
|
||||||
--~Convention => C,
|
Filter : String := "";
|
||||||
--~External_Name => "LoadDirectoryFilesEx";
|
Scan_Subdirectories : Logical := False
|
||||||
|
) return File_Path_List with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "LoadDirectoryFilesEx";
|
||||||
|
|
||||||
--~procedure UnloadDirectoryFiles (FilePathList files) with
|
procedure Unload_Directory_Files (
|
||||||
--~Import => True,
|
Files : File_Path_List := No_File_Path_List
|
||||||
--~Convention => C,
|
) with
|
||||||
--~External_Name => "UnloadDirectoryFiles";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "UnloadDirectoryFiles";
|
||||||
|
|
||||||
--~function bool IsFileDropped (void) with
|
function Is_File_Dropped return Logical with
|
||||||
--~Import => True,
|
Import => True,
|
||||||
--~Convention => C,
|
Convention => C,
|
||||||
--~External_Name => "IsFileDropped";
|
External_Name => "IsFileDropped";
|
||||||
|
|
||||||
--~function FilePathList LoadDroppedFiles (void) with
|
function Load_Dropped_Files return File_Path_List with
|
||||||
--~Import => True,
|
Import => True,
|
||||||
--~Convention => C,
|
Convention => C,
|
||||||
--~External_Name => "LoadDroppedFiles";
|
External_Name => "LoadDroppedFiles";
|
||||||
|
|
||||||
--~procedure UnloadDroppedFiles (FilePathList files) with
|
procedure Unload_Dropped_Files (
|
||||||
--~Import => True,
|
Files : File_Path_List := No_File_Path_List
|
||||||
--~Convention => C,
|
) with
|
||||||
--~External_Name => "UnloadDroppedFiles";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "UnloadDroppedFiles";
|
||||||
|
|
||||||
--~function long GetFileModTime (const char *fileName) with
|
function Get_File_Mod_Time (
|
||||||
--~Import => True,
|
File_Name : String := ""
|
||||||
--~Convention => C,
|
) return Natural with
|
||||||
--~External_Name => "GetFileModTime";
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "GetFileModTime";
|
||||||
|
|
||||||
--~function unsigned char *CompressData (const unsigned char *data, int dataSize, int *compDataSize) with
|
function Compress_Data (
|
||||||
--~Import => True,
|
Data : Pointer := null;
|
||||||
--~Convention => C,
|
Data_Size : Natural := 0;
|
||||||
--~External_Name => "CompressData";
|
Compressed_Data_Size : access Integer := null
|
||||||
|
) return Pointer with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "CompressData";
|
||||||
|
|
||||||
--~function unsigned char *DecompressData (const unsigned char *compData, int compDataSize, int *dataSize) with
|
function Decompress_Data (
|
||||||
--~Import => True,
|
Compressed_Data : Pointer := null;
|
||||||
--~Convention => C,
|
Compressed_Data_Size : Natural := 0;
|
||||||
--~External_Name => "DecompressData";
|
Data_Size : Natural := 0
|
||||||
|
) return Pointer with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "DecompressData";
|
||||||
|
|
||||||
--~function char *EncodeDataBase64 (const unsigned char *data, int dataSize, int *outputSize) with
|
function Encode_Data_Base_64 (
|
||||||
--~Import => True,
|
Data : Pointer := null;
|
||||||
--~Convention => C,
|
Data_Size : Natural := 0;
|
||||||
--~External_Name => "EncodeDataBase64";
|
Output_Size : access Integer := null
|
||||||
|
) return Pointer with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "EncodeDataBase64";
|
||||||
|
|
||||||
--~function unsigned char *DecodeDataBase64 (const unsigned char *data, int *outputSize) with
|
function Decode_Data_Base_64 (
|
||||||
--~Import => True,
|
Data : Pointer := null;
|
||||||
--~Convention => C,
|
Output_Size : access Integer := null
|
||||||
--~External_Name => "DecodeDataBase64";
|
) return Pointer with
|
||||||
|
Import => True,
|
||||||
|
Convention => C,
|
||||||
|
External_Name => "DecodeDataBase64";
|
||||||
|
|
||||||
function Load_Automation_Event_List (
|
function Load_Automation_Event_List (
|
||||||
File_Name : String := ""
|
File_Name : String := ""
|
||||||
|
Loading…
Reference in New Issue
Block a user