summaryrefslogtreecommitdiffhomepage
path: root/parser/output/raylib_api.json
diff options
context:
space:
mode:
Diffstat (limited to 'parser/output/raylib_api.json')
-rw-r--r--parser/output/raylib_api.json592
1 files changed, 333 insertions, 259 deletions
diff --git a/parser/output/raylib_api.json b/parser/output/raylib_api.json
index d9a54812..62d9f440 100644
--- a/parser/output/raylib_api.json
+++ b/parser/output/raylib_api.json
@@ -7,9 +7,27 @@
"description": ""
},
{
+ "name": "RAYLIB_VERSION_MAJOR",
+ "type": "INT",
+ "value": 4,
+ "description": ""
+ },
+ {
+ "name": "RAYLIB_VERSION_MINOR",
+ "type": "INT",
+ "value": 5,
+ "description": ""
+ },
+ {
+ "name": "RAYLIB_VERSION_PATCH",
+ "type": "INT",
+ "value": 0,
+ "description": ""
+ },
+ {
"name": "RAYLIB_VERSION",
"type": "STRING",
- "value": "4.5-dev",
+ "value": "4.5",
"description": ""
},
{
@@ -385,7 +403,7 @@
},
{
"name": "Matrix",
- "description": "Matrix, 4x4 components, column major, OpenGL style, right handed",
+ "description": "Matrix, 4x4 components, column major, OpenGL style, right-handed",
"fields": [
{
"type": "float",
@@ -1045,12 +1063,12 @@
{
"type": "float",
"name": "distance",
- "description": "Distance to nearest hit"
+ "description": "Distance to the nearest hit"
},
{
"type": "Vector3",
"name": "point",
- "description": "Point of nearest hit"
+ "description": "Point of the nearest hit"
},
{
"type": "Vector3",
@@ -2112,7 +2130,7 @@
{
"name": "MOUSE_CURSOR_RESIZE_ALL",
"value": 9,
- "description": "The omni-directional resize/move cursor shape"
+ "description": "The omnidirectional resize/move cursor shape"
},
{
"name": "MOUSE_CURSOR_NOT_ALLOWED",
@@ -2717,7 +2735,7 @@
{
"name": "CUBEMAP_LAYOUT_LINE_HORIZONTAL",
"value": 2,
- "description": "Layout is defined by an horizontal line with faces"
+ "description": "Layout is defined by a horizontal line with faces"
},
{
"name": "CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR",
@@ -2732,7 +2750,7 @@
{
"name": "CUBEMAP_LAYOUT_PANORAMA",
"value": 5,
- "description": "Layout is defined by a panorama image (equirectangular map)"
+ "description": "Layout is defined by a panorama image (equirrectangular map)"
}
]
},
@@ -2794,12 +2812,12 @@
{
"name": "BLEND_CUSTOM",
"value": 6,
- "description": "Blend textures using custom src/dst factors (use rlSetBlendMode())"
+ "description": "Blend textures using custom src/dst factors (use rlSetBlendFactors())"
},
{
"name": "BLEND_CUSTOM_SEPARATE",
"value": 7,
- "description": "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendModeSeparate())"
+ "description": "Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())"
}
]
},
@@ -3149,7 +3167,7 @@
},
{
"name": "SetWindowIcon",
- "description": "Set icon for window (only PLATFORM_DESKTOP)",
+ "description": "Set icon for window (single image, RGBA 32bit, only PLATFORM_DESKTOP)",
"returnType": "void",
"params": [
{
@@ -3159,6 +3177,21 @@
]
},
{
+ "name": "SetWindowIcons",
+ "description": "Set icon for window (multiple images, RGBA 32bit, only PLATFORM_DESKTOP)",
+ "returnType": "void",
+ "params": [
+ {
+ "type": "Image *",
+ "name": "images"
+ },
+ {
+ "type": "int",
+ "name": "count"
+ }
+ ]
+ },
+ {
"name": "SetWindowTitle",
"description": "Set title for window (only PLATFORM_DESKTOP)",
"returnType": "void",
@@ -3633,6 +3666,17 @@
]
},
{
+ "name": "IsShaderReady",
+ "description": "Check if a shader is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "Shader",
+ "name": "shader"
+ }
+ ]
+ },
+ {
"name": "GetShaderLocation",
"description": "Get shader uniform location",
"returnType": "int",
@@ -4124,7 +4168,7 @@
"returnType": "bool",
"params": [
{
- "type": "const char *",
+ "type": "const unsigned char *",
"name": "data"
},
{
@@ -4863,12 +4907,12 @@
"returnType": "float"
},
{
- "name": "SetCameraMode",
- "description": "Set camera mode (multiple camera modes available)",
+ "name": "UpdateCamera",
+ "description": "Update camera position for selected mode",
"returnType": "void",
"params": [
{
- "type": "Camera",
+ "type": "Camera *",
"name": "camera"
},
{
@@ -4878,77 +4922,25 @@
]
},
{
- "name": "UpdateCamera",
- "description": "Update camera position for selected mode",
+ "name": "UpdateCameraPro",
+ "description": "Update camera movement/rotation",
"returnType": "void",
"params": [
{
"type": "Camera *",
"name": "camera"
- }
- ]
- },
- {
- "name": "SetCameraPanControl",
- "description": "Set camera pan key to combine with mouse movement (free camera)",
- "returnType": "void",
- "params": [
- {
- "type": "int",
- "name": "keyPan"
- }
- ]
- },
- {
- "name": "SetCameraAltControl",
- "description": "Set camera alt key to combine with mouse movement (free camera)",
- "returnType": "void",
- "params": [
- {
- "type": "int",
- "name": "keyAlt"
- }
- ]
- },
- {
- "name": "SetCameraSmoothZoomControl",
- "description": "Set camera smooth zoom key to combine with mouse (free camera)",
- "returnType": "void",
- "params": [
- {
- "type": "int",
- "name": "keySmoothZoom"
- }
- ]
- },
- {
- "name": "SetCameraMoveControls",
- "description": "Set camera move controls (1st person and 3rd person cameras)",
- "returnType": "void",
- "params": [
- {
- "type": "int",
- "name": "keyFront"
- },
- {
- "type": "int",
- "name": "keyBack"
- },
- {
- "type": "int",
- "name": "keyRight"
},
{
- "type": "int",
- "name": "keyLeft"
+ "type": "Vector3",
+ "name": "movement"
},
{
- "type": "int",
- "name": "keyUp"
+ "type": "Vector3",
+ "name": "rotation"
},
{
- "type": "int",
- "name": "keyDown"
+ "type": "float",
+ "name": "zoom"
}
]
},
@@ -6173,6 +6165,17 @@
"returnType": "Image"
},
{
+ "name": "IsImageReady",
+ "description": "Check if an image is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "Image",
+ "name": "image"
+ }
+ ]
+ },
+ {
"name": "UnloadImage",
"description": "Unload image from CPU memory (RAM)",
"returnType": "void",
@@ -6402,6 +6405,25 @@
]
},
{
+ "name": "GenImageText",
+ "description": "Generate image: grayscale image from text data",
+ "returnType": "Image",
+ "params": [
+ {
+ "type": "int",
+ "name": "width"
+ },
+ {
+ "type": "int",
+ "name": "height"
+ },
+ {
+ "type": "const char *",
+ "name": "text"
+ }
+ ]
+ },
+ {
"name": "ImageCopy",
"description": "Create an image duplicate (useful for transformations)",
"returnType": "Image",
@@ -6579,6 +6601,21 @@
]
},
{
+ "name": "ImageBlurGaussian",
+ "description": "Apply Gaussian blur using a box blur approximation",
+ "returnType": "void",
+ "params": [
+ {
+ "type": "Image *",
+ "name": "image"
+ },
+ {
+ "type": "int",
+ "name": "blurSize"
+ }
+ ]
+ },
+ {
"name": "ImageResize",
"description": "Resize image (Bicubic scaling algorithm)",
"returnType": "void",
@@ -7354,6 +7391,17 @@
]
},
{
+ "name": "IsTextureReady",
+ "description": "Check if a texture is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "Texture2D",
+ "name": "texture"
+ }
+ ]
+ },
+ {
"name": "UnloadTexture",
"description": "Unload texture from GPU memory (VRAM)",
"returnType": "void",
@@ -7365,6 +7413,17 @@
]
},
{
+ "name": "IsRenderTextureReady",
+ "description": "Check if a render texture is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "RenderTexture2D",
+ "name": "target"
+ }
+ ]
+ },
+ {
"name": "UnloadRenderTexture",
"description": "Unload render texture from GPU memory (VRAM)",
"returnType": "void",
@@ -7543,68 +7602,6 @@
]
},
{
- "name": "DrawTextureQuad",
- "description": "Draw texture quad with tiling and offset parameters",
- "returnType": "void",
- "params": [
- {
- "type": "Texture2D",
- "name": "texture"
- },
- {
- "type": "Vector2",
- "name": "tiling"
- },
- {
- "type": "Vector2",
- "name": "offset"
- },
- {
- "type": "Rectangle",
- "name": "quad"
- },
- {
- "type": "Color",
- "name": "tint"
- }
- ]
- },
- {
- "name": "DrawTextureTiled",
- "description": "Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.",
- "returnType": "void",
- "params": [
- {
- "type": "Texture2D",
- "name": "texture"
- },
- {
- "type": "Rectangle",
- "name": "source"
- },
- {
- "type": "Rectangle",
- "name": "dest"
- },
- {
- "type": "Vector2",
- "name": "origin"
- },
- {
- "type": "float",
- "name": "rotation"
- },
- {
- "type": "float",
- "name": "scale"
- },
- {
- "type": "Color",
- "name": "tint"
- }
- ]
- },
- {
"name": "DrawTexturePro",
"description": "Draw a part of a texture defined by a rectangle with 'pro' parameters",
"returnType": "void",
@@ -7667,37 +7664,6 @@
]
},
{
- "name": "DrawTexturePoly",
- "description": "Draw a textured polygon",
- "returnType": "void",
- "params": [
- {
- "type": "Texture2D",
- "name": "texture"
- },
- {
- "type": "Vector2",
- "name": "center"
- },
- {
- "type": "Vector2 *",
- "name": "points"
- },
- {
- "type": "Vector2 *",
- "name": "texcoords"
- },
- {
- "type": "int",
- "name": "pointCount"
- },
- {
- "type": "Color",
- "name": "tint"
- }
- ]
- },
- {
"name": "Fade",
"description": "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
"returnType": "Color",
@@ -7776,6 +7742,51 @@
]
},
{
+ "name": "ColorTint",
+ "description": "Get color multiplied with another color",
+ "returnType": "Color",
+ "params": [
+ {
+ "type": "Color",
+ "name": "color"
+ },
+ {
+ "type": "Color",
+ "name": "tint"
+ }
+ ]
+ },
+ {
+ "name": "ColorBrightness",
+ "description": "Get color with brightness correction, brightness factor goes from -1.0f to 1.0f",
+ "returnType": "Color",
+ "params": [
+ {
+ "type": "Color",
+ "name": "color"
+ },
+ {
+ "type": "float",
+ "name": "factor"
+ }
+ ]
+ },
+ {
+ "name": "ColorContrast",
+ "description": "Get color with contrast correction, contrast values between -1.0f and 1.0f",
+ "returnType": "Color",
+ "params": [
+ {
+ "type": "Color",
+ "name": "color"
+ },
+ {
+ "type": "float",
+ "name": "contrast"
+ }
+ ]
+ },
+ {
"name": "ColorAlpha",
"description": "Get color with alpha applied, alpha goes from 0.0f to 1.0f",
"returnType": "Color",
@@ -7963,6 +7974,17 @@
]
},
{
+ "name": "IsFontReady",
+ "description": "Check if a font is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "Font",
+ "name": "font"
+ }
+ ]
+ },
+ {
"name": "LoadFontData",
"description": "Load font data for further use",
"returnType": "GlyphInfo *",
@@ -8870,72 +8892,6 @@
]
},
{
- "name": "DrawCubeTexture",
- "description": "Draw cube textured",
- "returnType": "void",
- "params": [
- {
- "type": "Texture2D",
- "name": "texture"
- },
- {
- "type": "Vector3",
- "name": "position"
- },
- {
- "type": "float",
- "name": "width"
- },
- {
- "type": "float",
- "name": "height"
- },
- {
- "type": "float",
- "name": "length"
- },
- {
- "type": "Color",
- "name": "color"
- }
- ]
- },
- {
- "name": "DrawCubeTextureRec",
- "description": "Draw cube with a region of a texture",
- "returnType": "void",
- "params": [
- {
- "type": "Texture2D",
- "name": "texture"
- },
- {
- "type": "Rectangle",
- "name": "source"
- },
- {
- "type": "Vector3",
- "name": "position"
- },
- {
- "type": "float",
- "name": "width"
- },
- {
- "type": "float",
- "name": "height"
- },
- {
- "type": "float",
- "name": "length"
- },
- {
- "type": "Color",
- "name": "color"
- }
- ]
- },
- {
"name": "DrawSphere",
"description": "Draw sphere",
"returnType": "void",
@@ -9133,6 +9089,68 @@
]
},
{
+ "name": "DrawCapsule",
+ "description": "Draw a capsule with the center of its sphere caps at startPos and endPos",
+ "returnType": "void",
+ "params": [
+ {
+ "type": "Vector3",
+ "name": "startPos"
+ },
+ {
+ "type": "Vector3",
+ "name": "endPos"
+ },
+ {
+ "type": "float",
+ "name": "radius"
+ },
+ {
+ "type": "int",
+ "name": "slices"
+ },
+ {
+ "type": "int",
+ "name": "rings"
+ },
+ {
+ "type": "Color",
+ "name": "color"
+ }
+ ]
+ },
+ {
+ "name": "DrawCapsuleWires",
+ "description": "Draw capsule wireframe with the center of its sphere caps at startPos and endPos",
+ "returnType": "void",
+ "params": [
+ {
+ "type": "Vector3",
+ "name": "startPos"
+ },
+ {
+ "type": "Vector3",
+ "name": "endPos"
+ },
+ {
+ "type": "float",
+ "name": "radius"
+ },
+ {
+ "type": "int",
+ "name": "slices"
+ },
+ {
+ "type": "int",
+ "name": "rings"
+ },
+ {
+ "type": "Color",
+ "name": "color"
+ }
+ ]
+ },
+ {
"name": "DrawPlane",
"description": "Draw a plane XZ",
"returnType": "void",
@@ -9204,9 +9222,9 @@
]
},
{
- "name": "UnloadModel",
- "description": "Unload model (including meshes) from memory (RAM and/or VRAM)",
- "returnType": "void",
+ "name": "IsModelReady",
+ "description": "Check if a model is ready",
+ "returnType": "bool",
"params": [
{
"type": "Model",
@@ -9215,8 +9233,8 @@
]
},
{
- "name": "UnloadModelKeepMeshes",
- "description": "Unload model (but not meshes) from memory (RAM and/or VRAM)",
+ "name": "UnloadModel",
+ "description": "Unload model (including meshes) from memory (RAM and/or VRAM)",
"returnType": "void",
"params": [
{
@@ -9822,6 +9840,17 @@
"returnType": "Material"
},
{
+ "name": "IsMaterialReady",
+ "description": "Check if a material is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "Material",
+ "name": "material"
+ }
+ ]
+ },
+ {
"name": "UnloadMaterial",
"description": "Unload material from GPU memory (VRAM)",
"returnType": "void",
@@ -10162,6 +10191,17 @@
]
},
{
+ "name": "IsWaveReady",
+ "description": "Checks if wave data is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "Wave",
+ "name": "wave"
+ }
+ ]
+ },
+ {
"name": "LoadSound",
"description": "Load sound from file",
"returnType": "Sound",
@@ -10184,6 +10224,17 @@
]
},
{
+ "name": "IsSoundReady",
+ "description": "Checks if a sound is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "Sound",
+ "name": "sound"
+ }
+ ]
+ },
+ {
"name": "UpdateSound",
"description": "Update sound buffer with new data",
"returnType": "void",
@@ -10299,27 +10350,6 @@
]
},
{
- "name": "PlaySoundMulti",
- "description": "Play a sound (using multichannel buffer pool)",
- "returnType": "void",
- "params": [
- {
- "type": "Sound",
- "name": "sound"
- }
- ]
- },
- {
- "name": "StopSoundMulti",
- "description": "Stop any sound playing (using multichannel buffer pool)",
- "returnType": "void"
- },
- {
- "name": "GetSoundsPlaying",
- "description": "Get number of sounds playing in the multichannel",
- "returnType": "int"
- },
- {
"name": "IsSoundPlaying",
"description": "Check if a sound is currently playing",
"returnType": "bool",
@@ -10481,6 +10511,17 @@
]
},
{
+ "name": "IsMusicReady",
+ "description": "Checks if a music stream is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "Music",
+ "name": "music"
+ }
+ ]
+ },
+ {
"name": "UnloadMusicStream",
"description": "Unload music stream",
"returnType": "void",
@@ -10659,6 +10700,17 @@
]
},
{
+ "name": "IsAudioStreamReady",
+ "description": "Checks if an audio stream is ready",
+ "returnType": "bool",
+ "params": [
+ {
+ "type": "AudioStream",
+ "name": "stream"
+ }
+ ]
+ },
+ {
"name": "UnloadAudioStream",
"description": "Unload audio stream and free memory",
"returnType": "void",
@@ -10854,6 +10906,28 @@
"name": "processor"
}
]
+ },
+ {
+ "name": "AttachAudioMixedProcessor",
+ "description": "Attach audio stream processor to the entire audio pipeline",
+ "returnType": "void",
+ "params": [
+ {
+ "type": "AudioCallback",
+ "name": "processor"
+ }
+ ]
+ },
+ {
+ "name": "DetachAudioMixedProcessor",
+ "description": "Detach audio stream processor from the entire audio pipeline",
+ "returnType": "void",
+ "params": [
+ {
+ "type": "AudioCallback",
+ "name": "processor"
+ }
+ ]
}
]
}