diff options
Diffstat (limited to 'parser/raylib_api.json')
| -rw-r--r-- | parser/raylib_api.json | 792 |
1 files changed, 470 insertions, 322 deletions
diff --git a/parser/raylib_api.json b/parser/raylib_api.json index 68c0a486..0d2fb2e7 100644 --- a/parser/raylib_api.json +++ b/parser/raylib_api.json @@ -122,7 +122,7 @@ { "name": "x", "type": "float", - "description": "Rectangle top-left corner position x " + "description": "Rectangle top-left corner position x" }, { "name": "y", @@ -261,7 +261,7 @@ ] }, { - "name": "CharInfo", + "name": "GlyphInfo", "description": "", "fields": [ { @@ -301,29 +301,29 @@ "description": "Base size (default chars height)" }, { - "name": "charsCount", + "name": "glyphCount", "type": "int", - "description": "Number of characters" + "description": "Number of glyph characters" }, { - "name": "charsPadding", + "name": "glyphPadding", "type": "int", - "description": "Padding around the chars" + "description": "Padding around the glyph characters" }, { "name": "texture", "type": "Texture2D", - "description": "Characters texture atlas" + "description": "Texture atlas containing the glyphs" }, { "name": "recs", "type": "Rectangle *", - "description": "Characters rectangles in texture" + "description": "Rectangles in texture for the glyphs" }, { - "name": "chars", - "type": "CharInfo *", - "description": "Characters info data" + "name": "glyphs", + "type": "GlyphInfo *", + "description": "Glyphs info data" } ] }, @@ -445,8 +445,8 @@ }, { "name": "boneIds", - "type": "int *", - "description": "Vertex bone ids, up to 4 bones influence by vertex (skinning)" + "type": "unsigned char *", + "description": "Vertex bone ids, max 255 bone ids, up to 4 bones influence by vertex (skinning)" }, { "name": "boneWeights", @@ -477,7 +477,7 @@ { "name": "locs", "type": "int *", - "description": "Shader locations array (MAX_SHADER_LOCATIONS)" + "description": "Shader locations array (RL_MAX_SHADER_LOCATIONS)" } ] }, @@ -700,9 +700,9 @@ "description": "", "fields": [ { - "name": "sampleCount", + "name": "frameCount", "type": "unsigned int", - "description": "Total number of samples (considering channels!)" + "description": "Total number of frames (considering channels)" }, { "name": "sampleRate", @@ -717,7 +717,7 @@ { "name": "channels", "type": "unsigned int", - "description": "Number of channels (1-mono, 2-stereo)" + "description": "Number of channels (1-mono, 2-stereo, ...)" }, { "name": "data", @@ -748,7 +748,7 @@ { "name": "channels", "type": "unsigned int", - "description": "Number of channels (1-mono, 2-stereo)" + "description": "Number of channels (1-mono, 2-stereo, ...)" } ] }, @@ -762,9 +762,9 @@ "description": "Audio stream" }, { - "name": "sampleCount", + "name": "frameCount", "type": "unsigned int", - "description": "Total number of samples" + "description": "Total number of frames (considering channels)" } ] }, @@ -778,9 +778,9 @@ "description": "Audio stream" }, { - "name": "sampleCount", + "name": "frameCount", "type": "unsigned int", - "description": "Total number of samples" + "description": "Total number of frames (considering channels)" }, { "name": "looping", @@ -1250,6 +1250,26 @@ "description": "" }, { + "name": "KEY_LEFT_BRACKET", + "value": 91, + "description": "" + }, + { + "name": "KEY_BACKSLASH", + "value": 92, + "description": "" + }, + { + "name": "KEY_RIGHT_BRACKET", + "value": 93, + "description": "" + }, + { + "name": "KEY_GRAVE", + "value": 96, + "description": "" + }, + { "name": "KEY_SPACE", "value": 32, "description": "" @@ -1455,26 +1475,6 @@ "description": "" }, { - "name": "KEY_LEFT_BRACKET", - "value": 91, - "description": "" - }, - { - "name": "KEY_BACKSLASH", - "value": 92, - "description": "" - }, - { - "name": "KEY_RIGHT_BRACKET", - "value": 93, - "description": "" - }, - { - "name": "KEY_GRAVE", - "value": 96, - "description": "" - }, - { "name": "KEY_KP_0", "value": 320, "description": "" @@ -2741,6 +2741,24 @@ "returnType": "const char *" }, { + "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 milliseconds (halt program execution)", + "returnType": "void", + "params": { + "ms": "float" + } + }, + { "name": "ShowCursor", "description": "Shows cursor", "returnType": "void" @@ -3081,6 +3099,14 @@ } }, { + "name": "SetRandomSeed", + "description": "Set the seed for the random number generator", + "returnType": "void", + "params": { + "seed": "unsigned int" + } + }, + { "name": "TakeScreenshot", "description": "Takes a screenshot of current screen (filename extension defines format)", "returnType": "void", @@ -3370,6 +3396,25 @@ } }, { + "name": "EncodeDataBase64", + "description": "Encode data to Base64 string", + "returnType": "char *", + "params": { + "data": "const unsigned char *", + "dataLength": "int", + "outputLength": "int *" + } + }, + { + "name": "DecodeDataBase64", + "description": "Decode Base64 string data", + "returnType": "unsigned char *", + "params": { + "data": "unsigned char *", + "outputLength": "int *" + } + }, + { "name": "SaveStorageValue", "description": "Save integer value to storage file (to defined position), returns true on success", "returnType": "bool", @@ -3436,12 +3481,12 @@ }, { "name": "GetKeyPressed", - "description": "Get key pressed (keycode), call it multiple times for keys queued", + "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", + "description": "Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty", "returnType": "int" }, { @@ -3453,15 +3498,6 @@ } }, { - "name": "IsGamepadName", - "description": "Check gamepad name (if available)", - "returnType": "bool", - "params": { - "gamepad": "int", - "name": "const char *" - } - }, - { "name": "GetGamepadName", "description": "Get gamepad internal name id", "returnType": "const char *", @@ -3583,6 +3619,11 @@ "returnType": "Vector2" }, { + "name": "GetMouseDelta", + "description": "Get mouse delta between frames", + "returnType": "Vector2" + }, + { "name": "SetMousePosition", "description": "Set mouse position XY", "returnType": "void", @@ -3641,6 +3682,19 @@ } }, { + "name": "GetTouchPointId", + "description": "Get touch point identifier for given index", + "returnType": "int", + "params": { + "index": "int" + } + }, + { + "name": "GetTouchPointCount", + "description": "Get number of touch points", + "returnType": "int" + }, + { "name": "SetGesturesEnabled", "description": "Enable a set of gestures using flags", "returnType": "void", @@ -3662,11 +3716,6 @@ "returnType": "int" }, { - "name": "GetTouchPointsCount", - "description": "Get touch points count", - "returnType": "int" - }, - { "name": "GetGestureHoldDuration", "description": "Get gesture hold time in milliseconds", "returnType": "float" @@ -3819,7 +3868,7 @@ }, { "name": "DrawLineBezierQuad", - "description": "raw line using quadratic bezier curves with a control point", + "description": "Draw line using quadratic bezier curves with a control point", "returnType": "void", "params": { "startPos": "Vector2", @@ -3830,12 +3879,25 @@ } }, { + "name": "DrawLineBezierCubic", + "description": "Draw line using cubic bezier curves with 2 control points", + "returnType": "void", + "params": { + "startPos": "Vector2", + "endPos": "Vector2", + "startControlPos": "Vector2", + "endControlPos": "Vector2", + "thick": "float", + "color": "Color" + } + }, + { "name": "DrawLineStrip", "description": "Draw lines sequence", "returnType": "void", "params": { "points": "Vector2 *", - "pointsCount": "int", + "pointCount": "int", "color": "Color" } }, @@ -4114,7 +4176,7 @@ "returnType": "void", "params": { "points": "Vector2 *", - "pointsCount": "int", + "pointCount": "int", "color": "Color" } }, @@ -4124,7 +4186,7 @@ "returnType": "void", "params": { "points": "Vector2 *", - "pointsCount": "int", + "pointCount": "int", "color": "Color" } }, @@ -4238,6 +4300,17 @@ } }, { + "name": "CheckCollisionPointLine", + "description": "Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]", + "returnType": "bool", + "params": { + "point": "Vector2", + "p1": "Vector2", + "p2": "Vector2", + "threshold": "int" + } + }, + { "name": "GetCollisionRec", "description": "Get collision rectangle for two rectangles collision", "returnType": "Rectangle", @@ -4286,6 +4359,19 @@ } }, { + "name": "LoadImageFromTexture", + "description": "Load image from GPU texture data", + "returnType": "Image", + "params": { + "texture": "Texture2D" + } + }, + { + "name": "LoadImageFromScreen", + "description": "Load image from screen buffer and (screenshot)", + "returnType": "Image" + }, + { "name": "UnloadImage", "description": "Unload image from CPU memory (RAM)", "returnType": "void", @@ -4379,20 +4465,8 @@ } }, { - "name": "GenImagePerlinNoise", - "description": "Generate image: perlin noise", - "returnType": "Image", - "params": { - "width": "int", - "height": "int", - "offsetX": "int", - "offsetY": "int", - "scale": "float" - } - }, - { "name": "GenImageCellular", - "description": "Generate image: cellular algorithm. Bigger tileSize means bigger cells", + "description": "Generate image: cellular algorithm, bigger tileSize means bigger cells", "returnType": "Image", "params": { "width": "int", @@ -4655,7 +4729,7 @@ "params": { "image": "Image", "maxPaletteSize": "int", - "colorsCount": "int *" + "colorCount": "int *" } }, { @@ -4684,6 +4758,16 @@ } }, { + "name": "GetImageColor", + "description": "Get image pixel color at (x, y) position", + "returnType": "Color", + "params": { + "image": "Image", + "x": "int", + "y": "int" + } + }, + { "name": "ImageClearBackground", "description": "Clear image background with given color", "returnType": "void", @@ -4914,19 +4998,6 @@ } }, { - "name": "GetTextureData", - "description": "Get pixel data from GPU texture and return an Image", - "returnType": "Image", - "params": { - "texture": "Texture2D" - } - }, - { - "name": "GetScreenData", - "description": "Get pixel data from screen buffer and return an Image (screenshot)", - "returnType": "Image" - }, - { "name": "GenTextureMipmaps", "description": "Generate GPU mipmaps for a texture", "returnType": "void", @@ -5057,7 +5128,7 @@ "center": "Vector2", "points": "Vector2 *", "texcoords": "Vector2 *", - "pointsCount": "int", + "pointCount": "int", "tint": "Color" } }, @@ -5136,7 +5207,7 @@ "description": "Get Color structure from hexadecimal value", "returnType": "Color", "params": { - "hexValue": "int" + "hexValue": "unsigned int" } }, { @@ -5189,7 +5260,7 @@ "fileName": "const char *", "fontSize": "int", "fontChars": "int *", - "charsCount": "int" + "glyphCount": "int" } }, { @@ -5212,19 +5283,19 @@ "dataSize": "int", "fontSize": "int", "fontChars": "int *", - "charsCount": "int" + "glyphCount": "int" } }, { "name": "LoadFontData", "description": "Load font data for further use", - "returnType": "CharInfo *", + "returnType": "GlyphInfo *", "params": { "fileData": "const unsigned char *", "dataSize": "int", "fontSize": "int", "fontChars": "int *", - "charsCount": "int", + "glyphCount": "int", "type": "int" } }, @@ -5233,9 +5304,9 @@ "description": "Generate image font atlas using chars info", "returnType": "Image", "params": { - "chars": "const CharInfo *", + "chars": "const GlyphInfo *", "recs": "Rectangle **", - "charsCount": "int", + "glyphCount": "int", "fontSize": "int", "padding": "int", "packMethod": "int" @@ -5246,8 +5317,8 @@ "description": "Unload font chars info data (RAM)", "returnType": "void", "params": { - "chars": "CharInfo *", - "charsCount": "int" + "chars": "GlyphInfo *", + "glyphCount": "int" } }, { @@ -5293,38 +5364,21 @@ } }, { - "name": "DrawTextRec", - "description": "Draw text using font inside rectangle limits", + "name": "DrawTextPro", + "description": "Draw text using Font and pro parameters (rotation)", "returnType": "void", "params": { "font": "Font", "text": "const char *", - "rec": "Rectangle", + "position": "Vector2", + "origin": "Vector2", + "rotation": "float", "fontSize": "float", "spacing": "float", - "wordWrap": "bool", "tint": "Color" } }, { - "name": "DrawTextRecEx", - "description": "Draw text using font inside rectangle limits with support for text selection", - "returnType": "void", - "params": { - "font": "Font", - "text": "const char *", - "rec": "Rectangle", - "fontSize": "float", - "spacing": "float", - "wordWrap": "bool", - "tint": "Color", - "selectStart": "int", - "selectLength": "int", - "selectTint": "Color", - "selectBackTint": "Color" - } - }, - { "name": "DrawTextCodepoint", "description": "Draw one character (codepoint)", "returnType": "void", @@ -5358,7 +5412,7 @@ }, { "name": "GetGlyphIndex", - "description": "Get index position for a unicode character on font", + "description": "Get glyph index position in font for a codepoint (unicode character), fallback to '?' if not found", "returnType": "int", "params": { "font": "Font", @@ -5366,6 +5420,76 @@ } }, { + "name": "GetGlyphInfo", + "description": "Get glyph font info data for a codepoint (unicode character), fallback to '?' if not found", + "returnType": "GlyphInfo", + "params": { + "font": "Font", + "codepoint": "int" + } + }, + { + "name": "GetGlyphAtlasRec", + "description": "Get glyph rectangle in font atlas for a codepoint (unicode character), fallback to '?' if not found", + "returnType": "Rectangle", + "params": { + "font": "Font", + "codepoint": "int" + } + }, + { + "name": "LoadCodepoints", + "description": "Load all codepoints from a UTF-8 text string, codepoints count returned by parameter", + "returnType": "int *", + "params": { + "text": "const char *", + "count": "int *" + } + }, + { + "name": "UnloadCodepoints", + "description": "Unload codepoints data from memory", + "returnType": "void", + "params": { + "codepoints": "int *" + } + }, + { + "name": "GetCodepointCount", + "description": "Get total number of codepoints in a UTF-8 encoded string", + "returnType": "int", + "params": { + "text": "const char *" + } + }, + { + "name": "GetCodepoint", + "description": "Get next codepoint in a UTF-8 encoded string, 0x3f('?') is returned on failure", + "returnType": "int", + "params": { + "text": "const char *", + "bytesProcessed": "int *" + } + }, + { + "name": "CodepointToUTF8", + "description": "Encode one codepoint into UTF-8 byte array (array length returned as parameter)", + "returnType": "const char *", + "params": { + "codepoint": "int", + "byteSize": "int *" + } + }, + { + "name": "TextCodepointsToUTF8", + "description": "Encode text as codepoints array into UTF-8 text string (WARNING: memory must be freed!)", + "returnType": "char *", + "params": { + "codepoints": "int *", + "length": "int" + } + }, + { "name": "TextCopy", "description": "Copy one string to another, returns bytes copied", "returnType": "int", @@ -5393,7 +5517,7 @@ }, { "name": "TextFormat", - "description": "Text formatting with variables (sprintf style)", + "description": "Text formatting with variables (sprintf() style)", "returnType": "const char *", "params": { "text": "const char *", @@ -5412,7 +5536,7 @@ }, { "name": "TextReplace", - "description": "Replace text string (memory must be freed!)", + "description": "Replace text string (WARNING: memory must be freed!)", "returnType": "char *", "params": { "text": "char *", @@ -5422,7 +5546,7 @@ }, { "name": "TextInsert", - "description": "Insert text in a position (memory must be freed!)", + "description": "Insert text in a position (WARNING: memory must be freed!)", "returnType": "char *", "params": { "text": "const char *", @@ -5502,50 +5626,6 @@ } }, { - "name": "TextToUtf8", - "description": "Encode text codepoint into utf8 text (memory must be freed!)", - "returnType": "char *", - "params": { - "codepoints": "int *", - "length": "int" - } - }, - { - "name": "GetCodepoints", - "description": "Get all codepoints in a string, codepoints count returned by parameters", - "returnType": "int *", - "params": { - "text": "const char *", - "count": "int *" - } - }, - { - "name": "GetCodepointsCount", - "description": "Get total number of characters (codepoints) in a UTF8 encoded string", - "returnType": "int", - "params": { - "text": "const char *" - } - }, - { - "name": "GetNextCodepoint", - "description": "Get next codepoint in a UTF8 encoded string; 0x3f('?') is returned on failure", - "returnType": "int", - "params": { - "text": "const char *", - "bytesProcessed": "int *" - } - }, - { - "name": "CodepointToUtf8", - "description": "Encode codepoint into utf8 text (char array length returned as parameter)", - "returnType": "const char *", - "params": { - "codepoint": "int", - "byteLength": "int *" - } - }, - { "name": "DrawLine3D", "description": "Draw a line in 3D world space", "returnType": "void", @@ -5593,7 +5673,7 @@ "returnType": "void", "params": { "points": "Vector3 *", - "pointsCount": "int", + "pointCount": "int", "color": "Color" } }, @@ -5655,6 +5735,20 @@ } }, { + "name": "DrawCubeTextureRec", + "description": "Draw cube with a region of a texture", + "returnType": "void", + "params": { + "texture": "Texture2D", + "source": "Rectangle", + "position": "Vector3", + "width": "float", + "height": "float", + "length": "float", + "color": "Color" + } + }, + { "name": "DrawSphere", "description": "Draw sphere", "returnType": "void", @@ -5702,6 +5796,19 @@ } }, { + "name": "DrawCylinderEx", + "description": "Draw a cylinder with base at startPos and top at endPos", + "returnType": "void", + "params": { + "startPos": "Vector3", + "endPos": "Vector3", + "startRadius": "float", + "endRadius": "float", + "sides": "int", + "color": "Color" + } + }, + { "name": "DrawCylinderWires", "description": "Draw a cylinder/cone wires", "returnType": "void", @@ -5715,6 +5822,19 @@ } }, { + "name": "DrawCylinderWiresEx", + "description": "Draw a cylinder wires with base at startPos and top at endPos", + "returnType": "void", + "params": { + "startPos": "Vector3", + "endPos": "Vector3", + "startRadius": "float", + "endRadius": "float", + "sides": "int", + "color": "Color" + } + }, + { "name": "DrawPlane", "description": "Draw a plane XZ", "returnType": "void", @@ -5775,149 +5895,192 @@ } }, { - "name": "UploadMesh", - "description": "Upload mesh vertex data in GPU and provide VAO/VBO ids", - "returnType": "void", + "name": "GetModelBoundingBox", + "description": "Compute model bounding box limits (considers all meshes)", + "returnType": "BoundingBox", "params": { - "mesh": "Mesh *", - "dynamic": "bool" + "model": "Model" } }, { - "name": "UpdateMeshBuffer", - "description": "Update mesh vertex data in GPU for a specific buffer index", + "name": "DrawModel", + "description": "Draw a model (with texture if set)", "returnType": "void", "params": { - "mesh": "Mesh", - "index": "int", - "data": "void *", - "dataSize": "int", - "offset": "int" + "model": "Model", + "position": "Vector3", + "scale": "float", + "tint": "Color" } }, { - "name": "DrawMesh", - "description": "Draw a 3d mesh with material and transform", + "name": "DrawModelEx", + "description": "Draw a model with extended parameters", "returnType": "void", "params": { - "mesh": "Mesh", - "material": "Material", - "transform": "Matrix" + "model": "Model", + "position": "Vector3", + "rotationAxis": "Vector3", + "rotationAngle": "float", + "scale": "Vector3", + "tint": "Color" } }, { - "name": "DrawMeshInstanced", - "description": "Draw multiple mesh instances with material and different transforms", + "name": "DrawModelWires", + "description": "Draw a model wires (with texture if set)", "returnType": "void", "params": { - "mesh": "Mesh", - "material": "Material", - "transforms": "Matrix *", - "instances": "int" + "model": "Model", + "position": "Vector3", + "scale": "float", + "tint": "Color" } }, { - "name": "UnloadMesh", - "description": "Unload mesh data from CPU and GPU", + "name": "DrawModelWiresEx", + "description": "Draw a model wires (with texture if set) with extended parameters", "returnType": "void", "params": { - "mesh": "Mesh" + "model": "Model", + "position": "Vector3", + "rotationAxis": "Vector3", + "rotationAngle": "float", + "scale": "Vector3", + "tint": "Color" } }, { - "name": "ExportMesh", - "description": "Export mesh data to file, returns true on success", - "returnType": "bool", + "name": "DrawBoundingBox", + "description": "Draw bounding box (wires)", + "returnType": "void", "params": { - "mesh": "Mesh", - "fileName": "const char *" + "box": "BoundingBox", + "color": "Color" } }, { - "name": "LoadMaterials", - "description": "Load materials from model file", - "returnType": "Material *", + "name": "DrawBillboard", + "description": "Draw a billboard texture", + "returnType": "void", "params": { - "fileName": "const char *", - "materialCount": "int *" + "camera": "Camera", + "texture": "Texture2D", + "position": "Vector3", + "size": "float", + "tint": "Color" } }, { - "name": "LoadMaterialDefault", - "description": "Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)", - "returnType": "Material" + "name": "DrawBillboardRec", + "description": "Draw a billboard texture defined by source", + "returnType": "void", + "params": { + "camera": "Camera", + "texture": "Texture2D", + "source": "Rectangle", + "position": "Vector3", + "size": "Vector2", + "tint": "Color" + } }, { - "name": "UnloadMaterial", - "description": "Unload material from GPU memory (VRAM)", + "name": "DrawBillboardPro", + "description": "Draw a billboard texture defined by source and rotation", "returnType": "void", "params": { - "material": "Material" + "camera": "Camera", + "texture": "Texture2D", + "source": "Rectangle", + "position": "Vector3", + "up": "Vector3", + "size": "Vector2", + "origin": "Vector2", + "rotation": "float", + "tint": "Color" } }, { - "name": "SetMaterialTexture", - "description": "Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)", + "name": "UploadMesh", + "description": "Upload mesh vertex data in GPU and provide VAO/VBO ids", "returnType": "void", "params": { - "material": "Material *", - "mapType": "int", - "texture": "Texture2D" + "mesh": "Mesh *", + "dynamic": "bool" } }, { - "name": "SetModelMeshMaterial", - "description": "Set material for a mesh", + "name": "UpdateMeshBuffer", + "description": "Update mesh vertex data in GPU for a specific buffer index", "returnType": "void", "params": { - "model": "Model *", - "meshId": "int", - "materialId": "int" + "mesh": "Mesh", + "index": "int", + "data": "void *", + "dataSize": "int", + "offset": "int" } }, { - "name": "LoadModelAnimations", - "description": "Load model animations from file", - "returnType": "ModelAnimation *", + "name": "UnloadMesh", + "description": "Unload mesh data from CPU and GPU", + "returnType": "void", "params": { - "fileName": "const char *", - "animsCount": "int *" + "mesh": "Mesh" } }, { - "name": "UpdateModelAnimation", - "description": "Update model animation pose", + "name": "DrawMesh", + "description": "Draw a 3d mesh with material and transform", "returnType": "void", "params": { - "model": "Model", - "anim": "ModelAnimation", - "frame": "int" + "mesh": "Mesh", + "material": "Material", + "transform": "Matrix" } }, { - "name": "UnloadModelAnimation", - "description": "Unload animation data", + "name": "DrawMeshInstanced", + "description": "Draw multiple mesh instances with material and different transforms", "returnType": "void", "params": { - "anim": "ModelAnimation" + "mesh": "Mesh", + "material": "Material", + "transforms": "Matrix *", + "instances": "int" } }, { - "name": "UnloadModelAnimations", - "description": "Unload animation array data", + "name": "ExportMesh", + "description": "Export mesh data to file, returns true on success", + "returnType": "bool", + "params": { + "mesh": "Mesh", + "fileName": "const char *" + } + }, + { + "name": "GetMeshBoundingBox", + "description": "Compute mesh bounding box limits", + "returnType": "BoundingBox", + "params": { + "mesh": "Mesh" + } + }, + { + "name": "GenMeshTangents", + "description": "Compute mesh tangents", "returnType": "void", "params": { - "animations": "ModelAnimation*", - "count": "unsigned int" + "mesh": "Mesh *" } }, { - "name": "IsModelAnimationValid", - "description": "Check model animation skeleton match", - "returnType": "bool", + "name": "GenMeshBinormals", + "description": "Compute mesh binormals", + "returnType": "void", "params": { - "model": "Model", - "anim": "ModelAnimation" + "mesh": "Mesh *" } }, { @@ -5981,6 +6144,16 @@ } }, { + "name": "GenMeshCone", + "description": "Generate cone/pyramid mesh", + "returnType": "Mesh", + "params": { + "radius": "float", + "height": "float", + "slices": "int" + } + }, + { "name": "GenMeshTorus", "description": "Generate torus mesh", "returnType": "Mesh", @@ -6021,124 +6194,90 @@ } }, { - "name": "GetMeshBoundingBox", - "description": "Compute mesh bounding box limits", - "returnType": "BoundingBox", + "name": "LoadMaterials", + "description": "Load materials from model file", + "returnType": "Material *", "params": { - "mesh": "Mesh" + "fileName": "const char *", + "materialCount": "int *" } }, { - "name": "MeshTangents", - "description": "Compute mesh tangents", - "returnType": "void", - "params": { - "mesh": "Mesh *" - } + "name": "LoadMaterialDefault", + "description": "Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)", + "returnType": "Material" }, { - "name": "MeshBinormals", - "description": "Compute mesh binormals", + "name": "UnloadMaterial", + "description": "Unload material from GPU memory (VRAM)", "returnType": "void", "params": { - "mesh": "Mesh *" + "material": "Material" } }, { - "name": "DrawModel", - "description": "Draw a model (with texture if set)", + "name": "SetMaterialTexture", + "description": "Set texture for a material map type (MATERIAL_MAP_DIFFUSE, MATERIAL_MAP_SPECULAR...)", "returnType": "void", "params": { - "model": "Model", - "position": "Vector3", - "scale": "float", - "tint": "Color" + "material": "Material *", + "mapType": "int", + "texture": "Texture2D" } }, { - "name": "DrawModelEx", - "description": "Draw a model with extended parameters", + "name": "SetModelMeshMaterial", + "description": "Set material for a mesh", "returnType": "void", "params": { - "model": "Model", - "position": "Vector3", - "rotationAxis": "Vector3", - "rotationAngle": "float", - "scale": "Vector3", - "tint": "Color" + "model": "Model *", + "meshId": "int", + "materialId": "int" } }, { - "name": "DrawModelWires", - "description": "Draw a model wires (with texture if set)", - "returnType": "void", + "name": "LoadModelAnimations", + "description": "Load model animations from file", + "returnType": "ModelAnimation *", "params": { - "model": "Model", - "position": "Vector3", - "scale": "float", - "tint": "Color" + "fileName": "const char *", + "animCount": "unsigned int *" } }, { - "name": "DrawModelWiresEx", - "description": "Draw a model wires (with texture if set) with extended parameters", + "name": "UpdateModelAnimation", + "description": "Update model animation pose", "returnType": "void", "params": { "model": "Model", - "position": "Vector3", - "rotationAxis": "Vector3", - "rotationAngle": "float", - "scale": "Vector3", - "tint": "Color" - } - }, - { - "name": "DrawBoundingBox", - "description": "Draw bounding box (wires)", - "returnType": "void", - "params": { - "box": "BoundingBox", - "color": "Color" + "anim": "ModelAnimation", + "frame": "int" } }, { - "name": "DrawBillboard", - "description": "Draw a billboard texture", + "name": "UnloadModelAnimation", + "description": "Unload animation data", "returnType": "void", "params": { - "camera": "Camera", - "texture": "Texture2D", - "position": "Vector3", - "size": "float", - "tint": "Color" + "anim": "ModelAnimation" } }, { - "name": "DrawBillboardRec", - "description": "Draw a billboard texture defined by source", + "name": "UnloadModelAnimations", + "description": "Unload animation array data", "returnType": "void", "params": { - "camera": "Camera", - "texture": "Texture2D", - "source": "Rectangle", - "position": "Vector3", - "size": "Vector2", - "tint": "Color" + "animations": "ModelAnimation*", + "count": "unsigned int" } }, { - "name": "DrawBillboardPro", - "description": "Draw a billboard texture defined by source and rotation", - "returnType": "void", + "name": "IsModelAnimationValid", + "description": "Check model animation skeleton match", + "returnType": "bool", "params": { - "camera": "Camera", - "texture": "Texture2D", - "source": "Rectangle", - "position": "Vector3", - "size": "Vector2", - "origin": "Vector2", - "rotation": "float", - "tint": "Color" + "model": "Model", + "anim": "ModelAnimation" } }, { @@ -6296,7 +6435,7 @@ "params": { "sound": "Sound", "data": "const void *", - "samplesCount": "int" + "sampleCount": "int" } }, { @@ -6529,6 +6668,15 @@ } }, { + "name": "SeekMusicStream", + "description": "Seek music to a position (in seconds)", + "returnType": "void", + "params": { + "music": "Music", + "position": "float" + } + }, + { "name": "SetMusicVolume", "description": "Set volume for music (1.0 is max level)", "returnType": "void", @@ -6587,7 +6735,7 @@ "params": { "stream": "AudioStream", "data": "const void *", - "samplesCount": "int" + "frameCount": "int" } }, { |
