summaryrefslogtreecommitdiffhomepage
path: root/parser/output/raylib_api.lua
diff options
context:
space:
mode:
Diffstat (limited to 'parser/output/raylib_api.lua')
-rw-r--r--parser/output/raylib_api.lua192
1 files changed, 122 insertions, 70 deletions
diff --git a/parser/output/raylib_api.lua b/parser/output/raylib_api.lua
index d4fb9a4d..1d80216d 100644
--- a/parser/output/raylib_api.lua
+++ b/parser/output/raylib_api.lua
@@ -9,7 +9,13 @@ return {
{
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 @@ return {
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 @@ return {
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 @@ return {
description = "Blend textures subtracting colors (alternative)"
},
{
- name = "BLEND_ALPHA_PREMUL",
+ name = "BLEND_ALPHA_PREMULTIPLY",
value = 5,
description = "Blend premultiplied textures considering alpha"
},
@@ -3157,7 +3189,7 @@ return {
},
{
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 = {
{type = "int", name = "monitor"}
@@ -3165,7 +3197,7 @@ return {
},
{
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 = {
{type = "int", name = "monitor"}
@@ -3227,6 +3259,16 @@ return {
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"
@@ -3238,10 +3280,10 @@ return {
},
{
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"}
}
},
{
@@ -3524,6 +3566,15 @@ return {
}
},
{
+ 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",
@@ -3544,15 +3595,6 @@ return {
}
},
{
- 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",
@@ -3652,6 +3694,14 @@ return {
}
},
{
+ 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",
@@ -3719,6 +3769,16 @@ return {
}
},
{
+ 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 *",
@@ -3827,25 +3887,45 @@ return {
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"},
- {type = "int *", name = "count"}
+ {type = "const char *", name = "dir"}
}
},
{
- name = "ClearDirectoryFiles",
- description = "Clear directory files paths buffers (free memory)",
- returnType = "void"
+ name = "IsPathFile",
+ description = "Check if a given path is a file or a directory",
+ returnType = "bool",
+ params = {
+ {type = "const char *", name = "path"}
+ }
},
{
- name = "ChangeDirectory",
- description = "Change working directory, return true on success",
- returnType = "bool",
+ name = "LoadDirectoryFiles",
+ description = "Load directory filepaths",
+ returnType = "FilePathList",
params = {
- {type = "const char *", name = "dir"}
+ {type = "const char *", name = "dirPath"}
+ }
+ },
+ {
+ name = "LoadDirectoryFilesEx",
+ description = "Load directory filepaths with extension filtering and recursive directory scan",
+ returnType = "FilePathList",
+ params = {
+ {type = "const char *", name = "basePath"},
+ {type = "const char *", name = "filter"},
+ {type = "bool", name = "scanSubdirs"}
+ }
+ },
+ {
+ name = "UnloadDirectoryFiles",
+ description = "Unload filepaths",
+ returnType = "void",
+ params = {
+ {type = "FilePathList", name = "files"}
}
},
{
@@ -3854,17 +3934,17 @@ return {
returnType = "bool"
},
{
- name = "GetDroppedFiles",
- description = "Get dropped files names (memory must be freed)",
- returnType = "char **",
- params = {
- {type = "int *", name = "count"}
- }
+ name = "LoadDroppedFiles",
+ description = "Load dropped filepaths",
+ returnType = "FilePathList"
},
{
- name = "ClearDroppedFiles",
- description = "Clear dropped files paths buffer (free memory)",
- returnType = "void"
+ name = "UnloadDroppedFiles",
+ description = "Unload dropped filepaths",
+ returnType = "void",
+ params = {
+ {type = "FilePathList", name = "files"}
+ }
},
{
name = "GetFileModTime",
@@ -3914,31 +3994,6 @@ return {
}
},
{
- 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",
@@ -4151,10 +4206,15 @@ return {
},
{
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",
@@ -6598,14 +6658,6 @@ return {
}
},
{
- name = "GenMeshBinormals",
- description = "Compute mesh binormals",
- returnType = "void",
- params = {
- {type = "Mesh *", name = "mesh"}
- }
- },
- {
name = "GenMeshPoly",
description = "Generate polygonal mesh",
returnType = "Mesh",