1 #ifndef BLOBS_APP_MASTERSTATE_HPP_
2 #define BLOBS_APP_MASTERSTATE_HPP_
7 #include "../graphics/Camera.hpp"
21 MasterState(Assets &, world::Simulation &) noexcept;
22 ~MasterState() noexcept;
24 MasterState(const MasterState &) = delete;
25 MasterState &operator =(const MasterState &) = delete;
27 MasterState(MasterState &&) = delete;
28 MasterState &operator =(MasterState &&) = delete;
31 graphics::Camera &GetCamera() noexcept { return cam; }
32 const graphics::Camera &GetCamera() const noexcept { return cam; }
35 void OnResize(int w, int h) override;
37 void OnKeyDown(const SDL_KeyboardEvent &) override;
39 void OnUpdate(int dt) override;
40 void OnRender(graphics::Viewport &) override;
43 int FrameMS() const noexcept;
47 world::Simulation ∼