Преглед изворни кода

Update `raylib_api.*` (#3379)

pull/3385/head
BLUELOVETH пре 1 година
committed by GitHub
родитељ
комит
97c2744a16
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 измењених фајлова са 1066 додато и 664 уклоњено
  1. +216
    -43
      parser/output/raylib_api.json
  2. +150
    -37
      parser/output/raylib_api.lua
  3. +614
    -544
      parser/output/raylib_api.txt
  4. +86
    -40
      parser/output/raylib_api.xml

+ 216
- 43
parser/output/raylib_api.json Прегледај датотеку

@ -1428,6 +1428,11 @@
"value": 16384,
"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,
@ -2605,58 +2610,73 @@
"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"
}
]
@ -2986,8 +3006,8 @@
"name": "fileName"
},
{
"type": "unsigned int *",
"name": "bytesRead"
"type": "int *",
"name": "dataSize"
}
]
},
@ -3005,8 +3025,8 @@
"name": "data"
},
{
"type": "unsigned int",
"name": "bytesToWrite"
"type": "int",
"name": "dataSize"
}
]
},
@ -3155,6 +3175,11 @@
"description": "Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)",
"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)",
@ -3198,7 +3223,7 @@
},
{
"name": "SetWindowTitle",
"description": "Set title for window (only PLATFORM_DESKTOP)",
"description": "Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)",
"returnType": "void",
"params": [
{
@ -3224,7 +3249,7 @@
},
{
"name": "SetWindowMonitor",
"description": "Set monitor for the current window (fullscreen mode)",
"description": "Set monitor for the current window",
"returnType": "void",
"params": [
{
@ -3248,6 +3273,21 @@
}
]
},
{
"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",
@ -3274,6 +3314,11 @@
}
]
},
{
"name": "SetWindowFocused",
"description": "Set window focused (only PLATFORM_DESKTOP)",
"returnType": "void"
},
{
"name": "GetWindowHandle",
"description": "Get native window handle",
@ -3387,7 +3432,7 @@
},
{
"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": [
{
@ -4132,8 +4177,8 @@
"name": "fileName"
},
{
"type": "unsigned int *",
"name": "bytesRead"
"type": "int *",
"name": "dataSize"
}
]
},
@ -4162,8 +4207,8 @@
"name": "data"
},
{
"type": "unsigned int",
"name": "bytesToWrite"
"type": "int",
"name": "dataSize"
}
]
},
@ -4177,8 +4222,8 @@
"name": "data"
},
{
"type": "unsigned int",
"name": "size"
"type": "int",
"name": "dataSize"
},
{
"type": "const char *",
@ -4333,7 +4378,7 @@
},
{
"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 *"
},
{
@ -4514,6 +4559,17 @@
}
]
},
{
"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",
@ -4876,7 +4932,7 @@
"returnType": "bool",
"params": [
{
"type": "int",
"type": "unsigned int",
"name": "gesture"
}
]
@ -5148,6 +5204,52 @@
}
]
},
{
"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",
@ -6119,6 +6221,25 @@
}
]
},
{
"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)",
@ -6206,6 +6327,25 @@
}
]
},
{
"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",
@ -6759,7 +6899,7 @@
},
{
"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": [
{
@ -7930,7 +8070,7 @@
},
{
"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": [
{
@ -7943,11 +8083,11 @@
},
{
"type": "int *",
"name": "fontChars"
"name": "codepoints"
},
{
"type": "int",
"name": "glyphCount"
"name": "codepointCount"
}
]
},
@ -7993,11 +8133,11 @@
},
{
"type": "int *",
"name": "fontChars"
"name": "codepoints"
},
{
"type": "int",
"name": "glyphCount"
"name": "codepointCount"
}
]
},
@ -8031,11 +8171,11 @@
},
{
"type": "int *",
"name": "fontChars"
"name": "codepoints"
},
{
"type": "int",
"name": "glyphCount"
"name": "codepointCount"
},
{
"type": "int",
@ -8050,11 +8190,11 @@
"params": [
{
"type": "const GlyphInfo *",
"name": "chars"
"name": "glyphs"
},
{
"type": "Rectangle **",
"name": "recs"
"name": "glyphRecs"
},
{
"type": "int",
@ -8081,7 +8221,7 @@
"params": [
{
"type": "GlyphInfo *",
"name": "chars"
"name": "glyphs"
},
{
"type": "int",
@ -8269,7 +8409,7 @@
},
{
"type": "int",
"name": "count"
"name": "codepointCount"
},
{
"type": "Vector2",
@ -8289,6 +8429,17 @@
}
]
},
{
"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",
@ -9937,7 +10088,7 @@
"name": "fileName"
},
{
"type": "unsigned int *",
"type": "int *",
"name": "animCount"
}
]
@ -9982,8 +10133,8 @@
"name": "animations"
},
{
"type": "unsigned int",
"name": "count"
"type": "int",
"name": "animCount"
}
]
},
@ -10251,6 +10402,17 @@
}
]
},
{
"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",
@ -10303,6 +10465,17 @@
}
]
},
{
"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",
@ -10907,7 +11080,7 @@
},
{
"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": [
{
@ -10937,7 +11110,7 @@
},
{
"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": [
{

+ 150
- 37
parser/output/raylib_api.lua Прегледај датотеку

@ -1428,6 +1428,11 @@ return {
value = 16384,
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,
@ -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"}
}
},
{
@ -3098,6 +3118,11 @@ return {
description = "Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)",
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)",
@ -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"}
@ -3164,6 +3189,15 @@ return {
{type = "int", name = "height"}
}
},
{
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",
@ -3181,6 +3215,11 @@ return {
{type = "float", name = "opacity"}
}
},
{
name = "SetWindowFocused",
description = "Set window focused (only PLATFORM_DESKTOP)",
returnType = "void"
},
{
name = "GetWindowHandle",
description = "Get native window handle",
@ -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 *"
},
{
@ -4046,6 +4085,14 @@ return {
{type = "int", name = "key"}
}
},
{
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",
@ -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"}
}
},
{
@ -4461,6 +4508,28 @@ return {
{type = "Color", name = "color"}
}
},
{
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",
@ -4919,6 +4988,16 @@ return {
{type = "int", name = "headerSize"}
}
},
{
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)",
@ -4976,6 +5055,16 @@ return {
{type = "const char *", name = "fileName"}
}
},
{
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",
@ -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,13 +6160,21 @@ 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"},
{type = "Color", name = "tint"}
}
},
{
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",
@ -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"}
}
},
{
@ -7140,6 +7237,14 @@ return {
{type = "Wave", name = "wave"}
}
},
{
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",
@ -7174,6 +7279,14 @@ return {
{type = "Sound", name = "sound"}
}
},
{
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",
@ -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"}

+ 614
- 544
parser/output/raylib_api.txt
Разлика између датотеке није приказан због своје велике величине
Прегледај датотеку


+ 86
- 40
parser/output/raylib_api.xml Прегледај датотеку

@ -292,7 +292,7 @@
<Alias type="Camera" name="Camera3D" desc="Camera type fallback, defaults to Camera3D" />
</Aliases>
<Enums count="21">
<Enum name="ConfigFlags" valueCount="15" desc="System/Window config flags">
<Enum name="ConfigFlags" valueCount="16" desc="System/Window config flags">
<Value name="FLAG_VSYNC_HINT" integer="64" desc="Set to try enabling V-Sync on GPU" />
<Value name="FLAG_FULLSCREEN_MODE" integer="2" desc="Set to run program in fullscreen" />
<Value name="FLAG_WINDOW_RESIZABLE" integer="4" desc="Set to allow resizable window" />
@ -306,6 +306,7 @@
<Value name="FLAG_WINDOW_TRANSPARENT" integer="16" desc="Set to allow transparent framebuffer" />
<Value name="FLAG_WINDOW_HIGHDPI" integer="8192" desc="Set to support HighDPI" />
<Value name="FLAG_WINDOW_MOUSE_PASSTHROUGH" integer="16384" desc="Set to support mouse passthrough, only supported when FLAG_WINDOW_UNDECORATED" />
<Value name="FLAG_BORDERLESS_WINDOWED_MODE" integer="32768" desc="Set to run program in borderless windowed mode" />
<Value name="FLAG_MSAA_4X_HINT" integer="32" desc="Set to try enabling MSAA 4X" />
<Value name="FLAG_INTERLACED_HINT" integer="65536" desc="Set to try enabling interlaced video format (for V3D)" />
</Enum>
@ -539,7 +540,7 @@
<Value name="SHADER_ATTRIB_VEC3" integer="2" desc="Shader attribute type: vec3 (3 float)" />
<Value name="SHADER_ATTRIB_VEC4" integer="3" desc="Shader attribute type: vec4 (4 float)" />
</Enum>
<Enum name="PixelFormat" valueCount="21" desc="Pixel formats">
<Enum name="PixelFormat" valueCount="24" desc="Pixel formats">
<Value name="PIXELFORMAT_UNCOMPRESSED_GRAYSCALE" integer="1" desc="8 bit per pixel (no alpha)" />
<Value name="PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA" integer="2" desc="8*2 bpp (2 channels)" />
<Value name="PIXELFORMAT_UNCOMPRESSED_R5G6B5" integer="3" desc="16 bpp" />
@ -550,17 +551,20 @@
<Value name="PIXELFORMAT_UNCOMPRESSED_R32" integer="8" desc="32 bpp (1 channel - float)" />
<Value name="PIXELFORMAT_UNCOMPRESSED_R32G32B32" integer="9" desc="32*3 bpp (3 channels - float)" />
<Value name="PIXELFORMAT_UNCOMPRESSED_R32G32B32A32" integer="10" desc="32*4 bpp (4 channels - float)" />
<Value name="PIXELFORMAT_COMPRESSED_DXT1_RGB" integer="11" desc="4 bpp (no alpha)" />
<Value name="PIXELFORMAT_COMPRESSED_DXT1_RGBA" integer="12" desc="4 bpp (1 bit alpha)" />
<Value name="PIXELFORMAT_COMPRESSED_DXT3_RGBA" integer="13" desc="8 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_DXT5_RGBA" integer="14" desc="8 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ETC1_RGB" integer="15" desc="4 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ETC2_RGB" integer="16" desc="4 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA" integer="17" desc="8 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_PVRT_RGB" integer="18" desc="4 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_PVRT_RGBA" integer="19" desc="4 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA" integer="20" desc="8 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA" integer="21" desc="2 bpp" />
<Value name="PIXELFORMAT_UNCOMPRESSED_R16" integer="11" desc="16 bpp (1 channel - half float)" />
<Value name="PIXELFORMAT_UNCOMPRESSED_R16G16B16" integer="12" desc="16*3 bpp (3 channels - half float)" />
<Value name="PIXELFORMAT_UNCOMPRESSED_R16G16B16A16" integer="13" desc="16*4 bpp (4 channels - half float)" />
<Value name="PIXELFORMAT_COMPRESSED_DXT1_RGB" integer="14" desc="4 bpp (no alpha)" />
<Value name="PIXELFORMAT_COMPRESSED_DXT1_RGBA" integer="15" desc="4 bpp (1 bit alpha)" />
<Value name="PIXELFORMAT_COMPRESSED_DXT3_RGBA" integer="16" desc="8 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_DXT5_RGBA" integer="17" desc="8 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ETC1_RGB" integer="18" desc="4 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ETC2_RGB" integer="19" desc="4 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA" integer="20" desc="8 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_PVRT_RGB" integer="21" desc="4 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_PVRT_RGBA" integer="22" desc="4 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA" integer="23" desc="8 bpp" />
<Value name="PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA" integer="24" desc="2 bpp" />
</Enum>
<Enum name="TextureFilter" valueCount="6" desc="Texture parameters: filter mode">
<Value name="TEXTURE_FILTER_POINT" integer="0" desc="No filter, just pixel approximation" />
@ -637,12 +641,12 @@
</Callback>
<Callback name="LoadFileDataCallback" retType="unsigned char *" paramCount="2" desc="FileIO: Load binary data">
<Param type="const char *" name="fileName" desc="" />
<Param type="unsigned int *" name="bytesRead" desc="" />
<Param type="int *" name="dataSize" desc="" />
</Callback>
<Callback name="SaveFileDataCallback" retType="bool" paramCount="3" desc="FileIO: Save binary data">
<Param type="const char *" name="fileName" desc="" />
<Param type="void *" name="data" desc="" />
<Param type="unsigned int" name="bytesToWrite" desc="" />
<Param type="int" name="dataSize" desc="" />
</Callback>
<Callback name="LoadFileTextCallback" retType="char *" paramCount="1" desc="FileIO: Load text data">
<Param type="const char *" name="fileName" desc="" />
@ -656,7 +660,7 @@
<Param type="unsigned int" name="frames" desc="" />
</Callback>
</Callbacks>
<Functions count="518">
<Functions count="529">
<Function name="InitWindow" retType="void" paramCount="3" desc="Initialize window and OpenGL context">
<Param type="int" name="width" desc="" />
<Param type="int" name="height" desc="" />
@ -691,6 +695,8 @@
</Function>
<Function name="ToggleFullscreen" retType="void" paramCount="0" desc="Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)">
</Function>
<Function name="ToggleBorderlessWindowed" retType="void" paramCount="0" desc="Toggle window state: borderless windowed (only PLATFORM_DESKTOP)">
</Function>
<Function name="MaximizeWindow" retType="void" paramCount="0" desc="Set window state: maximized, if resizable (only PLATFORM_DESKTOP)">
</Function>
<Function name="MinimizeWindow" retType="void" paramCount="0" desc="Set window state: minimized, if resizable (only PLATFORM_DESKTOP)">
@ -704,20 +710,24 @@
<Param type="Image *" name="images" desc="" />
<Param type="int" name="count" desc="" />
</Function>
<Function name="SetWindowTitle" retType="void" paramCount="1" desc="Set title for window (only PLATFORM_DESKTOP)">
<Function name="SetWindowTitle" retType="void" paramCount="1" desc="Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB)">
<Param type="const char *" name="title" desc="" />
</Function>
<Function name="SetWindowPosition" retType="void" paramCount="2" desc="Set window position on screen (only PLATFORM_DESKTOP)">
<Param type="int" name="x" desc="" />
<Param type="int" name="y" desc="" />
</Function>
<Function name="SetWindowMonitor" retType="void" paramCount="1" desc="Set monitor for the current window (fullscreen mode)">
<Function name="SetWindowMonitor" retType="void" paramCount="1" desc="Set monitor for the current window">
<Param type="int" name="monitor" desc="" />
</Function>
<Function name="SetWindowMinSize" retType="void" paramCount="2" desc="Set window minimum dimensions (for FLAG_WINDOW_RESIZABLE)">
<Param type="int" name="width" desc="" />
<Param type="int" name="height" desc="" />
</Function>
<Function name="SetWindowMaxSize" retType="void" paramCount="2" desc="Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)">
<Param type="int" name="width" desc="" />
<Param type="int" name="height" desc="" />
</Function>
<Function name="SetWindowSize" retType="void" paramCount="2" desc="Set window dimensions">
<Param type="int" name="width" desc="" />
<Param type="int" name="height" desc="" />
@ -725,6 +735,8 @@
<Function name="SetWindowOpacity" retType="void" paramCount="1" desc="Set window opacity [0.0f..1.0f] (only PLATFORM_DESKTOP)">
<Param type="float" name="opacity" desc="" />
</Function>
<Function name="SetWindowFocused" retType="void" paramCount="0" desc="Set window focused (only PLATFORM_DESKTOP)">
</Function>
<Function name="GetWindowHandle" retType="void *" paramCount="0" desc="Get native window handle">
</Function>
<Function name="GetScreenWidth" retType="int" paramCount="0" desc="Get current screen width">
@ -761,7 +773,7 @@
</Function>
<Function name="GetWindowScaleDPI" retType="Vector2" paramCount="0" desc="Get window scale DPI factor">
</Function>
<Function name="GetMonitorName" retType="const char *" paramCount="1" desc="Get the human-readable, UTF-8 encoded name of the primary monitor">
<Function name="GetMonitorName" retType="const char *" paramCount="1" desc="Get the human-readable, UTF-8 encoded name of the specified monitor">
<Param type="int" name="monitor" desc="" />
</Function>
<Function name="SetClipboardText" retType="void" paramCount="1" desc="Set clipboard text content">
@ -976,7 +988,7 @@
</Function>
<Function name="LoadFileData" retType="unsigned char *" paramCount="2" desc="Load file data as byte array (read)">
<Param type="const char *" name="fileName" desc="" />
<Param type="unsigned int *" name="bytesRead" desc="" />
<Param type="int *" name="dataSize" desc="" />
</Function>
<Function name="UnloadFileData" retType="void" paramCount="1" desc="Unload file data allocated by LoadFileData()">
<Param type="unsigned char *" name="data" desc="" />
@ -984,11 +996,11 @@
<Function name="SaveFileData" retType="bool" paramCount="3" desc="Save data to file from byte array (write), returns true on success">
<Param type="const char *" name="fileName" desc="" />
<Param type="void *" name="data" desc="" />
<Param type="unsigned int" name="bytesToWrite" desc="" />
<Param type="int" name="dataSize" desc="" />
</Function>
<Function name="ExportDataAsCode" retType="bool" paramCount="3" desc="Export data to code (.h), returns true on success">
<Param type="const unsigned char *" name="data" desc="" />
<Param type="unsigned int" name="size" desc="" />
<Param type="int" name="dataSize" desc="" />
<Param type="const char *" name="fileName" desc="" />
</Function>
<Function name="LoadFileText" retType="char *" paramCount="1" desc="Load text data from file (read), returns a '\0' terminated string">
@ -1031,7 +1043,7 @@
</Function>
<Function name="GetWorkingDirectory" retType="const char *" paramCount="0" desc="Get current working directory (uses static string)">
</Function>
<Function name="GetApplicationDirectory" retType="const char *" paramCount="0" desc="Get the directory if the running application (uses static string)">
<Function name="GetApplicationDirectory" retType="const char *" paramCount="0" desc="Get the directory of the running application (uses static string)">
</Function>
<Function name="ChangeDirectory" retType="bool" paramCount="1" desc="Change working directory, return true on success">
<Param type="const char *" name="dir" desc="" />
@ -1082,6 +1094,9 @@
<Function name="IsKeyPressed" retType="bool" paramCount="1" desc="Check if a key has been pressed once">
<Param type="int" name="key" desc="" />
</Function>
<Function name="IsKeyPressedRepeat" retType="bool" paramCount="1" desc="Check if a key has been pressed again (Only PLATFORM_DESKTOP)">
<Param type="int" name="key" desc="" />
</Function>
<Function name="IsKeyDown" retType="bool" paramCount="1" desc="Check if a key is being pressed">
<Param type="int" name="key" desc="" />
</Function>
@ -1187,7 +1202,7 @@
<Param type="unsigned int" name="flags" desc="" />
</Function>
<Function name="IsGestureDetected" retType="bool" paramCount="1" desc="Check if a gesture have been detected">
<Param type="int" name="gesture" desc="" />
<Param type="unsigned int" name="gesture" desc="" />
</Function>
<Function name="GetGestureDetected" retType="int" paramCount="0" desc="Get latest detected gesture">
</Function>
@ -1263,6 +1278,18 @@
<Param type="float" name="thick" desc="" />
<Param type="Color" name="color" desc="" />
</Function>
<Function name="DrawLineBSpline" retType="void" paramCount="4" desc="Draw a B-Spline line, minimum 4 points">
<Param type="Vector2 *" name="points" desc="" />
<Param type="int" name="pointCount" desc="" />
<Param type="float" name="thick" desc="" />
<Param type="Color" name="color" desc="" />
</Function>
<Function name="DrawLineCatmullRom" retType="void" paramCount="4" desc="Draw a Catmull Rom spline line, minimum 4 points">
<Param type="Vector2 *" name="points" desc="" />
<Param type="int" name="pointCount" desc="" />
<Param type="float" name="thick" desc="" />
<Param type="Color" name="color" desc="" />
</Function>
<Function name="DrawLineStrip" retType="void" paramCount="3" desc="Draw lines sequence">
<Param type="Vector2 *" name="points" desc="" />
<Param type="int" name="pointCount" desc="" />
@ -1516,6 +1543,11 @@
<Param type="int" name="format" desc="" />
<Param type="int" name="headerSize" desc="" />
</Function>
<Function name="LoadImageSvg" retType="Image" paramCount="3" desc="Load image from SVG file data or string with specified size">
<Param type="const char *" name="fileNameOrString" desc="" />
<Param type="int" name="width" desc="" />
<Param type="int" name="height" desc="" />
</Function>
<Function name="LoadImageAnim" retType="Image" paramCount="2" desc="Load image sequence from file (frames appended to image.data)">
<Param type="const char *" name="fileName" desc="" />
<Param type="int *" name="frames" desc="" />
@ -1540,6 +1572,11 @@
<Param type="Image" name="image" desc="" />
<Param type="const char *" name="fileName" desc="" />
</Function>
<Function name="ExportImageToMemory" retType="unsigned char *" paramCount="3" desc="Export image to memory buffer">
<Param type="Image" name="image" desc="" />
<Param type="const char *" name="fileType" desc="" />
<Param type="int *" name="fileSize" desc="" />
</Function>
<Function name="ExportImageAsCode" retType="bool" paramCount="2" desc="Export image as code file defining an array of bytes, returns true on success">
<Param type="Image" name="image" desc="" />
<Param type="const char *" name="fileName" desc="" />
@ -1685,7 +1722,7 @@
<Function name="ImageFlipHorizontal" retType="void" paramCount="1" desc="Flip image horizontally">
<Param type="Image *" name="image" desc="" />
</Function>
<Function name="ImageRotate" retType="void" paramCount="2" desc="Rotate image by input angle in degrees (-359 to 359) ">
<Function name="ImageRotate" retType="void" paramCount="2" desc="Rotate image by input angle in degrees (-359 to 359)">
<Param type="Image *" name="image" desc="" />
<Param type="int" name="degrees" desc="" />
</Function>
@ -1995,11 +2032,11 @@
<Function name="LoadFont" retType="Font" paramCount="1" desc="Load font from file into GPU memory (VRAM)">
<Param type="const char *" name="fileName" desc="" />
</Function>
<Function name="LoadFontEx" retType="Font" paramCount="4" desc="Load font from file with extended parameters, use NULL for fontChars and 0 for glyphCount to load the default character set">
<Function name="LoadFontEx" retType="Font" paramCount="4" desc="Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont">
<Param type="const char *" name="fileName" desc="" />
<Param type="int" name="fontSize" desc="" />
<Param type="int *" name="fontChars" desc="" />
<Param type="int" name="glyphCount" desc="" />
<Param type="int *" name="codepoints" desc="" />
<Param type="int" name="codepointCount" desc="" />
</Function>
<Function name="LoadFontFromImage" retType="Font" paramCount="3" desc="Load font from Image (XNA style)">
<Param type="Image" name="image" desc="" />
@ -2011,8 +2048,8 @@
<Param type="const unsigned char *" name="fileData" desc="" />
<Param type="int" name="dataSize" desc="" />
<Param type="int" name="fontSize" desc="" />
<Param type="int *" name="fontChars" desc="" />
<Param type="int" name="glyphCount" desc="" />
<Param type="int *" name="codepoints" desc="" />
<Param type="int" name="codepointCount" desc="" />
</Function>
<Function name="IsFontReady" retType="bool" paramCount="1" desc="Check if a font is ready">
<Param type="Font" name="font" desc="" />
@ -2021,20 +2058,20 @@
<Param type="const unsigned char *" name="fileData" desc="" />
<Param type="int" name="dataSize" desc="" />
<Param type="int" name="fontSize" desc="" />
<Param type="int *" name="fontChars" desc="" />
<Param type="int" name="glyphCount" desc="" />
<Param type="int *" name="codepoints" desc="" />
<Param type="int" name="codepointCount" desc="" />
<Param type="int" name="type" desc="" />
</Function>
<Function name="GenImageFontAtlas" retType="Image" paramCount="6" desc="Generate image font atlas using chars info">
<Param type="const GlyphInfo *" name="chars" desc="" />
<Param type="Rectangle **" name="recs" desc="" />
<Param type="const GlyphInfo *" name="glyphs" desc="" />
<Param type="Rectangle **" name="glyphRecs" desc="" />
<Param type="int" name="glyphCount" desc="" />
<Param type="int" name="fontSize" desc="" />
<Param type="int" name="padding" desc="" />
<Param type="int" name="packMethod" desc="" />
</Function>
<Function name="UnloadFontData" retType="void" paramCount="2" desc="Unload font chars info data (RAM)">
<Param type="GlyphInfo *" name="chars" desc="" />
<Param type="GlyphInfo *" name="glyphs" desc="" />
<Param type="int" name="glyphCount" desc="" />
</Function>
<Function name="UnloadFont" retType="void" paramCount="1" desc="Unload font from GPU memory (VRAM)">
@ -2083,12 +2120,15 @@
<Function name="DrawTextCodepoints" retType="void" paramCount="7" desc="Draw multiple character (codepoint)">
<Param type="Font" name="font" desc="" />
<Param type="const int *" name="codepoints" desc="" />
<Param type="int" name="count" desc="" />
<Param type="int" name="codepointCount" desc="" />
<Param type="Vector2" name="position" desc="" />
<Param type="float" name="fontSize" desc="" />
<Param type="float" name="spacing" desc="" />
<Param type="Color" name="tint" desc="" />
</Function>
<Function name="SetTextLineSpacing" retType="void" paramCount="1" desc="Set vertical line spacing when drawing with line-breaks">
<Param type="int" name="spacing" desc="" />
</Function>
<Function name="MeasureText" retType="int" paramCount="2" desc="Measure string width for default font">
<Param type="const char *" name="text" desc="" />
<Param type="int" name="fontSize" desc="" />
@ -2523,7 +2563,7 @@
</Function>
<Function name="LoadModelAnimations" retType="ModelAnimation *" paramCount="2" desc="Load model animations from file">
<Param type="const char *" name="fileName" desc="" />
<Param type="unsigned int *" name="animCount" desc="" />
<Param type="int *" name="animCount" desc="" />
</Function>
<Function name="UpdateModelAnimation" retType="void" paramCount="3" desc="Update model animation pose">
<Param type="Model" name="model" desc="" />
@ -2535,7 +2575,7 @@
</Function>
<Function name="UnloadModelAnimations" retType="void" paramCount="2" desc="Unload animation array data">
<Param type="ModelAnimation *" name="animations" desc="" />
<Param type="unsigned int" name="count" desc="" />
<Param type="int" name="animCount" desc="" />
</Function>
<Function name="IsModelAnimationValid" retType="bool" paramCount="2" desc="Check model animation skeleton match">
<Param type="Model" name="model" desc="" />
@ -2609,6 +2649,9 @@
<Function name="LoadSoundFromWave" retType="Sound" paramCount="1" desc="Load sound from wave data">
<Param type="Wave" name="wave" desc="" />
</Function>
<Function name="LoadSoundAlias" retType="Sound" paramCount="1" desc="Create a new sound that shares the same sample data as the source sound, does not own the sound data">
<Param type="Sound" name="source" desc="" />
</Function>
<Function name="IsSoundReady" retType="bool" paramCount="1" desc="Checks if a sound is ready">
<Param type="Sound" name="sound" desc="" />
</Function>
@ -2623,6 +2666,9 @@
<Function name="UnloadSound" retType="void" paramCount="1" desc="Unload sound">
<Param type="Sound" name="sound" desc="" />
</Function>
<Function name="UnloadSoundAlias" retType="void" paramCount="1" desc="Unload a sound alias (does not deallocate sample data)">
<Param type="Sound" name="alias" desc="" />
</Function>
<Function name="ExportWave" retType="bool" paramCount="2" desc="Export wave data to file, returns true on success">
<Param type="Wave" name="wave" desc="" />
<Param type="const char *" name="fileName" desc="" />
@ -2785,7 +2831,7 @@
<Param type="AudioStream" name="stream" desc="" />
<Param type="AudioCallback" name="callback" desc="" />
</Function>
<Function name="AttachAudioStreamProcessor" retType="void" paramCount="2" desc="Attach audio stream processor to stream">
<Function name="AttachAudioStreamProcessor" retType="void" paramCount="2" desc="Attach audio stream processor to stream, receives the samples as <float>s">
<Param type="AudioStream" name="stream" desc="" />
<Param type="AudioCallback" name="processor" desc="" />
</Function>
@ -2793,7 +2839,7 @@
<Param type="AudioStream" name="stream" desc="" />
<Param type="AudioCallback" name="processor" desc="" />
</Function>
<Function name="AttachAudioMixedProcessor" retType="void" paramCount="1" desc="Attach audio stream processor to the entire audio pipeline">
<Function name="AttachAudioMixedProcessor" retType="void" paramCount="1" desc="Attach audio stream processor to the entire audio pipeline, receives the samples as <float>s">
<Param type="AudioCallback" name="processor" desc="" />
</Function>
<Function name="DetachAudioMixedProcessor" retType="void" paramCount="1" desc="Detach audio stream processor from the entire audio pipeline">

Loading…
Откажи
Сачувај