Duckcpp 2.1.0
Duckcpp 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 duckcpp/duckcpp.hpp
4
5#ifndef DCPP_I_SCENE_NODE_ANIMATOR_CAMERA_FPS_HPP_INCLUDED
6#define DCPP_I_SCENE_NODE_ANIMATOR_CAMERA_FPS_HPP_INCLUDED
7
8#include <duckcpp/core/engine/ISceneNodeAnimator.hpp>
9#include <duckcpp/core/engine/IEventReceiver.hpp>
10#include <duckcpp/core/engine/irrArray.hpp>
11
12namespace dcpp
13{
14 class SKeyMap;
15
16namespace scene
17{
18
20
24 {
25 public:
26
28 virtual dcpp::float32_kt getMoveSpeed() const = 0;
29
31 virtual void setMoveSpeed(dcpp::float32_kt moveSpeed) = 0;
32
35
37 virtual void setRotateSpeedKeyboard(dcpp::float32_kt rotateSpeed) = 0;
38
40
43 virtual dcpp::float32_kt getRotateSpeed() const = 0;
44
46 virtual void setRotateSpeed(dcpp::float32_kt rotateSpeed) = 0;
47
49
51 virtual void setKeyMap(SKeyMap *map, dcpp::uint32_kt count) = 0;
52
55 virtual void setKeyMap(const dcpp::nub::array<SKeyMap>& keymap) = 0;
56
58 virtual const dcpp::nub::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 dcpp
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 void setKeyMap(SKeyMap *map, dcpp::uint32_kt count)=0
Sets the keyboard mapping for this animator (old style)
virtual void setRotateSpeedKeyboard(dcpp::float32_kt rotateSpeed)=0
Set the rotation speed when using keyboard.
virtual dcpp::float32_kt getMoveSpeed() const =0
Returns the speed of movement in units per millisecond.
virtual void setKeyMap(const dcpp::nub::array< SKeyMap > &keymap)=0
virtual dcpp::float32_kt getRotateSpeed() const =0
Returns the rotation speed in degrees when using mouse.
virtual void setInvertMouse(bool invert)=0
Sets whether the Y axis of the mouse should be inverted.
virtual dcpp::float32_kt getRotateSpeedKeyboard() const =0
Returns the rotation speed when using keyboard.
virtual void setMoveSpeed(dcpp::float32_kt moveSpeed)=0
Sets the speed of movement in units per millisecond.
virtual void setVerticalMovement(bool allow)=0
Sets whether vertical movement should be allowed.
virtual void setRotateSpeed(dcpp::float32_kt rotateSpeed)=0
Set the rotation speed in degrees when using mouse.
virtual const dcpp::nub::array< SKeyMap > & getKeyMap() const =0
Gets the keyboard mapping for this animator.
Animates a scene node. Can animate position, rotation, material, and so on.
Definition ISceneNodeAnimator.hpp:32
As of Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
unsigned int uint32_kt
32 bit unsigned variable.
Definition irrTypes.hpp:64
float float32_kt
32 bit floating point variable.
Definition irrTypes.hpp:108

Duckcpp    @cppfx.xyz