Added function DrawRectangleGradientEx()

Moved function DrawRectangleT() from text module to shapes
Added some comments
This commit is contained in:
raysan5 2017-08-27 21:02:24 +02:00
parent b951f8700e
commit 12cb3afd9e
3 changed files with 57 additions and 9 deletions

View file

@ -457,14 +457,6 @@ void DrawTextEx(SpriteFont spriteFont, const char *text, Vector2 position, float
}
}
// Draw rectangle using text character (char: 127)
// NOTE: Useful to avoid changing to default white texture
void DrawRectangleT(int posX, int posY, int width, int height, Color color)
{
DrawTexturePro(GetDefaultFont().texture, GetDefaultFont().chars[95].rec,
(Rectangle){ posX, posY, width, height }, (Vector2){ 0, 0 }, 0.0f, color);
}
// Formatting of text with variables to 'embed'
const char *FormatText(const char *text, ...)
{