summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/dimensionxx/camera.hpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-16 01:16:23 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-16 01:16:23 +0000
commitc3619e541564d5133a3ccdaeb79588d37d46a3db (patch)
treeeede3c86f47098080fe206b84dbb6b59aa0e6a21 /libdimensionxx/dimensionxx/camera.hpp
parent00997fa54c64b53618255b1e292d3db4d18b86af (diff)
downloaddimension-c3619e541564d5133a3ccdaeb79588d37d46a3db.tar.xz
Make copy() a const method.
Diffstat (limited to 'libdimensionxx/dimensionxx/camera.hpp')
-rw-r--r--libdimensionxx/dimensionxx/camera.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimensionxx/dimensionxx/camera.hpp b/libdimensionxx/dimensionxx/camera.hpp
index fa13a7e..0f61435 100644
--- a/libdimensionxx/dimensionxx/camera.hpp
+++ b/libdimensionxx/dimensionxx/camera.hpp
@@ -36,7 +36,7 @@ namespace Dimension
virtual Line ray(const Canvas& canvas, unsigned int x, unsigned int y);
// Shallow-copy a derived camera
- virtual Camera* copy() = 0;
+ virtual Camera* copy() const = 0;
// Access the wrapped C camera.
dmnsn_camera* dmnsn();
@@ -46,7 +46,7 @@ namespace Dimension
// No-op
Camera();
// Shallow-copy
- Camera(Camera& camera);
+ Camera(const Camera& camera);
// Wrap an existing camera
explicit Camera(dmnsn_camera* camera);