summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/dimensionxx/camera.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdimensionxx/dimensionxx/camera.hpp')
-rw-r--r--libdimensionxx/dimensionxx/camera.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/libdimensionxx/dimensionxx/camera.hpp b/libdimensionxx/dimensionxx/camera.hpp
index 9b717ff..d8743ce 100644
--- a/libdimensionxx/dimensionxx/camera.hpp
+++ b/libdimensionxx/dimensionxx/camera.hpp
@@ -72,6 +72,25 @@ namespace Dimension
virtual Line ray(const Canvas& canvas, unsigned int x, unsigned int y) = 0;
};
+
+ // Array_Element specialization
+ template <>
+ class Array_Element<Camera>
+ : public Polymorphic_Array_Element<Camera, dmnsn_camera*>
+ {
+ public:
+ typedef dmnsn_camera* C_Type;
+
+ Array_Element() { }
+ Array_Element(Camera& camera)
+ : Polymorphic_Array_Element<Camera, dmnsn_camera*>(camera) { }
+ Array_Element(C_Type c)
+ : Polymorphic_Array_Element<Camera, dmnsn_camera*>(c) { }
+ // Array_Element(const Array_Element& ae);
+ // ~Array_Element();
+
+ // Array_Element& operator=(const Array_Element& ae);
+ };
}
#endif /* DIMENSIONXX_CAMERA_HPP */