mirror of
https://github.com/Floriansylvain/SFMLplayground.git
synced 2026-08-19 19:53:25 +02:00
refac: project overhaul, cpp industry standards and google code style
This commit is contained in:
+12
-11
@@ -6,16 +6,17 @@
|
||||
#include <string>
|
||||
|
||||
class DebugOverlay {
|
||||
public:
|
||||
DebugOverlay(const std::string& fontPath);
|
||||
public:
|
||||
explicit DebugOverlay(const std::string &fontPath);
|
||||
|
||||
void update(int drawCalls, float timeScale, sf::RenderWindow& window,
|
||||
size_t threadCount, size_t ballsPerThread);
|
||||
void draw(sf::RenderWindow& window);
|
||||
void update(int drawCalls, float timeScale, const sf::RenderWindow &window,
|
||||
size_t threadCount, size_t ballsPerThread);
|
||||
|
||||
private:
|
||||
sf::Font m_font;
|
||||
sf::Text m_text;
|
||||
sf::Clock m_fpsClock;
|
||||
float m_fps = 0.f;
|
||||
};
|
||||
void draw(sf::RenderWindow &window) const;
|
||||
|
||||
private:
|
||||
sf::Font m_font;
|
||||
sf::Text m_text;
|
||||
sf::Clock m_fpsClock;
|
||||
float m_fps = 0.f;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user