You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ADDED: New image drawing functions, aligned with texture/text drawing -WIP-
The new functions are direct maps of the Texture2D equivalents, they can be useful for a future mapping Texture2D --> Image; an alternative 2d software renderer...
RLAPIvoidImageDrawRectangle(Image*dst, intposX, intposY, intwidth, intheight, Colorcolor); // Draw rectangle within an image
1432
1432
RLAPIvoidImageDrawRectangleV(Image*dst, Vector2position, Vector2size, Colorcolor); // Draw rectangle within an image (Vector version)
1433
1433
RLAPIvoidImageDrawRectangleRec(Image*dst, Rectanglerec, Colorcolor); // Draw rectangle within an image
1434
+
RLAPIvoidImageDrawRectanglePro(Image*dst, Rectanglerec, Vector2origin, floatrotation, Colorcolor); // Draw a color-filled rectangle with pro parameters within and image
1434
1435
RLAPIvoidImageDrawRectangleLines(Image*dst, intposX, intposY, intwidth, intheight, Colorcolor); // Draw rectangle lines within an image
1435
1436
RLAPIvoidImageDrawRectangleLinesEx(Image*dst, Rectanglerec, intthick, Colorcolor); // Draw rectangle lines within an image with line thickness
1437
+
RLAPIvoidImageDrawRectangleGradientEx(Image*dst, Rectanglerec, Colorcol1, Colorcol2, Colorcol3, Colorcol4); // Draw rectangle with gradient colors within an image, counter-clockwise color order
1436
1438
RLAPIvoidImageDrawCircle(Image*dst, intcenterX, intcenterY, intradius, Colorcolor); // Draw a filled circle within an image
1437
1439
RLAPIvoidImageDrawCircleV(Image*dst, Vector2center, intradius, Colorcolor); // Draw a filled circle within an image (Vector version)
1438
1440
RLAPIvoidImageDrawCircleLines(Image*dst, intcenterX, intcenterY, intradius, Colorcolor); // Draw circle outline within an image
1439
1441
RLAPIvoidImageDrawCircleLinesV(Image*dst, Vector2center, intradius, Colorcolor); // Draw circle outline within an image (Vector version)
1440
1442
RLAPIvoidImageDrawCircleGradient(Image*dst, Vector2center, floatradius, Colorinner, Colorouter); // Draw a gradient-filled circle within an image
1441
1443
1442
1444
RLAPIvoidImageDrawImage(Image*dst, Imagesrc, intposX, intposY, Colortint); // Draw an image within an image
1445
+
RLAPIvoidImageDrawImageEx(Image*dst, Imagesrc, Vector2position, floatrotation, floatscale, Colortint); // Draw an image with scaling and rotation within an image
1443
1446
RLAPIvoidImageDrawImageRec(Image*dst, Imagesrc, RectanglesrcRec, Vector2position, Colortint); // Draw a part of an image defined by a rectangle within an image
1444
1447
RLAPIvoidImageDrawImagePro(Image*dst, Imagesrc, RectanglesrcRec, RectangledstRec, Vector2origin, floatrotation, Colortint); // Draw a part of an image defined by a rectangle into destination rectangle, with scaling and rotation, within an image
1445
1448
RLAPIvoidImageDrawText(Image*dst, constchar*text, intposX, intposY, intfontSize, Colorcolor); // Draw text (using default font) within an image (destination)
1446
1449
RLAPIvoidImageDrawTextEx(Image*dst, Fontfont, constchar*text, Vector2position, floatfontSize, floatspacing, Colortint); // Draw text (custom sprite font) within an image (destination)
1450
+
RLAPIvoidImageDrawTextPro(Image*dst, Fontfont, constchar*text, Vector2position, Vector2origin, floatrotation, floatfontSize, floatspacing, Colortint); // Draw text using Font and pro parameters (rotation)
0 commit comments