X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FMasterState.hpp;h=d2072ee326c27a30683a18558ff2d6c3de7194d1;hb=cacc0641e5174d8b46e7a7086be6a45c87ab3642;hp=f62c77309ea7ea4a04133c5b1013e5accebded10;hpb=c5556cf5f6813887a3503433c021ccd2e7fae865;p=blobs.git diff --git a/src/app/MasterState.hpp b/src/app/MasterState.hpp index f62c773..d2072ee 100644 --- a/src/app/MasterState.hpp +++ b/src/app/MasterState.hpp @@ -28,7 +28,8 @@ public: MasterState &operator =(MasterState &&) = delete; public: - void SetReference(world::Body &r) { reference = &r; } + graphics::Camera &GetCamera() noexcept { return cam; } + const graphics::Camera &GetCamera() const noexcept { return cam; } private: void OnResize(int w, int h) override; @@ -44,7 +45,6 @@ private: private: Assets &assets; world::Simulation ∼ - world::Body *reference; graphics::Camera cam;