UPDATED: raylib-parser output files (TXT, XML, JSON, LUA)

This commit is contained in:
Ray 2023-03-15 13:13:48 +01:00
parent ad2067340f
commit 159e6b6f24
4 changed files with 1318 additions and 1105 deletions

View file

@ -6,10 +6,28 @@ return {
value = "",
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 @@ return {
},
{
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 @@ return {
{
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 @@ return {
{
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 @@ return {
{
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 @@ return {
{
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 @@ return {
{
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())"
}
}
},
@ -3092,12 +3110,21 @@ return {
},
{
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 = {
{type = "Image", name = "image"}
}
},
{
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)",
@ -3467,6 +3494,14 @@ return {
{type = "const char *", name = "fsCode"}
}
},
{
name = "IsShaderReady",
description = "Check if a shader is ready",
returnType = "bool",
params = {
{type = "Shader", name = "shader"}
}
},
{
name = "GetShaderLocation",
description = "Get shader uniform location",
@ -3778,7 +3813,7 @@ return {
description = "Export data to code (.h), returns true on success",
returnType = "bool",
params = {
{type = "const char *", name = "data"},
{type = "const unsigned char *", name = "data"},
{type = "unsigned int", name = "size"},
{type = "const char *", name = "fileName"}
}
@ -4304,58 +4339,24 @@ return {
description = "Get gesture pinch angle",
returnType = "float"
},
{
name = "SetCameraMode",
description = "Set camera mode (multiple camera modes available)",
returnType = "void",
params = {
{type = "Camera", name = "camera"},
{type = "int", name = "mode"}
}
},
{
name = "UpdateCamera",
description = "Update camera position for selected mode",
returnType = "void",
params = {
{type = "Camera *", name = "camera"}
{type = "Camera *", name = "camera"},
{type = "int", name = "mode"}
}
},
{
name = "SetCameraPanControl",
description = "Set camera pan key to combine with mouse movement (free camera)",
name = "UpdateCameraPro",
description = "Update camera movement/rotation",
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 = "int", name = "keyUp"},
{type = "int", name = "keyDown"}
{type = "Camera *", name = "camera"},
{type = "Vector3", name = "movement"},
{type = "Vector3", name = "rotation"},
{type = "float", name = "zoom"}
}
},
{
@ -4945,6 +4946,14 @@ return {
description = "Load image from screen buffer and (screenshot)",
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)",
@ -5060,6 +5069,16 @@ return {
{type = "int", name = "tileSize"}
}
},
{
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)",
@ -5162,6 +5181,15 @@ return {
{type = "Image *", name = "image"}
}
},
{
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)",
@ -5571,6 +5599,14 @@ return {
{type = "int", name = "height"}
}
},
{
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)",
@ -5579,6 +5615,14 @@ return {
{type = "Texture2D", name = "texture"}
}
},
{
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)",
@ -5676,32 +5720,6 @@ return {
{type = "Color", name = "tint"}
}
},
{
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",
@ -5728,19 +5746,6 @@ return {
{type = "Color", name = "tint"}
}
},
{
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",
@ -5792,6 +5797,33 @@ return {
{type = "float", name = "value"}
}
},
{
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",
@ -5895,6 +5927,14 @@ return {
{type = "int", name = "glyphCount"}
}
},
{
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",
@ -6379,33 +6419,6 @@ return {
{type = "Color", name = "color"}
}
},
{
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",
@ -6492,6 +6505,32 @@ return {
{type = "Color", name = "color"}
}
},
{
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",
@ -6537,16 +6576,16 @@ return {
}
},
{
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", name = "model"}
}
},
{
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 = {
{type = "Model", name = "model"}
@ -6857,6 +6896,14 @@ return {
description = "Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)",
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)",
@ -7053,6 +7100,14 @@ return {
{type = "int", name = "dataSize"}
}
},
{
name = "IsWaveReady",
description = "Checks if wave data is ready",
returnType = "bool",
params = {
{type = "Wave", name = "wave"}
}
},
{
name = "LoadSound",
description = "Load sound from file",
@ -7069,6 +7124,14 @@ return {
{type = "Wave", name = "wave"}
}
},
{
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",
@ -7145,24 +7208,6 @@ return {
{type = "Sound", name = "sound"}
}
},
{
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",
@ -7261,6 +7306,14 @@ return {
{type = "int", name = "dataSize"}
}
},
{
name = "IsMusicReady",
description = "Checks if a music stream is ready",
returnType = "bool",
params = {
{type = "Music", name = "music"}
}
},
{
name = "UnloadMusicStream",
description = "Unload music stream",
@ -7379,6 +7432,14 @@ return {
{type = "unsigned int", name = "channels"}
}
},
{
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",
@ -7506,6 +7567,22 @@ return {
{type = "AudioStream", name = "stream"},
{type = "AudioCallback", 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"}
}
}
}
}