Added draw functions to ImageDraw*() (#1138)
Added draw functions: ImageClearBackground() ImageDrawPixel() ImageDrawLineEx() ImageDrawCircle()
This commit is contained in:
parent
b178c992a1
commit
574c689ff7
2 changed files with 61 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue