diff options
| author | Ethan Conneely <[email protected]> | 2022-03-08 19:00:09 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-08 20:00:09 +0100 |
| commit | 43dbe67431dac3e44c514cf1839f49cae69777b6 (patch) | |
| tree | a77a8bae20a5a8f6f7e1f7085a563340afb8bc10 /parser/raylib_api.json | |
| parent | e9f97e1165eedb1c56d501934b449fd3b08ed821 (diff) | |
| download | raylib-43dbe67431dac3e44c514cf1839f49cae69777b6.tar.gz raylib-43dbe67431dac3e44c514cf1839f49cae69777b6.zip | |
Update parser (#2375)
* Add variable len args support
* Api Regen for 4.1dev
Diffstat (limited to 'parser/raylib_api.json')
| -rw-r--r-- | parser/raylib_api.json | 473 |
1 files changed, 444 insertions, 29 deletions
diff --git a/parser/raylib_api.json b/parser/raylib_api.json index 5f703a77..7cf8d8b8 100644 --- a/parser/raylib_api.json +++ b/parser/raylib_api.json @@ -2349,9 +2349,14 @@ "description": "Blend textures subtracting colors (alternative)" }, { - "name": "BLEND_CUSTOM", + "name": "BLEND_ALPHA_PREMUL", "value": 5, - "description": "Belnd textures using custom src/dst factors (use rlSetBlendMode())" + "description": "Blend premultiplied textures considering alpha" + }, + { + "name": "BLEND_CUSTOM", + "value": 6, + "description": "Blend textures using custom src/dst factors (use rlSetBlendMode())" } ] }, @@ -2485,6 +2490,320 @@ ] } ], + "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": "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": "" + } + ], "functions": [ { "name": "InitWindow", @@ -3400,8 +3719,8 @@ "name": "text" }, { - "type": "", - "name": "" + "type": "...", + "name": "args" } ] }, @@ -3628,6 +3947,17 @@ ] }, { + "name": "GetFileLength", + "description": "Get file length in bytes (NOTE: GetFileSize() conflicts with windows.h)", + "returnType": "int", + "params": [ + { + "type": "const char *", + "name": "fileName" + } + ] + }, + { "name": "GetFileExtension", "description": "Get pointer to extension for a filename string (includes dot: '.png')", "returnType": "const char *", @@ -3688,6 +4018,11 @@ "returnType": "const char *" }, { + "name": "GetApplicationDirectory", + "description": "Get the directory if the running application (uses static string)", + "returnType": "const char *" + }, + { "name": "GetDirectoryFiles", "description": "Get filenames in a directory path (memory should be freed)", "returnType": "char **", @@ -3756,7 +4091,7 @@ "returnType": "unsigned char *", "params": [ { - "type": "unsigned char *", + "type": "const unsigned char *", "name": "data" }, { @@ -3775,7 +4110,7 @@ "returnType": "unsigned char *", "params": [ { - "type": "unsigned char *", + "type": "const unsigned char *", "name": "compData" }, { @@ -3813,7 +4148,7 @@ "returnType": "unsigned char *", "params": [ { - "type": "unsigned char *", + "type": "const unsigned char *", "name": "data" }, { @@ -7509,6 +7844,41 @@ ] }, { + "name": "DrawTextCodepoints", + "description": "Draw multiple character (codepoint)", + "returnType": "void", + "params": [ + { + "type": "Font", + "name": "font" + }, + { + "type": "const int *", + "name": "codepoints" + }, + { + "type": "int", + "name": "count" + }, + { + "type": "Vector2", + "name": "position" + }, + { + "type": "float", + "name": "fontSize" + }, + { + "type": "float", + "name": "spacing" + }, + { + "type": "Color", + "name": "tint" + } + ] + }, + { "name": "MeasureText", "description": "Measure string width for default font", "returnType": "int", @@ -7664,7 +8034,7 @@ "returnType": "char *", "params": [ { - "type": "int *", + "type": "const int *", "name": "codepoints" }, { @@ -7724,8 +8094,8 @@ "name": "text" }, { - "type": "", - "name": "" + "type": "...", + "name": "args" } ] }, @@ -8717,7 +9087,7 @@ "name": "index" }, { - "type": "void *", + "type": "const void *", "name": "data" }, { @@ -8774,7 +9144,7 @@ "name": "material" }, { - "type": "Matrix *", + "type": "const Matrix *", "name": "transforms" }, { @@ -9160,7 +9530,7 @@ "returnType": "void", "params": [ { - "type": "ModelAnimation*", + "type": "ModelAnimation *", "name": "animations" }, { @@ -9615,25 +9985,17 @@ ] }, { - "name": "WaveFormat", - "description": "Convert wave data to desired format", + "name": "SetSoundPan", + "description": "Set pan for a sound (0.5 is center)", "returnType": "void", "params": [ { - "type": "Wave *", - "name": "wave" - }, - { - "type": "int", - "name": "sampleRate" - }, - { - "type": "int", - "name": "sampleSize" + "type": "Sound", + "name": "sound" }, { - "type": "int", - "name": "channels" + "type": "float", + "name": "pan" } ] }, @@ -9668,8 +10030,31 @@ ] }, { + "name": "WaveFormat", + "description": "Convert wave data to desired format", + "returnType": "void", + "params": [ + { + "type": "Wave *", + "name": "wave" + }, + { + "type": "int", + "name": "sampleRate" + }, + { + "type": "int", + "name": "sampleSize" + }, + { + "type": "int", + "name": "channels" + } + ] + }, + { "name": "LoadWaveSamples", - "description": "Load samples data from wave as a floats array", + "description": "Load samples data from wave as a 32bit float data array", "returnType": "float *", "params": [ { @@ -9710,7 +10095,7 @@ "name": "fileType" }, { - "type": "unsigned char *", + "type": "const unsigned char *", "name": "data" }, { @@ -9842,6 +10227,21 @@ ] }, { + "name": "SetMusicPan", + "description": "Set pan for a music (0.5 is center)", + "returnType": "void", + "params": [ + { + "type": "Music", + "name": "music" + }, + { + "type": "float", + "name": "pan" + } + ] + }, + { "name": "GetMusicTimeLength", "description": "Get music time length (in seconds)", "returnType": "float", @@ -10009,6 +10409,21 @@ ] }, { + "name": "SetAudioStreamPan", + "description": "Set pan for audio stream (0.5 is centered)", + "returnType": "void", + "params": [ + { + "type": "AudioStream", + "name": "stream" + }, + { + "type": "float", + "name": "pan" + } + ] + }, + { "name": "SetAudioStreamBufferSizeDefault", "description": "Default size for new audio streams", "returnType": "void", |
