diff options
| author | raysan5 <[email protected]> | 2018-12-29 14:44:28 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2018-12-29 14:44:28 +0100 |
| commit | 0619571149f1fde5500dec4b64a94541ef0981f2 (patch) | |
| tree | 0d28f376022465a385f7f1685eb444853664db58 /src/raylib.h | |
| parent | 95d3f24c686c09c458bedeb6486ffc75dfda4170 (diff) | |
| download | raylib-0619571149f1fde5500dec4b64a94541ef0981f2.tar.gz raylib-0619571149f1fde5500dec4b64a94541ef0981f2.zip | |
ADDED: DrawTextRec() and example
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 8535f8d5..0e9e0155 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1110,7 +1110,8 @@ RLAPI void UnloadFont(Font font); // Text drawing functions RLAPI void DrawFPS(int posX, int posY); // Shows current FPS RLAPI void DrawText(const char *text, int posX, int posY, int fontSize, Color color); // Draw text (using default font) -RLAPI void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // Draw text using font and additional parameters +RLAPI void DrawTextEx(Font font, const char *text, Vector2 position, float fontSize, float spacing, Color tint); // Draw text using font and additional parameters +RLAPI void DrawTextRec(Font font, const char *text, Rectangle rec, float fontSize, float spacing, bool wordWrap, Color tint); // Draw text using font inside rectangle limits // Text misc. functions RLAPI int MeasureText(const char *text, int fontSize); // Measure string width for default font |
