From d1c53910b79794b7eb317082bad69335a55dcd41 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 5 Aug 2022 20:01:25 +0200 Subject: Update parser outputs for raylib 4.2 --- parser/output/raylib_api.json | 251 ++++++++++++++++++++++++++---------------- 1 file changed, 156 insertions(+), 95 deletions(-) (limited to 'parser/output/raylib_api.json') 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": [ @@ -1373,6 +1400,11 @@ "value": 8192, "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, @@ -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": [ { @@ -3337,6 +3369,16 @@ "description": "Get clipboard text content", "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)", @@ -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" } ] }, @@ -3766,6 +3808,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", @@ -3804,21 +3861,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)", @@ -3960,6 +4002,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", @@ -4060,6 +4113,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", @@ -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,21 +4351,21 @@ "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)", @@ -4345,43 +4449,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", @@ -4682,9 +4749,14 @@ }, { "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", @@ -9378,17 +9450,6 @@ } ] }, - { - "name": "GenMeshBinormals", - "description": "Compute mesh binormals", - "returnType": "void", - "params": [ - { - "type": "Mesh *", - "name": "mesh" - } - ] - }, { "name": "GenMeshPoly", "description": "Generate polygonal mesh", -- cgit v1.2.3