Skip to content

Commit 0fb6a32

Browse files
committed
Update dependencies
1 parent ac266d0 commit 0fb6a32

File tree

10 files changed

+64
-11
lines changed

10 files changed

+64
-11
lines changed

gtk-server/uthash

Submodule uthash updated 1 file

raylib/README.md

+6-2
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 (613)
7+
Implemented APIs (617)
88
----------------
99

1010
| Name | Description |
@@ -19,6 +19,7 @@ Implemented APIs (613)
1919
| func ChangeDirectory(dir) | Change working directory, return true on success |
2020
| func CheckCollisionBoxes(box1, box2) | Check collision between two bounding boxes |
2121
| func CheckCollisionBoxSphere(box, center, radius) | Check collision between box and sphere |
22+
| func CheckCollisionCircleLine(center, radius, p1, p2) | Check if circle collides with a line created betweeen two points [p1] and [p2] |
2223
| func CheckCollisionCircleRec(center, radius, rec) | Check collision between circle and rectangle |
2324
| func CheckCollisionCircles(center1, radius1, center2, radius2) | Check collision between two circles |
2425
| func CheckCollisionLines(startPos1, endPos1, startPos2, endPos2, collisionPoint) | Check the collision between two lines defined by two points each, returns collision point by reference |
@@ -381,6 +382,7 @@ Implemented APIs (613)
381382
| func IsCursorOnScreen() | Check if cursor is on the screen |
382383
| func IsFileDropped() | Check if a file has been dropped into window |
383384
| func IsFileExtension(fileName, ext) | Check file extension (including point: .png, .wav) |
385+
| func IsFileNameValid(fileName) | Check if fileName is valid for the platform/OS |
384386
| func IsFontReady(font) | Check if a font is ready |
385387
| func IsGamepadAvailable(gamepad) | Check if a gamepad is available |
386388
| func IsGamepadButtonDown(gamepad, button) | Check if a gamepad button is being pressed |
@@ -574,10 +576,12 @@ Implemented APIs (613)
574576
| func TextLength(text) | Get text length, checks for '\\0' ending |
575577
| func TextReplace(text, replace, by) | Replace text string (WARNING: memory must be freed!) |
576578
| func TextSubtext(text, position, length) | Get a piece of a text string |
579+
| func TextToCamel(text) | Get Camel case notation version of provided string |
577580
| func TextToFloat(text) | Get float value from text (negative values not supported) |
578581
| func TextToInteger(text) | Get integer value from text (negative values not supported) |
579582
| func TextToLower(text) | Get lower case version of provided string |
580583
| func TextToPascal(text) | Get Pascal case notation version of provided string |
584+
| func TextToSnake(text) | Get Snake case notation version of provided string |
581585
| func TextToUpper(text) | Get upper case version of provided string |
582586
| sub ToggleBorderlessWindowed() | Toggle window state: borderless windowed (only PLATFORM_DESKTOP) |
583587
| sub ToggleFullscreen() | Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP) |
@@ -619,7 +623,7 @@ Implemented APIs (613)
619623
| func waitevents() | n/a |
620624
| sub WaitTime(seconds) | Wait for some time (halt program execution) |
621625
| func WaveCopy(wave) | Copy a wave to a new wave |
622-
| sub WaveCrop(wave, initSample, finalSample) | Crop a wave to defined samples range |
626+
| sub WaveCrop(wave, initFrame, finalFrame) | Crop a wave to defined frames range |
623627
| sub WaveFormat(wave, sampleRate, sampleSize, channels) | Convert wave data to desired format |
624628
| func WindowShouldClose() | Check if application should close (KEY_ESCAPE pressed or windows close icon clicked) |
625629

raylib/func-def.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{1, 1, "CHANGEDIRECTORY", cmd_changedirectory},
22
{2, 2, "CHECKCOLLISIONBOXES", cmd_checkcollisionboxes},
33
{3, 3, "CHECKCOLLISIONBOXSPHERE", cmd_checkcollisionboxsphere},
4+
{4, 4, "CHECKCOLLISIONCIRCLELINE", cmd_checkcollisioncircleline},
45
{3, 3, "CHECKCOLLISIONCIRCLEREC", cmd_checkcollisioncirclerec},
56
{4, 4, "CHECKCOLLISIONCIRCLES", cmd_checkcollisioncircles},
67
{5, 5, "CHECKCOLLISIONLINES", cmd_checkcollisionlines},
@@ -164,6 +165,7 @@
164165
{0, 0, "ISCURSORONSCREEN", cmd_iscursoronscreen},
165166
{0, 0, "ISFILEDROPPED", cmd_isfiledropped},
166167
{2, 2, "ISFILEEXTENSION", cmd_isfileextension},
168+
{1, 1, "ISFILENAMEVALID", cmd_isfilenamevalid},
167169
{1, 1, "ISFONTREADY", cmd_isfontready},
168170
{1, 1, "ISGAMEPADAVAILABLE", cmd_isgamepadavailable},
169171
{2, 2, "ISGAMEPADBUTTONDOWN", cmd_isgamepadbuttondown},
@@ -252,10 +254,12 @@
252254
{1, 1, "TEXTLENGTH", cmd_textlength},
253255
{3, 3, "TEXTREPLACE", cmd_textreplace},
254256
{3, 3, "TEXTSUBTEXT", cmd_textsubtext},
257+
{1, 1, "TEXTTOCAMEL", cmd_texttocamel},
255258
{1, 1, "TEXTTOFLOAT", cmd_texttofloat},
256259
{1, 1, "TEXTTOINTEGER", cmd_texttointeger},
257260
{1, 1, "TEXTTOLOWER", cmd_texttolower},
258261
{1, 1, "TEXTTOPASCAL", cmd_texttopascal},
262+
{1, 1, "TEXTTOSNAKE", cmd_texttosnake},
259263
{1, 1, "TEXTTOUPPER", cmd_texttoupper},
260264
{1, 1, "WAVECOPY", cmd_wavecopy},
261265
{0, 0, "WINDOWSHOULDCLOSE", cmd_windowshouldclose},

raylib/func.h

+43
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,19 @@ static int cmd_checkcollisionboxsphere(int argc, slib_par_t *params, var_t *retv
3131
return 1;
3232
}
3333

34+
//
35+
// Check if circle collides with a line created betweeen two points [p1] and [p2]
36+
//
37+
static int cmd_checkcollisioncircleline(int argc, slib_par_t *params, var_t *retval) {
38+
auto center = get_param_vec2(argc, params, 0);
39+
auto radius = get_param_num(argc, params, 1, 0);
40+
auto p1 = get_param_vec2(argc, params, 2);
41+
auto p2 = get_param_vec2(argc, params, 3);
42+
auto fnResult = CheckCollisionCircleLine(center, radius, p1, p2);
43+
v_setint(retval, fnResult);
44+
return 1;
45+
}
46+
3447
//
3548
// Check collision between circle and rectangle
3649
//
@@ -1944,6 +1957,16 @@ static int cmd_isfileextension(int argc, slib_par_t *params, var_t *retval) {
19441957
return 1;
19451958
}
19461959

1960+
//
1961+
// Check if fileName is valid for the platform/OS
1962+
//
1963+
static int cmd_isfilenamevalid(int argc, slib_par_t *params, var_t *retval) {
1964+
auto fileName = get_param_str(argc, params, 0, 0);
1965+
auto fnResult = IsFileNameValid(fileName);
1966+
v_setint(retval, fnResult);
1967+
return 1;
1968+
}
1969+
19471970
//
19481971
// Check if a font is ready
19491972
//
@@ -3010,6 +3033,16 @@ static int cmd_textsubtext(int argc, slib_par_t *params, var_t *retval) {
30103033
return 1;
30113034
}
30123035

3036+
//
3037+
// Get Camel case notation version of provided string
3038+
//
3039+
static int cmd_texttocamel(int argc, slib_par_t *params, var_t *retval) {
3040+
auto text = get_param_str(argc, params, 0, 0);
3041+
auto fnResult = (const char *)TextToCamel(text);
3042+
v_setstr(retval, fnResult);
3043+
return 1;
3044+
}
3045+
30133046
//
30143047
// Get float value from text (negative values not supported)
30153048
//
@@ -3050,6 +3083,16 @@ static int cmd_texttopascal(int argc, slib_par_t *params, var_t *retval) {
30503083
return 1;
30513084
}
30523085

3086+
//
3087+
// Get Snake case notation version of provided string
3088+
//
3089+
static int cmd_texttosnake(int argc, slib_par_t *params, var_t *retval) {
3090+
auto text = get_param_str(argc, params, 0, 0);
3091+
auto fnResult = (const char *)TextToSnake(text);
3092+
v_setstr(retval, fnResult);
3093+
return 1;
3094+
}
3095+
30533096
//
30543097
// Get upper case version of provided string
30553098
//

raylib/mkraylib.bas

+2
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ func get_param_name(byref param)
6262
case "modelanimation *": result = "(ModelAnimation *)get_param_int_t"
6363
case "modelanimation*": result = "(ModelAnimation *)get_param_int_t"
6464
case "texture2d *": result = "(Texture2D *)get_param_int_t"
65+
case "const vector2 *": result = "(Vector2 *)get_param_vec2_array"
66+
case "const vector3 *": result = "(Vector3 *)get_param_vec3_array"
6567
case "vector2 *": result = "(Vector2 *)get_param_vec2_array"
6668
case "vector3 *": result = "(Vector3 *)get_param_vec3_array"
6769
case "wave *": result = "(Wave *)get_param_int_t"

raylib/proc.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -3426,13 +3426,13 @@ static int cmd_waittime(int argc, slib_par_t *params, var_t *retval) {
34263426
}
34273427

34283428
//
3429-
// Crop a wave to defined samples range
3429+
// Crop a wave to defined frames range
34303430
//
34313431
static int cmd_wavecrop(int argc, slib_par_t *params, var_t *retval) {
34323432
auto wave = (Wave *)get_param_int_t(argc, params, 0, 0);
3433-
auto initSample = get_param_int(argc, params, 1, 0);
3434-
auto finalSample = get_param_int(argc, params, 2, 0);
3435-
WaveCrop(wave, initSample, finalSample);
3433+
auto initFrame = get_param_int(argc, params, 1, 0);
3434+
auto finalFrame = get_param_int(argc, params, 2, 0);
3435+
WaveCrop(wave, initFrame, finalFrame);
34363436
return 1;
34373437
}
34383438

raylib/raylib

Submodule raylib updated 53 files

websocket/mongoose

Submodule mongoose updated 661 files

0 commit comments

Comments
 (0)