diff options
Diffstat (limited to 'parser/output/raylib_api.lua')
| -rw-r--r-- | parser/output/raylib_api.lua | 361 |
1 files changed, 219 insertions, 142 deletions
diff --git a/parser/output/raylib_api.lua b/parser/output/raylib_api.lua index a7b68f1c..0a1b9585 100644 --- a/parser/output/raylib_api.lua +++ b/parser/output/raylib_api.lua @@ -7,9 +7,27 @@ return { 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,13 +3110,22 @@ 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)", returnType = "void", @@ -3468,6 +3495,14 @@ return { } }, { + 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", @@ -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"} } @@ -4305,57 +4340,23 @@ return { 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"} - } - }, - { - 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"} + {type = "Camera *", name = "camera"}, + {type = "int", name = "mode"} } }, { - name = "SetCameraMoveControls", - description = "Set camera move controls (1st person and 3rd person cameras)", + name = "UpdateCameraPro", + description = "Update camera movement/rotation", 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"} } }, { @@ -4946,6 +4947,14 @@ return { 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", @@ -5061,6 +5070,16 @@ return { } }, { + 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", @@ -5163,6 +5182,15 @@ return { } }, { + 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", @@ -5572,6 +5600,14 @@ return { } }, { + 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", @@ -5580,6 +5616,14 @@ return { } }, { + 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", @@ -5677,32 +5721,6 @@ return { } }, { - 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", @@ -5729,19 +5747,6 @@ return { } }, { - 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", @@ -5793,6 +5798,33 @@ return { } }, { + 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", @@ -5896,6 +5928,14 @@ return { } }, { + 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 *", @@ -6380,33 +6420,6 @@ return { } }, { - 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", @@ -6493,6 +6506,32 @@ return { } }, { + 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", @@ -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"} @@ -6858,6 +6897,14 @@ return { 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", @@ -7054,6 +7101,14 @@ return { } }, { + 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", @@ -7070,6 +7125,14 @@ return { } }, { + 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", @@ -7146,24 +7209,6 @@ return { } }, { - 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", @@ -7262,6 +7307,14 @@ return { } }, { + 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", @@ -7380,6 +7433,14 @@ return { } }, { + 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", @@ -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"} + } } } } |
