diff --git a/include/Application.hpp b/include/Application.hpp index c41f861..0d01dd1 100644 --- a/include/Application.hpp +++ b/include/Application.hpp @@ -2,7 +2,11 @@ #include "SoftBody.hpp" +#include #include +#include +#include +#include class Application { public: @@ -11,6 +15,10 @@ class Application { void Run(); private: + sf::VideoMode mMode{600u, 600u}; + sf::String mTitle{"ParticlePhysics"}; + sf::Uint32 mStyle{sf::Style::Default}; + sf::ContextSettings mSettings{24u, 8u, 8u, 3u, 3u}; glm::vec2 mGravitationalAcceleration{0.0f, 10.0f}; std::vector mSoftBodies; }; diff --git a/src/Application.cpp b/src/Application.cpp index 43797a0..4b3af16 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -10,10 +10,7 @@ #include #include #include -#include #include -#include -#include #define IMGUI_DEFINE_MATH_OPERATORS #include @@ -56,12 +53,7 @@ void Application::FixedUpdate(const sf::Time &fixedDeltaTime) { } void Application::Run() { - sf::VideoMode mode{600u, 600u}; - sf::String title{"ParticlePhysics"}; - sf::Uint32 style{sf::Style::Default}; - sf::ContextSettings settings{24u, 8u, 8u, 3u, 3u}; - - sf::RenderWindow window(mode, title, style, settings); + sf::RenderWindow window(mMode, mTitle, mStyle, mSettings); window.setFramerateLimit(120u); sf::View view = window.getDefaultView();