Permalink
Browse files

Add camera by-reference accessor

  • Loading branch information...
1 parent 5ec40e3 commit b6945e346622892c2454b8b285c39d6b8cf93bf6 @cyndis cyndis committed Mar 16, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 backend/src/scene.h
View
@@ -90,7 +90,8 @@ class Scene
*/
dmcr::RaycastResult shootRay(const dmcr::Ray& ray) const;
- dmcr::Camera camera() const { return m_camera; }
+ const dmcr::Camera& camera() const { return m_camera; }
+ dmcr::Camera& camera() { return m_camera; }
protected:
dmcr::Camera m_camera;

0 comments on commit b6945e3

Please sign in to comment.