aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/include/ISceneNodeAnimatorCameraFPS.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/irrlicht-1.8/include/ISceneNodeAnimatorCameraFPS.h')
-rw-r--r--libraries/irrlicht-1.8/include/ISceneNodeAnimatorCameraFPS.h138
1 files changed, 69 insertions, 69 deletions
diff --git a/libraries/irrlicht-1.8/include/ISceneNodeAnimatorCameraFPS.h b/libraries/irrlicht-1.8/include/ISceneNodeAnimatorCameraFPS.h
index 7b7a867..adfe9e9 100644
--- a/libraries/irrlicht-1.8/include/ISceneNodeAnimatorCameraFPS.h
+++ b/libraries/irrlicht-1.8/include/ISceneNodeAnimatorCameraFPS.h
@@ -1,69 +1,69 @@
1// Copyright (C) 2002-2012 Nikolaus Gebhardt 1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine". 2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h 3// For conditions of distribution and use, see copyright notice in irrlicht.h
4 4
5#ifndef __I_SCENE_NODE_ANIMATOR_CAMERA_FPS_H_INCLUDED__ 5#ifndef __I_SCENE_NODE_ANIMATOR_CAMERA_FPS_H_INCLUDED__
6#define __I_SCENE_NODE_ANIMATOR_CAMERA_FPS_H_INCLUDED__ 6#define __I_SCENE_NODE_ANIMATOR_CAMERA_FPS_H_INCLUDED__
7 7
8#include "ISceneNodeAnimator.h" 8#include "ISceneNodeAnimator.h"
9#include "IEventReceiver.h" 9#include "IEventReceiver.h"
10#include "irrArray.h" 10#include "irrArray.h"
11 11
12namespace irr 12namespace irr
13{ 13{
14 struct SKeyMap; 14 struct SKeyMap;
15 15
16namespace scene 16namespace scene
17{ 17{
18 18
19 //! Special scene node animator for FPS cameras 19 //! Special scene node animator for FPS cameras
20 /** This scene node animator can be attached to a camera to make it act 20 /** This scene node animator can be attached to a camera to make it act
21 like a first person shooter 21 like a first person shooter
22 */ 22 */
23 class ISceneNodeAnimatorCameraFPS : public ISceneNodeAnimator 23 class ISceneNodeAnimatorCameraFPS : public ISceneNodeAnimator
24 { 24 {
25 public: 25 public:
26 26
27 //! Returns the speed of movement in units per millisecond 27 //! Returns the speed of movement in units per millisecond
28 virtual f32 getMoveSpeed() const = 0; 28 virtual f32 getMoveSpeed() const = 0;
29 29
30 //! Sets the speed of movement in units per millisecond 30 //! Sets the speed of movement in units per millisecond
31 virtual void setMoveSpeed(f32 moveSpeed) = 0; 31 virtual void setMoveSpeed(f32 moveSpeed) = 0;
32 32
33 //! Returns the rotation speed in degrees 33 //! Returns the rotation speed in degrees
34 /** The degrees are equivalent to a half screen movement of the mouse, 34 /** The degrees are equivalent to a half screen movement of the mouse,
35 i.e. if the mouse cursor had been moved to the border of the screen since 35 i.e. if the mouse cursor had been moved to the border of the screen since
36 the last animation. */ 36 the last animation. */
37 virtual f32 getRotateSpeed() const = 0; 37 virtual f32 getRotateSpeed() const = 0;
38 38
39 //! Set the rotation speed in degrees 39 //! Set the rotation speed in degrees
40 virtual void setRotateSpeed(f32 rotateSpeed) = 0; 40 virtual void setRotateSpeed(f32 rotateSpeed) = 0;
41 41
42 //! Sets the keyboard mapping for this animator (old style) 42 //! Sets the keyboard mapping for this animator (old style)
43 /** \param map Array of keyboard mappings, see irr::SKeyMap 43 /** \param map Array of keyboard mappings, see irr::SKeyMap
44 \param count Size of the keyboard map array. */ 44 \param count Size of the keyboard map array. */
45 virtual void setKeyMap(SKeyMap *map, u32 count) = 0; 45 virtual void setKeyMap(SKeyMap *map, u32 count) = 0;
46 46
47 //! Sets the keyboard mapping for this animator 47 //! Sets the keyboard mapping for this animator
48 //! \param keymap The new keymap array 48 //! \param keymap The new keymap array
49 virtual void setKeyMap(const core::array<SKeyMap>& keymap) = 0; 49 virtual void setKeyMap(const core::array<SKeyMap>& keymap) = 0;
50 50
51 //! Gets the keyboard mapping for this animator 51 //! Gets the keyboard mapping for this animator
52 virtual const core::array<SKeyMap>& getKeyMap() const = 0; 52 virtual const core::array<SKeyMap>& getKeyMap() const = 0;
53 53
54 //! Sets whether vertical movement should be allowed. 54 //! Sets whether vertical movement should be allowed.
55 /** If vertical movement is enabled then the camera may fight with 55 /** If vertical movement is enabled then the camera may fight with
56 gravity causing camera shake. Disable this if the camera has 56 gravity causing camera shake. Disable this if the camera has
57 a collision animator with gravity enabled. */ 57 a collision animator with gravity enabled. */
58 virtual void setVerticalMovement(bool allow) = 0; 58 virtual void setVerticalMovement(bool allow) = 0;
59 59
60 //! Sets whether the Y axis of the mouse should be inverted. 60 //! Sets whether the Y axis of the mouse should be inverted.
61 /** If enabled then moving the mouse down will cause 61 /** If enabled then moving the mouse down will cause
62 the camera to look up. It is disabled by default. */ 62 the camera to look up. It is disabled by default. */
63 virtual void setInvertMouse(bool invert) = 0; 63 virtual void setInvertMouse(bool invert) = 0;
64 }; 64 };
65} // end namespace scene 65} // end namespace scene
66} // end namespace irr 66} // end namespace irr
67 67
68#endif 68#endif
69 69