diff options
Diffstat (limited to 'parser/output/raylib_api.lua')
| -rw-r--r-- | parser/output/raylib_api.lua | 187 |
1 files changed, 150 insertions, 37 deletions
diff --git a/parser/output/raylib_api.lua b/parser/output/raylib_api.lua index ed11ac08..26b2564a 100644 --- a/parser/output/raylib_api.lua +++ b/parser/output/raylib_api.lua @@ -1429,6 +1429,11 @@ return { description = "Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED" }, { + name = "FLAG_BORDERLESS_WINDOWED_MODE", + value = 32768, + description = "Set to run program in borderless windowed mode" + }, + { name = "FLAG_MSAA_4X_HINT", value = 32, description = "Set to try enabling MSAA 4X" @@ -2605,58 +2610,73 @@ return { description = "32*4 bpp (4 channels - float)" }, { - name = "PIXELFORMAT_COMPRESSED_DXT1_RGB", + name = "PIXELFORMAT_UNCOMPRESSED_R16", value = 11, + description = "16 bpp (1 channel - half float)" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R16G16B16", + value = 12, + description = "16*3 bpp (3 channels - half float)" + }, + { + name = "PIXELFORMAT_UNCOMPRESSED_R16G16B16A16", + value = 13, + description = "16*4 bpp (4 channels - half float)" + }, + { + name = "PIXELFORMAT_COMPRESSED_DXT1_RGB", + value = 14, description = "4 bpp (no alpha)" }, { name = "PIXELFORMAT_COMPRESSED_DXT1_RGBA", - value = 12, + value = 15, description = "4 bpp (1 bit alpha)" }, { name = "PIXELFORMAT_COMPRESSED_DXT3_RGBA", - value = 13, + value = 16, description = "8 bpp" }, { name = "PIXELFORMAT_COMPRESSED_DXT5_RGBA", - value = 14, + value = 17, description = "8 bpp" }, { name = "PIXELFORMAT_COMPRESSED_ETC1_RGB", - value = 15, + value = 18, description = "4 bpp" }, { name = "PIXELFORMAT_COMPRESSED_ETC2_RGB", - value = 16, + value = 19, description = "4 bpp" }, { name = "PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA", - value = 17, + value = 20, description = "8 bpp" }, { name = "PIXELFORMAT_COMPRESSED_PVRT_RGB", - value = 18, + value = 21, description = "4 bpp" }, { name = "PIXELFORMAT_COMPRESSED_PVRT_RGBA", - value = 19, + value = 22, description = "4 bpp" }, { name = "PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA", - value = 20, + value = 23, description = "8 bpp" }, { name = "PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA", - value = 21, + value = 24, description = "2 bpp" } } @@ -2973,7 +2993,7 @@ return { returnType = "unsigned char *", params = { {type = "const char *", name = "fileName"}, - {type = "unsigned int *", name = "bytesRead"} + {type = "int *", name = "dataSize"} } }, { @@ -2983,7 +3003,7 @@ return { params = { {type = "const char *", name = "fileName"}, {type = "void *", name = "data"}, - {type = "unsigned int", name = "bytesToWrite"} + {type = "int", name = "dataSize"} } }, { @@ -3099,6 +3119,11 @@ return { returnType = "void" }, { + name = "ToggleBorderlessWindowed", + description = "Toggle window state: borderless windowed (only PLATFORM_DESKTOP)", + returnType = "void" + }, + { name = "MaximizeWindow", description = "Set window state: maximized, if resizable (only PLATFORM_DESKTOP)", returnType = "void" @@ -3132,7 +3157,7 @@ return { }, { name = "SetWindowTitle", - description = "Set title for window (only PLATFORM_DESKTOP)", + description = "Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)", returnType = "void", params = { {type = "const char *", name = "title"} @@ -3149,7 +3174,7 @@ return { }, { name = "SetWindowMonitor", - description = "Set monitor for the current window (fullscreen mode)", + description = "Set monitor for the current window", returnType = "void", params = { {type = "int", name = "monitor"} @@ -3165,6 +3190,15 @@ return { } }, { + name = "SetWindowMaxSize", + description = "Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)", + returnType = "void", + params = { + {type = "int", name = "width"}, + {type = "int", name = "height"} + } + }, + { name = "SetWindowSize", description = "Set window dimensions", returnType = "void", @@ -3182,6 +3216,11 @@ return { } }, { + name = "SetWindowFocused", + description = "Set window focused (only PLATFORM_DESKTOP)", + returnType = "void" + }, + { name = "GetWindowHandle", description = "Get native window handle", returnType = "void *" @@ -3276,7 +3315,7 @@ return { }, { name = "GetMonitorName", - description = "Get the human-readable, UTF-8 encoded name of the primary monitor", + description = "Get the human-readable, UTF-8 encoded name of the specified monitor", returnType = "const char *", params = { {type = "int", name = "monitor"} @@ -3792,7 +3831,7 @@ return { returnType = "unsigned char *", params = { {type = "const char *", name = "fileName"}, - {type = "unsigned int *", name = "bytesRead"} + {type = "int *", name = "dataSize"} } }, { @@ -3810,7 +3849,7 @@ return { params = { {type = "const char *", name = "fileName"}, {type = "void *", name = "data"}, - {type = "unsigned int", name = "bytesToWrite"} + {type = "int", name = "dataSize"} } }, { @@ -3819,7 +3858,7 @@ return { returnType = "bool", params = { {type = "const unsigned char *", name = "data"}, - {type = "unsigned int", name = "size"}, + {type = "int", name = "dataSize"}, {type = "const char *", name = "fileName"} } }, @@ -3928,7 +3967,7 @@ return { }, { name = "GetApplicationDirectory", - description = "Get the directory if the running application (uses static string)", + description = "Get the directory of the running application (uses static string)", returnType = "const char *" }, { @@ -4047,6 +4086,14 @@ return { } }, { + name = "IsKeyPressedRepeat", + description = "Check if a key has been pressed again (Only PLATFORM_DESKTOP)", + returnType = "bool", + params = { + {type = "int", name = "key"} + } + }, + { name = "IsKeyDown", description = "Check if a key is being pressed", returnType = "bool", @@ -4311,7 +4358,7 @@ return { description = "Check if a gesture have been detected", returnType = "bool", params = { - {type = "int", name = "gesture"} + {type = "unsigned int", name = "gesture"} } }, { @@ -4462,6 +4509,28 @@ return { } }, { + name = "DrawLineBSpline", + description = "Draw a B-Spline line, minimum 4 points", + returnType = "void", + params = { + {type = "Vector2 *", name = "points"}, + {type = "int", name = "pointCount"}, + {type = "float", name = "thick"}, + {type = "Color", name = "color"} + } + }, + { + name = "DrawLineCatmullRom", + description = "Draw a Catmull Rom spline line, minimum 4 points", + returnType = "void", + params = { + {type = "Vector2 *", name = "points"}, + {type = "int", name = "pointCount"}, + {type = "float", name = "thick"}, + {type = "Color", name = "color"} + } + }, + { name = "DrawLineStrip", description = "Draw lines sequence", returnType = "void", @@ -4920,6 +4989,16 @@ return { } }, { + name = "LoadImageSvg", + description = "Load image from SVG file data or string with specified size", + returnType = "Image", + params = { + {type = "const char *", name = "fileNameOrString"}, + {type = "int", name = "width"}, + {type = "int", name = "height"} + } + }, + { name = "LoadImageAnim", description = "Load image sequence from file (frames appended to image.data)", returnType = "Image", @@ -4977,6 +5056,16 @@ return { } }, { + name = "ExportImageToMemory", + description = "Export image to memory buffer", + returnType = "unsigned char *", + params = { + {type = "Image", name = "image"}, + {type = "const char *", name = "fileType"}, + {type = "int *", name = "fileSize"} + } + }, + { name = "ExportImageAsCode", description = "Export image as code file defining an array of bytes, returns true on success", returnType = "bool", @@ -5268,7 +5357,7 @@ return { }, { name = "ImageRotate", - description = "Rotate image by input angle in degrees (-359 to 359) ", + description = "Rotate image by input angle in degrees (-359 to 359)", returnType = "void", params = { {type = "Image *", name = "image"}, @@ -5911,13 +6000,13 @@ return { }, { name = "LoadFontEx", - description = "Load font from file with extended parameters, use NULL for fontChars and 0 for glyphCount to load the default character set", + description = "Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont", returnType = "Font", params = { {type = "const char *", name = "fileName"}, {type = "int", name = "fontSize"}, - {type = "int *", name = "fontChars"}, - {type = "int", name = "glyphCount"} + {type = "int *", name = "codepoints"}, + {type = "int", name = "codepointCount"} } }, { @@ -5939,8 +6028,8 @@ return { {type = "const unsigned char *", name = "fileData"}, {type = "int", name = "dataSize"}, {type = "int", name = "fontSize"}, - {type = "int *", name = "fontChars"}, - {type = "int", name = "glyphCount"} + {type = "int *", name = "codepoints"}, + {type = "int", name = "codepointCount"} } }, { @@ -5959,8 +6048,8 @@ return { {type = "const unsigned char *", name = "fileData"}, {type = "int", name = "dataSize"}, {type = "int", name = "fontSize"}, - {type = "int *", name = "fontChars"}, - {type = "int", name = "glyphCount"}, + {type = "int *", name = "codepoints"}, + {type = "int", name = "codepointCount"}, {type = "int", name = "type"} } }, @@ -5969,8 +6058,8 @@ return { description = "Generate image font atlas using chars info", returnType = "Image", params = { - {type = "const GlyphInfo *", name = "chars"}, - {type = "Rectangle **", name = "recs"}, + {type = "const GlyphInfo *", name = "glyphs"}, + {type = "Rectangle **", name = "glyphRecs"}, {type = "int", name = "glyphCount"}, {type = "int", name = "fontSize"}, {type = "int", name = "padding"}, @@ -5982,7 +6071,7 @@ return { description = "Unload font chars info data (RAM)", returnType = "void", params = { - {type = "GlyphInfo *", name = "chars"}, + {type = "GlyphInfo *", name = "glyphs"}, {type = "int", name = "glyphCount"} } }, @@ -6071,7 +6160,7 @@ return { params = { {type = "Font", name = "font"}, {type = "const int *", name = "codepoints"}, - {type = "int", name = "count"}, + {type = "int", name = "codepointCount"}, {type = "Vector2", name = "position"}, {type = "float", name = "fontSize"}, {type = "float", name = "spacing"}, @@ -6079,6 +6168,14 @@ return { } }, { + name = "SetTextLineSpacing", + description = "Set vertical line spacing when drawing with line-breaks", + returnType = "void", + params = { + {type = "int", name = "spacing"} + } + }, + { name = "MeasureText", description = "Measure string width for default font", returnType = "int", @@ -6954,7 +7051,7 @@ return { returnType = "ModelAnimation *", params = { {type = "const char *", name = "fileName"}, - {type = "unsigned int *", name = "animCount"} + {type = "int *", name = "animCount"} } }, { @@ -6981,7 +7078,7 @@ return { returnType = "void", params = { {type = "ModelAnimation *", name = "animations"}, - {type = "unsigned int", name = "count"} + {type = "int", name = "animCount"} } }, { @@ -7141,6 +7238,14 @@ return { } }, { + name = "LoadSoundAlias", + description = "Create a new sound that shares the same sample data as the source sound, does not own the sound data", + returnType = "Sound", + params = { + {type = "Sound", name = "source"} + } + }, + { name = "IsSoundReady", description = "Checks if a sound is ready", returnType = "bool", @@ -7175,6 +7280,14 @@ return { } }, { + name = "UnloadSoundAlias", + description = "Unload a sound alias (does not deallocate sample data)", + returnType = "void", + params = { + {type = "Sound", name = "alias"} + } + }, + { name = "ExportWave", description = "Export wave data to file, returns true on success", returnType = "bool", @@ -7568,7 +7681,7 @@ return { }, { name = "AttachAudioStreamProcessor", - description = "Attach audio stream processor to stream", + description = "Attach audio stream processor to stream, receives the samples as <float>s", returnType = "void", params = { {type = "AudioStream", name = "stream"}, @@ -7586,7 +7699,7 @@ return { }, { name = "AttachAudioMixedProcessor", - description = "Attach audio stream processor to the entire audio pipeline", + description = "Attach audio stream processor to the entire audio pipeline, receives the samples as <float>s", returnType = "void", params = { {type = "AudioCallback", name = "processor"} |
