diff options
| author | Sourav Gupta <[email protected]> | 2020-03-22 00:53:50 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-21 20:23:50 +0100 |
| commit | 574c689ff7377d11f087ed1f3cd29365b7ba304c (patch) | |
| tree | b166437621657e0906532b8049355da9e9b809c8 /src/raylib.h | |
| parent | b178c992a186817baa068333270bbe5fa19a05ce (diff) | |
| download | raylib-574c689ff7377d11f087ed1f3cd29365b7ba304c.tar.gz raylib-574c689ff7377d11f087ed1f3cd29365b7ba304c.zip | |
Added draw functions to ImageDraw*() (#1138)
Added draw functions:
ImageClearBackground()
ImageDrawPixel()
ImageDrawLineEx()
ImageDrawCircle()
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 0c15849e..201cc81b 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1142,6 +1142,10 @@ RLAPI Image ImageTextEx(Font font, const char *text, float fontSize, float spaci RLAPI void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec, Color tint); // Draw a source image within a destination image (tint applied to source) RLAPI void ImageDrawRectangle(Image *dst, Rectangle rec, Color color); // Draw rectangle within an image RLAPI void ImageDrawRectangleLines(Image *dst, Rectangle rec, int thick, Color color); // Draw rectangle lines within an image +RLAPI void ImageClearBackground(Image *dst, Color color); // Clear image background with given color +RLAPI void ImageDrawPixel(Image *dst, Vector2 position, Color color); // Draw pixel within an image +RLAPI void ImageDrawCircle(Image *dst, Vector2 center, int radius, Color color); // Draw circle within an image +RLAPI void ImageDrawLineEx(Image *dst, Vector2 start, Vector2 end, Color color); // Draw line within an image RLAPI void ImageDrawText(Image *dst, Vector2 position, const char *text, int fontSize, Color color); // Draw text (default font) within an image (destination) RLAPI void ImageDrawTextEx(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color); // Draw text (custom sprite font) within an image (destination) RLAPI void ImageFlipVertical(Image *image); // Flip image vertically |
