Skip to content

Commit 82be1e0

Browse files
committed
Update dependencies
1 parent a2646bd commit 82be1e0

File tree

10 files changed

+56
-11
lines changed

10 files changed

+56
-11
lines changed

raylib/README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ raylib is a simple and easy-to-use library to enjoy videogames programming.
44

55
https://www.raylib.com/
66

7-
Implemented APIs (626)
7+
Implemented APIs (629)
88
----------------
99

1010
| Name | Description |
@@ -43,6 +43,7 @@ Implemented APIs (626)
4343
| func ColorFromHSV(hue, saturation, value) | Get a Color from HSV values, hue [0..360], saturation/value [0..1] |
4444
| func ColorFromNormalized(normalized) | Get Color from normalized values [0..1] |
4545
| func ColorIsEqual(col1, col2) | Check if two colors are equal |
46+
| func ColorLerp(color1, color2, factor) | Get color lerp interpolation between two colors, factor [0.0f..1.0f] |
4647
| func ColorNormalize(color) | Get Color normalized as float [0..1] |
4748
| func ColorTint(color, tint) | Get color multiplied with another color |
4849
| func ColorToHSV(color) | Get HSV values for a Color, hue [0..360], saturation/value [0..1] |
@@ -432,12 +433,12 @@ Implemented APIs (626)
432433
| func LoadAutomationEventList(fileName) | Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS |
433434
| func LoadCodepoints(text, count) | Load all codepoints from a UTF-8 text string, codepoints count returned by parameter |
434435
| func LoadDirectoryFiles(dirPath) | Load directory filepaths |
435-
| func LoadDirectoryFilesEx(basePath, filter, scanSubdirs) | Load directory filepaths with extension filtering and recursive directory scan |
436+
| func LoadDirectoryFilesEx(basePath, filter, scanSubdirs) | Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result |
436437
| func LoadDroppedFiles() | Load dropped filepaths |
437438
| func LoadFileData(fileName, dataSize) | Load file data as byte array (read) |
438439
| func LoadFileText(fileName) | Load text data from file (read), returns a '\\0' terminated string |
439440
| func LoadFont(fileName) | Load font from file into GPU memory (VRAM) |
440-
| func LoadFontEx(fileName, fontSize, codepoints, codepointCount) | Load font from file with extended parameters |
441+
| func LoadFontEx(fileName, fontSize, codepoints, codepointCount) | Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height |
441442
| func LoadFontFromImage(image, key, firstChar) | Load font from Image (XNA style) |
442443
| func LoadFontFromMemory(fileType, fileData, dataSize, fontSize, codepoints, codepointCount) | Load font from memory buffer, fileType refers to extension: i.e. '.ttf' |
443444
| func LoadImage(fileName) | Load image from file into CPU memory (RAM) |
@@ -469,6 +470,7 @@ Implemented APIs (626)
469470
| func LoadWave(fileName) | Load wave data from file |
470471
| func LoadWaveFromMemory(fileType, fileData, dataSize) | Load wave from memory buffer, fileType refers to extension: i.e. '.wav' |
471472
| func LoadWaveSamples(wave) | Load samples data from wave as a 32bit float data array |
473+
| func MakeDirectory(dirPath) | Create directories (including full path requested), returns 0 on success |
472474
| sub MaximizeWindow() | Set window state: maximized, if resizable (only PLATFORM_DESKTOP) |
473475
| func MeasureText(text, fontSize) | Measure string width for default font |
474476
| func MeasureTextEx(font, text, fontSize, spacing) | Measure string size for Font |
@@ -623,6 +625,7 @@ Implemented APIs (626)
623625
| sub UpdateCamera(camera, mode) | Update camera position for selected mode |
624626
| sub UpdateMeshBuffer(mesh, index, data, dataSize, offset) | Update mesh vertex data in GPU for a specific buffer index |
625627
| sub UpdateModelAnimation(model, anim, frame) | Update model animation pose |
628+
| sub UpdateModelAnimationBoneMatrices(model, anim, frame) | Update model animation mesh bone matrices |
626629
| sub UpdateMusicStream(music) | Updates buffers for music streaming |
627630
| func updatePhysics() | n/a |
628631
| sub UpdateSound(sound, data, sampleCount) | Update sound buffer with new data |

raylib/func-def.h

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
{3, 3, "COLORFROMHSV", cmd_colorfromhsv},
2121
{1, 1, "COLORFROMNORMALIZED", cmd_colorfromnormalized},
2222
{2, 2, "COLORISEQUAL", cmd_colorisequal},
23+
{3, 3, "COLORLERP", cmd_colorlerp},
2324
{1, 1, "COLORNORMALIZE", cmd_colornormalize},
2425
{2, 2, "COLORTINT", cmd_colortint},
2526
{1, 1, "COLORTOHSV", cmd_colortohsv},
@@ -241,6 +242,7 @@
241242
{1, 1, "LOADWAVE", cmd_loadwave},
242243
{3, 3, "LOADWAVEFROMMEMORY", cmd_loadwavefrommemory},
243244
{1, 1, "LOADWAVESAMPLES", cmd_loadwavesamples},
245+
{1, 1, "MAKEDIRECTORY", cmd_makedirectory},
244246
{2, 2, "MEASURETEXT", cmd_measuretext},
245247
{4, 4, "MEASURETEXTEX", cmd_measuretextex},
246248
{1, 1, "MEMALLOC", cmd_memalloc},

raylib/func.h

+24-2
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,18 @@ static int cmd_colorisequal(int argc, slib_par_t *params, var_t *retval) {
258258
return 1;
259259
}
260260

261+
//
262+
// Get color lerp interpolation between two colors, factor [0.0f..1.0f]
263+
//
264+
static int cmd_colorlerp(int argc, slib_par_t *params, var_t *retval) {
265+
auto color1 = get_param_color(argc, params, 0);
266+
auto color2 = get_param_color(argc, params, 1);
267+
auto factor = get_param_num(argc, params, 2, 0);
268+
auto fnResult = ColorLerp(color1, color2, factor);
269+
v_setcolor(retval, fnResult);
270+
return 1;
271+
}
272+
261273
//
262274
// Get Color normalized as float [0..1]
263275
//
@@ -2452,7 +2464,7 @@ static int cmd_loaddirectoryfiles(int argc, slib_par_t *params, var_t *retval) {
24522464
}
24532465

24542466
//
2455-
// Load directory filepaths with extension filtering and recursive directory scan
2467+
// Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result
24562468
//
24572469
static int cmd_loaddirectoryfilesex(int argc, slib_par_t *params, var_t *retval) {
24582470
auto basePath = get_param_str(argc, params, 0, 0);
@@ -2506,7 +2518,7 @@ static int cmd_loadfont(int argc, slib_par_t *params, var_t *retval) {
25062518
}
25072519

25082520
//
2509-
// Load font from file with extended parameters
2521+
// Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character set, font size is provided in pixels height
25102522
//
25112523
static int cmd_loadfontex(int argc, slib_par_t *params, var_t *retval) {
25122524
auto fileName = get_param_str(argc, params, 0, 0);
@@ -2887,6 +2899,16 @@ static int cmd_loadwavesamples(int argc, slib_par_t *params, var_t *retval) {
28872899
return result;
28882900
}
28892901

2902+
//
2903+
// Create directories (including full path requested), returns 0 on success
2904+
//
2905+
static int cmd_makedirectory(int argc, slib_par_t *params, var_t *retval) {
2906+
auto dirPath = get_param_str(argc, params, 0, 0);
2907+
auto fnResult = MakeDirectory(dirPath);
2908+
v_setint(retval, fnResult);
2909+
return 1;
2910+
}
2911+
28902912
//
28912913
// Measure string width for default font
28922914
//

raylib/proc-def.h

+1
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@
262262
{3, 3, "UPDATEAUDIOSTREAM", cmd_updateaudiostream},
263263
{5, 5, "UPDATEMESHBUFFER", cmd_updatemeshbuffer},
264264
{3, 3, "UPDATEMODELANIMATION", cmd_updatemodelanimation},
265+
{3, 3, "UPDATEMODELANIMATIONBONEMATRICES", cmd_updatemodelanimationbonematrices},
265266
{1, 1, "UPDATEMUSICSTREAM", cmd_updatemusicstream},
266267
{3, 3, "UPDATESOUND", cmd_updatesound},
267268
{3, 3, "UPDATETEXTUREREC", cmd_updatetexturerec},

raylib/proc.h

+17
Original file line numberDiff line numberDiff line change
@@ -3509,6 +3509,23 @@ static int cmd_updatemodelanimation(int argc, slib_par_t *params, var_t *retval)
35093509
return result;
35103510
}
35113511

3512+
//
3513+
// Update model animation mesh bone matrices
3514+
//
3515+
static int cmd_updatemodelanimationbonematrices(int argc, slib_par_t *params, var_t *retval) {
3516+
int result;
3517+
int model_id = get_model_id(argc, params, 0, retval);
3518+
int anim_id = get_model_animation_id(argc, params, 1, retval);
3519+
if (model_id != -1 && anim_id != -1) {
3520+
auto frame = get_param_int(argc, params, 2, 0);
3521+
UpdateModelAnimationBoneMatrices(_modelMap.at(model_id), _modelAnimationMap.at(anim_id), frame);
3522+
result = 1;
3523+
} else {
3524+
result = 0;
3525+
}
3526+
return result;
3527+
}
3528+
35123529
//
35133530
// Updates buffers for music streaming
35143531
//

raylib/raygui

raylib/samples/textures_image_generation.bas

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const screenHeight = 450
1919

2020
rl.InitWindow(screenWidth, screenHeight, "SmallBASIC/raylib [textures] example - procedural images generation")
2121

22-
verticalGradient = rl.GenImageGradientV(screenWidth, screenHeight, c.RED, c.BLUE)
23-
horizontalGradient = rl.GenImageGradientH(screenWidth, screenHeight, c.RED, c.BLUE)
22+
verticalGradient = rl.GenImageGradientLinear(screenWidth, screenHeight, 0, c.RED, c.BLUE)
23+
horizontalGradient = rl.GenImageGradientLinear(screenWidth, screenHeight, 90, c.RED, c.BLUE)
2424
radialGradient = rl.GenImageGradientRadial(screenWidth, screenHeight, 0.0, c.WHITE, c.BLACK)
2525
checked = rl.GenImageChecked(screenWidth, screenHeight, 32, 32, c.RED, c.BLUE)
2626
whiteNoise = rl.GenImageWhiteNoise(screenWidth, screenHeight, 0.5)

websocket/mongoose

Submodule mongoose updated 201 files

0 commit comments

Comments
 (0)