Added GetDefaultFont() function

Useful to be used with DrawTextEx() to draw with default font and
extended parameters
This commit is contained in:
Ray
2013-11-29 20:24:11 +01:00
parent 53d0ab0b97
commit 1a8ef80abd
2 changed files with 7 additions and 0 deletions

View File

@@ -317,6 +317,7 @@ void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, V
//------------------------------------------------------------------------------------
// Font Loading and Text Drawing Functions (Module: text)
//------------------------------------------------------------------------------------
SpriteFont GetDefaultFont(); // Get the default SpriteFont
SpriteFont LoadSpriteFont(const char *fileName); // Load a SpriteFont image into GPU memory
void UnloadSpriteFont(SpriteFont spriteFont); // Unload SpriteFont from GPU memory
void DrawText(const char *text, int posX, int posY, int fontSize, Color color); // Draw text (using default font)