Skylicht Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
Irrlicht
Include
ISceneNodeAnimatorCameraFPS.h
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 irrlicht.h
4
5
#ifndef __I_SCENE_NODE_ANIMATOR_CAMERA_FPS_H_INCLUDED__
6
#define __I_SCENE_NODE_ANIMATOR_CAMERA_FPS_H_INCLUDED__
7
8
#include "ISceneNodeAnimator.h"
9
#include "IEventReceiver.h"
10
#include "irrArray.h"
11
12
namespace
irr
13
{
14
struct
SKeyMap
;
15
16
namespace
scene
17
{
18
20
23
class
ISceneNodeAnimatorCameraFPS
:
public
ISceneNodeAnimator
24
{
25
public
:
26
28
virtual
f32
getMoveSpeed
()
const
= 0;
29
31
virtual
void
setMoveSpeed
(
f32
moveSpeed) = 0;
32
34
37
virtual
f32
getRotateSpeed
()
const
= 0;
38
40
virtual
void
setRotateSpeed
(
f32
rotateSpeed) = 0;
41
43
45
virtual
void
setKeyMap
(
SKeyMap
*map,
u32
count) = 0;
46
49
virtual
void
setKeyMap
(
const
core::array<SKeyMap>
& keymap) = 0;
50
52
virtual
const
core::array<SKeyMap>
&
getKeyMap
()
const
= 0;
53
55
58
virtual
void
setVerticalMovement
(
bool
allow) = 0;
59
61
63
virtual
void
setInvertMouse
(
bool
invert) = 0;
64
};
65
}
// end namespace scene
66
}
// end namespace irr
67
68
#endif
69
irr::core::array
Self reallocating template array (like stl vector) with additional features.
Definition
irrArray.h:23
irr::scene::ISceneNodeAnimatorCameraFPS
Special scene node animator for FPS cameras.
Definition
ISceneNodeAnimatorCameraFPS.h:24
irr::scene::ISceneNodeAnimatorCameraFPS::setMoveSpeed
virtual void setMoveSpeed(f32 moveSpeed)=0
Sets the speed of movement in units per millisecond.
irr::scene::ISceneNodeAnimatorCameraFPS::setKeyMap
virtual void setKeyMap(SKeyMap *map, u32 count)=0
Sets the keyboard mapping for this animator (old style).
irr::scene::ISceneNodeAnimatorCameraFPS::setVerticalMovement
virtual void setVerticalMovement(bool allow)=0
Sets whether vertical movement should be allowed.
irr::scene::ISceneNodeAnimatorCameraFPS::getKeyMap
virtual const core::array< SKeyMap > & getKeyMap() const =0
Gets the keyboard mapping for this animator.
irr::scene::ISceneNodeAnimatorCameraFPS::setKeyMap
virtual void setKeyMap(const core::array< SKeyMap > &keymap)=0
irr::scene::ISceneNodeAnimatorCameraFPS::setRotateSpeed
virtual void setRotateSpeed(f32 rotateSpeed)=0
Set the rotation speed in degrees.
irr::scene::ISceneNodeAnimatorCameraFPS::getRotateSpeed
virtual f32 getRotateSpeed() const =0
Returns the rotation speed in degrees.
irr::scene::ISceneNodeAnimatorCameraFPS::setInvertMouse
virtual void setInvertMouse(bool invert)=0
Sets whether the Y axis of the mouse should be inverted.
irr::scene::ISceneNodeAnimatorCameraFPS::getMoveSpeed
virtual f32 getMoveSpeed() const =0
Returns the speed of movement in units per millisecond.
irr::scene::ISceneNodeAnimator
Animates a scene node. Can animate position, rotation, material, and so on.
Definition
ISceneNodeAnimator.h:31
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition
CIndexBuffer.h:13
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition
Skylicht.h:33
irr::f32
float f32
32 bit floating point variable.
Definition
irrTypes.h:104
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition
irrTypes.h:58
irr::SKeyMap
Struct storing which key belongs to which action.
Definition
SKeyMap.h:30
Generated by
1.17.0