Added DrawFPSEx()
This commit is contained in:
parent
9047025ab7
commit
b0b1012749
|
|
@ -813,13 +813,20 @@ void UnloadFont(Font font)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shows current FPS on top-left corner
|
// Draws current FPS
|
||||||
// NOTE: Uses default font
|
// NOTE: Uses default font
|
||||||
void DrawFPS(int posX, int posY)
|
void DrawFPS(int posX, int posY)
|
||||||
{
|
{
|
||||||
DrawText(TextFormat("%2i FPS", GetFPS()), posX, posY, 20, LIME);
|
DrawText(TextFormat("%2i FPS", GetFPS()), posX, posY, 20, LIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Draws current FPS
|
||||||
|
// NOTE: Uses default font
|
||||||
|
void DrawFPSEx(int posX, int posY, Color tint)
|
||||||
|
{
|
||||||
|
DrawText(TextFormat("%2i FPS", GetFPS()), posX, posY, 20, tint);
|
||||||
|
}
|
||||||
|
|
||||||
// Draw text (using default font)
|
// Draw text (using default font)
|
||||||
// NOTE: fontSize work like in any drawing program but if fontSize is lower than font-base-size, then font-base-size is used
|
// NOTE: fontSize work like in any drawing program but if fontSize is lower than font-base-size, then font-base-size is used
|
||||||
// NOTE: chars spacing is proportional to fontSize
|
// NOTE: chars spacing is proportional to fontSize
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user