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
18
class
Controls
{
19
20
public
:
21
Controls
(){};
22
Controls
(
Camera
* cam);
24
25
void
update
();
27
28
void
setSpeed
(
float
sp){keyspeed = sp;}
29
30
private
:
31
32
Camera
* m_camera;
33
float
keyspeed;
34
float
mouseSpeed;
35
36
float
horizontalAngle;
37
float
verticalAngle;
38
};
39
#endif
Camera.hpp
Camera
Camera.
Definition
Camera.hpp:22
Controls
Definition
Controls.hpp:18
Controls::setSpeed
void setSpeed(float sp)
Set Speed.
Definition
Controls.hpp:28
Controls::Controls
Controls()
Definition
Controls.hpp:21
Controls::update
void update()
Update controls.
Definition
Controls.cpp:27
common
Controls.hpp
Generated by
1.9.7