Added function DrawRectangleT()

Usefult to draw rectangles using default font texture
This commit is contained in:
raysan5
2017-08-06 10:44:50 +02:00
parent 0169b72bdc
commit 88839b093c
2 changed files with 15 additions and 5 deletions

View File

@@ -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