diff options
Diffstat (limited to 'parser/output/raylib_api.json')
| -rw-r--r-- | parser/output/raylib_api.json | 251 |
1 files changed, 156 insertions, 95 deletions
diff --git a/parser/output/raylib_api.json b/parser/output/raylib_api.json index 5a6cffe5..11288bf1 100644 --- a/parser/output/raylib_api.json +++ b/parser/output/raylib_api.json @@ -9,7 +9,13 @@ { "name": "RAYLIB_VERSION", "type": "STRING", - "value": "4.1-dev", + "value": "4.2", + "description": "" + }, + { + "name": "__declspec(x)", + "type": "MACRO", + "value": "__attribute__((x))", "description": "" }, { @@ -1279,6 +1285,27 @@ "description": "VR distortion scale in" } ] + }, + { + "name": "FilePathList", + "description": "File path list", + "fields": [ + { + "type": "unsigned int", + "name": "capacity", + "description": "Filepaths max entries" + }, + { + "type": "unsigned int", + "name": "count", + "description": "Filepaths entries count" + }, + { + "type": "char **", + "name": "paths", + "description": "Filepaths entries" + } + ] } ], "aliases": [ @@ -1374,6 +1401,11 @@ "description": "Set to support HighDPI" }, { + "name": "FLAG_WINDOW_MOUSE_PASSTHROUGH", + "value": 16384, + "description": "Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED" + }, + { "name": "FLAG_MSAA_4X_HINT", "value": 32, "description": "Set to try enabling MSAA 4X" @@ -2755,7 +2787,7 @@ "description": "Blend textures subtracting colors (alternative)" }, { - "name": "BLEND_ALPHA_PREMUL", + "name": "BLEND_ALPHA_PREMULTIPLY", "value": 5, "description": "Blend premultiplied textures considering alpha" }, @@ -3247,7 +3279,7 @@ }, { "name": "GetMonitorWidth", - "description": "Get specified monitor width (max available by monitor)", + "description": "Get specified monitor width (current video mode used by monitor)", "returnType": "int", "params": [ { @@ -3258,7 +3290,7 @@ }, { "name": "GetMonitorHeight", - "description": "Get specified monitor height (max available by monitor)", + "description": "Get specified monitor height (current video mode used by monitor)", "returnType": "int", "params": [ { @@ -3338,6 +3370,16 @@ "returnType": "const char *" }, { + "name": "EnableEventWaiting", + "description": "Enable waiting for events on EndDrawing(), no automatic event polling", + "returnType": "void" + }, + { + "name": "DisableEventWaiting", + "description": "Disable waiting for events on EndDrawing(), automatic events polling", + "returnType": "void" + }, + { "name": "SwapScreenBuffer", "description": "Swap back buffer with front buffer (screen drawing)", "returnType": "void" @@ -3349,12 +3391,12 @@ }, { "name": "WaitTime", - "description": "Wait for some milliseconds (halt program execution)", + "description": "Wait for some time (halt program execution)", "returnType": "void", "params": [ { - "type": "float", - "name": "ms" + "type": "double", + "name": "seconds" } ] }, @@ -3767,6 +3809,21 @@ ] }, { + "name": "GetScreenToWorld2D", + "description": "Get the world space position for a 2d camera screen space position", + "returnType": "Vector2", + "params": [ + { + "type": "Vector2", + "name": "position" + }, + { + "type": "Camera2D", + "name": "camera" + } + ] + }, + { "name": "GetWorldToScreenEx", "description": "Get size position for a 3d world space position", "returnType": "Vector2", @@ -3805,21 +3862,6 @@ ] }, { - "name": "GetScreenToWorld2D", - "description": "Get the world space position for a 2d camera screen space position", - "returnType": "Vector2", - "params": [ - { - "type": "Vector2", - "name": "position" - }, - { - "type": "Camera2D", - "name": "camera" - } - ] - }, - { "name": "SetTargetFPS", "description": "Set target FPS (maximum)", "returnType": "void", @@ -3961,6 +4003,17 @@ ] }, { + "name": "OpenURL", + "description": "Open URL with default system browser (if available)", + "returnType": "void", + "params": [ + { + "type": "const char *", + "name": "url" + } + ] + }, + { "name": "SetTraceLogCallback", "description": "Set custom trace log", "returnType": "void", @@ -4061,6 +4114,25 @@ ] }, { + "name": "ExportDataAsCode", + "description": "Export data to code (.h), returns true on success", + "returnType": "bool", + "params": [ + { + "type": "const char *", + "name": "data" + }, + { + "type": "unsigned int", + "name": "size" + }, + { + "type": "const char *", + "name": "fileName" + } + ] + }, + { "name": "LoadFileText", "description": "Load text data from file (read), returns a '\\0' terminated string", "returnType": "char *", @@ -4211,33 +4283,65 @@ "returnType": "const char *" }, { - "name": "GetDirectoryFiles", - "description": "Get filenames in a directory path (memory must be freed)", - "returnType": "char **", + "name": "ChangeDirectory", + "description": "Change working directory, return true on success", + "returnType": "bool", "params": [ { "type": "const char *", - "name": "dirPath" - }, + "name": "dir" + } + ] + }, + { + "name": "IsPathFile", + "description": "Check if a given path is a file or a directory", + "returnType": "bool", + "params": [ { - "type": "int *", - "name": "count" + "type": "const char *", + "name": "path" } ] }, { - "name": "ClearDirectoryFiles", - "description": "Clear directory files paths buffers (free memory)", - "returnType": "void" + "name": "LoadDirectoryFiles", + "description": "Load directory filepaths", + "returnType": "FilePathList", + "params": [ + { + "type": "const char *", + "name": "dirPath" + } + ] }, { - "name": "ChangeDirectory", - "description": "Change working directory, return true on success", - "returnType": "bool", + "name": "LoadDirectoryFilesEx", + "description": "Load directory filepaths with extension filtering and recursive directory scan", + "returnType": "FilePathList", "params": [ { "type": "const char *", - "name": "dir" + "name": "basePath" + }, + { + "type": "const char *", + "name": "filter" + }, + { + "type": "bool", + "name": "scanSubdirs" + } + ] + }, + { + "name": "UnloadDirectoryFiles", + "description": "Unload filepaths", + "returnType": "void", + "params": [ + { + "type": "FilePathList", + "name": "files" } ] }, @@ -4247,22 +4351,22 @@ "returnType": "bool" }, { - "name": "GetDroppedFiles", - "description": "Get dropped files names (memory must be freed)", - "returnType": "char **", + "name": "LoadDroppedFiles", + "description": "Load dropped filepaths", + "returnType": "FilePathList" + }, + { + "name": "UnloadDroppedFiles", + "description": "Unload dropped filepaths", + "returnType": "void", "params": [ { - "type": "int *", - "name": "count" + "type": "FilePathList", + "name": "files" } ] }, { - "name": "ClearDroppedFiles", - "description": "Clear dropped files paths buffer (free memory)", - "returnType": "void" - }, - { "name": "GetFileModTime", "description": "Get file modification time (last write time)", "returnType": "long", @@ -4346,43 +4450,6 @@ ] }, { - "name": "SaveStorageValue", - "description": "Save integer value to storage file (to defined position), returns true on success", - "returnType": "bool", - "params": [ - { - "type": "unsigned int", - "name": "position" - }, - { - "type": "int", - "name": "value" - } - ] - }, - { - "name": "LoadStorageValue", - "description": "Load integer value from storage file (from defined position)", - "returnType": "int", - "params": [ - { - "type": "unsigned int", - "name": "position" - } - ] - }, - { - "name": "OpenURL", - "description": "Open URL with default system browser (if available)", - "returnType": "void", - "params": [ - { - "type": "const char *", - "name": "url" - } - ] - }, - { "name": "IsKeyPressed", "description": "Check if a key has been pressed once", "returnType": "bool", @@ -4682,10 +4749,15 @@ }, { "name": "GetMouseWheelMove", - "description": "Get mouse wheel movement Y", + "description": "Get mouse wheel movement for X or Y, whichever is larger", "returnType": "float" }, { + "name": "GetMouseWheelMoveV", + "description": "Get mouse wheel movement for both X and Y", + "returnType": "Vector2" + }, + { "name": "SetMouseCursor", "description": "Set mouse cursor", "returnType": "void", @@ -9379,17 +9451,6 @@ ] }, { - "name": "GenMeshBinormals", - "description": "Compute mesh binormals", - "returnType": "void", - "params": [ - { - "type": "Mesh *", - "name": "mesh" - } - ] - }, - { "name": "GenMeshPoly", "description": "Generate polygonal mesh", "returnType": "Mesh", |
