Created an overloaded function of DrawFps(rtext.c) in which user can

choose FPS color rather than it being automatic
This commit is contained in:
Iftikhar Ahmed 2023-12-30 21:25:34 -07:00
parent 710e811b27
commit a210be6a8f

View File

@ -1089,6 +1089,11 @@ void DrawFPS(int posX, int posY)
DrawText(TextFormat("%2i FPS", fps), posX, posY, 20, color);
}
void DrawFPS(int posX, int posY, Color color)
{
int fps = GetFPS();
DrawText(TextFormat("%2i FPS", fps), posX, posY, 20, color); // Draw FPS based on single color
}
// 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