RenderEngine
Loading...
Searching...
No Matches
Controls.hpp
Go to the documentation of this file.
1/*
2 * Controls.hpp
3 *
4 * Setting controls for interacting using mouse and keyboard with the rendering.
5 * Adjusted to work with the camera class
6 * by Stefanie Zollmann
7 *
8 *
9 */
10
11
12#ifndef CONTROLS_HPP
13#define CONTROLS_HPP
14
15#include "Camera.hpp"
16
17
19
20public:
22 Controls(Camera* cam);
24
25 void update();
27
28 void setSpeed(float sp){keyspeed = sp;}
29
30private:
31
32 Camera* m_camera;
33 float keyspeed;
34 float mouseSpeed;
35
36 float horizontalAngle;
37 float verticalAngle;
38};
39#endif
Camera.
Definition Camera.hpp:22
Definition Controls.hpp:18
void setSpeed(float sp)
Set Speed.
Definition Controls.hpp:28
Controls()
Definition Controls.hpp:21
void update()
Update controls.
Definition Controls.cpp:27