Update raylib_api.* (#3564)

This commit is contained in:
BLUELOVETH
2023-11-24 07:46:54 +08:00
committed by GitHub
parent 94aba23ef4
commit dfa64f228a
4 changed files with 1963 additions and 917 deletions

View File

@ -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": [
@ -3092,16 +3134,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",
@ -3467,27 +3509,6 @@
"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"
},
{
"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",
@ -3971,11 +3992,6 @@
}
]
},
{
"name": "GetFPS",
"description": "Get current FPS",
"returnType": "int"
},
{
"name": "GetFrameTime",
"description": "Get time in seconds for last frame drawn (delta time)",
@ -3986,6 +4002,43 @@
"description": "Get elapsed time in seconds since InitWindow()",
"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)",
@ -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"
}
]
},
@ -4034,6 +4106,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...)",
@ -4101,17 +4184,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",
@ -4548,6 +4620,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",
@ -4603,6 +4755,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)",
@ -4614,16 +4776,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",
@ -5083,7 +5235,7 @@
},
{
"name": "DrawLineV",
"description": "Draw a line (Vector version)",
"description": "Draw a line (using gl lines)",
"returnType": "void",
"params": [
{
@ -5102,7 +5254,7 @@
},
{
"name": "DrawLineEx",
"description": "Draw a line defining thickness",
"description": "Draw a line (using triangles/quads)",
"returnType": "void",
"params": [
{
@ -5123,136 +5275,9 @@
}
]
},
{
"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",
"returnType": "void",
"params": [
{
"type": "Vector2",
"name": "startPos"
},
{
"type": "Vector2",
"name": "endPos"
},
{
"type": "Vector2",
"name": "startControlPos"
},
{
"type": "Vector2",
"name": "endControlPos"
},
{
"type": "float",
"name": "thick"
},
{
"type": "Color",
"name": "color"
}
]
},
{
"name": "DrawLineBSpline",
"description": "Draw a B-Spline line, minimum 4 points",
"returnType": "void",
"params": [
{
"type": "Vector2 *",
"name": "points"
},
{
"type": "int",
"name": "pointCount"
},
{
"type": "float",
"name": "thick"
},
{
"type": "Color",
"name": "color"
}
]
},
{
"name": "DrawLineCatmullRom",
"description": "Draw a Catmull Rom spline line, minimum 4 points",
"returnType": "void",
"params": [
{
"type": "Vector2 *",
"name": "points"
},
{
"type": "int",
"name": "pointCount"
},
{
"type": "float",
"name": "thick"
},
{
"type": "Color",
"name": "color"
}
]
},
{
"name": "DrawLineStrip",
"description": "Draw lines sequence",
"description": "Draw lines sequence (using gl lines)",
"returnType": "void",
"params": [
{
@ -5269,6 +5294,29 @@
}
]
},
{
"name": "DrawLineBezier",
"description": "Draw line segment cubic-bezier in-out interpolation",
"returnType": "void",
"params": [
{
"type": "Vector2",
"name": "startPos"
},
{
"type": "Vector2",
"name": "endPos"
},
{
"type": "float",
"name": "thick"
},
{
"type": "Color",
"name": "color"
}
]
},
{
"name": "DrawCircle",
"description": "Draw a color-filled circle",
@ -5423,6 +5471,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",
@ -5985,6 +6052,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",
@ -6768,6 +7216,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)",
@ -10339,6 +10806,11 @@
}
]
},
{
"name": "GetMasterVolume",
"description": "Get master volume (listener)",
"returnType": "float"
},
{
"name": "LoadWave",
"description": "Load wave data from file",