Update raylib_api.* (#3379)

This commit is contained in:
BLUELOVETH
2023-10-08 03:10:27 +08:00
committed by GitHub
parent 52ba44c474
commit 97c2744a16
4 changed files with 1088 additions and 686 deletions

View File

@ -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,
"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",
"name": "PIXELFORMAT_COMPRESSED_ETC1_RGB",
"value": 18,
"description": "4 bpp"
},
{
"name": "PIXELFORMAT_COMPRESSED_PVRT_RGBA",
"name": "PIXELFORMAT_COMPRESSED_ETC2_RGB",
"value": 19,
"description": "4 bpp"
},
{
"name": "PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA",
"name": "PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA",
"value": 20,
"description": "8 bpp"
},
{
"name": "PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA",
"name": "PIXELFORMAT_COMPRESSED_PVRT_RGB",
"value": 21,
"description": "4 bpp"
},
{
"name": "PIXELFORMAT_COMPRESSED_PVRT_RGBA",
"value": 22,
"description": "4 bpp"
},
{
"name": "PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA",
"value": 23,
"description": "8 bpp"
},
{
"name": "PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA",
"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": [
{