aboutsummaryrefslogtreecommitdiff
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2016-03-06 19:28:58 +0100
committerraysan5 <raysan5@gmail.com>2016-03-06 19:28:58 +0100
commitd0e7195a16c50b23fd82e7ca7869cc07773ddba2 (patch)
treed4d96c183bacd39aef0a4fce378f5ffdd1714a03 /src/raylib.h
parent7053724fd6209682f203b188c6f309214880b84f (diff)
downloadraylib-d0e7195a16c50b23fd82e7ca7869cc07773ddba2.tar.gz
raylib-d0e7195a16c50b23fd82e7ca7869cc07773ddba2.zip
Added new functions to draw text on image
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h
index f448487e..527d0cb9 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -697,9 +697,11 @@ Image ImageCopy(Image image);
void ImageCrop(Image *image, Rectangle crop); // Crop an image to a defined rectangle
void ImageResize(Image *image, int newWidth, int newHeight); // Resize and image (bilinear filtering)
void ImageResizeNN(Image *image,int newWidth,int newHeight); // Resize and image (Nearest-Neighbor scaling algorithm)
-void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec); // Draw a source image within a destination image
Image ImageText(const char *text, int fontSize, Color color); // Create an image from text (default font)
Image ImageTextEx(SpriteFont font, const char *text, int fontSize, int spacing, Color tint); // Create an image from text (custom sprite font)
+void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec); // Draw a source image within a destination image
+void ImageDrawText(Image *dst, Vector2 position, const char *text, int fontSize, Color color); // Draw text (default font) within an image (destination)
+void ImageDrawTextEx(Image *dst, Vector2 position, SpriteFont font, const char *text, int fontSize, int spacing, Color color); // Draw text (custom sprite font) within an image (destination)
void ImageFlipVertical(Image *image); // Flip image vertically
void ImageFlipHorizontal(Image *image); // Flip image horizontally
void ImageColorTint(Image *image, Color color); // Modify image color: tint