Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
ISceneNodeAnimatorCameraFPS.hpp
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_SCENE_NODE_ANIMATOR_CAMERA_FPS_HPP_INCLUDED
6#define NIRT_I_SCENE_NODE_ANIMATOR_CAMERA_FPS_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/ISceneNodeAnimator.hpp>
9#include <nirtcpp/core/engine/IEventReceiver.hpp>
10#include <nirtcpp/core/engine/irrArray.hpp>
11
12namespace nirt
13{
14 class SKeyMap;
15
16namespace scene
17{
18
20
24 {
25 public:
26
28 virtual f32 getMoveSpeed() const = 0;
29
31 virtual void setMoveSpeed(f32 moveSpeed) = 0;
32
34 virtual f32 getRotateSpeedKeyboard() const = 0;
35
37 virtual void setRotateSpeedKeyboard(f32 rotateSpeed) = 0;
38
40
43 virtual f32 getRotateSpeed() const = 0;
44
46 virtual void setRotateSpeed(f32 rotateSpeed) = 0;
47
49
51 virtual void setKeyMap(SKeyMap *map, u32 count) = 0;
52
55 virtual void setKeyMap(const core::array<SKeyMap>& keymap) = 0;
56
58 virtual const core::array<SKeyMap>& getKeyMap() const = 0;
59
61
64 virtual void setVerticalMovement(bool allow) = 0;
65
67
69 virtual void setInvertMouse(bool invert) = 0;
70 };
71} // end namespace scene
72} // end namespace nirt
73
74#endif
Class storing which key belongs to which action.
Definition SKeyMap.hpp:32
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
Special scene node animator for FPS cameras.
Definition ISceneNodeAnimatorCameraFPS.hpp:24
virtual f32 getMoveSpeed() const =0
Returns the speed of movement in units per millisecond.
virtual void setKeyMap(SKeyMap *map, u32 count)=0
Sets the keyboard mapping for this animator (old style)
virtual f32 getRotateSpeedKeyboard() const =0
Returns the rotation speed when using keyboard.
virtual void setRotateSpeedKeyboard(f32 rotateSpeed)=0
Set the rotation speed when using keyboard.
virtual const core::array< SKeyMap > & getKeyMap() const =0
Gets the keyboard mapping for this animator.
virtual void setMoveSpeed(f32 moveSpeed)=0
Sets the speed of movement in units per millisecond.
virtual void setRotateSpeed(f32 rotateSpeed)=0
Set the rotation speed in degrees when using mouse.
virtual f32 getRotateSpeed() const =0
Returns the rotation speed in degrees when using mouse.
virtual void setVerticalMovement(bool allow)=0
Sets whether vertical movement should be allowed.
virtual void setKeyMap(const core::array< SKeyMap > &keymap)=0
virtual void setInvertMouse(bool invert)=0
Sets whether the Y axis of the mouse should be inverted.
Animates a scene node. Can animate position, rotation, material, and so on.
Definition ISceneNodeAnimator.hpp:32
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print