-/* $Id$
-
-This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
#ifndef CAMERACONTROLLER_H_
#define CAMERACONTROLLER_H_
-#include <msp/gbase/window.h>
+#include <msp/graphics/window.h>
#include <msp/gl/camera.h>
-
-class Designer;
+#include "3d/view.h"
/**
Moves the camera based on keyboard and mouse events. Controls are as follows:
DISTANCE
};
- Designer &designer;
+ R2C2::View3D &view;
Msp::Graphics::EventSource &event_source;
Msp::GL::Camera &camera;
int move_x;
DragMode drag_mode;
public:
- CameraController(Designer &, Msp::Graphics::EventSource &, Msp::GL::Camera &);
+ CameraController(R2C2::View3D &, Msp::Graphics::EventSource &);
void top_down();
void set_look_direction(const Msp::GL::Vector3 &);