]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/camera.h
Initial implementation of Vulkan backend
[libs/gl.git] / source / render / camera.h
index ed81a9511b3fcd9640fa4170f5adf28c23091a34..c713f7e49608c500f572be8e28b853cfdabca050 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_GL_CAMERA_H_
 
 #include <msp/datafile/objectloader.h>
+#include "camera_backend.h"
 #include "placeable.h"
 #include "programdata.h"
 
@@ -22,7 +23,7 @@ YZ plane of eye space is aligned to the plane formed by the look and up
 directions.  Setting the up direction to the opposite of gravity direction is
 an easy way to keep the camera upright.
 */
-class Camera: public Placeable
+class Camera: public CameraBackend, public Placeable
 {
 public:
        class Loader: public DataFile::ObjectLoader<Camera>
@@ -61,6 +62,8 @@ private:
 public:
        Camera();
 
+       void copy_parameters(const Camera &);
+
        /** Sets the camera projection to perspective, characterised by the vertical
        field of view.  Horizontal FoV is computed with the aspect ratio. */
        void set_field_of_view(const Geometry::Angle<float> &);