#define MSP_GL_CAMERA_H_
#include <msp/datafile/objectloader.h>
+#include "camera_backend.h"
#include "placeable.h"
#include "programdata.h"
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>
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> &);