aboutsummaryrefslogtreecommitdiff
path: root/src/textures.c
diff options
context:
space:
mode:
authorRay San <raysan5@gmail.com>2018-05-04 16:59:48 +0200
committerRay San <raysan5@gmail.com>2018-05-04 16:59:48 +0200
commitec33e7d705e301eb2b74a841e823907295caa37a (patch)
tree7726a0d89a862b96cc91ec8a1ba18d07cf022c79 /src/textures.c
parent6045062a05a0cc5bd654ad2c2e7d88f94579cd73 (diff)
downloadraylib-ec33e7d705e301eb2b74a841e823907295caa37a.tar.gz
raylib-ec33e7d705e301eb2b74a841e823907295caa37a.zip
BREAKING CHANGE: Renamed SpriteFont type to Font
- Preparing MP3 files support - Jumped version to raylib 2.0-dev (too many breaking changes...)
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textures.c b/src/textures.c
index 726257b8..56d2aa86 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -1371,7 +1371,7 @@ Image ImageText(const char *text, int fontSize, Color color)
}
// Create an image from text (custom sprite font)
-Image ImageTextEx(SpriteFont font, const char *text, float fontSize, float spacing, Color tint)
+Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Color tint)
{
int length = strlen(text);
int posX = 0;
@@ -1385,7 +1385,7 @@ Image ImageTextEx(SpriteFont font, const char *text, float fontSize, float spaci
// NOTE: glGetTexImage() not available in OpenGL ES
// TODO: This is horrible, retrieving font texture from GPU!!!
- // Define ImageFont struct? or include Image spritefont in SpriteFont struct?
+ // Define ImageFont struct? or include Image spritefont in Font struct?
Image imFont = GetTextureData(font.texture);
ImageColorTint(&imFont, tint); // Apply color tint to font
@@ -1466,7 +1466,7 @@ void ImageDrawText(Image *dst, Vector2 position, const char *text, int fontSize,
}
// Draw text (custom sprite font) within an image (destination)
-void ImageDrawTextEx(Image *dst, Vector2 position, SpriteFont font, const char *text, float fontSize, float spacing, Color color)
+void ImageDrawTextEx(Image *dst, Vector2 position, Font font, const char *text, float fontSize, float spacing, Color color)
{
Image imText = ImageTextEx(font, text, fontSize, spacing, color);