diff options
| author | Ray San <raysan5@gmail.com> | 2018-05-04 16:59:48 +0200 |
|---|---|---|
| committer | Ray San <raysan5@gmail.com> | 2018-05-04 16:59:48 +0200 |
| commit | ec33e7d705e301eb2b74a841e823907295caa37a (patch) | |
| tree | 7726a0d89a862b96cc91ec8a1ba18d07cf022c79 /src/textures.c | |
| parent | 6045062a05a0cc5bd654ad2c2e7d88f94579cd73 (diff) | |
| download | raylib-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.c | 6 |
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); |
