diff --git a/src/raylib.h b/src/raylib.h index 4ca169655..ee71ee0ed 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1438,6 +1438,8 @@ RLAPI void ImageDrawCircleV(Image *dst, Vector2 center, int radius, Color color) RLAPI void ImageDrawCircleLines(Image *dst, int centerX, int centerY, int radius, Color color); // Draw circle outline within an image RLAPI void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color); // Draw circle outline within an image (Vector version) RLAPI void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint); // Draw a source image into a destination image (tint applied to source) +RLAPI void ImageDrawCircleGradient(Image *dst, Vector2 center, float radius, Color inner, Color outer); // Draw a gradient-filled circle within an image + RLAPI void ImageDrawText(Image *dst, const char *text, int posX, int posY, int fontSize, Color color); // Draw text (using default font) within an image (destination) RLAPI void ImageDrawTextEx(Image *dst, Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // Draw text (custom sprite font) within an image (destination) diff --git a/src/rtextures.c b/src/rtextures.c index 69b743a71..cfd1d4019 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -3942,6 +3942,12 @@ void ImageDrawCircleLinesV(Image *dst, Vector2 center, int radius, Color color) } // Draw an image (source) within an image (destination) +// Draw a gradient-filled circle within an image +void ImageDrawCircleGradient(Image *dst, Vector2 center, float radius, Color inner, Color outer) +{ + // TODO: Implement gradient circle drawing +} + // NOTE: Color tint is applied to source image void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint) {