Skip to content

Commit c25f747

Browse files
authored
Merge pull request #168 from RobLoach/window.drawFPS
Add Window.DrawFPS()
2 parents a6dfd14 + 7c608ff commit c25f747

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

include/Window.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,14 @@ class Window {
336336
return ::GetFPS();
337337
}
338338

339+
/**
340+
* Draw current FPS
341+
*/
342+
inline Window& DrawFPS(int posX = 10, int posY = 10) {
343+
::DrawFPS(posX, posY);
344+
return *this;
345+
}
346+
339347
/**
340348
* Returns time in seconds for last frame drawn
341349
*/

0 commit comments

Comments
 (0)