Even more functions...

This commit is contained in:
Ognjen Milan Robovic 2024-03-18 15:48:53 -04:00
parent 5bb0d020ce
commit ed338d84f1

View File

@ -97,6 +97,7 @@ package Raylib is
for Logical'Size use 32; for Logical'Size use 32;
type Config_Flags is ( type Config_Flags is (
Flag_None,
Flag_Fullscreen_Mode, Flag_Fullscreen_Mode,
Flag_Window_Resizable, Flag_Window_Resizable,
Flag_Window_Undecorated, Flag_Window_Undecorated,
@ -116,6 +117,7 @@ package Raylib is
) with Convention => C; ) with Convention => C;
for Config_Flags use ( for Config_Flags use (
Flag_None => 16#00000000#,
Flag_Fullscreen_Mode => 16#00000002#, Flag_Fullscreen_Mode => 16#00000002#,
Flag_Window_Resizable => 16#00000004#, Flag_Window_Resizable => 16#00000004#,
Flag_Window_Undecorated => 16#00000008#, Flag_Window_Undecorated => 16#00000008#,
@ -1539,9 +1541,7 @@ package Raylib is
Import => True, Import => True,
Convention => C, Convention => C,
External_Name => "GetWorldToScreen2D"; External_Name => "GetWorldToScreen2D";
################################################################
################################################################
################################################################
procedure Set_Target_FPS ( procedure Set_Target_FPS (
FPS : Integer := 60 FPS : Integer := 60
) with ) with
@ -1549,316 +1549,351 @@ package Raylib is
Convention => C, Convention => C,
External_Name => "SetTargetFPS"; External_Name => "SetTargetFPS";
--~function float GetFrameTime (void) with function Get_Frame_Time return Float with
--~Import => True, Import => True,
--~Convention => C, Convention => C,
--~External_Name => ""; External_Name => "GetFrameTime";
--~function double GetTime (void) with function Get_Time return Long_Float with
--~Import => True, Import => True,
--~Convention => C, Convention => C,
--~External_Name => ""; External_Name => "GetTime";
--~function int GetFPS (void) with function Get_FPS return Integer with
--~Import => True, Import => True,
--~Convention => C, Convention => C,
--~External_Name => ""; External_Name => "GetFPS";
--~procedure SwapScreenBuffer (void) with procedure Swap_Screen_Buffer with
--~Import => True, Import => True,
--~Convention => C, Convention => C,
--~External_Name => ""; External_Name => "SwapScreenBuffer";
--~procedure PollInputEvents (void) with procedure Poll_Input_Events with
--~Import => True, Import => True,
--~Convention => C, Convention => C,
--~External_Name => ""; External_Name => "PollInputEvents";
--~procedure WaitTime (double seconds) with procedure Wait_Time (
--~Import => True, Seconds : Long_Float := 0.0
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "WaitTime";
--~procedure SetRandomSeed (unsigned int seed) with procedure Set_Random_Seed (
--~Import => True, Seed : Natural := 16#0EADBEEF#
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "SetRandomSeed";
--~function int GetRandomValue (int min, int max) with function Get_Random_Value (
--~Import => True, Min : Integer := 0;
--~Convention => C, Max : Integer := 255
--~External_Name => ""; ) return Integer with
Import => True,
Convention => C,
External_Name => "GetRandomValue";
--~function int *LoadRandomSequence (unsigned int count, int min, int max) with function Load_Random_Sequence (
--~Import => True, Count : Natural := 0;
--~Convention => C, Min : Integer := 0;
--~External_Name => ""; Max : Integer := 0
) return access Integer with
Import => True,
Convention => C,
External_Name => "LoadRandomSequence";
--~procedure UnloadRandomSequence (int *sequence) with procedure Unload_Random_Sequence (
--~Import => True, Sequence : access Integer := null
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "UnloadRandomSequence";
--~procedure TakeScreenshot (const char *fileName) with procedure Take_Screenshot (
--~Import => True, File_Name : String := "Screenshot.png"
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "TakeScreenshot";
--~procedure SetConfigFlags (unsigned int flags) with procedure Set_Config_Flags (
--~Import => True, Flags : Config_Flags := Flag_None
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "SetConfigFlags";
--~procedure OpenURL (const char *url) with procedure Open_URL (
--~Import => True, URL : String := ""
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "OpenURL";
--~procedure TraceLog (int logLevel, const char *text, ...) with --~procedure TraceLog (int logLevel, const char *text, ...) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "TraceLog";
--~procedure SetTraceLogLevel (int logLevel) with procedure Set_Trace_Log_Level (
--~Import => True, Level : Trace_Log_Level := Log_All
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "SetTraceLogLevel";
--~procedure *MemAlloc (unsigned int size) with function Allocate (
--~Import => True, Size : Natural := 0
--~Convention => C, ) return Pointer with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "MemAlloc";
--~procedure *MemRealloc (void *ptr, unsigned int size) with function Reallocate (
--~Import => True, Data : Pointer := null;
--~Convention => C, Size : Natural := 0
--~External_Name => ""; ) return Pointer with
Import => True,
Convention => C,
External_Name => "MemRealloc";
--~procedure MemFree (void *ptr) with procedure Deallocate (
--~Import => True, Data : Pointer := null
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "MemFree";
--~procedure SetTraceLogCallback (TraceLogCallback callback) with --~procedure SetTraceLogCallback (TraceLogCallback callback) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "SetTraceLogCallback";
--~procedure SetLoadFileDataCallback (LoadFileDataCallback callback) with --~procedure SetLoadFileDataCallback (LoadFileDataCallback callback) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "SetLoadFileDataCallback";
--~procedure SetSaveFileDataCallback (SaveFileDataCallback callback) with --~procedure SetSaveFileDataCallback (SaveFileDataCallback callback) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "SetSaveFileDataCallback";
--~procedure SetLoadFileTextCallback (LoadFileTextCallback callback) with --~procedure SetLoadFileTextCallback (LoadFileTextCallback callback) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "SetLoadFileTextCallback";
--~procedure SetSaveFileTextCallback (SaveFileTextCallback callback) with --~procedure SetSaveFileTextCallback (SaveFileTextCallback callback) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "SetSaveFileTextCallback";
--~function unsigned char *LoadFileData (const char *fileName, int *dataSize) with function Load_File_Data (
--~Import => True, File_Name : String := "";
--~Convention => C, Data_Size : access Integer := null
--~External_Name => ""; ) return access Character with
Import => True,
Convention => C,
External_Name => "LoadFileData";
--~procedure UnloadFileData (unsigned char *data) with procedure Unload_File_Data (
--~Import => True, Data : Pointer := null
--~Convention => C, ) with
--~External_Name => ""; Import => True,
Convention => C,
External_Name => "UnloadFileData";
--~function bool SaveFileData (const char *fileName, void *data, int dataSize) with --~function bool SaveFileData (const char *fileName, void *data, int dataSize) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "SaveFileData";
--~function bool ExportDataAsCode (const unsigned char *data, int dataSize, const char *fileName) with --~function bool ExportDataAsCode (const unsigned char *data, int dataSize, const char *fileName) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "ExportDataAsCode";
--~function char *LoadFileText (const char *fileName) with --~function char *LoadFileText (const char *fileName) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "LoadFileText";
--~procedure UnloadFileText (char *text) with --~procedure UnloadFileText (char *text) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "UnloadFileText";
--~function bool SaveFileText (const char *fileName, char *text) with --~function bool SaveFileText (const char *fileName, char *text) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "SaveFileText";
--~function bool FileExists (const char *fileName) with --~function bool FileExists (const char *fileName) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "FileExists";
--~function bool DirectoryExists (const char *dirPath) with --~function bool DirectoryExists (const char *dirPath) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "DirectoryExists";
--~function bool IsFileExtension (const char *fileName, const char *ext) with --~function bool IsFileExtension (const char *fileName, const char *ext) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "IsFileExtension";
--~function int GetFileLength (const char *fileName) with --~function int GetFileLength (const char *fileName) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "GetFileLength";
--~function const char *GetFileExtension (const char *fileName) with --~function const char *GetFileExtension (const char *fileName) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "GetFileExtension";
--~function const char *GetFileName (const char *filePath) with --~function const char *GetFileName (const char *filePath) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "GetFileName";
--~function const char *GetFileNameWithoutExt (const char *filePath) with --~function const char *GetFileNameWithoutExt (const char *filePath) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "GetFileNameWithoutExt";
--~function const char *GetDirectoryPath (const char *filePath) with --~function const char *GetDirectoryPath (const char *filePath) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "GetDirectoryPath";
--~function const char *GetPrevDirectoryPath (const char *dirPath) with --~function const char *GetPrevDirectoryPath (const char *dirPath) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "GetPrevDirectoryPath";
--~function const char *GetWorkingDirectory (void) with --~function const char *GetWorkingDirectory (void) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "GetWorkingDirectory";
--~function const char *GetApplicationDirectory (void) with --~function const char *GetApplicationDirectory (void) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "GetApplicationDirectory";
--~function bool ChangeDirectory (const char *dir) with --~function bool ChangeDirectory (const char *dir) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "ChangeDirectory";
--~function bool IsPathFile (const char *path) with --~function bool IsPathFile (const char *path) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "IsPathFile";
--~function FilePathList LoadDirectoryFiles (const char *dirPath) with --~function FilePathList LoadDirectoryFiles (const char *dirPath) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "LoadDirectoryFiles";
--~function FilePathList LoadDirectoryFilesEx (const char *basePath, const char *filter, bool scanSubdirs) with --~function FilePathList LoadDirectoryFilesEx (const char *basePath, const char *filter, bool scanSubdirs) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "LoadDirectoryFilesEx";
--~procedure UnloadDirectoryFiles (FilePathList files) with --~procedure UnloadDirectoryFiles (FilePathList files) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "UnloadDirectoryFiles";
--~function bool IsFileDropped (void) with --~function bool IsFileDropped (void) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "IsFileDropped";
--~function FilePathList LoadDroppedFiles (void) with --~function FilePathList LoadDroppedFiles (void) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "LoadDroppedFiles";
--~procedure UnloadDroppedFiles (FilePathList files) with --~procedure UnloadDroppedFiles (FilePathList files) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "UnloadDroppedFiles";
--~function long GetFileModTime (const char *fileName) with --~function long GetFileModTime (const char *fileName) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "GetFileModTime";
--~function unsigned char *CompressData (const unsigned char *data, int dataSize, int *compDataSize) with --~function unsigned char *CompressData (const unsigned char *data, int dataSize, int *compDataSize) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "CompressData";
--~function unsigned char *DecompressData (const unsigned char *compData, int compDataSize, int *dataSize) with --~function unsigned char *DecompressData (const unsigned char *compData, int compDataSize, int *dataSize) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "DecompressData";
--~function char *EncodeDataBase64 (const unsigned char *data, int dataSize, int *outputSize) with --~function char *EncodeDataBase64 (const unsigned char *data, int dataSize, int *outputSize) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "EncodeDataBase64";
--~function unsigned char *DecodeDataBase64 (const unsigned char *data, int *outputSize) with --~function unsigned char *DecodeDataBase64 (const unsigned char *data, int *outputSize) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "DecodeDataBase64";
--~function AutomationEventList LoadAutomationEventList (const char *fileName) with --~function AutomationEventList LoadAutomationEventList (const char *fileName) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "LoadAutomationEventList";
--~procedure UnloadAutomationEventList (AutomationEventList *list) with --~procedure UnloadAutomationEventList (AutomationEventList *list) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "UnloadAutomationEventList";
--~function bool ExportAutomationEventList (AutomationEventList list, const char *fileName) with --~function bool ExportAutomationEventList (AutomationEventList list, const char *fileName) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "ExportAutomationEventList";
--~procedure SetAutomationEventList (AutomationEventList *list) with --~procedure SetAutomationEventList (AutomationEventList *list) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "SetAutomationEventList";
--~procedure SetAutomationEventBaseFrame (int frame) with --~procedure SetAutomationEventBaseFrame (int frame) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "SetAutomationEventBaseFrame";
--~procedure StartAutomationEventRecording (void) with --~procedure StartAutomationEventRecording (void) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "StartAutomationEventRecording";
--~procedure StopAutomationEventRecording (void) with --~procedure StopAutomationEventRecording (void) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "StopAutomationEventRecording";
--~procedure PlayAutomationEvent (AutomationEvent event) with --~procedure PlayAutomationEvent (AutomationEvent event) with
--~Import => True, --~Import => True,
--~Convention => C, --~Convention => C,
--~External_Name => ""; --~External_Name => "PlayAutomationEvent";
--~################################################################
--~################################################################
--~################################################################
function Is_Key_Pressed ( function Is_Key_Pressed (
Key : Keyboard_Key := Key_Null Key : Keyboard_Key := Key_Null
) return Logical with ) return Logical with