diff options
| author | BLUELOVETH <[email protected]> | 2023-11-24 07:46:54 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-24 00:46:54 +0100 |
| commit | dfa64f228ae95a7a3bf4a1c9ed91ac5041f78e1f (patch) | |
| tree | ed6b39ee3ec476e4445ec60bdb8b3799cc37686a /parser/output/raylib_api.json | |
| parent | 94aba23ef45d4faadb9d1657a2707f6721eca48d (diff) | |
| download | raylib-dfa64f228ae95a7a3bf4a1c9ed91ac5041f78e1f.tar.gz raylib-dfa64f228ae95a7a3bf4a1c9ed91ac5041f78e1f.zip | |
Update raylib_api.* (#3564)
Diffstat (limited to 'parser/output/raylib_api.json')
| -rw-r--r-- | parser/output/raylib_api.json | 818 |
1 files changed, 645 insertions, 173 deletions
diff --git a/parser/output/raylib_api.json b/parser/output/raylib_api.json index ef94c3d8..4b7049d8 100644 --- a/parser/output/raylib_api.json +++ b/parser/output/raylib_api.json @@ -9,13 +9,13 @@ { "name": "RAYLIB_VERSION_MAJOR", "type": "INT", - "value": 4, + "value": 5, "description": "" }, { "name": "RAYLIB_VERSION_MINOR", "type": "INT", - "value": 6, + "value": 1, "description": "" }, { @@ -27,7 +27,7 @@ { "name": "RAYLIB_VERSION", "type": "STRING", - "value": "4.6-dev", + "value": "5.1-dev", "description": "" }, { @@ -1329,6 +1329,48 @@ "description": "Filepaths entries" } ] + }, + { + "name": "AutomationEvent", + "description": "Automation event", + "fields": [ + { + "type": "unsigned int", + "name": "frame", + "description": "Event frame" + }, + { + "type": "unsigned int", + "name": "type", + "description": "Event type (AutomationEventType)" + }, + { + "type": "int[4]", + "name": "params", + "description": "Event parameters (if required)" + } + ] + }, + { + "name": "AutomationEventList", + "description": "Automation event list", + "fields": [ + { + "type": "unsigned int", + "name": "capacity", + "description": "Events max entries (MAX_AUTOMATION_EVENTS)" + }, + { + "type": "unsigned int", + "name": "count", + "description": "Events entries count" + }, + { + "type": "AutomationEvent *", + "name": "events", + "description": "Events entries" + } + ] } ], "aliases": [ @@ -3093,16 +3135,16 @@ ] }, { - "name": "WindowShouldClose", - "description": "Check if KEY_ESCAPE pressed or Close icon pressed", - "returnType": "bool" - }, - { "name": "CloseWindow", "description": "Close window and unload OpenGL context", "returnType": "void" }, { + "name": "WindowShouldClose", + "description": "Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)", + "returnType": "bool" + }, + { "name": "IsWindowReady", "description": "Check if window has been initialized successfully", "returnType": "bool" @@ -3468,27 +3510,6 @@ "returnType": "void" }, { - "name": "SwapScreenBuffer", - "description": "Swap back buffer with front buffer (screen drawing)", - "returnType": "void" - }, - { - "name": "PollInputEvents", - "description": "Register all input events", - "returnType": "void" - }, - { - "name": "WaitTime", - "description": "Wait for some time (halt program execution)", - "returnType": "void", - "params": [ - { - "type": "double", - "name": "seconds" - } - ] - }, - { "name": "ShowCursor", "description": "Shows cursor", "returnType": "void" @@ -3972,11 +3993,6 @@ ] }, { - "name": "GetFPS", - "description": "Get current FPS", - "returnType": "int" - }, - { "name": "GetFrameTime", "description": "Get time in seconds for last frame drawn (delta time)", "returnType": "float" @@ -3987,6 +4003,43 @@ "returnType": "double" }, { + "name": "GetFPS", + "description": "Get current FPS", + "returnType": "int" + }, + { + "name": "SwapScreenBuffer", + "description": "Swap back buffer with front buffer (screen drawing)", + "returnType": "void" + }, + { + "name": "PollInputEvents", + "description": "Register all input events", + "returnType": "void" + }, + { + "name": "WaitTime", + "description": "Wait for some time (halt program execution)", + "returnType": "void", + "params": [ + { + "type": "double", + "name": "seconds" + } + ] + }, + { + "name": "SetRandomSeed", + "description": "Set the seed for the random number generator", + "returnType": "void", + "params": [ + { + "type": "unsigned int", + "name": "seed" + } + ] + }, + { "name": "GetRandomValue", "description": "Get a random value between min and max (both included)", "returnType": "int", @@ -4002,13 +4055,32 @@ ] }, { - "name": "SetRandomSeed", - "description": "Set the seed for the random number generator", - "returnType": "void", + "name": "LoadRandomSequence", + "description": "Load random values sequence, no values repeated", + "returnType": "int *", "params": [ { "type": "unsigned int", - "name": "seed" + "name": "count" + }, + { + "type": "int", + "name": "min" + }, + { + "type": "int", + "name": "max" + } + ] + }, + { + "name": "UnloadRandomSequence", + "description": "Unload random values sequence", + "returnType": "void", + "params": [ + { + "type": "int *", + "name": "sequence" } ] }, @@ -4035,6 +4107,17 @@ ] }, { + "name": "OpenURL", + "description": "Open URL with default system browser (if available)", + "returnType": "void", + "params": [ + { + "type": "const char *", + "name": "url" + } + ] + }, + { "name": "TraceLog", "description": "Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR...)", "returnType": "void", @@ -4102,17 +4185,6 @@ ] }, { - "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", @@ -4549,6 +4621,86 @@ ] }, { + "name": "LoadAutomationEventList", + "description": "Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS", + "returnType": "AutomationEventList", + "params": [ + { + "type": "const char *", + "name": "fileName" + } + ] + }, + { + "name": "UnloadAutomationEventList", + "description": "Unload automation events list from file", + "returnType": "void", + "params": [ + { + "type": "AutomationEventList *", + "name": "list" + } + ] + }, + { + "name": "ExportAutomationEventList", + "description": "Export automation events list as text file", + "returnType": "bool", + "params": [ + { + "type": "AutomationEventList", + "name": "list" + }, + { + "type": "const char *", + "name": "fileName" + } + ] + }, + { + "name": "SetAutomationEventList", + "description": "Set automation event list to record to", + "returnType": "void", + "params": [ + { + "type": "AutomationEventList *", + "name": "list" + } + ] + }, + { + "name": "SetAutomationEventBaseFrame", + "description": "Set automation event internal base frame to start recording", + "returnType": "void", + "params": [ + { + "type": "int", + "name": "frame" + } + ] + }, + { + "name": "StartAutomationEventRecording", + "description": "Start recording automation events (AutomationEventList must be set)", + "returnType": "void" + }, + { + "name": "StopAutomationEventRecording", + "description": "Stop recording automation events", + "returnType": "void" + }, + { + "name": "PlayAutomationEvent", + "description": "Play a recorded automation event", + "returnType": "void", + "params": [ + { + "type": "AutomationEvent", + "name": "event" + } + ] + }, + { "name": "IsKeyPressed", "description": "Check if a key has been pressed once", "returnType": "bool", @@ -4604,6 +4756,16 @@ ] }, { + "name": "GetKeyPressed", + "description": "Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty", + "returnType": "int" + }, + { + "name": "GetCharPressed", + "description": "Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty", + "returnType": "int" + }, + { "name": "SetExitKey", "description": "Set a custom key to exit program (default is ESC)", "returnType": "void", @@ -4615,16 +4777,6 @@ ] }, { - "name": "GetKeyPressed", - "description": "Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty", - "returnType": "int" - }, - { - "name": "GetCharPressed", - "description": "Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty", - "returnType": "int" - }, - { "name": "IsGamepadAvailable", "description": "Check if a gamepad is available", "returnType": "bool", @@ -5083,7 +5235,7 @@ }, { "name": "DrawLineV", - "description": "Draw a line (Vector version)", + "description": "Draw a line (using gl lines)", "returnType": "void", "params": [ { @@ -5102,80 +5254,7 @@ }, { "name": "DrawLineEx", - "description": "Draw a line defining thickness", - "returnType": "void", - "params": [ - { - "type": "Vector2", - "name": "startPos" - }, - { - "type": "Vector2", - "name": "endPos" - }, - { - "type": "float", - "name": "thick" - }, - { - "type": "Color", - "name": "color" - } - ] - }, - { - "name": "DrawLineBezier", - "description": "Draw a line using cubic-bezier curves in-out", - "returnType": "void", - "params": [ - { - "type": "Vector2", - "name": "startPos" - }, - { - "type": "Vector2", - "name": "endPos" - }, - { - "type": "float", - "name": "thick" - }, - { - "type": "Color", - "name": "color" - } - ] - }, - { - "name": "DrawLineBezierQuad", - "description": "Draw line using quadratic bezier curves with a control point", - "returnType": "void", - "params": [ - { - "type": "Vector2", - "name": "startPos" - }, - { - "type": "Vector2", - "name": "endPos" - }, - { - "type": "Vector2", - "name": "controlPos" - }, - { - "type": "float", - "name": "thick" - }, - { - "type": "Color", - "name": "color" - } - ] - }, - { - "name": "DrawLineBezierCubic", - "description": "Draw line using cubic bezier curves with 2 control points", + "description": "Draw a line (using triangles/quads)", "returnType": "void", "params": [ { @@ -5187,14 +5266,6 @@ "name": "endPos" }, { - "type": "Vector2", - "name": "startControlPos" - }, - { - "type": "Vector2", - "name": "endControlPos" - }, - { "type": "float", "name": "thick" }, @@ -5205,8 +5276,8 @@ ] }, { - "name": "DrawLineBSpline", - "description": "Draw a B-Spline line, minimum 4 points", + "name": "DrawLineStrip", + "description": "Draw lines sequence (using gl lines)", "returnType": "void", "params": [ { @@ -5218,27 +5289,23 @@ "name": "pointCount" }, { - "type": "float", - "name": "thick" - }, - { "type": "Color", "name": "color" } ] }, { - "name": "DrawLineCatmullRom", - "description": "Draw a Catmull Rom spline line, minimum 4 points", + "name": "DrawLineBezier", + "description": "Draw line segment cubic-bezier in-out interpolation", "returnType": "void", "params": [ { - "type": "Vector2 *", - "name": "points" + "type": "Vector2", + "name": "startPos" }, { - "type": "int", - "name": "pointCount" + "type": "Vector2", + "name": "endPos" }, { "type": "float", @@ -5251,25 +5318,6 @@ ] }, { - "name": "DrawLineStrip", - "description": "Draw lines sequence", - "returnType": "void", - "params": [ - { - "type": "Vector2 *", - "name": "points" - }, - { - "type": "int", - "name": "pointCount" - }, - { - "type": "Color", - "name": "color" - } - ] - }, - { "name": "DrawCircle", "description": "Draw a color-filled circle", "returnType": "void", @@ -5424,6 +5472,25 @@ ] }, { + "name": "DrawCircleLinesV", + "description": "Draw circle outline (Vector version)", + "returnType": "void", + "params": [ + { + "type": "Vector2", + "name": "center" + }, + { + "type": "float", + "name": "radius" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { "name": "DrawEllipse", "description": "Draw ellipse", "returnType": "void", @@ -5986,6 +6053,387 @@ ] }, { + "name": "DrawSplineLinear", + "description": "Draw spline: Linear, minimum 2 points", + "returnType": "void", + "params": [ + { + "type": "Vector2 *", + "name": "points" + }, + { + "type": "int", + "name": "pointCount" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "DrawSplineBasis", + "description": "Draw spline: B-Spline, minimum 4 points", + "returnType": "void", + "params": [ + { + "type": "Vector2 *", + "name": "points" + }, + { + "type": "int", + "name": "pointCount" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "DrawSplineCatmullRom", + "description": "Draw spline: Catmull-Rom, minimum 4 points", + "returnType": "void", + "params": [ + { + "type": "Vector2 *", + "name": "points" + }, + { + "type": "int", + "name": "pointCount" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "DrawSplineBezierQuadratic", + "description": "Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...]", + "returnType": "void", + "params": [ + { + "type": "Vector2 *", + "name": "points" + }, + { + "type": "int", + "name": "pointCount" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "DrawSplineBezierCubic", + "description": "Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...]", + "returnType": "void", + "params": [ + { + "type": "Vector2 *", + "name": "points" + }, + { + "type": "int", + "name": "pointCount" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "DrawSplineSegmentLinear", + "description": "Draw spline segment: Linear, 2 points", + "returnType": "void", + "params": [ + { + "type": "Vector2", + "name": "p1" + }, + { + "type": "Vector2", + "name": "p2" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "DrawSplineSegmentBasis", + "description": "Draw spline segment: B-Spline, 4 points", + "returnType": "void", + "params": [ + { + "type": "Vector2", + "name": "p1" + }, + { + "type": "Vector2", + "name": "p2" + }, + { + "type": "Vector2", + "name": "p3" + }, + { + "type": "Vector2", + "name": "p4" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "DrawSplineSegmentCatmullRom", + "description": "Draw spline segment: Catmull-Rom, 4 points", + "returnType": "void", + "params": [ + { + "type": "Vector2", + "name": "p1" + }, + { + "type": "Vector2", + "name": "p2" + }, + { + "type": "Vector2", + "name": "p3" + }, + { + "type": "Vector2", + "name": "p4" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "DrawSplineSegmentBezierQuadratic", + "description": "Draw spline segment: Quadratic Bezier, 2 points, 1 control point", + "returnType": "void", + "params": [ + { + "type": "Vector2", + "name": "p1" + }, + { + "type": "Vector2", + "name": "c2" + }, + { + "type": "Vector2", + "name": "p3" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "DrawSplineSegmentBezierCubic", + "description": "Draw spline segment: Cubic Bezier, 2 points, 2 control points", + "returnType": "void", + "params": [ + { + "type": "Vector2", + "name": "p1" + }, + { + "type": "Vector2", + "name": "c2" + }, + { + "type": "Vector2", + "name": "c3" + }, + { + "type": "Vector2", + "name": "p4" + }, + { + "type": "float", + "name": "thick" + }, + { + "type": "Color", + "name": "color" + } + ] + }, + { + "name": "GetSplinePointLinear", + "description": "Get (evaluate) spline point: Linear", + "returnType": "Vector2", + "params": [ + { + "type": "Vector2", + "name": "startPos" + }, + { + "type": "Vector2", + "name": "endPos" + }, + { + "type": "float", + "name": "t" + } + ] + }, + { + "name": "GetSplinePointBasis", + "description": "Get (evaluate) spline point: B-Spline", + "returnType": "Vector2", + "params": [ + { + "type": "Vector2", + "name": "p1" + }, + { + "type": "Vector2", + "name": "p2" + }, + { + "type": "Vector2", + "name": "p3" + }, + { + "type": "Vector2", + "name": "p4" + }, + { + "type": "float", + "name": "t" + } + ] + }, + { + "name": "GetSplinePointCatmullRom", + "description": "Get (evaluate) spline point: Catmull-Rom", + "returnType": "Vector2", + "params": [ + { + "type": "Vector2", + "name": "p1" + }, + { + "type": "Vector2", + "name": "p2" + }, + { + "type": "Vector2", + "name": "p3" + }, + { + "type": "Vector2", + "name": "p4" + }, + { + "type": "float", + "name": "t" + } + ] + }, + { + "name": "GetSplinePointBezierQuad", + "description": "Get (evaluate) spline point: Quadratic Bezier", + "returnType": "Vector2", + "params": [ + { + "type": "Vector2", + "name": "p1" + }, + { + "type": "Vector2", + "name": "c2" + }, + { + "type": "Vector2", + "name": "p3" + }, + { + "type": "float", + "name": "t" + } + ] + }, + { + "name": "GetSplinePointBezierCubic", + "description": "Get (evaluate) spline point: Cubic Bezier", + "returnType": "Vector2", + "params": [ + { + "type": "Vector2", + "name": "p1" + }, + { + "type": "Vector2", + "name": "c2" + }, + { + "type": "Vector2", + "name": "c3" + }, + { + "type": "Vector2", + "name": "p4" + }, + { + "type": "float", + "name": "t" + } + ] + }, + { "name": "CheckCollisionRecs", "description": "Check collision between two rectangles", "returnType": "bool", @@ -6769,6 +7217,25 @@ ] }, { + "name": "ImageKernelConvolution", + "description": "Apply Custom Square image convolution kernel", + "returnType": "void", + "params": [ + { + "type": "Image *", + "name": "image" + }, + { + "type": "float*", + "name": "kernel" + }, + { + "type": "int", + "name": "kernelSize" + } + ] + }, + { "name": "ImageResize", "description": "Resize image (Bicubic scaling algorithm)", "returnType": "void", @@ -10340,6 +10807,11 @@ ] }, { + "name": "GetMasterVolume", + "description": "Get master volume (listener)", + "returnType": "float" + }, + { "name": "LoadWave", "description": "Load wave data from file", "returnType": "Wave", |
