X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Fcamera.h;h=c713f7e49608c500f572be8e28b853cfdabca050;hb=99ca354f18119f82f1adeca100cd665a8f640317;hp=ed81a9511b3fcd9640fa4170f5adf28c23091a34;hpb=190a7e11237351f6b730c28f7b16f183e8adc69c;p=libs%2Fgl.git diff --git a/source/render/camera.h b/source/render/camera.h index ed81a951..c713f7e4 100644 --- a/source/render/camera.h +++ b/source/render/camera.h @@ -2,6 +2,7 @@ #define MSP_GL_CAMERA_H_ #include +#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 @@ -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 &);