]> git.localhorst.tv Git - blobs.git/blobdiff - src/app/MasterState.hpp
(slightly) better camera handling
[blobs.git] / src / app / MasterState.hpp
index f62c77309ea7ea4a04133c5b1013e5accebded10..d2072ee326c27a30683a18558ff2d6c3de7194d1 100644 (file)
@@ -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;