refac: project overhaul, cpp industry standards and google code style

This commit is contained in:
Florian Sylvain
2025-05-13 22:58:04 +02:00
parent 7f0a191855
commit e25d32f8c6
23 changed files with 949 additions and 620 deletions
+12 -11
View File
@@ -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;
};