summaryrefslogtreecommitdiff
path: root/gfx/followCameraController.h
blob: cfe70c268bfb82258d43b998966a700a7275d35a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef FOLLOW_CAMERA_CONTROLLER_H
#define FOLLOW_CAMERA_CONTROLLER_H

#include <game/vehicles/vehicle.h>
#include <gfx/camera_controller.h>

class Camera;

class FollowCameraController : public CameraController {
public:
	enum class Mode { Pan, Ride, ISO };
	explicit FollowCameraController(VehicleWPtr, Mode = Mode::Pan);

	void updateCamera(Camera * camera) const override;

private:
	VehicleWPtr target;
	Mode mode;
};
#endif