diff options
| author | raysan5 <[email protected]> | 2018-02-18 19:29:13 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2018-02-18 19:29:13 +0100 |
| commit | 0958904eac63a82b427575439de1d96a62d4f5cf (patch) | |
| tree | 215f469d0ac6c9da077f1306b7fdfabd25dcb688 /src/textures.c | |
| parent | 4492a70a4bfc32f699932eaaddc09d8225963f42 (diff) | |
| download | raylib-0958904eac63a82b427575439de1d96a62d4f5cf.tar.gz raylib-0958904eac63a82b427575439de1d96a62d4f5cf.zip | |
Added comments to review function ImageTextEx()
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c index ba0bad54..a571718b 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1375,13 +1375,16 @@ Image ImageTextEx(SpriteFont font, const char *text, float fontSize, int spacing int length = strlen(text); int posX = 0; int index; // Index position in sprite font - unsigned char character; // Current character + unsigned char character; // Current character + // TODO: ISSUE: Measured text size does not seem to be correct... issue on ImageDraw() Vector2 imSize = MeasureTextEx(font, text, font.baseSize, spacing); TraceLog(LOG_DEBUG, "Text Image size: %f, %f", imSize.x, imSize.y); // 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? Image imFont = GetTextureData(font.texture); ImageColorTint(&imFont, tint); // Apply color tint to font |
