diff options
| author | raysan5 <[email protected]> | 2017-08-06 10:44:50 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2017-08-06 10:44:50 +0200 |
| commit | 88839b093c47a478979eaf9a26a7341ff37d8b63 (patch) | |
| tree | d6b35c44f6ce32b238674d87f04f013cc4ddd99f /src/raylib.h | |
| parent | 0169b72bdca6890426f1e7f1824e7225afcb18ee (diff) | |
| download | raylib-88839b093c47a478979eaf9a26a7341ff37d8b63.tar.gz raylib-88839b093c47a478979eaf9a26a7341ff37d8b63.zip | |
Added function DrawRectangleT()
Usefult to draw rectangles using default font texture
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index bad711d9..85499eb1 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -952,6 +952,7 @@ RLAPI void DrawFPS(int posX, int posY); RLAPI void DrawText(const char *text, int posX, int posY, int fontSize, Color color); // Draw text (using default font) RLAPI void DrawTextEx(SpriteFont spriteFont, const char* text, Vector2 position, // Draw text using SpriteFont and additional parameters float fontSize, int spacing, Color tint); +RLAPI void DrawRectangleT(int posX, int posY, int width, int height, Color color); // Draw rectangle using text character // Text misc. functions RLAPI int MeasureText(const char *text, int fontSize); // Measure string width for default font |
