Skip to content

Commit 906d014

Browse files
committed
Update to latest raylib changes. Implemented automation events
1 parent 8d685d5 commit 906d014

10 files changed

Lines changed: 747 additions & 75 deletions

File tree

raylib/README.md

Lines changed: 35 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
*Raylib* _MAJOR 4 _MINOR 6 _PATCH 0 4.6-dev
1+
*Raylib* _MAJOR 5 _MINOR 0 _PATCH 0 5.0
22
=======
33
raylib is a simple and easy-to-use library to enjoy videogames programming.
44

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

7-
Implemented APIs (580)
7+
Implemented APIs (604)
88
----------------
99

1010
| Name | Description |
@@ -65,6 +65,7 @@ Implemented APIs (580)
6565
| sub DrawCircle3D(center, radius, rotationAxis, rotationAngle, color) | Draw a circle in 3D world space |
6666
| sub DrawCircleGradient(centerX, centerY, radius, color1, color2) | Draw a gradient-filled circle |
6767
| sub DrawCircleLines(centerX, centerY, radius, color) | Draw circle outline |
68+
| sub DrawCircleLinesV(center, radius, color) | Draw circle outline (Vector version) |
6869
| sub DrawCircleSector(center, radius, startAngle, endAngle, segments, color) | Draw a piece of a circle |
6970
| sub DrawCircleSectorLines(center, radius, startAngle, endAngle, segments, color) | Draw circle sector outline |
7071
| sub DrawCircleV(center, radius, color) | Draw a color-filled circle (Vector version) |
@@ -82,14 +83,10 @@ Implemented APIs (580)
8283
| sub DrawGrid(slices, spacing) | Draw a grid (centered at (0, 0, 0)) |
8384
| sub DrawLine(startPosX, startPosY, endPosX, endPosY, color) | Draw a line |
8485
| sub DrawLine3D(startPos, endPos, color) | Draw a line in 3D world space |
85-
| sub DrawLineBezier(startPos, endPos, thick, color) | Draw a line using cubic-bezier curves in-out |
86-
| sub DrawLineBezierCubic(startPos, endPos, startControlPos, endControlPos, thick, color) | Draw line using cubic bezier curves with 2 control points |
87-
| sub DrawLineBezierQuad(startPos, endPos, controlPos, thick, color) | Draw line using quadratic bezier curves with a control point |
88-
| sub DrawLineBSpline(points, pointCount, thick, color) | Draw a B-Spline line, minimum 4 points |
89-
| sub DrawLineCatmullRom(points, pointCount, thick, color) | Draw a Catmull Rom spline line, minimum 4 points |
90-
| sub DrawLineEx(startPos, endPos, thick, color) | Draw a line defining thickness |
91-
| sub DrawLineStrip(points, pointCount, color) | Draw lines sequence |
92-
| sub DrawLineV(startPos, endPos, color) | Draw a line (Vector version) |
86+
| sub DrawLineBezier(startPos, endPos, thick, color) | Draw line segment cubic-bezier in-out interpolation |
87+
| sub DrawLineEx(startPos, endPos, thick, color) | Draw a line (using triangles/quads) |
88+
| sub DrawLineStrip(points, pointCount, color) | Draw lines sequence (using gl lines) |
89+
| sub DrawLineV(startPos, endPos, color) | Draw a line (using gl lines) |
9390
| sub DrawModel(model, position, scale, tint) | Draw a model (with texture if set) |
9491
| sub DrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint) | Draw a model with extended parameters |
9592
| sub DrawModelWires(model, position, scale, tint) | Draw a model wires (with texture if set) |
@@ -118,6 +115,16 @@ Implemented APIs (580)
118115
| sub DrawSphere(centerPos, radius, color) | Draw sphere |
119116
| sub DrawSphereEx(centerPos, radius, rings, slices, color) | Draw sphere with extended parameters |
120117
| sub DrawSphereWires(centerPos, radius, rings, slices, color) | Draw sphere wires |
118+
| sub DrawSplineBasis(points, pointCount, thick, color) | Draw spline: B-Spline, minimum 4 points |
119+
| sub DrawSplineBezierCubic(points, pointCount, thick, color) | Draw spline: Cubic Bezier, minimum 4 points (2 control points): [p1, c2, c3, p4, c5, c6...] |
120+
| sub DrawSplineBezierQuadratic(points, pointCount, thick, color) | Draw spline: Quadratic Bezier, minimum 3 points (1 control point): [p1, c2, p3, c4...] |
121+
| sub DrawSplineCatmullRom(points, pointCount, thick, color) | Draw spline: Catmull-Rom, minimum 4 points |
122+
| sub DrawSplineLinear(points, pointCount, thick, color) | Draw spline: Linear, minimum 2 points |
123+
| sub DrawSplineSegmentBasis(p1, p2, p3, p4, thick, color) | Draw spline segment: B-Spline, 4 points |
124+
| sub DrawSplineSegmentBezierCubic(p1, c2, c3, p4, thick, color) | Draw spline segment: Cubic Bezier, 2 points, 2 control points |
125+
| sub DrawSplineSegmentBezierQuadratic(p1, c2, p3, thick, color) | Draw spline segment: Quadratic Bezier, 2 points, 1 control point |
126+
| sub DrawSplineSegmentCatmullRom(p1, p2, p3, p4, thick, color) | Draw spline segment: Catmull-Rom, 4 points |
127+
| sub DrawSplineSegmentLinear(p1, p2, thick, color) | Draw spline segment: Linear, 2 points |
121128
| sub DrawText(text, posX, posY, fontSize, color) | Draw text (using default font) |
122129
| sub DrawTextCodepoint(font, codepoint, position, fontSize, tint) | Draw one character (codepoint) |
123130
| sub DrawTextCodepoints(font, codepoints, codepointCount, position, fontSize, spacing, tint) | Draw multiple character (codepoint) |
@@ -146,6 +153,7 @@ Implemented APIs (580)
146153
| sub EndShaderMode() | End custom shader drawing (use default shader) |
147154
| sub EndTextureMode() | Ends drawing to render texture |
148155
| sub EndVrStereoMode() | End stereo rendering (requires VR simulator) |
156+
| func ExportAutomationEventList(list, fileName) | Export automation events list as text file |
149157
| func ExportDataAsCode(data, dataSize, fileName) | Export data to code (.h), returns true on success |
150158
| func ExportFontAsCode(font, fileName) | Export font as code file, returns true on success |
151159
| func ExportImage(image, fileName) | Export image data to file, returns true on success |
@@ -214,6 +222,7 @@ Implemented APIs (580)
214222
| func GetImageAlphaBorder(image, threshold) | Get image alpha border rectangle |
215223
| func GetImageColor(image, x, y) | Get image pixel color at (x, y) position |
216224
| func GetKeyPressed() | Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty |
225+
| func GetMasterVolume() | Get master volume (listener) |
217226
| func GetModelBoundingBox(model) | Compute model bounding box limits (considers all meshes) |
218227
| func GetMonitorCount() | Get number of connected monitors |
219228
| func GetMonitorHeight(monitor) | Get specified monitor height (current video mode used by monitor) |
@@ -253,6 +262,11 @@ Implemented APIs (580)
253262
| func GetScreenWidth() | Get current screen width |
254263
| func GetShaderLocation(shader, uniformName) | Get shader uniform location |
255264
| func GetShaderLocationAttrib(shader, attribName) | Get shader attribute location |
265+
| func GetSplinePointBasis(p1, p2, p3, p4, t) | Get (evaluate) spline point: B-Spline |
266+
| func GetSplinePointBezierCubic(p1, c2, c3, p4, t) | Get (evaluate) spline point: Cubic Bezier |
267+
| func GetSplinePointBezierQuad(p1, c2, p3, t) | Get (evaluate) spline point: Quadratic Bezier |
268+
| func GetSplinePointCatmullRom(p1, p2, p3, p4, t) | Get (evaluate) spline point: Catmull-Rom |
269+
| func GetSplinePointLinear(startPos, endPos, t) | Get (evaluate) spline point: Linear |
256270
| func GetTime() | Get elapsed time in seconds since InitWindow() |
257271
| func GetTouchPointCount() | Get number of touch points |
258272
| func GetTouchPointId(index) | Get touch point identifier for given index |
@@ -397,6 +411,7 @@ Implemented APIs (580)
397411
| func IsWindowResized() | Check if window has been resized last frame |
398412
| func IsWindowState(flag) | Check if one specific window flag is enabled |
399413
| func LoadAudioStream(sampleRate, sampleSize, channels) | Load audio stream (to stream raw audio pcm data) |
414+
| func LoadAutomationEventList(fileName) | Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS |
400415
| func LoadCodepoints(text, count) | Load all codepoints from a UTF-8 text string, codepoints count returned by parameter |
401416
| func LoadDirectoryFiles(dirPath) | Load directory filepaths |
402417
| func LoadDirectoryFilesEx(basePath, filter, scanSubdirs) | Load directory filepaths with extension filtering and recursive directory scan |
@@ -421,6 +436,7 @@ Implemented APIs (580)
421436
| func LoadModelFromMesh(mesh) | Load model from generated mesh (default material) |
422437
| func LoadMusicStream(fileName) | Load music stream from file |
423438
| func LoadMusicStreamFromMemory(fileType, data, dataSize) | Load music stream from data |
439+
| func LoadRandomSequence(count, min, max) | Load random values sequence, no values repeated |
424440
| func LoadRenderTexture(width, height) | Load texture for rendering (framebuffer) |
425441
| func LoadShader(vsFileName, fsFileName) | Load shader from files and bind default locations |
426442
| func LoadShaderFromMemory(vsCode, fsCode) | Load shader from code strings and bind default locations |
@@ -451,6 +467,7 @@ Implemented APIs (580)
451467
| func Physicsshapetype() | n/a |
452468
| func Physicsshatter() | n/a |
453469
| sub PlayAudioStream(stream) | Play audio stream |
470+
| sub PlayAutomationEvent(event) | Play a recorded automation event |
454471
| sub PlayMusicStream(music) | Start music playing |
455472
| sub PlaySound(sound) | Play a sound |
456473
| func pollevents() | n/a |
@@ -467,6 +484,8 @@ Implemented APIs (580)
467484
| sub SetAudioStreamPan(stream, pan) | Set pan for audio stream (0.5 is centered) |
468485
| sub SetAudioStreamPitch(stream, pitch) | Set pitch for audio stream (1.0 is base level) |
469486
| sub SetAudioStreamVolume(stream, volume) | Set volume for audio stream (1.0 is max level) |
487+
| sub SetAutomationEventBaseFrame(frame) | Set automation event internal base frame to start recording |
488+
| sub SetAutomationEventList(list) | Set automation event list to record to |
470489
| sub SetClipboardText(text) | Set clipboard text content |
471490
| sub SetConfigFlags(flags) | Setup init configuration flags (view FLAGS) |
472491
| sub SetExitKey(key) | Set a custom key to exit program (default is ESC) |
@@ -530,7 +549,9 @@ Implemented APIs (580)
530549
| sub SetWindowState(flags) | Set window configuration state using flags (only PLATFORM_DESKTOP) |
531550
| sub SetWindowTitle(title) | Set title for window (only PLATFORM_DESKTOP and PLATFORM_WEB) |
532551
| sub ShowCursor() | Shows cursor |
552+
| sub StartAutomationEventRecording() | Start recording automation events (AutomationEventList must be set) |
533553
| sub StopAudioStream(stream) | Stop audio stream |
554+
| sub StopAutomationEventRecording() | Stop recording automation events |
534555
| sub StopMusicStream(music) | Stop music playing |
535556
| sub StopSound(sound) | Stop playing a sound |
536557
| sub SwapScreenBuffer() | Swap back buffer with front buffer (screen drawing) |
@@ -551,6 +572,7 @@ Implemented APIs (580)
551572
| sub ToggleBorderlessWindowed() | Toggle window state: borderless windowed (only PLATFORM_DESKTOP) |
552573
| sub ToggleFullscreen() | Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP) |
553574
| sub UnloadAudioStream(stream) | Unload audio stream and free memory |
575+
| sub UnloadAutomationEventList(list) | Unload automation events list from file |
554576
| sub UnloadCodepoints(codepoints) | Unload codepoints data from memory |
555577
| sub UnloadDirectoryFiles(files) | Unload filepaths |
556578
| sub UnloadDroppedFiles(files) | Unload dropped filepaths |
@@ -565,6 +587,7 @@ Implemented APIs (580)
565587
| sub UnloadModelAnimation(anim) | Unload animation data |
566588
| sub UnloadModelAnimations(animations, animCount) | Unload animation array data |
567589
| sub UnloadMusicStream(music) | Unload music stream |
590+
| sub UnloadRandomSequence(sequence) | Unload random values sequence |
568591
| sub UnloadRenderTexture(target) | Unload render texture from GPU memory (VRAM) |
569592
| sub UnloadShader(shader) | Unload shader from GPU memory (VRAM) |
570593
| sub UnloadSound(sound) | Unload sound |
@@ -574,6 +597,7 @@ Implemented APIs (580)
574597
| sub UnloadWave(wave) | Unload wave data |
575598
| sub UnloadWaveSamples(samples) | Unload samples data loaded with LoadWaveSamples() |
576599
| sub UpdateAudioStream(stream, data, frameCount) | Update audio stream buffers with data |
600+
| func updateautomationeventlist() | n/a |
577601
| sub UpdateCamera(camera, mode) | Update camera position for selected mode |
578602
| sub UpdateMeshBuffer(mesh, index, data, dataSize, offset) | Update mesh vertex data in GPU for a specific buffer index |
579603
| sub UpdateModelAnimation(model, anim, frame) | Update model animation pose |
@@ -588,7 +612,7 @@ Implemented APIs (580)
588612
| func WaveCopy(wave) | Copy a wave to a new wave |
589613
| sub WaveCrop(wave, initSample, finalSample) | Crop a wave to defined samples range |
590614
| sub WaveFormat(wave, sampleRate, sampleSize, channels) | Convert wave data to desired format |
591-
| func WindowShouldClose() | Check if KEY_ESCAPE pressed or Close icon pressed |
615+
| func WindowShouldClose() | Check if application should close (KEY_ESCAPE pressed or windows close icon clicked) |
592616

593617
Unimplemented APIs
594618
----------------

raylib/func-def.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
{2, 2, "DECOMPRESSDATA", cmd_decompressdata},
2828
{1, 1, "DIRECTORYEXISTS", cmd_directoryexists},
2929
{2, 2, "ENCODEDATABASE64", cmd_encodedatabase64},
30+
{2, 2, "EXPORTAUTOMATIONEVENTLIST", cmd_exportautomationeventlist},
3031
{3, 3, "EXPORTDATAASCODE", cmd_exportdataascode},
3132
{2, 2, "EXPORTFONTASCODE", cmd_exportfontascode},
3233
{2, 2, "EXPORTIMAGE", cmd_exportimage},
@@ -93,6 +94,7 @@
9394
{2, 2, "GETIMAGEALPHABORDER", cmd_getimagealphaborder},
9495
{3, 3, "GETIMAGECOLOR", cmd_getimagecolor},
9596
{0, 0, "GETKEYPRESSED", cmd_getkeypressed},
97+
{0, 0, "GETMASTERVOLUME", cmd_getmastervolume},
9698
{1, 1, "GETMODELBOUNDINGBOX", cmd_getmodelboundingbox},
9799
{0, 0, "GETMONITORCOUNT", cmd_getmonitorcount},
98100
{1, 1, "GETMONITORHEIGHT", cmd_getmonitorheight},
@@ -127,6 +129,11 @@
127129
{0, 0, "GETSCREENWIDTH", cmd_getscreenwidth},
128130
{2, 2, "GETSHADERLOCATION", cmd_getshaderlocation},
129131
{2, 2, "GETSHADERLOCATIONATTRIB", cmd_getshaderlocationattrib},
132+
{5, 5, "GETSPLINEPOINTBASIS", cmd_getsplinepointbasis},
133+
{5, 5, "GETSPLINEPOINTBEZIERCUBIC", cmd_getsplinepointbeziercubic},
134+
{4, 4, "GETSPLINEPOINTBEZIERQUAD", cmd_getsplinepointbezierquad},
135+
{5, 5, "GETSPLINEPOINTCATMULLROM", cmd_getsplinepointcatmullrom},
136+
{3, 3, "GETSPLINEPOINTLINEAR", cmd_getsplinepointlinear},
130137
{0, 0, "GETTIME", cmd_gettime},
131138
{0, 0, "GETTOUCHPOINTCOUNT", cmd_gettouchpointcount},
132139
{1, 1, "GETTOUCHPOINTID", cmd_gettouchpointid},
@@ -189,6 +196,7 @@
189196
{0, 0, "ISWINDOWRESIZED", cmd_iswindowresized},
190197
{1, 1, "ISWINDOWSTATE", cmd_iswindowstate},
191198
{3, 3, "LOADAUDIOSTREAM", cmd_loadaudiostream},
199+
{1, 1, "LOADAUTOMATIONEVENTLIST", cmd_loadautomationeventlist},
192200
{1, 1, "LOADCODEPOINTS", cmd_loadcodepoints},
193201
{1, 1, "LOADDIRECTORYFILES", cmd_loaddirectoryfiles},
194202
{3, 3, "LOADDIRECTORYFILESEX", cmd_loaddirectoryfilesex},
@@ -212,6 +220,7 @@
212220
{1, 1, "LOADMODELFROMMESH", cmd_loadmodelfrommesh},
213221
{1, 1, "LOADMUSICSTREAM", cmd_loadmusicstream},
214222
{3, 3, "LOADMUSICSTREAMFROMMEMORY", cmd_loadmusicstreamfrommemory},
223+
{3, 3, "LOADRANDOMSEQUENCE", cmd_loadrandomsequence},
215224
{2, 2, "LOADSHADERFROMMEMORY", cmd_loadshaderfrommemory},
216225
{1, 1, "LOADSOUND", cmd_loadsound},
217226
{1, 1, "LOADSOUNDALIAS", cmd_loadsoundalias},

raylib/func.h

Lines changed: 116 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,23 @@ static int cmd_encodedatabase64(int argc, slib_par_t *params, var_t *retval) {
336336
return 1;
337337
}
338338

339+
//
340+
// Export automation events list as text file
341+
//
342+
static int cmd_exportautomationeventlist(int argc, slib_par_t *params, var_t *retval) {
343+
int result;
344+
int list_id = get_automationeventlist_id(argc, params, 0, retval);
345+
if (list_id != -1) {
346+
auto fileName = get_param_str(argc, params, 1, 0);
347+
auto fnResult = ExportAutomationEventList(_automationEventListMap.at(list_id), fileName);
348+
v_setint(retval, fnResult);
349+
result = 1;
350+
} else {
351+
result = 0;
352+
}
353+
return result;
354+
}
355+
339356
//
340357
// Export data to code (.h), returns true on success
341358
//
@@ -1132,6 +1149,15 @@ static int cmd_getkeypressed(int argc, slib_par_t *params, var_t *retval) {
11321149
return 1;
11331150
}
11341151

1152+
//
1153+
// Get master volume (listener)
1154+
//
1155+
static int cmd_getmastervolume(int argc, slib_par_t *params, var_t *retval) {
1156+
auto fnResult = GetMasterVolume();
1157+
v_setreal(retval, fnResult);
1158+
return 1;
1159+
}
1160+
11351161
//
11361162
// Compute model bounding box limits (considers all meshes)
11371163
//
@@ -1505,6 +1531,73 @@ static int cmd_getshaderlocationattrib(int argc, slib_par_t *params, var_t *retv
15051531
return 1;
15061532
}
15071533

1534+
//
1535+
// Get (evaluate) spline point: B-Spline
1536+
//
1537+
static int cmd_getsplinepointbasis(int argc, slib_par_t *params, var_t *retval) {
1538+
auto p1 = get_param_vec2(argc, params, 0);
1539+
auto p2 = get_param_vec2(argc, params, 1);
1540+
auto p3 = get_param_vec2(argc, params, 2);
1541+
auto p4 = get_param_vec2(argc, params, 3);
1542+
auto t = get_param_num(argc, params, 4, 0);
1543+
auto fnResult = GetSplinePointBasis(p1, p2, p3, p4, t);
1544+
v_setvec2(retval, fnResult);
1545+
return 1;
1546+
}
1547+
1548+
//
1549+
// Get (evaluate) spline point: Cubic Bezier
1550+
//
1551+
static int cmd_getsplinepointbeziercubic(int argc, slib_par_t *params, var_t *retval) {
1552+
auto p1 = get_param_vec2(argc, params, 0);
1553+
auto c2 = get_param_vec2(argc, params, 1);
1554+
auto c3 = get_param_vec2(argc, params, 2);
1555+
auto p4 = get_param_vec2(argc, params, 3);
1556+
auto t = get_param_num(argc, params, 4, 0);
1557+
auto fnResult = GetSplinePointBezierCubic(p1, c2, c3, p4, t);
1558+
v_setvec2(retval, fnResult);
1559+
return 1;
1560+
}
1561+
1562+
//
1563+
// Get (evaluate) spline point: Quadratic Bezier
1564+
//
1565+
static int cmd_getsplinepointbezierquad(int argc, slib_par_t *params, var_t *retval) {
1566+
auto p1 = get_param_vec2(argc, params, 0);
1567+
auto c2 = get_param_vec2(argc, params, 1);
1568+
auto p3 = get_param_vec2(argc, params, 2);
1569+
auto t = get_param_num(argc, params, 3, 0);
1570+
auto fnResult = GetSplinePointBezierQuad(p1, c2, p3, t);
1571+
v_setvec2(retval, fnResult);
1572+
return 1;
1573+
}
1574+
1575+
//
1576+
// Get (evaluate) spline point: Catmull-Rom
1577+
//
1578+
static int cmd_getsplinepointcatmullrom(int argc, slib_par_t *params, var_t *retval) {
1579+
auto p1 = get_param_vec2(argc, params, 0);
1580+
auto p2 = get_param_vec2(argc, params, 1);
1581+
auto p3 = get_param_vec2(argc, params, 2);
1582+
auto p4 = get_param_vec2(argc, params, 3);
1583+
auto t = get_param_num(argc, params, 4, 0);
1584+
auto fnResult = GetSplinePointCatmullRom(p1, p2, p3, p4, t);
1585+
v_setvec2(retval, fnResult);
1586+
return 1;
1587+
}
1588+
1589+
//
1590+
// Get (evaluate) spline point: Linear
1591+
//
1592+
static int cmd_getsplinepointlinear(int argc, slib_par_t *params, var_t *retval) {
1593+
auto startPos = get_param_vec2(argc, params, 0);
1594+
auto endPos = get_param_vec2(argc, params, 1);
1595+
auto t = get_param_num(argc, params, 2, 0);
1596+
auto fnResult = GetSplinePointLinear(startPos, endPos, t);
1597+
v_setvec2(retval, fnResult);
1598+
return 1;
1599+
}
1600+
15081601
//
15091602
// Get elapsed time in seconds since InitWindow()
15101603
//
@@ -2228,6 +2321,16 @@ static int cmd_loadaudiostream(int argc, slib_par_t *params, var_t *retval) {
22282321
return 1;
22292322
}
22302323

2324+
//
2325+
// Load automation events list from file, NULL for empty list, capacity = MAX_AUTOMATION_EVENTS
2326+
//
2327+
static int cmd_loadautomationeventlist(int argc, slib_par_t *params, var_t *retval) {
2328+
auto fileName = get_param_str(argc, params, 0, 0);
2329+
auto fnResult = LoadAutomationEventList(fileName);
2330+
v_setautomationeventlist(retval, fnResult);
2331+
return 1;
2332+
}
2333+
22312334
//
22322335
// Load all codepoints from a UTF-8 text string, codepoints count returned by parameter
22332336
//
@@ -2514,6 +2617,18 @@ static int cmd_loadmusicstreamfrommemory(int argc, slib_par_t *params, var_t *re
25142617
return 1;
25152618
}
25162619

2620+
//
2621+
// Load random values sequence, no values repeated
2622+
//
2623+
static int cmd_loadrandomsequence(int argc, slib_par_t *params, var_t *retval) {
2624+
auto count = get_param_int(argc, params, 0, 0);
2625+
auto min = get_param_int(argc, params, 1, 0);
2626+
auto max = get_param_int(argc, params, 2, 0);
2627+
auto fnResult = (var_int_t)LoadRandomSequence(count, min, max);
2628+
v_setint(retval, fnResult);
2629+
return 1;
2630+
}
2631+
25172632
//
25182633
// Load shader from code strings and bind default locations
25192634
//
@@ -2879,7 +2994,7 @@ static int cmd_wavecopy(int argc, slib_par_t *params, var_t *retval) {
28792994
}
28802995

28812996
//
2882-
// Check if KEY_ESCAPE pressed or Close icon pressed
2997+
// Check if application should close (KEY_ESCAPE pressed or windows close icon clicked)
28832998
//
28842999
static int cmd_windowshouldclose(int argc, slib_par_t *params, var_t *retval) {
28853000
auto fnResult = WindowShouldClose();

0 commit comments

Comments
 (0)