Skip to content

Commit 385e8cb

Browse files
committed
Update dependencies
1 parent 1f1bc21 commit 385e8cb

File tree

9 files changed

+221
-34
lines changed

9 files changed

+221
-34
lines changed

raylib/README.md

+20-11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
*Raylib* _MAJOR 5 _MINOR 1 _PATCH 0 5.1-dev
1+
*Raylib* _MAJOR 5 _MINOR 5 _PATCH 0 5.5-dev
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 (617)
7+
Implemented APIs (626)
88
----------------
99

1010
| Name | Description |
@@ -57,15 +57,15 @@ Implemented APIs (617)
5757
| func DirectoryExists(dirPath) | Check if a directory path exists |
5858
| sub DisableCursor() | Disables cursor (lock cursor) |
5959
| sub DisableEventWaiting() | Disable waiting for events on EndDrawing(), automatic events polling |
60-
| sub DrawBillboard(camera, texture, position, size, tint) | Draw a billboard texture |
60+
| sub DrawBillboard(camera, texture, position, scale, tint) | Draw a billboard texture |
6161
| sub DrawBillboardPro(camera, texture, source, position, up, size, origin, rotation, tint) | Draw a billboard texture defined by source and rotation |
6262
| sub DrawBillboardRec(camera, texture, source, position, size, tint) | Draw a billboard texture defined by source |
6363
| sub DrawBoundingBox(box, color) | Draw bounding box (wires) |
6464
| sub DrawCapsule(startPos, endPos, radius, slices, rings, color) | Draw a capsule with the center of its sphere caps at startPos and endPos |
6565
| sub DrawCapsuleWires(startPos, endPos, radius, slices, rings, color) | Draw capsule wireframe with the center of its sphere caps at startPos and endPos |
6666
| sub DrawCircle(centerX, centerY, radius, color) | Draw a color-filled circle |
6767
| sub DrawCircle3D(center, radius, rotationAxis, rotationAngle, color) | Draw a circle in 3D world space |
68-
| sub DrawCircleGradient(centerX, centerY, radius, color1, color2) | Draw a gradient-filled circle |
68+
| sub DrawCircleGradient(centerX, centerY, radius, inner, outer) | Draw a gradient-filled circle |
6969
| sub DrawCircleLines(centerX, centerY, radius, color) | Draw circle outline |
7070
| sub DrawCircleLinesV(center, radius, color) | Draw circle outline (Vector version) |
7171
| sub DrawCircleSector(center, radius, startAngle, endAngle, segments, color) | Draw a piece of a circle |
@@ -91,6 +91,8 @@ Implemented APIs (617)
9191
| sub DrawLineV(startPos, endPos, color) | Draw a line (using gl lines) |
9292
| sub DrawModel(model, position, scale, tint) | Draw a model (with texture if set) |
9393
| sub DrawModelEx(model, position, rotationAxis, rotationAngle, scale, tint) | Draw a model with extended parameters |
94+
| sub DrawModelPoints(model, position, scale, tint) | Draw a model as points |
95+
| sub DrawModelPointsEx(model, position, rotationAxis, rotationAngle, scale, tint) | Draw a model as points with extended parameters |
9496
| sub DrawModelWires(model, position, scale, tint) | Draw a model wires (with texture if set) |
9597
| sub DrawModelWiresEx(model, position, rotationAxis, rotationAngle, scale, tint) | Draw a model wires (with texture if set) with extended parameters |
9698
| sub DrawPixel(posX, posY, color) | Draw a pixel |
@@ -102,9 +104,9 @@ Implemented APIs (617)
102104
| sub DrawPolyLinesEx(center, sides, radius, rotation, lineThick, color) | Draw a polygon outline of n sides with extended parameters |
103105
| sub DrawRay(ray, color) | Draw a ray line |
104106
| sub DrawRectangle(posX, posY, width, height, color) | Draw a color-filled rectangle |
105-
| sub DrawRectangleGradientEx(rec, col1, col2, col3, col4) | Draw a gradient-filled rectangle with custom vertex colors |
106-
| sub DrawRectangleGradientH(posX, posY, width, height, color1, color2) | Draw a horizontal-gradient-filled rectangle |
107-
| sub DrawRectangleGradientV(posX, posY, width, height, color1, color2) | Draw a vertical-gradient-filled rectangle |
107+
| sub DrawRectangleGradientEx(rec, topLeft, bottomLeft, topRight, bottomRight) | Draw a gradient-filled rectangle with custom vertex colors |
108+
| sub DrawRectangleGradientH(posX, posY, width, height, left, right) | Draw a horizontal-gradient-filled rectangle |
109+
| sub DrawRectangleGradientV(posX, posY, width, height, top, bottom) | Draw a vertical-gradient-filled rectangle |
108110
| sub DrawRectangleLines(posX, posY, width, height, color) | Draw rectangle outline |
109111
| sub DrawRectangleLinesEx(rec, lineThick, color) | Draw rectangle outline with extended parameters |
110112
| sub DrawRectanglePro(rec, origin, rotation, color) | Draw a color-filled rectangle with pro parameters |
@@ -347,6 +349,7 @@ Implemented APIs (617)
347349
| sub ImageDrawCircleLinesV(dst, center, radius, color) | Draw circle outline within an image (Vector version) |
348350
| sub ImageDrawCircleV(dst, center, radius, color) | Draw a filled circle within an image (Vector version) |
349351
| sub ImageDrawLine(dst, startPosX, startPosY, endPosX, endPosY, color) | Draw line within an image |
352+
| sub ImageDrawLineEx(dst, start, end, thick, color) | Draw a line defining thickness within an image |
350353
| sub ImageDrawLineV(dst, start, end, color) | Draw line within an image (Vector version) |
351354
| sub ImageDrawPixel(dst, posX, posY, color) | Draw pixel within an image |
352355
| sub ImageDrawPixelV(dst, position, color) | Draw pixel within an image (Vector version) |
@@ -356,11 +359,17 @@ Implemented APIs (617)
356359
| sub ImageDrawRectangleV(dst, position, size, color) | Draw rectangle within an image (Vector version) |
357360
| sub ImageDrawText(dst, text, posX, posY, fontSize, color) | Draw text (using default font) within an image (destination) |
358361
| sub ImageDrawTextEx(dst, font, text, position, fontSize, spacing, tint) | Draw text (custom sprite font) within an image (destination) |
362+
| sub ImageDrawTriangle(dst, v1, v2, v3, color) | Draw triangle within an image |
363+
| sub ImageDrawTriangleEx(dst, v1, v2, v3, c1, c2, c3) | Draw triangle with interpolated colors within an image |
364+
| sub ImageDrawTriangleFan(dst, points, pointCount, color) | Draw a triangle fan defined by points within an image (first vertex is the center) |
365+
| sub ImageDrawTriangleLines(dst, v1, v2, v3, color) | Draw triangle outline within an image |
366+
| sub ImageDrawTriangleStrip(dst, points, pointCount, color) | Draw a triangle strip defined by points within an image |
359367
| sub ImageFlipHorizontal(image) | Flip image horizontally |
360368
| sub ImageFlipVertical(image) | Flip image vertically |
361369
| sub ImageFormat(image, newFormat) | Convert image data to desired format |
370+
| func ImageFromChannel(image, selectedChannel) | Create an image from a selected channel of another image (GRAYSCALE) |
362371
| func ImageFromImage(image, rec) | Create an image from another image piece |
363-
| sub ImageKernelConvolution(image, kernel, kernelSize) | Apply Custom Square image convolution kernel |
372+
| sub ImageKernelConvolution(image, kernel, kernelSize) | Apply custom square convolution kernel to image |
364373
| sub ImageMipmaps(image) | Compute all mipmap levels for a provided image |
365374
| sub ImageResize(image, newWidth, newHeight) | Resize image (Bicubic scaling algorithm) |
366375
| sub ImageResizeCanvas(image, newWidth, newHeight, offsetX, offsetY, fill) | Resize canvas and fill with color |
@@ -428,7 +437,7 @@ Implemented APIs (617)
428437
| func LoadFileData(fileName, dataSize) | Load file data as byte array (read) |
429438
| func LoadFileText(fileName) | Load text data from file (read), returns a '\\0' terminated string |
430439
| func LoadFont(fileName) | Load font from file into GPU memory (VRAM) |
431-
| 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 setFont |
440+
| func LoadFontEx(fileName, fontSize, codepoints, codepointCount) | Load font from file with extended parameters |
432441
| func LoadFontFromImage(image, key, firstChar) | Load font from Image (XNA style) |
433442
| func LoadFontFromMemory(fileType, fileData, dataSize, fontSize, codepoints, codepointCount) | Load font from memory buffer, fileType refers to extension: i.e. '.ttf' |
434443
| func LoadImage(fileName) | Load image from file into CPU memory (RAM) |
@@ -583,8 +592,8 @@ Implemented APIs (617)
583592
| func TextToPascal(text) | Get Pascal case notation version of provided string |
584593
| func TextToSnake(text) | Get Snake case notation version of provided string |
585594
| func TextToUpper(text) | Get upper case version of provided string |
586-
| sub ToggleBorderlessWindowed() | Toggle window state: borderless windowed (only PLATFORM_DESKTOP) |
587-
| sub ToggleFullscreen() | Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP) |
595+
| sub ToggleBorderlessWindowed() | Toggle window state: borderless windowed [resizes window to match monitor resolution] (only PLATFORM_DESKTOP) |
596+
| sub ToggleFullscreen() | Toggle window state: fullscreen/windowed [resizes monitor to match window resolution] (only PLATFORM_DESKTOP) |
588597
| sub UnloadAudioStream(stream) | Unload audio stream and free memory |
589598
| sub UnloadAutomationEventList(list) | Unload automation events list from file |
590599
| sub UnloadCodepoints(codepoints) | Unload codepoints data from memory |

raylib/func-def.h

+1
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@
154154
{2, 2, "GETWORLDTOSCREEN2D", cmd_getworldtoscreen2d},
155155
{4, 4, "GETWORLDTOSCREENEX", cmd_getworldtoscreenex},
156156
{1, 1, "IMAGECOPY", cmd_imagecopy},
157+
{2, 2, "IMAGEFROMCHANNEL", cmd_imagefromchannel},
157158
{2, 2, "IMAGEFROMIMAGE", cmd_imagefromimage},
158159
{3, 3, "IMAGETEXT", cmd_imagetext},
159160
{5, 5, "IMAGETEXTEX", cmd_imagetextex},

raylib/func.h

+18-1
Original file line numberDiff line numberDiff line change
@@ -1813,6 +1813,23 @@ static int cmd_imagecopy(int argc, slib_par_t *params, var_t *retval) {
18131813
return result;
18141814
}
18151815

1816+
//
1817+
// Create an image from a selected channel of another image (GRAYSCALE)
1818+
//
1819+
static int cmd_imagefromchannel(int argc, slib_par_t *params, var_t *retval) {
1820+
int result;
1821+
int image_id = get_image_id(argc, params, 0, retval);
1822+
if (image_id != -1) {
1823+
auto selectedChannel = get_param_int(argc, params, 1, 0);
1824+
auto fnResult = ImageFromChannel(_imageMap.at(image_id), selectedChannel);
1825+
v_setimage(retval, fnResult);
1826+
result = 1;
1827+
} else {
1828+
result = 0;
1829+
}
1830+
return result;
1831+
}
1832+
18161833
//
18171834
// Create an image from another image piece
18181835
//
@@ -2489,7 +2506,7 @@ static int cmd_loadfont(int argc, slib_par_t *params, var_t *retval) {
24892506
}
24902507

24912508
//
2492-
// Load font from file with extended parameters, use NULL for codepoints and 0 for codepointCount to load the default character setFont
2509+
// Load font from file with extended parameters
24932510
//
24942511
static int cmd_loadfontex(int argc, slib_par_t *params, var_t *retval) {
24952512
auto fileName = get_param_str(argc, params, 0, 0);

raylib/proc-def.h

+8
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
{3, 3, "DRAWLINEV", cmd_drawlinev},
4646
{4, 4, "DRAWMODEL", cmd_drawmodel},
4747
{6, 6, "DRAWMODELEX", cmd_drawmodelex},
48+
{4, 4, "DRAWMODELPOINTS", cmd_drawmodelpoints},
49+
{6, 6, "DRAWMODELPOINTSEX", cmd_drawmodelpointsex},
4850
{4, 4, "DRAWMODELWIRES", cmd_drawmodelwires},
4951
{6, 6, "DRAWMODELWIRESEX", cmd_drawmodelwiresex},
5052
{3, 3, "DRAWPIXEL", cmd_drawpixel},
@@ -132,6 +134,7 @@
132134
{4, 4, "IMAGEDRAWCIRCLELINESV", cmd_imagedrawcirclelinesv},
133135
{4, 4, "IMAGEDRAWCIRCLEV", cmd_imagedrawcirclev},
134136
{6, 6, "IMAGEDRAWLINE", cmd_imagedrawline},
137+
{5, 5, "IMAGEDRAWLINEEX", cmd_imagedrawlineex},
135138
{4, 4, "IMAGEDRAWLINEV", cmd_imagedrawlinev},
136139
{4, 4, "IMAGEDRAWPIXEL", cmd_imagedrawpixel},
137140
{3, 3, "IMAGEDRAWPIXELV", cmd_imagedrawpixelv},
@@ -141,6 +144,11 @@
141144
{4, 4, "IMAGEDRAWRECTANGLEV", cmd_imagedrawrectanglev},
142145
{6, 6, "IMAGEDRAWTEXT", cmd_imagedrawtext},
143146
{7, 7, "IMAGEDRAWTEXTEX", cmd_imagedrawtextex},
147+
{5, 5, "IMAGEDRAWTRIANGLE", cmd_imagedrawtriangle},
148+
{7, 7, "IMAGEDRAWTRIANGLEEX", cmd_imagedrawtriangleex},
149+
{4, 4, "IMAGEDRAWTRIANGLEFAN", cmd_imagedrawtrianglefan},
150+
{5, 5, "IMAGEDRAWTRIANGLELINES", cmd_imagedrawtrianglelines},
151+
{4, 4, "IMAGEDRAWTRIANGLESTRIP", cmd_imagedrawtrianglestrip},
144152
{1, 1, "IMAGEFLIPHORIZONTAL", cmd_imagefliphorizontal},
145153
{1, 1, "IMAGEFLIPVERTICAL", cmd_imageflipvertical},
146154
{2, 2, "IMAGEFORMAT", cmd_imageformat},

0 commit comments

Comments
 (0)