aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyCircle.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyCircle.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to '')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyCircle.h128
1 files changed, 64 insertions, 64 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyCircle.h b/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyCircle.h
index c17b036..bf3cc1d 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyCircle.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFlyCircle.h
@@ -1,64 +1,64 @@
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 __C_SCENE_NODE_ANIMATOR_FLY_CIRCLE_H_INCLUDED__ 5#ifndef __C_SCENE_NODE_ANIMATOR_FLY_CIRCLE_H_INCLUDED__
6#define __C_SCENE_NODE_ANIMATOR_FLY_CIRCLE_H_INCLUDED__ 6#define __C_SCENE_NODE_ANIMATOR_FLY_CIRCLE_H_INCLUDED__
7 7
8#include "ISceneNode.h" 8#include "ISceneNode.h"
9 9
10namespace irr 10namespace irr
11{ 11{
12namespace scene 12namespace scene
13{ 13{
14 class CSceneNodeAnimatorFlyCircle : public ISceneNodeAnimator 14 class CSceneNodeAnimatorFlyCircle : public ISceneNodeAnimator
15 { 15 {
16 public: 16 public:
17 17
18 //! constructor 18 //! constructor
19 CSceneNodeAnimatorFlyCircle(u32 time, 19 CSceneNodeAnimatorFlyCircle(u32 time,
20 const core::vector3df& center, f32 radius, 20 const core::vector3df& center, f32 radius,
21 f32 speed, const core::vector3df& direction, 21 f32 speed, const core::vector3df& direction,
22 f32 radiusEllipsoid); 22 f32 radiusEllipsoid);
23 23
24 //! animates a scene node 24 //! animates a scene node
25 virtual void animateNode(ISceneNode* node, u32 timeMs); 25 virtual void animateNode(ISceneNode* node, u32 timeMs);
26 26
27 //! Writes attributes of the scene node animator. 27 //! Writes attributes of the scene node animator.
28 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; 28 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
29 29
30 //! Reads attributes of the scene node animator. 30 //! Reads attributes of the scene node animator.
31 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0); 31 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
32 32
33 //! Returns type of the scene node animator 33 //! Returns type of the scene node animator
34 virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FLY_CIRCLE; } 34 virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FLY_CIRCLE; }
35 35
36 //! Creates a clone of this animator. 36 //! Creates a clone of this animator.
37 /** Please note that you will have to drop 37 /** Please note that you will have to drop
38 (IReferenceCounted::drop()) the returned pointer after calling 38 (IReferenceCounted::drop()) the returned pointer after calling
39 this. */ 39 this. */
40 virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0); 40 virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0);
41 41
42 private: 42 private:
43 // do some initial calculations 43 // do some initial calculations
44 void init(); 44 void init();
45 45
46 // circle center 46 // circle center
47 core::vector3df Center; 47 core::vector3df Center;
48 // up-vector, normal to the circle's plane 48 // up-vector, normal to the circle's plane
49 core::vector3df Direction; 49 core::vector3df Direction;
50 // Two helper vectors 50 // Two helper vectors
51 core::vector3df VecU; 51 core::vector3df VecU;
52 core::vector3df VecV; 52 core::vector3df VecV;
53 f32 Radius; 53 f32 Radius;
54 f32 RadiusEllipsoid; 54 f32 RadiusEllipsoid;
55 f32 Speed; 55 f32 Speed;
56 u32 StartTime; 56 u32 StartTime;
57 }; 57 };
58 58
59 59
60} // end namespace scene 60} // end namespace scene
61} // end namespace irr 61} // end namespace irr
62 62
63#endif 63#endif
64 64