From 4eb3d8857f1a8377f2cfa6e804183512cde5973e Mon Sep 17 00:00:00 2001 From: lazaray <104470294+lazaray@users.noreply.github.com> Date: Wed, 4 May 2022 13:44:55 +0200 Subject: Reorder parser (#2462) * Reorder parser output * Regenerate parser output * Reorder parser line reading * Reorder parser data parsing * Reorder remaining parser stuff --- parser/raylib_api.lua | 4342 ++++++++++++++++++++++++------------------------- 1 file changed, 2171 insertions(+), 2171 deletions(-) (limited to 'parser/raylib_api.lua') diff --git a/parser/raylib_api.lua b/parser/raylib_api.lua index 8888fade..2cbd388f 100644 --- a/parser/raylib_api.lua +++ b/parser/raylib_api.lua @@ -1,2899 +1,2956 @@ return { - structs = { + defines = { { - name = "Vector2", - description = "Vector2, 2 components", - fields = { - { - type = "float", - name = "x", - description = "Vector x component" - }, - { - type = "float", - name = "y", - description = "Vector y component" - } - } + name = "RAYLIB_H", + type = "GUARD", + value = "", + description = "" }, { - name = "Vector3", - description = "Vector3, 3 components", - fields = { - { - type = "float", - name = "x", - description = "Vector x component" - }, - { - type = "float", - name = "y", - description = "Vector y component" - }, - { - type = "float", - name = "z", - description = "Vector z component" - } - } + name = "RAYLIB_VERSION", + type = "STRING", + value = "4.1-dev", + description = "" }, { - name = "Vector4", - description = "Vector4, 4 components", - fields = { - { - type = "float", - name = "x", - description = "Vector x component" - }, - { - type = "float", - name = "y", - description = "Vector y component" - }, - { - type = "float", - name = "z", - description = "Vector z component" - }, - { - type = "float", - name = "w", - description = "Vector w component" - } - } + name = "RLAPI", + type = "UNKNOWN", + value = "__declspec(dllexport)", + description = "We are building the library as a Win32 shared library (.dll)" }, { - name = "Matrix", - description = "Matrix, 4x4 components, column major, OpenGL style, right handed", - fields = { - { - type = "float", - name = "m0", - description = "Matrix first row (4 components)" - }, - { - type = "float", - name = "m4", - description = "Matrix first row (4 components)" - }, - { - type = "float", - name = "m8", - description = "Matrix first row (4 components)" - }, - { - type = "float", - name = "m12", - description = "Matrix first row (4 components)" - }, - { - type = "float", - name = "m1", - description = "Matrix second row (4 components)" - }, - { - type = "float", - name = "m5", - description = "Matrix second row (4 components)" - }, - { - type = "float", - name = "m9", - description = "Matrix second row (4 components)" - }, - { - type = "float", - name = "m13", - description = "Matrix second row (4 components)" - }, - { - type = "float", - name = "m2", - description = "Matrix third row (4 components)" - }, - { - type = "float", - name = "m6", - description = "Matrix third row (4 components)" - }, - { - type = "float", - name = "m10", - description = "Matrix third row (4 components)" - }, - { - type = "float", - name = "m14", - description = "Matrix third row (4 components)" - }, - { - type = "float", - name = "m3", - description = "Matrix fourth row (4 components)" - }, - { - type = "float", - name = "m7", - description = "Matrix fourth row (4 components)" - }, - { - type = "float", - name = "m11", - description = "Matrix fourth row (4 components)" - }, - { - type = "float", - name = "m15", - description = "Matrix fourth row (4 components)" - } - } + name = "PI", + type = "FLOAT", + value = 3.14159265358979323846, + description = "" }, { - name = "Color", - description = "Color, 4 components, R8G8B8A8 (32bit)", - fields = { - { - type = "unsigned char", - name = "r", - description = "Color red value" - }, - { - type = "unsigned char", - name = "g", - description = "Color green value" - }, - { - type = "unsigned char", - name = "b", - description = "Color blue value" - }, - { - type = "unsigned char", - name = "a", - description = "Color alpha value" - } - } + name = "DEG2RAD", + type = "UNKNOWN", + value = "(PI/180.0f)", + description = "" }, { - name = "Rectangle", - description = "Rectangle, 4 components", - fields = { - { - type = "float", - name = "x", - description = "Rectangle top-left corner position x" - }, - { - type = "float", - name = "y", - description = "Rectangle top-left corner position y" - }, - { - type = "float", - name = "width", - description = "Rectangle width" - }, - { - type = "float", - name = "height", - description = "Rectangle height" - } - } + name = "RAD2DEG", + type = "UNKNOWN", + value = "(180.0f/PI)", + description = "" }, { - name = "Image", - description = "Image, pixel data stored in CPU memory (RAM)", - fields = { - { - type = "void *", - name = "data", - description = "Image raw data" - }, - { - type = "int", - name = "width", - description = "Image base width" - }, - { - type = "int", - name = "height", - description = "Image base height" - }, - { - type = "int", - name = "mipmaps", - description = "Mipmap levels, 1 by default" - }, - { - type = "int", - name = "format", - description = "Data format (PixelFormat type)" - } - } + name = "RL_MALLOC(sz)", + type = "MACRO", + value = "malloc(sz)", + description = "" }, { - name = "Texture", - description = "Texture, tex data stored in GPU memory (VRAM)", - fields = { - { - type = "unsigned int", - name = "id", - description = "OpenGL texture id" - }, - { - type = "int", - name = "width", - description = "Texture base width" - }, - { - type = "int", - name = "height", - description = "Texture base height" - }, - { - type = "int", - name = "mipmaps", - description = "Mipmap levels, 1 by default" - }, - { - type = "int", - name = "format", - description = "Data format (PixelFormat type)" - } - } + name = "RL_CALLOC(n,sz)", + type = "MACRO", + value = "calloc(n,sz)", + description = "" }, { - name = "RenderTexture", - description = "RenderTexture, fbo for texture rendering", - fields = { - { - type = "unsigned int", - name = "id", - description = "OpenGL framebuffer object id" - }, - { - type = "Texture", - name = "texture", - description = "Color buffer attachment texture" - }, - { - type = "Texture", - name = "depth", - description = "Depth buffer attachment texture" - } - } + name = "RL_REALLOC(ptr,sz)", + type = "MACRO", + value = "realloc(ptr,sz)", + description = "" }, { - name = "NPatchInfo", - description = "NPatchInfo, n-patch layout info", - fields = { - { - type = "Rectangle", - name = "source", - description = "Texture source rectangle" - }, - { - type = "int", - name = "left", - description = "Left border offset" - }, - { - type = "int", - name = "top", - description = "Top border offset" - }, - { - type = "int", - name = "right", - description = "Right border offset" - }, - { - type = "int", - name = "bottom", - description = "Bottom border offset" - }, - { - type = "int", - name = "layout", - description = "Layout of the n-patch: 3x3, 1x3 or 3x1" - } - } + name = "RL_FREE(ptr)", + type = "MACRO", + value = "free(ptr)", + description = "" }, { - name = "GlyphInfo", - description = "GlyphInfo, font characters glyphs info", - fields = { - { - type = "int", - name = "value", - description = "Character value (Unicode)" - }, - { - type = "int", - name = "offsetX", - description = "Character offset X when drawing" - }, - { - type = "int", - name = "offsetY", - description = "Character offset Y when drawing" - }, - { - type = "int", - name = "advanceX", - description = "Character advance position X" - }, - { - type = "Image", - name = "image", - description = "Character image data" - } - } + name = "CLITERAL(type)", + type = "MACRO", + value = "type", + description = "" }, { - name = "Font", - description = "Font, font texture and GlyphInfo array data", - fields = { - { - type = "int", - name = "baseSize", - description = "Base size (default chars height)" - }, - { - type = "int", - name = "glyphCount", - description = "Number of glyph characters" - }, - { - type = "int", - name = "glyphPadding", - description = "Padding around the glyph characters" - }, - { - type = "Texture2D", - name = "texture", - description = "Texture atlas containing the glyphs" - }, - { - type = "Rectangle *", - name = "recs", - description = "Rectangles in texture for the glyphs" - }, - { - type = "GlyphInfo *", - name = "glyphs", - description = "Glyphs info data" - } - } + name = "RL_COLOR_TYPE", + type = "GUARD", + value = "", + description = "" }, { - name = "Camera3D", - description = "Camera, defines position/orientation in 3d space", - fields = { - { - type = "Vector3", - name = "position", - description = "Camera position" - }, - { - type = "Vector3", - name = "target", - description = "Camera target it looks-at" - }, - { - type = "Vector3", - name = "up", - description = "Camera up vector (rotation over its axis)" - }, - { - type = "float", - name = "fovy", - description = "Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic" - }, - { - type = "int", - name = "projection", - description = "Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC" - } - } + name = "RL_RECTANGLE_TYPE", + type = "GUARD", + value = "", + description = "" }, { - name = "Camera2D", - description = "Camera2D, defines position/orientation in 2d space", - fields = { - { - type = "Vector2", - name = "offset", - description = "Camera offset (displacement from target)" - }, - { - type = "Vector2", - name = "target", - description = "Camera target (rotation and zoom origin)" - }, - { - type = "float", - name = "rotation", - description = "Camera rotation in degrees" - }, - { - type = "float", - name = "zoom", - description = "Camera zoom (scaling), should be 1.0f by default" - } - } + name = "RL_VECTOR2_TYPE", + type = "GUARD", + value = "", + description = "" }, { - name = "Mesh", - description = "Mesh, vertex data and vao/vbo", - fields = { - { - type = "int", - name = "vertexCount", - description = "Number of vertices stored in arrays" - }, - { - type = "int", - name = "triangleCount", - description = "Number of triangles stored (indexed or not)" - }, - { - type = "float *", - name = "vertices", - description = "Vertex position (XYZ - 3 components per vertex) (shader-location = 0)" - }, - { - type = "float *", - name = "texcoords", - description = "Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)" - }, - { - type = "float *", - name = "texcoords2", - description = "Vertex texture second coordinates (UV - 2 components per vertex) (shader-location = 5)" - }, - { - type = "float *", - name = "normals", - description = "Vertex normals (XYZ - 3 components per vertex) (shader-location = 2)" - }, - { - type = "float *", - name = "tangents", - description = "Vertex tangents (XYZW - 4 components per vertex) (shader-location = 4)" - }, - { - type = "unsigned char *", - name = "colors", - description = "Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)" - }, - { - type = "unsigned short *", - name = "indices", - description = "Vertex indices (in case vertex data comes indexed)" - }, - { - type = "float *", - name = "animVertices", - description = "Animated vertex positions (after bones transformations)" - }, - { - type = "float *", - name = "animNormals", - description = "Animated normals (after bones transformations)" - }, - { - type = "unsigned char *", - name = "boneIds", - description = "Vertex bone ids, max 255 bone ids, up to 4 bones influence by vertex (skinning)" - }, - { - type = "float *", - name = "boneWeights", - description = "Vertex bone weight, up to 4 bones influence by vertex (skinning)" - }, - { - type = "unsigned int", - name = "vaoId", - description = "OpenGL Vertex Array Object id" - }, - { - type = "unsigned int *", - name = "vboId", - description = "OpenGL Vertex Buffer Objects id (default vertex data)" - } - } + name = "RL_VECTOR3_TYPE", + type = "GUARD", + value = "", + description = "" }, { - name = "Shader", - description = "Shader", - fields = { - { - type = "unsigned int", - name = "id", - description = "Shader program id" - }, - { - type = "int *", - name = "locs", - description = "Shader locations array (RL_MAX_SHADER_LOCATIONS)" - } - } + name = "RL_VECTOR4_TYPE", + type = "GUARD", + value = "", + description = "" }, { - name = "MaterialMap", - description = "MaterialMap", - fields = { - { - type = "Texture2D", - name = "texture", - description = "Material map texture" - }, - { - type = "Color", - name = "color", - description = "Material map color" - }, - { - type = "float", - name = "value", - description = "Material map value" - } - } + name = "RL_QUATERNION_TYPE", + type = "GUARD", + value = "", + description = "" }, { - name = "Material", - description = "Material, includes shader and maps", - fields = { - { - type = "Shader", - name = "shader", - description = "Material shader" - }, - { - type = "MaterialMap *", - name = "maps", - description = "Material maps array (MAX_MATERIAL_MAPS)" - }, - { - type = "float[4]", - name = "params", - description = "Material generic parameters (if required)" - } - } + name = "RL_MATRIX_TYPE", + type = "GUARD", + value = "", + description = "" }, { - name = "Transform", - description = "Transform, vectex transformation data", - fields = { - { - type = "Vector3", - name = "translation", - description = "Translation" - }, - { - type = "Quaternion", - name = "rotation", - description = "Rotation" - }, - { - type = "Vector3", - name = "scale", - description = "Scale" - } - } + name = "LIGHTGRAY", + type = "COLOR", + value = "CLITERAL(Color){ 200, 200, 200, 255 }", + description = "Light Gray" }, { - name = "BoneInfo", - description = "Bone, skeletal animation bone", - fields = { - { - type = "char[32]", - name = "name", - description = "Bone name" - }, - { - type = "int", - name = "parent", - description = "Bone parent" - } - } + name = "GRAY", + type = "COLOR", + value = "CLITERAL(Color){ 130, 130, 130, 255 }", + description = "Gray" }, { - name = "Model", - description = "Model, meshes, materials and animation data", - fields = { - { - type = "Matrix", - name = "transform", - description = "Local transform matrix" - }, - { - type = "int", - name = "meshCount", - description = "Number of meshes" - }, - { - type = "int", - name = "materialCount", - description = "Number of materials" - }, - { - type = "Mesh *", - name = "meshes", - description = "Meshes array" - }, - { - type = "Material *", - name = "materials", - description = "Materials array" - }, - { - type = "int *", - name = "meshMaterial", - description = "Mesh material number" - }, - { - type = "int", - name = "boneCount", - description = "Number of bones" - }, - { - type = "BoneInfo *", - name = "bones", - description = "Bones information (skeleton)" - }, - { - type = "Transform *", - name = "bindPose", - description = "Bones base transformation (pose)" - } - } + name = "DARKGRAY", + type = "COLOR", + value = "CLITERAL(Color){ 80, 80, 80, 255 }", + description = "Dark Gray" }, { - name = "ModelAnimation", - description = "ModelAnimation", - fields = { - { - type = "int", - name = "boneCount", - description = "Number of bones" - }, - { - type = "int", - name = "frameCount", - description = "Number of animation frames" - }, - { - type = "BoneInfo *", - name = "bones", - description = "Bones information (skeleton)" - }, - { - type = "Transform **", - name = "framePoses", - description = "Poses array by frame" - } - } + name = "YELLOW", + type = "COLOR", + value = "CLITERAL(Color){ 253, 249, 0, 255 }", + description = "Yellow" }, { - name = "Ray", - description = "Ray, ray for raycasting", - fields = { - { - type = "Vector3", - name = "position", - description = "Ray position (origin)" - }, - { - type = "Vector3", - name = "direction", - description = "Ray direction" - } - } + name = "GOLD", + type = "COLOR", + value = "CLITERAL(Color){ 255, 203, 0, 255 }", + description = "Gold" }, { - name = "RayCollision", - description = "RayCollision, ray hit information", - fields = { - { - type = "bool", - name = "hit", - description = "Did the ray hit something?" - }, + name = "ORANGE", + type = "COLOR", + value = "CLITERAL(Color){ 255, 161, 0, 255 }", + description = "Orange" + }, + { + name = "PINK", + type = "COLOR", + value = "CLITERAL(Color){ 255, 109, 194, 255 }", + description = "Pink" + }, + { + name = "RED", + type = "COLOR", + value = "CLITERAL(Color){ 230, 41, 55, 255 }", + description = "Red" + }, + { + name = "MAROON", + type = "COLOR", + value = "CLITERAL(Color){ 190, 33, 55, 255 }", + description = "Maroon" + }, + { + name = "GREEN", + type = "COLOR", + value = "CLITERAL(Color){ 0, 228, 48, 255 }", + description = "Green" + }, + { + name = "LIME", + type = "COLOR", + value = "CLITERAL(Color){ 0, 158, 47, 255 }", + description = "Lime" + }, + { + name = "DARKGREEN", + type = "COLOR", + value = "CLITERAL(Color){ 0, 117, 44, 255 }", + description = "Dark Green" + }, + { + name = "SKYBLUE", + type = "COLOR", + value = "CLITERAL(Color){ 102, 191, 255, 255 }", + description = "Sky Blue" + }, + { + name = "BLUE", + type = "COLOR", + value = "CLITERAL(Color){ 0, 121, 241, 255 }", + description = "Blue" + }, + { + name = "DARKBLUE", + type = "COLOR", + value = "CLITERAL(Color){ 0, 82, 172, 255 }", + description = "Dark Blue" + }, + { + name = "PURPLE", + type = "COLOR", + value = "CLITERAL(Color){ 200, 122, 255, 255 }", + description = "Purple" + }, + { + name = "VIOLET", + type = "COLOR", + value = "CLITERAL(Color){ 135, 60, 190, 255 }", + description = "Violet" + }, + { + name = "DARKPURPLE", + type = "COLOR", + value = "CLITERAL(Color){ 112, 31, 126, 255 }", + description = "Dark Purple" + }, + { + name = "BEIGE", + type = "COLOR", + value = "CLITERAL(Color){ 211, 176, 131, 255 }", + description = "Beige" + }, + { + name = "BROWN", + type = "COLOR", + value = "CLITERAL(Color){ 127, 106, 79, 255 }", + description = "Brown" + }, + { + name = "DARKBROWN", + type = "COLOR", + value = "CLITERAL(Color){ 76, 63, 47, 255 }", + description = "Dark Brown" + }, + { + name = "WHITE", + type = "COLOR", + value = "CLITERAL(Color){ 255, 255, 255, 255 }", + description = "White" + }, + { + name = "BLACK", + type = "COLOR", + value = "CLITERAL(Color){ 0, 0, 0, 255 }", + description = "Black" + }, + { + name = "BLANK", + type = "COLOR", + value = "CLITERAL(Color){ 0, 0, 0, 0 }", + description = "Blank (Transparent)" + }, + { + name = "MAGENTA", + type = "COLOR", + value = "CLITERAL(Color){ 255, 0, 255, 255 }", + description = "Magenta" + }, + { + name = "RAYWHITE", + type = "COLOR", + value = "CLITERAL(Color){ 245, 245, 245, 255 }", + description = "My own White (raylib logo)" + }, + { + name = "RL_BOOL_TYPE", + type = "GUARD", + value = "", + description = "" + }, + { + name = "MOUSE_LEFT_BUTTON", + type = "UNKNOWN", + value = "MOUSE_BUTTON_LEFT", + description = "" + }, + { + name = "MOUSE_RIGHT_BUTTON", + type = "UNKNOWN", + value = "MOUSE_BUTTON_RIGHT", + description = "" + }, + { + name = "MOUSE_MIDDLE_BUTTON", + type = "UNKNOWN", + value = "MOUSE_BUTTON_MIDDLE", + description = "" + }, + { + name = "MATERIAL_MAP_DIFFUSE", + type = "UNKNOWN", + value = "MATERIAL_MAP_ALBEDO", + description = "" + }, + { + name = "MATERIAL_MAP_SPECULAR", + type = "UNKNOWN", + value = "MATERIAL_MAP_METALNESS", + description = "" + }, + { + name = "SHADER_LOC_MAP_DIFFUSE", + type = "UNKNOWN", + value = "SHADER_LOC_MAP_ALBEDO", + description = "" + }, + { + name = "SHADER_LOC_MAP_SPECULAR", + type = "UNKNOWN", + value = "SHADER_LOC_MAP_METALNESS", + description = "" + } + }, + structs = { + { + name = "Vector2", + description = "Vector2, 2 components", + fields = { { type = "float", - name = "distance", - description = "Distance to nearest hit" - }, - { - type = "Vector3", - name = "point", - description = "Point of nearest hit" + name = "x", + description = "Vector x component" }, { - type = "Vector3", - name = "normal", - description = "Surface normal of hit" + type = "float", + name = "y", + description = "Vector y component" } } }, { - name = "BoundingBox", - description = "BoundingBox", + name = "Vector3", + description = "Vector3, 3 components", fields = { { - type = "Vector3", - name = "min", - description = "Minimum vertex box-corner" + type = "float", + name = "x", + description = "Vector x component" }, { - type = "Vector3", - name = "max", - description = "Maximum vertex box-corner" + type = "float", + name = "y", + description = "Vector y component" + }, + { + type = "float", + name = "z", + description = "Vector z component" } } }, { - name = "Wave", - description = "Wave, audio wave data", + name = "Vector4", + description = "Vector4, 4 components", fields = { { - type = "unsigned int", - name = "frameCount", - description = "Total number of frames (considering channels)" - }, - { - type = "unsigned int", - name = "sampleRate", - description = "Frequency (samples per second)" + type = "float", + name = "x", + description = "Vector x component" }, { - type = "unsigned int", - name = "sampleSize", - description = "Bit depth (bits per sample): 8, 16, 32 (24 not supported)" + type = "float", + name = "y", + description = "Vector y component" }, { - type = "unsigned int", - name = "channels", - description = "Number of channels (1-mono, 2-stereo, ...)" + type = "float", + name = "z", + description = "Vector z component" }, { - type = "void *", - name = "data", - description = "Buffer data pointer" + type = "float", + name = "w", + description = "Vector w component" } } }, { - name = "AudioStream", - description = "AudioStream, custom audio stream", + name = "Matrix", + description = "Matrix, 4x4 components, column major, OpenGL style, right handed", fields = { { - type = "rAudioBuffer *", - name = "buffer", - description = "Pointer to internal data used by the audio system" + type = "float", + name = "m0", + description = "Matrix first row (4 components)" }, { - type = "rAudioProcessor *", - name = "processor", - description = "Pointer to internal data processor, useful for audio effects" + type = "float", + name = "m4", + description = "Matrix first row (4 components)" }, { - type = "unsigned int", - name = "sampleRate", - description = "Frequency (samples per second)" + type = "float", + name = "m8", + description = "Matrix first row (4 components)" }, { - type = "unsigned int", - name = "sampleSize", - description = "Bit depth (bits per sample): 8, 16, 32 (24 not supported)" + type = "float", + name = "m12", + description = "Matrix first row (4 components)" }, { - type = "unsigned int", - name = "channels", - description = "Number of channels (1-mono, 2-stereo, ...)" - } - } - }, - { - name = "Sound", - description = "Sound", - fields = { + type = "float", + name = "m1", + description = "Matrix second row (4 components)" + }, { - type = "AudioStream", - name = "stream", - description = "Audio stream" + type = "float", + name = "m5", + description = "Matrix second row (4 components)" }, { - type = "unsigned int", - name = "frameCount", - description = "Total number of frames (considering channels)" - } - } - }, - { - name = "Music", - description = "Music, audio stream, anything longer than ~10 seconds should be streamed", - fields = { + type = "float", + name = "m9", + description = "Matrix second row (4 components)" + }, { - type = "AudioStream", - name = "stream", - description = "Audio stream" + type = "float", + name = "m13", + description = "Matrix second row (4 components)" }, { - type = "unsigned int", - name = "frameCount", - description = "Total number of frames (considering channels)" + type = "float", + name = "m2", + description = "Matrix third row (4 components)" }, { - type = "bool", - name = "looping", - description = "Music looping enable" + type = "float", + name = "m6", + description = "Matrix third row (4 components)" }, { - type = "int", - name = "ctxType", - description = "Type of music context (audio filetype)" + type = "float", + name = "m10", + description = "Matrix third row (4 components)" }, { - type = "void *", - name = "ctxData", - description = "Audio context data, depends on type" + type = "float", + name = "m14", + description = "Matrix third row (4 components)" + }, + { + type = "float", + name = "m3", + description = "Matrix fourth row (4 components)" + }, + { + type = "float", + name = "m7", + description = "Matrix fourth row (4 components)" + }, + { + type = "float", + name = "m11", + description = "Matrix fourth row (4 components)" + }, + { + type = "float", + name = "m15", + description = "Matrix fourth row (4 components)" } } }, { - name = "VrDeviceInfo", - description = "VrDeviceInfo, Head-Mounted-Display device parameters", + name = "Color", + description = "Color, 4 components, R8G8B8A8 (32bit)", fields = { { - type = "int", - name = "hResolution", - description = "Horizontal resolution in pixels" + type = "unsigned char", + name = "r", + description = "Color red value" }, { - type = "int", - name = "vResolution", - description = "Vertical resolution in pixels" + type = "unsigned char", + name = "g", + description = "Color green value" }, { - type = "float", - name = "hScreenSize", - description = "Horizontal size in meters" + type = "unsigned char", + name = "b", + description = "Color blue value" }, + { + type = "unsigned char", + name = "a", + description = "Color alpha value" + } + } + }, + { + name = "Rectangle", + description = "Rectangle, 4 components", + fields = { { type = "float", - name = "vScreenSize", - description = "Vertical size in meters" + name = "x", + description = "Rectangle top-left corner position x" }, { type = "float", - name = "vScreenCenter", - description = "Screen center in meters" + name = "y", + description = "Rectangle top-left corner position y" }, { type = "float", - name = "eyeToScreenDistance", - description = "Distance between eye and display in meters" + name = "width", + description = "Rectangle width" }, { type = "float", - name = "lensSeparationDistance", - description = "Lens separation distance in meters" + name = "height", + description = "Rectangle height" + } + } + }, + { + name = "Image", + description = "Image, pixel data stored in CPU memory (RAM)", + fields = { + { + type = "void *", + name = "data", + description = "Image raw data" }, { - type = "float", - name = "interpupillaryDistance", - description = "IPD (distance between pupils) in meters" + type = "int", + name = "width", + description = "Image base width" }, { - type = "float[4]", - name = "lensDistortionValues", - description = "Lens distortion constant parameters" + type = "int", + name = "height", + description = "Image base height" }, { - type = "float[4]", - name = "chromaAbCorrection", - description = "Chromatic aberration correction parameters" + type = "int", + name = "mipmaps", + description = "Mipmap levels, 1 by default" + }, + { + type = "int", + name = "format", + description = "Data format (PixelFormat type)" } } }, { - name = "VrStereoConfig", - description = "VrStereoConfig, VR stereo rendering configuration for simulator", + name = "Texture", + description = "Texture, tex data stored in GPU memory (VRAM)", fields = { { - type = "Matrix[2]", - name = "projection", - description = "VR projection matrices (per eye)" + type = "unsigned int", + name = "id", + description = "OpenGL texture id" }, { - type = "Matrix[2]", - name = "viewOffset", - description = "VR view offset matrices (per eye)" + type = "int", + name = "width", + description = "Texture base width" }, { - type = "float[2]", - name = "leftLensCenter", - description = "VR left lens center" + type = "int", + name = "height", + description = "Texture base height" }, { - type = "float[2]", - name = "rightLensCenter", - description = "VR right lens center" + type = "int", + name = "mipmaps", + description = "Mipmap levels, 1 by default" }, { - type = "float[2]", - name = "leftScreenCenter", - description = "VR left screen center" - }, + type = "int", + name = "format", + description = "Data format (PixelFormat type)" + } + } + }, + { + name = "RenderTexture", + description = "RenderTexture, fbo for texture rendering", + fields = { { - type = "float[2]", - name = "rightScreenCenter", - description = "VR right screen center" + type = "unsigned int", + name = "id", + description = "OpenGL framebuffer object id" }, { - type = "float[2]", - name = "scale", - description = "VR distortion scale" + type = "Texture", + name = "texture", + description = "Color buffer attachment texture" }, { - type = "float[2]", - name = "scaleIn", - description = "VR distortion scale in" + type = "Texture", + name = "depth", + description = "Depth buffer attachment texture" } } - } - }, - aliases = { - { - type = "Vector4", - name = "Quaternion", - description = "Quaternion, 4 components (Vector4 alias)" }, { - type = "Texture", - name = "Texture2D", - description = "Texture2D, same as Texture" - }, - { - type = "Texture", - name = "TextureCubemap", - description = "TextureCubemap, same as Texture" - }, - { - type = "RenderTexture", - name = "RenderTexture2D", - description = "RenderTexture2D, same as RenderTexture" - }, - { - type = "Camera3D", - name = "Camera", - description = "Camera type fallback, defaults to Camera3D" - } - }, - enums = { - { - name = "ConfigFlags", - description = "System/Window config flags", - values = { + name = "NPatchInfo", + description = "NPatchInfo, n-patch layout info", + fields = { { - name = "FLAG_VSYNC_HINT", - value = 64, - description = "Set to try enabling V-Sync on GPU" + type = "Rectangle", + name = "source", + description = "Texture source rectangle" }, { - name = "FLAG_FULLSCREEN_MODE", - value = 2, - description = "Set to run program in fullscreen" + type = "int", + name = "left", + description = "Left border offset" }, { - name = "FLAG_WINDOW_RESIZABLE", - value = 4, - description = "Set to allow resizable window" + type = "int", + name = "top", + description = "Top border offset" }, { - name = "FLAG_WINDOW_UNDECORATED", - value = 8, - description = "Set to disable window decoration (frame and buttons)" + type = "int", + name = "right", + description = "Right border offset" }, { - name = "FLAG_WINDOW_HIDDEN", - value = 128, - description = "Set to hide window" + type = "int", + name = "bottom", + description = "Bottom border offset" }, { - name = "FLAG_WINDOW_MINIMIZED", - value = 512, - description = "Set to minimize window (iconify)" + type = "int", + name = "layout", + description = "Layout of the n-patch: 3x3, 1x3 or 3x1" + } + } + }, + { + name = "GlyphInfo", + description = "GlyphInfo, font characters glyphs info", + fields = { + { + type = "int", + name = "value", + description = "Character value (Unicode)" }, { - name = "FLAG_WINDOW_MAXIMIZED", - value = 1024, - description = "Set to maximize window (expanded to monitor)" + type = "int", + name = "offsetX", + description = "Character offset X when drawing" }, { - name = "FLAG_WINDOW_UNFOCUSED", - value = 2048, - description = "Set to window non focused" + type = "int", + name = "offsetY", + description = "Character offset Y when drawing" }, { - name = "FLAG_WINDOW_TOPMOST", - value = 4096, - description = "Set to window always on top" + type = "int", + name = "advanceX", + description = "Character advance position X" }, { - name = "FLAG_WINDOW_ALWAYS_RUN", - value = 256, - description = "Set to allow windows running while minimized" + type = "Image", + name = "image", + description = "Character image data" + } + } + }, + { + name = "Font", + description = "Font, font texture and GlyphInfo array data", + fields = { + { + type = "int", + name = "baseSize", + description = "Base size (default chars height)" }, { - name = "FLAG_WINDOW_TRANSPARENT", - value = 16, - description = "Set to allow transparent framebuffer" + type = "int", + name = "glyphCount", + description = "Number of glyph characters" }, { - name = "FLAG_WINDOW_HIGHDPI", - value = 8192, - description = "Set to support HighDPI" + type = "int", + name = "glyphPadding", + description = "Padding around the glyph characters" }, { - name = "FLAG_MSAA_4X_HINT", - value = 32, - description = "Set to try enabling MSAA 4X" + type = "Texture2D", + name = "texture", + description = "Texture atlas containing the glyphs" }, { - name = "FLAG_INTERLACED_HINT", - value = 65536, - description = "Set to try enabling interlaced video format (for V3D)" + type = "Rectangle *", + name = "recs", + description = "Rectangles in texture for the glyphs" + }, + { + type = "GlyphInfo *", + name = "glyphs", + description = "Glyphs info data" } } }, { - name = "TraceLogLevel", - description = "Trace log level", - values = { + name = "Camera3D", + description = "Camera, defines position/orientation in 3d space", + fields = { { - name = "LOG_ALL", - value = 0, - description = "Display all logs" + type = "Vector3", + name = "position", + description = "Camera position" }, { - name = "LOG_TRACE", - value = 1, - description = "Trace logging, intended for internal use only" + type = "Vector3", + name = "target", + description = "Camera target it looks-at" }, { - name = "LOG_DEBUG", - value = 2, - description = "Debug logging, used for internal debugging, it should be disabled on release builds" + type = "Vector3", + name = "up", + description = "Camera up vector (rotation over its axis)" }, { - name = "LOG_INFO", - value = 3, - description = "Info logging, used for program execution info" + type = "float", + name = "fovy", + description = "Camera field-of-view apperture in Y (degrees) in perspective, used as near plane width in orthographic" }, { - name = "LOG_WARNING", - value = 4, - description = "Warning logging, used on recoverable failures" + type = "int", + name = "projection", + description = "Camera projection: CAMERA_PERSPECTIVE or CAMERA_ORTHOGRAPHIC" + } + } + }, + { + name = "Camera2D", + description = "Camera2D, defines position/orientation in 2d space", + fields = { + { + type = "Vector2", + name = "offset", + description = "Camera offset (displacement from target)" }, { - name = "LOG_ERROR", - value = 5, - description = "Error logging, used on unrecoverable failures" + type = "Vector2", + name = "target", + description = "Camera target (rotation and zoom origin)" }, { - name = "LOG_FATAL", - value = 6, - description = "Fatal logging, used to abort program: exit(EXIT_FAILURE)" + type = "float", + name = "rotation", + description = "Camera rotation in degrees" }, { - name = "LOG_NONE", - value = 7, - description = "Disable logging" + type = "float", + name = "zoom", + description = "Camera zoom (scaling), should be 1.0f by default" } } }, { - name = "KeyboardKey", - description = "Keyboard keys (US keyboard layout)", - values = { - { - name = "KEY_NULL", - value = 0, - description = "Key: NULL, used for no key pressed" - }, + name = "Mesh", + description = "Mesh, vertex data and vao/vbo", + fields = { { - name = "KEY_APOSTROPHE", - value = 39, - description = "Key: '" + type = "int", + name = "vertexCount", + description = "Number of vertices stored in arrays" }, { - name = "KEY_COMMA", - value = 44, - description = "Key: ," + type = "int", + name = "triangleCount", + description = "Number of triangles stored (indexed or not)" }, { - name = "KEY_MINUS", - value = 45, - description = "Key: -" + type = "float *", + name = "vertices", + description = "Vertex position (XYZ - 3 components per vertex) (shader-location = 0)" }, { - name = "KEY_PERIOD", - value = 46, - description = "Key: ." + type = "float *", + name = "texcoords", + description = "Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)" }, { - name = "KEY_SLASH", - value = 47, - description = "Key: /" + type = "float *", + name = "texcoords2", + description = "Vertex texture second coordinates (UV - 2 components per vertex) (shader-location = 5)" }, { - name = "KEY_ZERO", - value = 48, - description = "Key: 0" + type = "float *", + name = "normals", + description = "Vertex normals (XYZ - 3 components per vertex) (shader-location = 2)" }, { - name = "KEY_ONE", - value = 49, - description = "Key: 1" + type = "float *", + name = "tangents", + description = "Vertex tangents (XYZW - 4 components per vertex) (shader-location = 4)" }, { - name = "KEY_TWO", - value = 50, - description = "Key: 2" + type = "unsigned char *", + name = "colors", + description = "Vertex colors (RGBA - 4 components per vertex) (shader-location = 3)" }, { - name = "KEY_THREE", - value = 51, - description = "Key: 3" + type = "unsigned short *", + name = "indices", + description = "Vertex indices (in case vertex data comes indexed)" }, { - name = "KEY_FOUR", - value = 52, - description = "Key: 4" + type = "float *", + name = "animVertices", + description = "Animated vertex positions (after bones transformations)" }, { - name = "KEY_FIVE", - value = 53, - description = "Key: 5" + type = "float *", + name = "animNormals", + description = "Animated normals (after bones transformations)" }, { - name = "KEY_SIX", - value = 54, - description = "Key: 6" + type = "unsigned char *", + name = "boneIds", + description = "Vertex bone ids, max 255 bone ids, up to 4 bones influence by vertex (skinning)" }, { - name = "KEY_SEVEN", - value = 55, - description = "Key: 7" + type = "float *", + name = "boneWeights", + description = "Vertex bone weight, up to 4 bones influence by vertex (skinning)" }, { - name = "KEY_EIGHT", - value = 56, - description = "Key: 8" + type = "unsigned int", + name = "vaoId", + description = "OpenGL Vertex Array Object id" }, { - name = "KEY_NINE", - value = 57, - description = "Key: 9" - }, + type = "unsigned int *", + name = "vboId", + description = "OpenGL Vertex Buffer Objects id (default vertex data)" + } + } + }, + { + name = "Shader", + description = "Shader", + fields = { { - name = "KEY_SEMICOLON", - value = 59, - description = "Key: ;" + type = "unsigned int", + name = "id", + description = "Shader program id" }, { - name = "KEY_EQUAL", - value = 61, - description = "Key: =" - }, + type = "int *", + name = "locs", + description = "Shader locations array (RL_MAX_SHADER_LOCATIONS)" + } + } + }, + { + name = "MaterialMap", + description = "MaterialMap", + fields = { { - name = "KEY_A", - value = 65, - description = "Key: A | a" + type = "Texture2D", + name = "texture", + description = "Material map texture" }, { - name = "KEY_B", - value = 66, - description = "Key: B | b" + type = "Color", + name = "color", + description = "Material map color" }, { - name = "KEY_C", - value = 67, - description = "Key: C | c" - }, + type = "float", + name = "value", + description = "Material map value" + } + } + }, + { + name = "Material", + description = "Material, includes shader and maps", + fields = { { - name = "KEY_D", - value = 68, - description = "Key: D | d" + type = "Shader", + name = "shader", + description = "Material shader" }, { - name = "KEY_E", - value = 69, - description = "Key: E | e" + type = "MaterialMap *", + name = "maps", + description = "Material maps array (MAX_MATERIAL_MAPS)" }, { - name = "KEY_F", - value = 70, - description = "Key: F | f" - }, + type = "float[4]", + name = "params", + description = "Material generic parameters (if required)" + } + } + }, + { + name = "Transform", + description = "Transform, vectex transformation data", + fields = { { - name = "KEY_G", - value = 71, - description = "Key: G | g" + type = "Vector3", + name = "translation", + description = "Translation" }, { - name = "KEY_H", - value = 72, - description = "Key: H | h" + type = "Quaternion", + name = "rotation", + description = "Rotation" }, { - name = "KEY_I", - value = 73, - description = "Key: I | i" - }, + type = "Vector3", + name = "scale", + description = "Scale" + } + } + }, + { + name = "BoneInfo", + description = "Bone, skeletal animation bone", + fields = { { - name = "KEY_J", - value = 74, - description = "Key: J | j" + type = "char[32]", + name = "name", + description = "Bone name" }, { - name = "KEY_K", - value = 75, - description = "Key: K | k" - }, + type = "int", + name = "parent", + description = "Bone parent" + } + } + }, + { + name = "Model", + description = "Model, meshes, materials and animation data", + fields = { { - name = "KEY_L", - value = 76, - description = "Key: L | l" + type = "Matrix", + name = "transform", + description = "Local transform matrix" }, { - name = "KEY_M", - value = 77, - description = "Key: M | m" + type = "int", + name = "meshCount", + description = "Number of meshes" }, { - name = "KEY_N", - value = 78, - description = "Key: N | n" + type = "int", + name = "materialCount", + description = "Number of materials" }, { - name = "KEY_O", - value = 79, - description = "Key: O | o" + type = "Mesh *", + name = "meshes", + description = "Meshes array" }, { - name = "KEY_P", - value = 80, - description = "Key: P | p" + type = "Material *", + name = "materials", + description = "Materials array" }, { - name = "KEY_Q", - value = 81, - description = "Key: Q | q" + type = "int *", + name = "meshMaterial", + description = "Mesh material number" }, { - name = "KEY_R", - value = 82, - description = "Key: R | r" + type = "int", + name = "boneCount", + description = "Number of bones" }, { - name = "KEY_S", - value = 83, - description = "Key: S | s" + type = "BoneInfo *", + name = "bones", + description = "Bones information (skeleton)" }, { - name = "KEY_T", - value = 84, - description = "Key: T | t" - }, + type = "Transform *", + name = "bindPose", + description = "Bones base transformation (pose)" + } + } + }, + { + name = "ModelAnimation", + description = "ModelAnimation", + fields = { { - name = "KEY_U", - value = 85, - description = "Key: U | u" + type = "int", + name = "boneCount", + description = "Number of bones" }, { - name = "KEY_V", - value = 86, - description = "Key: V | v" + type = "int", + name = "frameCount", + description = "Number of animation frames" }, { - name = "KEY_W", - value = 87, - description = "Key: W | w" + type = "BoneInfo *", + name = "bones", + description = "Bones information (skeleton)" }, { - name = "KEY_X", - value = 88, - description = "Key: X | x" - }, + type = "Transform **", + name = "framePoses", + description = "Poses array by frame" + } + } + }, + { + name = "Ray", + description = "Ray, ray for raycasting", + fields = { { - name = "KEY_Y", - value = 89, - description = "Key: Y | y" + type = "Vector3", + name = "position", + description = "Ray position (origin)" }, { - name = "KEY_Z", - value = 90, - description = "Key: Z | z" - }, + type = "Vector3", + name = "direction", + description = "Ray direction" + } + } + }, + { + name = "RayCollision", + description = "RayCollision, ray hit information", + fields = { { - name = "KEY_LEFT_BRACKET", - value = 91, - description = "Key: [" + type = "bool", + name = "hit", + description = "Did the ray hit something?" }, { - name = "KEY_BACKSLASH", - value = 92, - description = "Key: '\\'" + type = "float", + name = "distance", + description = "Distance to nearest hit" }, { - name = "KEY_RIGHT_BRACKET", - value = 93, - description = "Key: ]" + type = "Vector3", + name = "point", + description = "Point of nearest hit" }, { - name = "KEY_GRAVE", - value = 96, - description = "Key: `" - }, + type = "Vector3", + name = "normal", + description = "Surface normal of hit" + } + } + }, + { + name = "BoundingBox", + description = "BoundingBox", + fields = { { - name = "KEY_SPACE", - value = 32, - description = "Key: Space" + type = "Vector3", + name = "min", + description = "Minimum vertex box-corner" }, { - name = "KEY_ESCAPE", - value = 256, - description = "Key: Esc" - }, + type = "Vector3", + name = "max", + description = "Maximum vertex box-corner" + } + } + }, + { + name = "Wave", + description = "Wave, audio wave data", + fields = { { - name = "KEY_ENTER", - value = 257, - description = "Key: Enter" + type = "unsigned int", + name = "frameCount", + description = "Total number of frames (considering channels)" }, { - name = "KEY_TAB", - value = 258, - description = "Key: Tab" + type = "unsigned int", + name = "sampleRate", + description = "Frequency (samples per second)" }, { - name = "KEY_BACKSPACE", - value = 259, - description = "Key: Backspace" + type = "unsigned int", + name = "sampleSize", + description = "Bit depth (bits per sample): 8, 16, 32 (24 not supported)" }, { - name = "KEY_INSERT", - value = 260, - description = "Key: Ins" + type = "unsigned int", + name = "channels", + description = "Number of channels (1-mono, 2-stereo, ...)" }, { - name = "KEY_DELETE", - value = 261, - description = "Key: Del" - }, + type = "void *", + name = "data", + description = "Buffer data pointer" + } + } + }, + { + name = "AudioStream", + description = "AudioStream, custom audio stream", + fields = { { - name = "KEY_RIGHT", - value = 262, - description = "Key: Cursor right" + type = "rAudioBuffer *", + name = "buffer", + description = "Pointer to internal data used by the audio system" }, { - name = "KEY_LEFT", - value = 263, - description = "Key: Cursor left" + type = "rAudioProcessor *", + name = "processor", + description = "Pointer to internal data processor, useful for audio effects" }, { - name = "KEY_DOWN", - value = 264, - description = "Key: Cursor down" + type = "unsigned int", + name = "sampleRate", + description = "Frequency (samples per second)" }, { - name = "KEY_UP", - value = 265, - description = "Key: Cursor up" + type = "unsigned int", + name = "sampleSize", + description = "Bit depth (bits per sample): 8, 16, 32 (24 not supported)" }, { - name = "KEY_PAGE_UP", - value = 266, - description = "Key: Page up" - }, + type = "unsigned int", + name = "channels", + description = "Number of channels (1-mono, 2-stereo, ...)" + } + } + }, + { + name = "Sound", + description = "Sound", + fields = { { - name = "KEY_PAGE_DOWN", - value = 267, - description = "Key: Page down" + type = "AudioStream", + name = "stream", + description = "Audio stream" }, { - name = "KEY_HOME", - value = 268, - description = "Key: Home" - }, + type = "unsigned int", + name = "frameCount", + description = "Total number of frames (considering channels)" + } + } + }, + { + name = "Music", + description = "Music, audio stream, anything longer than ~10 seconds should be streamed", + fields = { { - name = "KEY_END", - value = 269, - description = "Key: End" + type = "AudioStream", + name = "stream", + description = "Audio stream" }, { - name = "KEY_CAPS_LOCK", - value = 280, - description = "Key: Caps lock" + type = "unsigned int", + name = "frameCount", + description = "Total number of frames (considering channels)" }, { - name = "KEY_SCROLL_LOCK", - value = 281, - description = "Key: Scroll down" + type = "bool", + name = "looping", + description = "Music looping enable" }, { - name = "KEY_NUM_LOCK", - value = 282, - description = "Key: Num lock" + type = "int", + name = "ctxType", + description = "Type of music context (audio filetype)" }, { - name = "KEY_PRINT_SCREEN", - value = 283, - description = "Key: Print screen" - }, + type = "void *", + name = "ctxData", + description = "Audio context data, depends on type" + } + } + }, + { + name = "VrDeviceInfo", + description = "VrDeviceInfo, Head-Mounted-Display device parameters", + fields = { { - name = "KEY_PAUSE", - value = 284, - description = "Key: Pause" + type = "int", + name = "hResolution", + description = "Horizontal resolution in pixels" }, { - name = "KEY_F1", - value = 290, - description = "Key: F1" + type = "int", + name = "vResolution", + description = "Vertical resolution in pixels" }, { - name = "KEY_F2", - value = 291, - description = "Key: F2" + type = "float", + name = "hScreenSize", + description = "Horizontal size in meters" }, { - name = "KEY_F3", - value = 292, - description = "Key: F3" + type = "float", + name = "vScreenSize", + description = "Vertical size in meters" }, { - name = "KEY_F4", - value = 293, - description = "Key: F4" + type = "float", + name = "vScreenCenter", + description = "Screen center in meters" }, { - name = "KEY_F5", - value = 294, - description = "Key: F5" + type = "float", + name = "eyeToScreenDistance", + description = "Distance between eye and display in meters" }, { - name = "KEY_F6", - value = 295, - description = "Key: F6" - }, - { - name = "KEY_F7", - value = 296, - description = "Key: F7" + type = "float", + name = "lensSeparationDistance", + description = "Lens separation distance in meters" }, { - name = "KEY_F8", - value = 297, - description = "Key: F8" + type = "float", + name = "interpupillaryDistance", + description = "IPD (distance between pupils) in meters" }, { - name = "KEY_F9", - value = 298, - description = "Key: F9" + type = "float[4]", + name = "lensDistortionValues", + description = "Lens distortion constant parameters" }, { - name = "KEY_F10", - value = 299, - description = "Key: F10" - }, + type = "float[4]", + name = "chromaAbCorrection", + description = "Chromatic aberration correction parameters" + } + } + }, + { + name = "VrStereoConfig", + description = "VrStereoConfig, VR stereo rendering configuration for simulator", + fields = { { - name = "KEY_F11", - value = 300, - description = "Key: F11" + type = "Matrix[2]", + name = "projection", + description = "VR projection matrices (per eye)" }, { - name = "KEY_F12", - value = 301, - description = "Key: F12" + type = "Matrix[2]", + name = "viewOffset", + description = "VR view offset matrices (per eye)" }, { - name = "KEY_LEFT_SHIFT", - value = 340, - description = "Key: Shift left" + type = "float[2]", + name = "leftLensCenter", + description = "VR left lens center" }, { - name = "KEY_LEFT_CONTROL", - value = 341, - description = "Key: Control left" + type = "float[2]", + name = "rightLensCenter", + description = "VR right lens center" }, { - name = "KEY_LEFT_ALT", - value = 342, - description = "Key: Alt left" + type = "float[2]", + name = "leftScreenCenter", + description = "VR left screen center" }, { - name = "KEY_LEFT_SUPER", - value = 343, - description = "Key: Super left" + type = "float[2]", + name = "rightScreenCenter", + description = "VR right screen center" }, { - name = "KEY_RIGHT_SHIFT", - value = 344, - description = "Key: Shift right" + type = "float[2]", + name = "scale", + description = "VR distortion scale" }, { - name = "KEY_RIGHT_CONTROL", - value = 345, - description = "Key: Control right" - }, + type = "float[2]", + name = "scaleIn", + description = "VR distortion scale in" + } + } + } + }, + aliases = { + { + type = "Vector4", + name = "Quaternion", + description = "Quaternion, 4 components (Vector4 alias)" + }, + { + type = "Texture", + name = "Texture2D", + description = "Texture2D, same as Texture" + }, + { + type = "Texture", + name = "TextureCubemap", + description = "TextureCubemap, same as Texture" + }, + { + type = "RenderTexture", + name = "RenderTexture2D", + description = "RenderTexture2D, same as RenderTexture" + }, + { + type = "Camera3D", + name = "Camera", + description = "Camera type fallback, defaults to Camera3D" + } + }, + enums = { + { + name = "ConfigFlags", + description = "System/Window config flags", + values = { { - name = "KEY_RIGHT_ALT", - value = 346, - description = "Key: Alt right" + name = "FLAG_VSYNC_HINT", + value = 64, + description = "Set to try enabling V-Sync on GPU" }, { - name = "KEY_RIGHT_SUPER", - value = 347, - description = "Key: Super right" + name = "FLAG_FULLSCREEN_MODE", + value = 2, + description = "Set to run program in fullscreen" }, { - name = "KEY_KB_MENU", - value = 348, - description = "Key: KB menu" + name = "FLAG_WINDOW_RESIZABLE", + value = 4, + description = "Set to allow resizable window" }, { - name = "KEY_KP_0", - value = 320, - description = "Key: Keypad 0" + name = "FLAG_WINDOW_UNDECORATED", + value = 8, + description = "Set to disable window decoration (frame and buttons)" }, { - name = "KEY_KP_1", - value = 321, - description = "Key: Keypad 1" + name = "FLAG_WINDOW_HIDDEN", + value = 128, + description = "Set to hide window" }, { - name = "KEY_KP_2", - value = 322, - description = "Key: Keypad 2" + name = "FLAG_WINDOW_MINIMIZED", + value = 512, + description = "Set to minimize window (iconify)" }, { - name = "KEY_KP_3", - value = 323, - description = "Key: Keypad 3" + name = "FLAG_WINDOW_MAXIMIZED", + value = 1024, + description = "Set to maximize window (expanded to monitor)" }, { - name = "KEY_KP_4", - value = 324, - description = "Key: Keypad 4" + name = "FLAG_WINDOW_UNFOCUSED", + value = 2048, + description = "Set to window non focused" }, { - name = "KEY_KP_5", - value = 325, - description = "Key: Keypad 5" + name = "FLAG_WINDOW_TOPMOST", + value = 4096, + description = "Set to window always on top" }, { - name = "KEY_KP_6", - value = 326, - description = "Key: Keypad 6" + name = "FLAG_WINDOW_ALWAYS_RUN", + value = 256, + description = "Set to allow windows running while minimized" }, { - name = "KEY_KP_7", - value = 327, - description = "Key: Keypad 7" + name = "FLAG_WINDOW_TRANSPARENT", + value = 16, + description = "Set to allow transparent framebuffer" }, { - name = "KEY_KP_8", - value = 328, - description = "Key: Keypad 8" + name = "FLAG_WINDOW_HIGHDPI", + value = 8192, + description = "Set to support HighDPI" }, { - name = "KEY_KP_9", - value = 329, - description = "Key: Keypad 9" + name = "FLAG_MSAA_4X_HINT", + value = 32, + description = "Set to try enabling MSAA 4X" }, { - name = "KEY_KP_DECIMAL", - value = 330, - description = "Key: Keypad ." - }, + name = "FLAG_INTERLACED_HINT", + value = 65536, + description = "Set to try enabling interlaced video format (for V3D)" + } + } + }, + { + name = "TraceLogLevel", + description = "Trace log level", + values = { { - name = "KEY_KP_DIVIDE", - value = 331, - description = "Key: Keypad /" + name = "LOG_ALL", + value = 0, + description = "Display all logs" }, { - name = "KEY_KP_MULTIPLY", - value = 332, - description = "Key: Keypad *" + name = "LOG_TRACE", + value = 1, + description = "Trace logging, intended for internal use only" }, { - name = "KEY_KP_SUBTRACT", - value = 333, - description = "Key: Keypad -" + name = "LOG_DEBUG", + value = 2, + description = "Debug logging, used for internal debugging, it should be disabled on release builds" }, { - name = "KEY_KP_ADD", - value = 334, - description = "Key: Keypad +" + name = "LOG_INFO", + value = 3, + description = "Info logging, used for program execution info" }, { - name = "KEY_KP_ENTER", - value = 335, - description = "Key: Keypad Enter" + name = "LOG_WARNING", + value = 4, + description = "Warning logging, used on recoverable failures" }, { - name = "KEY_KP_EQUAL", - value = 336, - description = "Key: Keypad =" + name = "LOG_ERROR", + value = 5, + description = "Error logging, used on unrecoverable failures" }, { - name = "KEY_BACK", - value = 4, - description = "Key: Android back button" + name = "LOG_FATAL", + value = 6, + description = "Fatal logging, used to abort program: exit(EXIT_FAILURE)" }, { - name = "KEY_MENU", - value = 82, - description = "Key: Android menu button" - }, - { - name = "KEY_VOLUME_UP", - value = 24, - description = "Key: Android volume up button" - }, - { - name = "KEY_VOLUME_DOWN", - value = 25, - description = "Key: Android volume down button" + name = "LOG_NONE", + value = 7, + description = "Disable logging" } } }, { - name = "MouseButton", - description = "Mouse buttons", + name = "KeyboardKey", + description = "Keyboard keys (US keyboard layout)", values = { { - name = "MOUSE_BUTTON_LEFT", + name = "KEY_NULL", value = 0, - description = "Mouse button left" + description = "Key: NULL, used for no key pressed" }, { - name = "MOUSE_BUTTON_RIGHT", - value = 1, - description = "Mouse button right" + name = "KEY_APOSTROPHE", + value = 39, + description = "Key: '" }, { - name = "MOUSE_BUTTON_MIDDLE", - value = 2, - description = "Mouse button middle (pressed wheel)" + name = "KEY_COMMA", + value = 44, + description = "Key: ," }, { - name = "MOUSE_BUTTON_SIDE", - value = 3, - description = "Mouse button side (advanced mouse device)" + name = "KEY_MINUS", + value = 45, + description = "Key: -" }, { - name = "MOUSE_BUTTON_EXTRA", - value = 4, - description = "Mouse button extra (advanced mouse device)" + name = "KEY_PERIOD", + value = 46, + description = "Key: ." }, { - name = "MOUSE_BUTTON_FORWARD", - value = 5, - description = "Mouse button fordward (advanced mouse device)" + name = "KEY_SLASH", + value = 47, + description = "Key: /" }, { - name = "MOUSE_BUTTON_BACK", - value = 6, - description = "Mouse button back (advanced mouse device)" - } - } - }, - { - name = "MouseCursor", - description = "Mouse cursor", - values = { - { - name = "MOUSE_CURSOR_DEFAULT", - value = 0, - description = "Default pointer shape" + name = "KEY_ZERO", + value = 48, + description = "Key: 0" }, { - name = "MOUSE_CURSOR_ARROW", - value = 1, - description = "Arrow shape" + name = "KEY_ONE", + value = 49, + description = "Key: 1" }, { - name = "MOUSE_CURSOR_IBEAM", - value = 2, - description = "Text writing cursor shape" + name = "KEY_TWO", + value = 50, + description = "Key: 2" }, { - name = "MOUSE_CURSOR_CROSSHAIR", - value = 3, - description = "Cross shape" + name = "KEY_THREE", + value = 51, + description = "Key: 3" }, { - name = "MOUSE_CURSOR_POINTING_HAND", - value = 4, - description = "Pointing hand cursor" + name = "KEY_FOUR", + value = 52, + description = "Key: 4" }, { - name = "MOUSE_CURSOR_RESIZE_EW", - value = 5, - description = "Horizontal resize/move arrow shape" + name = "KEY_FIVE", + value = 53, + description = "Key: 5" }, { - name = "MOUSE_CURSOR_RESIZE_NS", - value = 6, - description = "Vertical resize/move arrow shape" + name = "KEY_SIX", + value = 54, + description = "Key: 6" }, { - name = "MOUSE_CURSOR_RESIZE_NWSE", - value = 7, - description = "Top-left to bottom-right diagonal resize/move arrow shape" + name = "KEY_SEVEN", + value = 55, + description = "Key: 7" }, { - name = "MOUSE_CURSOR_RESIZE_NESW", - value = 8, - description = "The top-right to bottom-left diagonal resize/move arrow shape" + name = "KEY_EIGHT", + value = 56, + description = "Key: 8" }, { - name = "MOUSE_CURSOR_RESIZE_ALL", - value = 9, - description = "The omni-directional resize/move cursor shape" + name = "KEY_NINE", + value = 57, + description = "Key: 9" }, { - name = "MOUSE_CURSOR_NOT_ALLOWED", - value = 10, - description = "The operation-not-allowed shape" - } - } - }, - { - name = "GamepadButton", - description = "Gamepad buttons", - values = { - { - name = "GAMEPAD_BUTTON_UNKNOWN", - value = 0, - description = "Unknown button, just for error checking" + name = "KEY_SEMICOLON", + value = 59, + description = "Key: ;" }, { - name = "GAMEPAD_BUTTON_LEFT_FACE_UP", - value = 1, - description = "Gamepad left DPAD up button" + name = "KEY_EQUAL", + value = 61, + description = "Key: =" }, { - name = "GAMEPAD_BUTTON_LEFT_FACE_RIGHT", - value = 2, - description = "Gamepad left DPAD right button" + name = "KEY_A", + value = 65, + description = "Key: A | a" }, { - name = "GAMEPAD_BUTTON_LEFT_FACE_DOWN", - value = 3, - description = "Gamepad left DPAD down button" + name = "KEY_B", + value = 66, + description = "Key: B | b" }, { - name = "GAMEPAD_BUTTON_LEFT_FACE_LEFT", - value = 4, - description = "Gamepad left DPAD left button" + name = "KEY_C", + value = 67, + description = "Key: C | c" }, { - name = "GAMEPAD_BUTTON_RIGHT_FACE_UP", - value = 5, - description = "Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)" + name = "KEY_D", + value = 68, + description = "Key: D | d" }, { - name = "GAMEPAD_BUTTON_RIGHT_FACE_RIGHT", - value = 6, - description = "Gamepad right button right (i.e. PS3: Square, Xbox: X)" + name = "KEY_E", + value = 69, + description = "Key: E | e" }, { - name = "GAMEPAD_BUTTON_RIGHT_FACE_DOWN", - value = 7, - description = "Gamepad right button down (i.e. PS3: Cross, Xbox: A)" + name = "KEY_F", + value = 70, + description = "Key: F | f" }, { - name = "GAMEPAD_BUTTON_RIGHT_FACE_LEFT", - value = 8, - description = "Gamepad right button left (i.e. PS3: Circle, Xbox: B)" + name = "KEY_G", + value = 71, + description = "Key: G | g" }, { - name = "GAMEPAD_BUTTON_LEFT_TRIGGER_1", - value = 9, - description = "Gamepad top/back trigger left (first), it could be a trailing button" + name = "KEY_H", + value = 72, + description = "Key: H | h" }, { - name = "GAMEPAD_BUTTON_LEFT_TRIGGER_2", - value = 10, - description = "Gamepad top/back trigger left (second), it could be a trailing button" + name = "KEY_I", + value = 73, + description = "Key: I | i" }, { - name = "GAMEPAD_BUTTON_RIGHT_TRIGGER_1", - value = 11, - description = "Gamepad top/back trigger right (one), it could be a trailing button" + name = "KEY_J", + value = 74, + description = "Key: J | j" }, { - name = "GAMEPAD_BUTTON_RIGHT_TRIGGER_2", - value = 12, - description = "Gamepad top/back trigger right (second), it could be a trailing button" + name = "KEY_K", + value = 75, + description = "Key: K | k" }, { - name = "GAMEPAD_BUTTON_MIDDLE_LEFT", - value = 13, - description = "Gamepad center buttons, left one (i.e. PS3: Select)" + name = "KEY_L", + value = 76, + description = "Key: L | l" }, { - name = "GAMEPAD_BUTTON_MIDDLE", - value = 14, - description = "Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)" + name = "KEY_M", + value = 77, + description = "Key: M | m" }, { - name = "GAMEPAD_BUTTON_MIDDLE_RIGHT", - value = 15, - description = "Gamepad center buttons, right one (i.e. PS3: Start)" + name = "KEY_N", + value = 78, + description = "Key: N | n" }, { - name = "GAMEPAD_BUTTON_LEFT_THUMB", - value = 16, - description = "Gamepad joystick pressed button left" + name = "KEY_O", + value = 79, + description = "Key: O | o" }, { - name = "GAMEPAD_BUTTON_RIGHT_THUMB", - value = 17, - description = "Gamepad joystick pressed button right" - } - } - }, - { - name = "GamepadAxis", - description = "Gamepad axis", - values = { + name = "KEY_P", + value = 80, + description = "Key: P | p" + }, { - name = "GAMEPAD_AXIS_LEFT_X", - value = 0, - description = "Gamepad left stick X axis" + name = "KEY_Q", + value = 81, + description = "Key: Q | q" }, { - name = "GAMEPAD_AXIS_LEFT_Y", - value = 1, - description = "Gamepad left stick Y axis" + name = "KEY_R", + value = 82, + description = "Key: R | r" }, { - name = "GAMEPAD_AXIS_RIGHT_X", - value = 2, - description = "Gamepad right stick X axis" + name = "KEY_S", + value = 83, + description = "Key: S | s" }, { - name = "GAMEPAD_AXIS_RIGHT_Y", - value = 3, - description = "Gamepad right stick Y axis" + name = "KEY_T", + value = 84, + description = "Key: T | t" }, { - name = "GAMEPAD_AXIS_LEFT_TRIGGER", - value = 4, - description = "Gamepad back trigger left, pressure level: [1..-1]" + name = "KEY_U", + value = 85, + description = "Key: U | u" }, { - name = "GAMEPAD_AXIS_RIGHT_TRIGGER", - value = 5, - description = "Gamepad back trigger right, pressure level: [1..-1]" - } - } - }, - { - name = "MaterialMapIndex", - description = "Material map index", - values = { - { - name = "MATERIAL_MAP_ALBEDO", - value = 0, - description = "Albedo material (same as: MATERIAL_MAP_DIFFUSE)" + name = "KEY_V", + value = 86, + description = "Key: V | v" }, { - name = "MATERIAL_MAP_METALNESS", - value = 1, - description = "Metalness material (same as: MATERIAL_MAP_SPECULAR)" + name = "KEY_W", + value = 87, + description = "Key: W | w" }, { - name = "MATERIAL_MAP_NORMAL", - value = 2, - description = "Normal material" + name = "KEY_X", + value = 88, + description = "Key: X | x" }, { - name = "MATERIAL_MAP_ROUGHNESS", - value = 3, - description = "Roughness material" + name = "KEY_Y", + value = 89, + description = "Key: Y | y" }, { - name = "MATERIAL_MAP_OCCLUSION", - value = 4, - description = "Ambient occlusion material" + name = "KEY_Z", + value = 90, + description = "Key: Z | z" }, { - name = "MATERIAL_MAP_EMISSION", - value = 5, - description = "Emission material" + name = "KEY_LEFT_BRACKET", + value = 91, + description = "Key: [" }, { - name = "MATERIAL_MAP_HEIGHT", - value = 6, - description = "Heightmap material" + name = "KEY_BACKSLASH", + value = 92, + description = "Key: '\\'" }, { - name = "MATERIAL_MAP_CUBEMAP", - value = 7, - description = "Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP)" + name = "KEY_RIGHT_BRACKET", + value = 93, + description = "Key: ]" }, { - name = "MATERIAL_MAP_IRRADIANCE", - value = 8, - description = "Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP)" + name = "KEY_GRAVE", + value = 96, + description = "Key: `" }, { - name = "MATERIAL_MAP_PREFILTER", - value = 9, - description = "Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP)" + name = "KEY_SPACE", + value = 32, + description = "Key: Space" }, { - name = "MATERIAL_MAP_BRDF", - value = 10, - description = "Brdf material" - } - } - }, - { - name = "ShaderLocationIndex", - description = "Shader location index", - values = { - { - name = "SHADER_LOC_VERTEX_POSITION", - value = 0, - description = "Shader location: vertex attribute: position" + name = "KEY_ESCAPE", + value = 256, + description = "Key: Esc" }, { - name = "SHADER_LOC_VERTEX_TEXCOORD01", - value = 1, - description = "Shader location: vertex attribute: texcoord01" + name = "KEY_ENTER", + value = 257, + description = "Key: Enter" }, { - name = "SHADER_LOC_VERTEX_TEXCOORD02", - value = 2, - description = "Shader location: vertex attribute: texcoord02" + name = "KEY_TAB", + value = 258, + description = "Key: Tab" }, { - name = "SHADER_LOC_VERTEX_NORMAL", - value = 3, - description = "Shader location: vertex attribute: normal" + name = "KEY_BACKSPACE", + value = 259, + description = "Key: Backspace" }, { - name = "SHADER_LOC_VERTEX_TANGENT", - value = 4, - description = "Shader location: vertex attribute: tangent" + name = "KEY_INSERT", + value = 260, + description = "Key: Ins" }, { - name = "SHADER_LOC_VERTEX_COLOR", - value = 5, - description = "Shader location: vertex attribute: color" + name = "KEY_DELETE", + value = 261, + description = "Key: Del" }, { - name = "SHADER_LOC_MATRIX_MVP", - value = 6, - description = "Shader location: matrix uniform: model-view-projection" + name = "KEY_RIGHT", + value = 262, + description = "Key: Cursor right" }, { - name = "SHADER_LOC_MATRIX_VIEW", - value = 7, - description = "Shader location: matrix uniform: view (camera transform)" + name = "KEY_LEFT", + value = 263, + description = "Key: Cursor left" }, { - name = "SHADER_LOC_MATRIX_PROJECTION", - value = 8, - description = "Shader location: matrix uniform: projection" + name = "KEY_DOWN", + value = 264, + description = "Key: Cursor down" }, { - name = "SHADER_LOC_MATRIX_MODEL", - value = 9, - description = "Shader location: matrix uniform: model (transform)" + name = "KEY_UP", + value = 265, + description = "Key: Cursor up" }, { - name = "SHADER_LOC_MATRIX_NORMAL", - value = 10, - description = "Shader location: matrix uniform: normal" + name = "KEY_PAGE_UP", + value = 266, + description = "Key: Page up" }, { - name = "SHADER_LOC_VECTOR_VIEW", - value = 11, - description = "Shader location: vector uniform: view" + name = "KEY_PAGE_DOWN", + value = 267, + description = "Key: Page down" }, { - name = "SHADER_LOC_COLOR_DIFFUSE", - value = 12, - description = "Shader location: vector uniform: diffuse color" + name = "KEY_HOME", + value = 268, + description = "Key: Home" }, { - name = "SHADER_LOC_COLOR_SPECULAR", - value = 13, - description = "Shader location: vector uniform: specular color" + name = "KEY_END", + value = 269, + description = "Key: End" }, { - name = "SHADER_LOC_COLOR_AMBIENT", - value = 14, - description = "Shader location: vector uniform: ambient color" + name = "KEY_CAPS_LOCK", + value = 280, + description = "Key: Caps lock" }, { - name = "SHADER_LOC_MAP_ALBEDO", - value = 15, - description = "Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE)" + name = "KEY_SCROLL_LOCK", + value = 281, + description = "Key: Scroll down" }, { - name = "SHADER_LOC_MAP_METALNESS", - value = 16, - description = "Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR)" + name = "KEY_NUM_LOCK", + value = 282, + description = "Key: Num lock" }, { - name = "SHADER_LOC_MAP_NORMAL", - value = 17, - description = "Shader location: sampler2d texture: normal" + name = "KEY_PRINT_SCREEN", + value = 283, + description = "Key: Print screen" }, { - name = "SHADER_LOC_MAP_ROUGHNESS", - value = 18, - description = "Shader location: sampler2d texture: roughness" + name = "KEY_PAUSE", + value = 284, + description = "Key: Pause" }, { - name = "SHADER_LOC_MAP_OCCLUSION", - value = 19, - description = "Shader location: sampler2d texture: occlusion" + name = "KEY_F1", + value = 290, + description = "Key: F1" }, { - name = "SHADER_LOC_MAP_EMISSION", - value = 20, - description = "Shader location: sampler2d texture: emission" + name = "KEY_F2", + value = 291, + description = "Key: F2" }, { - name = "SHADER_LOC_MAP_HEIGHT", - value = 21, - description = "Shader location: sampler2d texture: height" + name = "KEY_F3", + value = 292, + description = "Key: F3" }, { - name = "SHADER_LOC_MAP_CUBEMAP", - value = 22, - description = "Shader location: samplerCube texture: cubemap" + name = "KEY_F4", + value = 293, + description = "Key: F4" }, { - name = "SHADER_LOC_MAP_IRRADIANCE", - value = 23, - description = "Shader location: samplerCube texture: irradiance" + name = "KEY_F5", + value = 294, + description = "Key: F5" }, { - name = "SHADER_LOC_MAP_PREFILTER", - value = 24, - description = "Shader location: samplerCube texture: prefilter" + name = "KEY_F6", + value = 295, + description = "Key: F6" }, { - name = "SHADER_LOC_MAP_BRDF", - value = 25, - description = "Shader location: sampler2d texture: brdf" - } - } - }, - { - name = "ShaderUniformDataType", - description = "Shader uniform data type", - values = { + name = "KEY_F7", + value = 296, + description = "Key: F7" + }, { - name = "SHADER_UNIFORM_FLOAT", - value = 0, - description = "Shader uniform type: float" + name = "KEY_F8", + value = 297, + description = "Key: F8" }, { - name = "SHADER_UNIFORM_VEC2", - value = 1, - description = "Shader uniform type: vec2 (2 float)" + name = "KEY_F9", + value = 298, + description = "Key: F9" }, { - name = "SHADER_UNIFORM_VEC3", - value = 2, - description = "Shader uniform type: vec3 (3 float)" + name = "KEY_F10", + value = 299, + description = "Key: F10" }, { - name = "SHADER_UNIFORM_VEC4", - value = 3, - description = "Shader uniform type: vec4 (4 float)" + name = "KEY_F11", + value = 300, + description = "Key: F11" }, { - name = "SHADER_UNIFORM_INT", - value = 4, - description = "Shader uniform type: int" + name = "KEY_F12", + value = 301, + description = "Key: F12" }, { - name = "SHADER_UNIFORM_IVEC2", - value = 5, - description = "Shader uniform type: ivec2 (2 int)" + name = "KEY_LEFT_SHIFT", + value = 340, + description = "Key: Shift left" }, { - name = "SHADER_UNIFORM_IVEC3", - value = 6, - description = "Shader uniform type: ivec3 (3 int)" + name = "KEY_LEFT_CONTROL", + value = 341, + description = "Key: Control left" }, { - name = "SHADER_UNIFORM_IVEC4", - value = 7, - description = "Shader uniform type: ivec4 (4 int)" + name = "KEY_LEFT_ALT", + value = 342, + description = "Key: Alt left" }, { - name = "SHADER_UNIFORM_SAMPLER2D", - value = 8, - description = "Shader uniform type: sampler2d" - } - } - }, - { - name = "ShaderAttributeDataType", - description = "Shader attribute data types", - values = { + name = "KEY_LEFT_SUPER", + value = 343, + description = "Key: Super left" + }, { - name = "SHADER_ATTRIB_FLOAT", - value = 0, - description = "Shader attribute type: float" + name = "KEY_RIGHT_SHIFT", + value = 344, + description = "Key: Shift right" }, { - name = "SHADER_ATTRIB_VEC2", - value = 1, - description = "Shader attribute type: vec2 (2 float)" + name = "KEY_RIGHT_CONTROL", + value = 345, + description = "Key: Control right" }, { - name = "SHADER_ATTRIB_VEC3", - value = 2, - description = "Shader attribute type: vec3 (3 float)" + name = "KEY_RIGHT_ALT", + value = 346, + description = "Key: Alt right" }, { - name = "SHADER_ATTRIB_VEC4", - value = 3, - description = "Shader attribute type: vec4 (4 float)" - } - } - }, - { - name = "PixelFormat", - description = "Pixel formats", - values = { + name = "KEY_RIGHT_SUPER", + value = 347, + description = "Key: Super right" + }, { - name = "PIXELFORMAT_UNCOMPRESSED_GRAYSCALE", - value = 1, - description = "8 bit per pixel (no alpha)" + name = "KEY_KB_MENU", + value = 348, + description = "Key: KB menu" }, { - name = "PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA", - value = 2, - description = "8*2 bpp (2 channels)" + name = "KEY_KP_0", + value = 320, + description = "Key: Keypad 0" }, { - name = "PIXELFORMAT_UNCOMPRESSED_R5G6B5", - value = 3, - description = "16 bpp" + name = "KEY_KP_1", + value = 321, + description = "Key: Keypad 1" }, { - name = "PIXELFORMAT_UNCOMPRESSED_R8G8B8", - value = 4, - description = "24 bpp" + name = "KEY_KP_2", + value = 322, + description = "Key: Keypad 2" }, { - name = "PIXELFORMAT_UNCOMPRESSED_R5G5B5A1", - value = 5, - description = "16 bpp (1 bit alpha)" + name = "KEY_KP_3", + value = 323, + description = "Key: Keypad 3" }, { - name = "PIXELFORMAT_UNCOMPRESSED_R4G4B4A4", - value = 6, - description = "16 bpp (4 bit alpha)" + name = "KEY_KP_4", + value = 324, + description = "Key: Keypad 4" }, { - name = "PIXELFORMAT_UNCOMPRESSED_R8G8B8A8", - value = 7, - description = "32 bpp" + name = "KEY_KP_5", + value = 325, + description = "Key: Keypad 5" }, { - name = "PIXELFORMAT_UNCOMPRESSED_R32", - value = 8, - description = "32 bpp (1 channel - float)" + name = "KEY_KP_6", + value = 326, + description = "Key: Keypad 6" }, { - name = "PIXELFORMAT_UNCOMPRESSED_R32G32B32", - value = 9, - description = "32*3 bpp (3 channels - float)" + name = "KEY_KP_7", + value = 327, + description = "Key: Keypad 7" }, { - name = "PIXELFORMAT_UNCOMPRESSED_R32G32B32A32", - value = 10, - description = "32*4 bpp (4 channels - float)" + name = "KEY_KP_8", + value = 328, + description = "Key: Keypad 8" }, { - name = "PIXELFORMAT_COMPRESSED_DXT1_RGB", - value = 11, - description = "4 bpp (no alpha)" + name = "KEY_KP_9", + value = 329, + description = "Key: Keypad 9" }, { - name = "PIXELFORMAT_COMPRESSED_DXT1_RGBA", - value = 12, - description = "4 bpp (1 bit alpha)" + name = "KEY_KP_DECIMAL", + value = 330, + description = "Key: Keypad ." }, { - name = "PIXELFORMAT_COMPRESSED_DXT3_RGBA", - value = 13, - description = "8 bpp" + name = "KEY_KP_DIVIDE", + value = 331, + description = "Key: Keypad /" }, { - name = "PIXELFORMAT_COMPRESSED_DXT5_RGBA", - value = 14, - description = "8 bpp" + name = "KEY_KP_MULTIPLY", + value = 332, + description = "Key: Keypad *" }, { - name = "PIXELFORMAT_COMPRESSED_ETC1_RGB", - value = 15, - description = "4 bpp" + name = "KEY_KP_SUBTRACT", + value = 333, + description = "Key: Keypad -" }, { - name = "PIXELFORMAT_COMPRESSED_ETC2_RGB", - value = 16, - description = "4 bpp" + name = "KEY_KP_ADD", + value = 334, + description = "Key: Keypad +" }, { - name = "PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA", - value = 17, - description = "8 bpp" + name = "KEY_KP_ENTER", + value = 335, + description = "Key: Keypad Enter" }, { - name = "PIXELFORMAT_COMPRESSED_PVRT_RGB", - value = 18, - description = "4 bpp" + name = "KEY_KP_EQUAL", + value = 336, + description = "Key: Keypad =" }, { - name = "PIXELFORMAT_COMPRESSED_PVRT_RGBA", - value = 19, - description = "4 bpp" + name = "KEY_BACK", + value = 4, + description = "Key: Android back button" }, { - name = "PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA", - value = 20, - description = "8 bpp" + name = "KEY_MENU", + value = 82, + description = "Key: Android menu button" }, { - name = "PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA", - value = 21, - description = "2 bpp" + name = "KEY_VOLUME_UP", + value = 24, + description = "Key: Android volume up button" + }, + { + name = "KEY_VOLUME_DOWN", + value = 25, + description = "Key: Android volume down button" } } }, { - name = "TextureFilter", - description = "Texture parameters: filter mode", + name = "MouseButton", + description = "Mouse buttons", values = { { - name = "TEXTURE_FILTER_POINT", + name = "MOUSE_BUTTON_LEFT", value = 0, - description = "No filter, just pixel approximation" + description = "Mouse button left" }, { - name = "TEXTURE_FILTER_BILINEAR", + name = "MOUSE_BUTTON_RIGHT", value = 1, - description = "Linear filtering" + description = "Mouse button right" }, { - name = "TEXTURE_FILTER_TRILINEAR", + name = "MOUSE_BUTTON_MIDDLE", value = 2, - description = "Trilinear filtering (linear with mipmaps)" + description = "Mouse button middle (pressed wheel)" }, { - name = "TEXTURE_FILTER_ANISOTROPIC_4X", + name = "MOUSE_BUTTON_SIDE", value = 3, - description = "Anisotropic filtering 4x" + description = "Mouse button side (advanced mouse device)" }, { - name = "TEXTURE_FILTER_ANISOTROPIC_8X", + name = "MOUSE_BUTTON_EXTRA", value = 4, - description = "Anisotropic filtering 8x" + description = "Mouse button extra (advanced mouse device)" }, { - name = "TEXTURE_FILTER_ANISOTROPIC_16X", + name = "MOUSE_BUTTON_FORWARD", value = 5, - description = "Anisotropic filtering 16x" + description = "Mouse button fordward (advanced mouse device)" + }, + { + name = "MOUSE_BUTTON_BACK", + value = 6, + description = "Mouse button back (advanced mouse device)" } } }, { - name = "TextureWrap", - description = "Texture parameters: wrap mode", + name = "MouseCursor", + description = "Mouse cursor", values = { { - name = "TEXTURE_WRAP_REPEAT", + name = "MOUSE_CURSOR_DEFAULT", value = 0, - description = "Repeats texture in tiled mode" + description = "Default pointer shape" }, { - name = "TEXTURE_WRAP_CLAMP", + name = "MOUSE_CURSOR_ARROW", value = 1, - description = "Clamps texture to edge pixel in tiled mode" + description = "Arrow shape" }, { - name = "TEXTURE_WRAP_MIRROR_REPEAT", + name = "MOUSE_CURSOR_IBEAM", value = 2, - description = "Mirrors and repeats the texture in tiled mode" + description = "Text writing cursor shape" }, { - name = "TEXTURE_WRAP_MIRROR_CLAMP", + name = "MOUSE_CURSOR_CROSSHAIR", value = 3, - description = "Mirrors and clamps to border the texture in tiled mode" - } - } - }, - { - name = "CubemapLayout", - description = "Cubemap layouts", - values = { - { - name = "CUBEMAP_LAYOUT_AUTO_DETECT", - value = 0, - description = "Automatically detect layout type" + description = "Cross shape" }, { - name = "CUBEMAP_LAYOUT_LINE_VERTICAL", - value = 1, - description = "Layout is defined by a vertical line with faces" + name = "MOUSE_CURSOR_POINTING_HAND", + value = 4, + description = "Pointing hand cursor" }, { - name = "CUBEMAP_LAYOUT_LINE_HORIZONTAL", - value = 2, - description = "Layout is defined by an horizontal line with faces" + name = "MOUSE_CURSOR_RESIZE_EW", + value = 5, + description = "Horizontal resize/move arrow shape" }, { - name = "CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR", - value = 3, - description = "Layout is defined by a 3x4 cross with cubemap faces" + name = "MOUSE_CURSOR_RESIZE_NS", + value = 6, + description = "Vertical resize/move arrow shape" }, { - name = "CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE", - value = 4, - description = "Layout is defined by a 4x3 cross with cubemap faces" + name = "MOUSE_CURSOR_RESIZE_NWSE", + value = 7, + description = "Top-left to bottom-right diagonal resize/move arrow shape" }, { - name = "CUBEMAP_LAYOUT_PANORAMA", - value = 5, - description = "Layout is defined by a panorama image (equirectangular map)" - } - } - }, - { - name = "FontType", - description = "Font type, defines generation method", - values = { - { - name = "FONT_DEFAULT", - value = 0, - description = "Default font generation, anti-aliased" + name = "MOUSE_CURSOR_RESIZE_NESW", + value = 8, + description = "The top-right to bottom-left diagonal resize/move arrow shape" }, { - name = "FONT_BITMAP", - value = 1, - description = "Bitmap font generation, no anti-aliasing" + name = "MOUSE_CURSOR_RESIZE_ALL", + value = 9, + description = "The omni-directional resize/move cursor shape" }, { - name = "FONT_SDF", - value = 2, - description = "SDF font generation, requires external shader" + name = "MOUSE_CURSOR_NOT_ALLOWED", + value = 10, + description = "The operation-not-allowed shape" } } }, { - name = "BlendMode", - description = "Color blending modes (pre-defined)", + name = "GamepadButton", + description = "Gamepad buttons", values = { { - name = "BLEND_ALPHA", + name = "GAMEPAD_BUTTON_UNKNOWN", value = 0, - description = "Blend textures considering alpha (default)" + description = "Unknown button, just for error checking" }, { - name = "BLEND_ADDITIVE", + name = "GAMEPAD_BUTTON_LEFT_FACE_UP", value = 1, - description = "Blend textures adding colors" + description = "Gamepad left DPAD up button" }, { - name = "BLEND_MULTIPLIED", + name = "GAMEPAD_BUTTON_LEFT_FACE_RIGHT", value = 2, - description = "Blend textures multiplying colors" + description = "Gamepad left DPAD right button" }, { - name = "BLEND_ADD_COLORS", + name = "GAMEPAD_BUTTON_LEFT_FACE_DOWN", value = 3, - description = "Blend textures adding colors (alternative)" + description = "Gamepad left DPAD down button" }, { - name = "BLEND_SUBTRACT_COLORS", + name = "GAMEPAD_BUTTON_LEFT_FACE_LEFT", value = 4, - description = "Blend textures subtracting colors (alternative)" + description = "Gamepad left DPAD left button" }, { - name = "BLEND_ALPHA_PREMUL", + name = "GAMEPAD_BUTTON_RIGHT_FACE_UP", value = 5, - description = "Blend premultiplied textures considering alpha" + description = "Gamepad right button up (i.e. PS3: Triangle, Xbox: Y)" }, { - name = "BLEND_CUSTOM", + name = "GAMEPAD_BUTTON_RIGHT_FACE_RIGHT", value = 6, - description = "Blend textures using custom src/dst factors (use rlSetBlendMode())" - } - } - }, - { - name = "Gesture", - description = "Gesture", - values = { + description = "Gamepad right button right (i.e. PS3: Square, Xbox: X)" + }, { - name = "GESTURE_NONE", - value = 0, - description = "No gesture" + name = "GAMEPAD_BUTTON_RIGHT_FACE_DOWN", + value = 7, + description = "Gamepad right button down (i.e. PS3: Cross, Xbox: A)" }, { - name = "GESTURE_TAP", - value = 1, - description = "Tap gesture" + name = "GAMEPAD_BUTTON_RIGHT_FACE_LEFT", + value = 8, + description = "Gamepad right button left (i.e. PS3: Circle, Xbox: B)" }, { - name = "GESTURE_DOUBLETAP", - value = 2, - description = "Double tap gesture" + name = "GAMEPAD_BUTTON_LEFT_TRIGGER_1", + value = 9, + description = "Gamepad top/back trigger left (first), it could be a trailing button" }, { - name = "GESTURE_HOLD", - value = 4, - description = "Hold gesture" + name = "GAMEPAD_BUTTON_LEFT_TRIGGER_2", + value = 10, + description = "Gamepad top/back trigger left (second), it could be a trailing button" }, { - name = "GESTURE_DRAG", - value = 8, - description = "Drag gesture" + name = "GAMEPAD_BUTTON_RIGHT_TRIGGER_1", + value = 11, + description = "Gamepad top/back trigger right (one), it could be a trailing button" }, { - name = "GESTURE_SWIPE_RIGHT", - value = 16, - description = "Swipe right gesture" + name = "GAMEPAD_BUTTON_RIGHT_TRIGGER_2", + value = 12, + description = "Gamepad top/back trigger right (second), it could be a trailing button" }, { - name = "GESTURE_SWIPE_LEFT", - value = 32, - description = "Swipe left gesture" + name = "GAMEPAD_BUTTON_MIDDLE_LEFT", + value = 13, + description = "Gamepad center buttons, left one (i.e. PS3: Select)" }, { - name = "GESTURE_SWIPE_UP", - value = 64, - description = "Swipe up gesture" + name = "GAMEPAD_BUTTON_MIDDLE", + value = 14, + description = "Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX)" }, { - name = "GESTURE_SWIPE_DOWN", - value = 128, - description = "Swipe down gesture" + name = "GAMEPAD_BUTTON_MIDDLE_RIGHT", + value = 15, + description = "Gamepad center buttons, right one (i.e. PS3: Start)" }, { - name = "GESTURE_PINCH_IN", - value = 256, - description = "Pinch in gesture" + name = "GAMEPAD_BUTTON_LEFT_THUMB", + value = 16, + description = "Gamepad joystick pressed button left" }, { - name = "GESTURE_PINCH_OUT", - value = 512, - description = "Pinch out gesture" + name = "GAMEPAD_BUTTON_RIGHT_THUMB", + value = 17, + description = "Gamepad joystick pressed button right" } } }, { - name = "CameraMode", - description = "Camera system modes", + name = "GamepadAxis", + description = "Gamepad axis", values = { { - name = "CAMERA_CUSTOM", + name = "GAMEPAD_AXIS_LEFT_X", value = 0, - description = "Custom camera" + description = "Gamepad left stick X axis" }, { - name = "CAMERA_FREE", + name = "GAMEPAD_AXIS_LEFT_Y", value = 1, - description = "Free camera" + description = "Gamepad left stick Y axis" }, { - name = "CAMERA_ORBITAL", + name = "GAMEPAD_AXIS_RIGHT_X", value = 2, - description = "Orbital camera" + description = "Gamepad right stick X axis" }, { - name = "CAMERA_FIRST_PERSON", + name = "GAMEPAD_AXIS_RIGHT_Y", value = 3, - description = "First person camera" + description = "Gamepad right stick Y axis" }, { - name = "CAMERA_THIRD_PERSON", + name = "GAMEPAD_AXIS_LEFT_TRIGGER", value = 4, - description = "Third person camera" - } - } - }, - { - name = "CameraProjection", - description = "Camera projection", - values = { - { - name = "CAMERA_PERSPECTIVE", - value = 0, - description = "Perspective projection" + description = "Gamepad back trigger left, pressure level: [1..-1]" }, { - name = "CAMERA_ORTHOGRAPHIC", - value = 1, - description = "Orthographic projection" + name = "GAMEPAD_AXIS_RIGHT_TRIGGER", + value = 5, + description = "Gamepad back trigger right, pressure level: [1..-1]" } } }, { - name = "NPatchLayout", - description = "N-patch layout", + name = "MaterialMapIndex", + description = "Material map index", values = { { - name = "NPATCH_NINE_PATCH", + name = "MATERIAL_MAP_ALBEDO", value = 0, - description = "Npatch layout: 3x3 tiles" + description = "Albedo material (same as: MATERIAL_MAP_DIFFUSE)" }, { - name = "NPATCH_THREE_PATCH_VERTICAL", + name = "MATERIAL_MAP_METALNESS", value = 1, - description = "Npatch layout: 1x3 tiles" + description = "Metalness material (same as: MATERIAL_MAP_SPECULAR)" }, { - name = "NPATCH_THREE_PATCH_HORIZONTAL", + name = "MATERIAL_MAP_NORMAL", value = 2, - description = "Npatch layout: 3x1 tiles" + description = "Normal material" + }, + { + name = "MATERIAL_MAP_ROUGHNESS", + value = 3, + description = "Roughness material" + }, + { + name = "MATERIAL_MAP_OCCLUSION", + value = 4, + description = "Ambient occlusion material" + }, + { + name = "MATERIAL_MAP_EMISSION", + value = 5, + description = "Emission material" + }, + { + name = "MATERIAL_MAP_HEIGHT", + value = 6, + description = "Heightmap material" + }, + { + name = "MATERIAL_MAP_CUBEMAP", + value = 7, + description = "Cubemap material (NOTE: Uses GL_TEXTURE_CUBE_MAP)" + }, + { + name = "MATERIAL_MAP_IRRADIANCE", + value = 8, + description = "Irradiance material (NOTE: Uses GL_TEXTURE_CUBE_MAP)" + }, + { + name = "MATERIAL_MAP_PREFILTER", + value = 9, + description = "Prefilter material (NOTE: Uses GL_TEXTURE_CUBE_MAP)" + }, + { + name = "MATERIAL_MAP_BRDF", + value = 10, + description = "Brdf material" } } - } - }, - defines = { - { - name = "RAYLIB_H", - type = "GUARD", - value = "", - description = "" - }, - { - name = "RAYLIB_VERSION", - type = "STRING", - value = "4.1-dev", - description = "" - }, - { - name = "RLAPI", - type = "UNKNOWN", - value = "__declspec(dllexport)", - description = "We are building the library as a Win32 shared library (.dll)" - }, - { - name = "PI", - type = "FLOAT", - value = 3.14159265358979323846, - description = "" - }, - { - name = "DEG2RAD", - type = "UNKNOWN", - value = "(PI/180.0f)", - description = "" }, { - name = "RAD2DEG", - type = "UNKNOWN", - value = "(180.0f/PI)", - description = "" - }, - { - name = "RL_MALLOC(sz)", - type = "MACRO", - value = "malloc(sz)", - description = "" - }, - { - name = "RL_CALLOC(n,sz)", - type = "MACRO", - value = "calloc(n,sz)", - description = "" - }, - { - name = "RL_REALLOC(ptr,sz)", - type = "MACRO", - value = "realloc(ptr,sz)", - description = "" - }, - { - name = "RL_FREE(ptr)", - type = "MACRO", - value = "free(ptr)", - description = "" - }, - { - name = "CLITERAL(type)", - type = "MACRO", - value = "type", - description = "" - }, - { - name = "RL_COLOR_TYPE", - type = "GUARD", - value = "", - description = "" - }, - { - name = "RL_RECTANGLE_TYPE", - type = "GUARD", - value = "", - description = "" - }, - { - name = "RL_VECTOR2_TYPE", - type = "GUARD", - value = "", - description = "" - }, - { - name = "RL_VECTOR3_TYPE", - type = "GUARD", - value = "", - description = "" - }, - { - name = "RL_VECTOR4_TYPE", - type = "GUARD", - value = "", - description = "" - }, - { - name = "RL_QUATERNION_TYPE", - type = "GUARD", - value = "", - description = "" - }, - { - name = "RL_MATRIX_TYPE", - type = "GUARD", - value = "", - description = "" - }, - { - name = "LIGHTGRAY", - type = "COLOR", - value = "CLITERAL(Color){ 200, 200, 200, 255 }", - description = "Light Gray" - }, - { - name = "GRAY", - type = "COLOR", - value = "CLITERAL(Color){ 130, 130, 130, 255 }", - description = "Gray" - }, - { - name = "DARKGRAY", - type = "COLOR", - value = "CLITERAL(Color){ 80, 80, 80, 255 }", - description = "Dark Gray" - }, - { - name = "YELLOW", - type = "COLOR", - value = "CLITERAL(Color){ 253, 249, 0, 255 }", - description = "Yellow" - }, - { - name = "GOLD", - type = "COLOR", - value = "CLITERAL(Color){ 255, 203, 0, 255 }", - description = "Gold" - }, - { - name = "ORANGE", - type = "COLOR", - value = "CLITERAL(Color){ 255, 161, 0, 255 }", - description = "Orange" - }, - { - name = "PINK", - type = "COLOR", - value = "CLITERAL(Color){ 255, 109, 194, 255 }", - description = "Pink" - }, - { - name = "RED", - type = "COLOR", - value = "CLITERAL(Color){ 230, 41, 55, 255 }", - description = "Red" - }, - { - name = "MAROON", - type = "COLOR", - value = "CLITERAL(Color){ 190, 33, 55, 255 }", - description = "Maroon" - }, - { - name = "GREEN", - type = "COLOR", - value = "CLITERAL(Color){ 0, 228, 48, 255 }", - description = "Green" - }, - { - name = "LIME", - type = "COLOR", - value = "CLITERAL(Color){ 0, 158, 47, 255 }", - description = "Lime" - }, - { - name = "DARKGREEN", - type = "COLOR", - value = "CLITERAL(Color){ 0, 117, 44, 255 }", - description = "Dark Green" - }, - { - name = "SKYBLUE", - type = "COLOR", - value = "CLITERAL(Color){ 102, 191, 255, 255 }", - description = "Sky Blue" - }, - { - name = "BLUE", - type = "COLOR", - value = "CLITERAL(Color){ 0, 121, 241, 255 }", - description = "Blue" - }, - { - name = "DARKBLUE", - type = "COLOR", - value = "CLITERAL(Color){ 0, 82, 172, 255 }", - description = "Dark Blue" - }, - { - name = "PURPLE", - type = "COLOR", - value = "CLITERAL(Color){ 200, 122, 255, 255 }", - description = "Purple" + name = "ShaderLocationIndex", + description = "Shader location index", + values = { + { + name = "SHADER_LOC_VERTEX_POSITION", + value = 0, + description = "Shader location: vertex attribute: position" + }, + { + name = "SHADER_LOC_VERTEX_TEXCOORD01", + value = 1, + description = "Shader location: vertex attribute: texcoord01" + }, + { + name = "SHADER_LOC_VERTEX_TEXCOORD02", + value = 2, + description = "Shader location: vertex attribute: texcoord02" + }, + { + name = "SHADER_LOC_VERTEX_NORMAL", + value = 3, + description = "Shader location: vertex attribute: normal" + }, + { + name = "SHADER_LOC_VERTEX_TANGENT", + value = 4, + description = "Shader location: vertex attribute: tangent" + }, + { + name = "SHADER_LOC_VERTEX_COLOR", + value = 5, + description = "Shader location: vertex attribute: color" + }, + { + name = "SHADER_LOC_MATRIX_MVP", + value = 6, + description = "Shader location: matrix uniform: model-view-projection" + }, + { + name = "SHADER_LOC_MATRIX_VIEW", + value = 7, + description = "Shader location: matrix uniform: view (camera transform)" + }, + { + name = "SHADER_LOC_MATRIX_PROJECTION", + value = 8, + description = "Shader location: matrix uniform: projection" + }, + { + name = "SHADER_LOC_MATRIX_MODEL", + value = 9, + description = "Shader location: matrix uniform: model (transform)" + }, + { + name = "SHADER_LOC_MATRIX_NORMAL", + value = 10, + description = "Shader location: matrix uniform: normal" + }, + { + name = "SHADER_LOC_VECTOR_VIEW", + value = 11, + description = "Shader location: vector uniform: view" + }, + { + name = "SHADER_LOC_COLOR_DIFFUSE", + value = 12, + description = "Shader location: vector uniform: diffuse color" + }, + { + name = "SHADER_LOC_COLOR_SPECULAR", + value = 13, + description = "Shader location: vector uniform: specular color" + }, + { + name = "SHADER_LOC_COLOR_AMBIENT", + value = 14, + description = "Shader location: vector uniform: ambient color" + }, + { + name = "SHADER_LOC_MAP_ALBEDO", + value = 15, + description = "Shader location: sampler2d texture: albedo (same as: SHADER_LOC_MAP_DIFFUSE)" + }, + { + name = "SHADER_LOC_MAP_METALNESS", + value = 16, + description = "Shader location: sampler2d texture: metalness (same as: SHADER_LOC_MAP_SPECULAR)" + }, + { + name = "SHADER_LOC_MAP_NORMAL", + value = 17, + description = "Shader location: sampler2d texture: normal" + }, + { + name = "SHADER_LOC_MAP_ROUGHNESS", + value = 18, + description = "Shader location: sampler2d texture: roughness" + }, + { + name = "SHADER_LOC_MAP_OCCLUSION", + value = 19, + description = "Shader location: sampler2d texture: occlusion" + }, + { + name = "SHADER_LOC_MAP_EMISSION", + value = 20, + description = "Shader location: sampler2d texture: emission" + }, + { + name = "SHADER_LOC_MAP_HEIGHT", + value = 21, + description = "Shader location: sampler2d texture: height" + }, + { + name = "SHADER_LOC_MAP_CUBEMAP", + value = 22, + description = "Shader location: samplerCube texture: cubemap" + }, + { + name = "SHADER_LOC_MAP_IRRADIANCE", + value = 23, + description = "Shader location: samplerCube texture: irradiance" + }, + { + name = "SHADER_LOC_MAP_PREFILTER", + value = 24, + description = "Shader location: samplerCube texture: prefilter" + }, + { + name = "SHADER_LOC_MAP_BRDF", + value = 25, + description = "Shader location: sampler2d texture: brdf" + } + } }, { - name = "VIOLET", - type = "COLOR", - value = "CLITERAL(Color){ 135, 60, 190, 255 }", - description = "Violet" + name = "ShaderUniformDataType", + description = "Shader uniform data type", + values = { + { + name = "SHADER_UNIFORM_FLOAT", + value = 0, + description = "Shader uniform type: float" + }, + { + name = "SHADER_UNIFORM_VEC2", + value = 1, + description = "Shader uniform type: vec2 (2 float)" + }, + { + name = "SHADER_UNIFORM_VEC3", + value = 2, + description = "Shader uniform type: vec3 (3 float)" + }, + { + name = "SHADER_UNIFORM_VEC4", + value = 3, + description = "Shader uniform type: vec4 (4 float)" + }, + { + name = "SHADER_UNIFORM_INT", + value = 4, + description = "Shader uniform type: int" + }, + { + name = "SHADER_UNIFORM_IVEC2", + value = 5, + description = "Shader uniform type: ivec2 (2 int)" + }, + { + name = "SHADER_UNIFORM_IVEC3", + value = 6, + description = "Shader uniform type: ivec3 (3 int)" + }, + { + name = "SHADER_UNIFORM_IVEC4", + value = 7, + description = "Shader uniform type: ivec4 (4 int)" + }, + { + name = "SHADER_UNIFORM_SAMPLER2D", + value = 8, + description = "Shader uniform type: sampler2d" + } + } }, { - name = "DARKPURPLE", - type = "COLOR", - value = "CLITERAL(Color){ 112, 31, 126, 255 }", - description = "Dark Purple" + name = "ShaderAttributeDataType", + description = "Shader attribute data types", + values = { + { + name = "SHADER_ATTRIB_FLOAT", + value = 0, + description = "Shader attribute type: float" + }, + { + name = "SHADER_ATTRIB_VEC2", + value = 1, + description = "Shader attribute type: vec2 (2 float)" + }, + { + name = "SHADER_ATTRIB_VEC3", + value = 2, + description = "Shader attribute type: vec3 (3 float)" + }, + { + name = "SHADER_ATTRIB_VEC4", + value = 3, + description = "Shader attribute type: vec4 (4 float)" + } + } }, { - name = "BEIGE", - type = "COLOR", - value = "CLITERAL(Color){ 211, 176, 131, 255 }", - description = "Beige" + name = "PixelFormat", + description = "Pixel formats", + values = { + { + name = "PIXELFORMAT_UNCOMPRESSED_GRAYSCALE", + value = 1, + description = "8 bit per pixel (no alpha)" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA", + value = 2, + description = "8*2 bpp (2 channels)" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R5G6B5", + value = 3, + description = "16 bpp" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R8G8B8", + value = 4, + description = "24 bpp" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R5G5B5A1", + value = 5, + description = "16 bpp (1 bit alpha)" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R4G4B4A4", + value = 6, + description = "16 bpp (4 bit alpha)" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R8G8B8A8", + value = 7, + description = "32 bpp" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R32", + value = 8, + description = "32 bpp (1 channel - float)" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R32G32B32", + value = 9, + description = "32*3 bpp (3 channels - float)" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R32G32B32A32", + value = 10, + description = "32*4 bpp (4 channels - float)" + }, + { + name = "PIXELFORMAT_COMPRESSED_DXT1_RGB", + value = 11, + description = "4 bpp (no alpha)" + }, + { + name = "PIXELFORMAT_COMPRESSED_DXT1_RGBA", + value = 12, + description = "4 bpp (1 bit alpha)" + }, + { + name = "PIXELFORMAT_COMPRESSED_DXT3_RGBA", + value = 13, + description = "8 bpp" + }, + { + name = "PIXELFORMAT_COMPRESSED_DXT5_RGBA", + value = 14, + description = "8 bpp" + }, + { + name = "PIXELFORMAT_COMPRESSED_ETC1_RGB", + value = 15, + description = "4 bpp" + }, + { + name = "PIXELFORMAT_COMPRESSED_ETC2_RGB", + value = 16, + description = "4 bpp" + }, + { + name = "PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA", + value = 17, + description = "8 bpp" + }, + { + name = "PIXELFORMAT_COMPRESSED_PVRT_RGB", + value = 18, + description = "4 bpp" + }, + { + name = "PIXELFORMAT_COMPRESSED_PVRT_RGBA", + value = 19, + description = "4 bpp" + }, + { + name = "PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA", + value = 20, + description = "8 bpp" + }, + { + name = "PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA", + value = 21, + description = "2 bpp" + } + } }, { - name = "BROWN", - type = "COLOR", - value = "CLITERAL(Color){ 127, 106, 79, 255 }", - description = "Brown" + name = "TextureFilter", + description = "Texture parameters: filter mode", + values = { + { + name = "TEXTURE_FILTER_POINT", + value = 0, + description = "No filter, just pixel approximation" + }, + { + name = "TEXTURE_FILTER_BILINEAR", + value = 1, + description = "Linear filtering" + }, + { + name = "TEXTURE_FILTER_TRILINEAR", + value = 2, + description = "Trilinear filtering (linear with mipmaps)" + }, + { + name = "TEXTURE_FILTER_ANISOTROPIC_4X", + value = 3, + description = "Anisotropic filtering 4x" + }, + { + name = "TEXTURE_FILTER_ANISOTROPIC_8X", + value = 4, + description = "Anisotropic filtering 8x" + }, + { + name = "TEXTURE_FILTER_ANISOTROPIC_16X", + value = 5, + description = "Anisotropic filtering 16x" + } + } }, { - name = "DARKBROWN", - type = "COLOR", - value = "CLITERAL(Color){ 76, 63, 47, 255 }", - description = "Dark Brown" + name = "TextureWrap", + description = "Texture parameters: wrap mode", + values = { + { + name = "TEXTURE_WRAP_REPEAT", + value = 0, + description = "Repeats texture in tiled mode" + }, + { + name = "TEXTURE_WRAP_CLAMP", + value = 1, + description = "Clamps texture to edge pixel in tiled mode" + }, + { + name = "TEXTURE_WRAP_MIRROR_REPEAT", + value = 2, + description = "Mirrors and repeats the texture in tiled mode" + }, + { + name = "TEXTURE_WRAP_MIRROR_CLAMP", + value = 3, + description = "Mirrors and clamps to border the texture in tiled mode" + } + } }, { - name = "WHITE", - type = "COLOR", - value = "CLITERAL(Color){ 255, 255, 255, 255 }", - description = "White" + name = "CubemapLayout", + description = "Cubemap layouts", + values = { + { + name = "CUBEMAP_LAYOUT_AUTO_DETECT", + value = 0, + description = "Automatically detect layout type" + }, + { + name = "CUBEMAP_LAYOUT_LINE_VERTICAL", + value = 1, + description = "Layout is defined by a vertical line with faces" + }, + { + name = "CUBEMAP_LAYOUT_LINE_HORIZONTAL", + value = 2, + description = "Layout is defined by an horizontal line with faces" + }, + { + name = "CUBEMAP_LAYOUT_CROSS_THREE_BY_FOUR", + value = 3, + description = "Layout is defined by a 3x4 cross with cubemap faces" + }, + { + name = "CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE", + value = 4, + description = "Layout is defined by a 4x3 cross with cubemap faces" + }, + { + name = "CUBEMAP_LAYOUT_PANORAMA", + value = 5, + description = "Layout is defined by a panorama image (equirectangular map)" + } + } }, { - name = "BLACK", - type = "COLOR", - value = "CLITERAL(Color){ 0, 0, 0, 255 }", - description = "Black" + name = "FontType", + description = "Font type, defines generation method", + values = { + { + name = "FONT_DEFAULT", + value = 0, + description = "Default font generation, anti-aliased" + }, + { + name = "FONT_BITMAP", + value = 1, + description = "Bitmap font generation, no anti-aliasing" + }, + { + name = "FONT_SDF", + value = 2, + description = "SDF font generation, requires external shader" + } + } }, { - name = "BLANK", - type = "COLOR", - value = "CLITERAL(Color){ 0, 0, 0, 0 }", - description = "Blank (Transparent)" + name = "BlendMode", + description = "Color blending modes (pre-defined)", + values = { + { + name = "BLEND_ALPHA", + value = 0, + description = "Blend textures considering alpha (default)" + }, + { + name = "BLEND_ADDITIVE", + value = 1, + description = "Blend textures adding colors" + }, + { + name = "BLEND_MULTIPLIED", + value = 2, + description = "Blend textures multiplying colors" + }, + { + name = "BLEND_ADD_COLORS", + value = 3, + description = "Blend textures adding colors (alternative)" + }, + { + name = "BLEND_SUBTRACT_COLORS", + value = 4, + description = "Blend textures subtracting colors (alternative)" + }, + { + name = "BLEND_ALPHA_PREMUL", + value = 5, + description = "Blend premultiplied textures considering alpha" + }, + { + name = "BLEND_CUSTOM", + value = 6, + description = "Blend textures using custom src/dst factors (use rlSetBlendMode())" + } + } }, { - name = "MAGENTA", - type = "COLOR", - value = "CLITERAL(Color){ 255, 0, 255, 255 }", - description = "Magenta" + name = "Gesture", + description = "Gesture", + values = { + { + name = "GESTURE_NONE", + value = 0, + description = "No gesture" + }, + { + name = "GESTURE_TAP", + value = 1, + description = "Tap gesture" + }, + { + name = "GESTURE_DOUBLETAP", + value = 2, + description = "Double tap gesture" + }, + { + name = "GESTURE_HOLD", + value = 4, + description = "Hold gesture" + }, + { + name = "GESTURE_DRAG", + value = 8, + description = "Drag gesture" + }, + { + name = "GESTURE_SWIPE_RIGHT", + value = 16, + description = "Swipe right gesture" + }, + { + name = "GESTURE_SWIPE_LEFT", + value = 32, + description = "Swipe left gesture" + }, + { + name = "GESTURE_SWIPE_UP", + value = 64, + description = "Swipe up gesture" + }, + { + name = "GESTURE_SWIPE_DOWN", + value = 128, + description = "Swipe down gesture" + }, + { + name = "GESTURE_PINCH_IN", + value = 256, + description = "Pinch in gesture" + }, + { + name = "GESTURE_PINCH_OUT", + value = 512, + description = "Pinch out gesture" + } + } }, { - name = "RAYWHITE", - type = "COLOR", - value = "CLITERAL(Color){ 245, 245, 245, 255 }", - description = "My own White (raylib logo)" + name = "CameraMode", + description = "Camera system modes", + values = { + { + name = "CAMERA_CUSTOM", + value = 0, + description = "Custom camera" + }, + { + name = "CAMERA_FREE", + value = 1, + description = "Free camera" + }, + { + name = "CAMERA_ORBITAL", + value = 2, + description = "Orbital camera" + }, + { + name = "CAMERA_FIRST_PERSON", + value = 3, + description = "First person camera" + }, + { + name = "CAMERA_THIRD_PERSON", + value = 4, + description = "Third person camera" + } + } }, { - name = "RL_BOOL_TYPE", - type = "GUARD", - value = "", - description = "" + name = "CameraProjection", + description = "Camera projection", + values = { + { + name = "CAMERA_PERSPECTIVE", + value = 0, + description = "Perspective projection" + }, + { + name = "CAMERA_ORTHOGRAPHIC", + value = 1, + description = "Orthographic projection" + } + } }, { - name = "MOUSE_LEFT_BUTTON", - type = "UNKNOWN", - value = "MOUSE_BUTTON_LEFT", - description = "" - }, + name = "NPatchLayout", + description = "N-patch layout", + values = { + { + name = "NPATCH_NINE_PATCH", + value = 0, + description = "Npatch layout: 3x3 tiles" + }, + { + name = "NPATCH_THREE_PATCH_VERTICAL", + value = 1, + description = "Npatch layout: 1x3 tiles" + }, + { + name = "NPATCH_THREE_PATCH_HORIZONTAL", + value = 2, + description = "Npatch layout: 3x1 tiles" + } + } + } + }, + callbacks = { { - name = "MOUSE_RIGHT_BUTTON", - type = "UNKNOWN", - value = "MOUSE_BUTTON_RIGHT", - description = "" + name = "TraceLogCallback", + description = "Logging: Redirect trace log messages", + returnType = "void", + params = { + {type = "int", name = "logLevel"}, + {type = "const char *", name = "text"}, + {type = "va_list", name = "args"} + } }, { - name = "MOUSE_MIDDLE_BUTTON", - type = "UNKNOWN", - value = "MOUSE_BUTTON_MIDDLE", - description = "" + name = "LoadFileDataCallback", + description = "FileIO: Load binary data", + returnType = "unsigned char *", + params = { + {type = "const char *", name = "fileName"}, + {type = "unsigned int *", name = "bytesRead"} + } }, { - name = "MATERIAL_MAP_DIFFUSE", - type = "UNKNOWN", - value = "MATERIAL_MAP_ALBEDO", - description = "" + name = "SaveFileDataCallback", + description = "FileIO: Save binary data", + returnType = "bool", + params = { + {type = "const char *", name = "fileName"}, + {type = "void *", name = "data"}, + {type = "unsigned int", name = "bytesToWrite"} + } }, { - name = "MATERIAL_MAP_SPECULAR", - type = "UNKNOWN", - value = "MATERIAL_MAP_METALNESS", - description = "" + name = "LoadFileTextCallback", + description = "FileIO: Load text data", + returnType = "char *", + params = { + {type = "const char *", name = "fileName"} + } }, { - name = "SHADER_LOC_MAP_DIFFUSE", - type = "UNKNOWN", - value = "SHADER_LOC_MAP_ALBEDO", - description = "" + name = "SaveFileTextCallback", + description = "FileIO: Save text data", + returnType = "bool", + params = { + {type = "const char *", name = "fileName"}, + {type = "char *", name = "text"} + } }, { - name = "SHADER_LOC_MAP_SPECULAR", - type = "UNKNOWN", - value = "SHADER_LOC_MAP_METALNESS", - description = "" + name = "AudioCallback", + description = "", + returnType = "void", + params = { + {type = "void *", name = "bufferData"}, + {type = "unsigned int", name = "frames"} + } } }, functions = { @@ -7322,62 +7379,5 @@ return { {type = "AudioCallback", name = "processor"} } } - }, - callbacks = { - { - name = "TraceLogCallback", - description = "Logging: Redirect trace log messages", - returnType = "void", - params = { - {type = "int", name = "logLevel"}, - {type = "const char *", name = "text"}, - {type = "va_list", name = "args"} - } - }, - { - name = "LoadFileDataCallback", - description = "FileIO: Load binary data", - returnType = "unsigned char *", - params = { - {type = "const char *", name = "fileName"}, - {type = "unsigned int *", name = "bytesRead"} - } - }, - { - name = "SaveFileDataCallback", - description = "FileIO: Save binary data", - returnType = "bool", - params = { - {type = "const char *", name = "fileName"}, - {type = "void *", name = "data"}, - {type = "unsigned int", name = "bytesToWrite"} - } - }, - { - name = "LoadFileTextCallback", - description = "FileIO: Load text data", - returnType = "char *", - params = { - {type = "const char *", name = "fileName"} - } - }, - { - name = "SaveFileTextCallback", - description = "FileIO: Save text data", - returnType = "bool", - params = { - {type = "const char *", name = "fileName"}, - {type = "char *", name = "text"} - } - }, - { - name = "AudioCallback", - description = "", - returnType = "void", - params = { - {type = "void *", name = "bufferData"}, - {type = "unsigned int", name = "frames"} - } - } } } -- cgit v1.2.3