Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add camera by-reference accessor

  • Loading branch information...
commit b6945e346622892c2454b8b285c39d6b8cf93bf6 1 parent 5ec40e3
@cyndis cyndis authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  backend/src/scene.h
View
3  backend/src/scene.h
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.