diff options
author | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 18:54:10 +1000 |
commit | 959831f4ef5a3e797f576c3de08cd65032c997ad (patch) | |
tree | e7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFollowSpline.h | |
parent | Add info about changes to Irrlicht. (diff) | |
download | SledjHamr-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/CSceneNodeAnimatorFollowSpline.h | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFollowSpline.h b/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFollowSpline.h index a202328..551a113 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFollowSpline.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorFollowSpline.h | |||
@@ -1,63 +1,63 @@ | |||
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_FOLLOW_SPLINE_H_INCLUDED__ | 5 | #ifndef __C_SCENE_NODE_ANIMATOR_FOLLOW_SPLINE_H_INCLUDED__ |
6 | #define __C_SCENE_NODE_ANIMATOR_FOLLOW_SPLINE_H_INCLUDED__ | 6 | #define __C_SCENE_NODE_ANIMATOR_FOLLOW_SPLINE_H_INCLUDED__ |
7 | 7 | ||
8 | #include "ISceneNode.h" | 8 | #include "ISceneNode.h" |
9 | #include "irrArray.h" | 9 | #include "irrArray.h" |
10 | #include "ISceneNodeAnimatorFinishing.h" | 10 | #include "ISceneNodeAnimatorFinishing.h" |
11 | 11 | ||
12 | namespace irr | 12 | namespace irr |
13 | { | 13 | { |
14 | namespace scene | 14 | namespace scene |
15 | { | 15 | { |
16 | //! Scene node animator based free code Matthias Gall wrote and sent in. (Most of | 16 | //! Scene node animator based free code Matthias Gall wrote and sent in. (Most of |
17 | //! this code is written by him, I only modified bits.) | 17 | //! this code is written by him, I only modified bits.) |
18 | class CSceneNodeAnimatorFollowSpline : public ISceneNodeAnimatorFinishing | 18 | class CSceneNodeAnimatorFollowSpline : public ISceneNodeAnimatorFinishing |
19 | { | 19 | { |
20 | public: | 20 | public: |
21 | 21 | ||
22 | //! constructor | 22 | //! constructor |
23 | CSceneNodeAnimatorFollowSpline(u32 startTime, | 23 | CSceneNodeAnimatorFollowSpline(u32 startTime, |
24 | const core::array< core::vector3df >& points, | 24 | const core::array< core::vector3df >& points, |
25 | f32 speed = 1.0f, f32 tightness = 0.5f, bool loop=true, bool pingpong=false); | 25 | f32 speed = 1.0f, f32 tightness = 0.5f, bool loop=true, bool pingpong=false); |
26 | 26 | ||
27 | //! animates a scene node | 27 | //! animates a scene node |
28 | virtual void animateNode(ISceneNode* node, u32 timeMs); | 28 | virtual void animateNode(ISceneNode* node, u32 timeMs); |
29 | 29 | ||
30 | //! Writes attributes of the scene node animator. | 30 | //! Writes attributes of the scene node animator. |
31 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; | 31 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; |
32 | 32 | ||
33 | //! Reads attributes of the scene node animator. | 33 | //! Reads attributes of the scene node animator. |
34 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0); | 34 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0); |
35 | 35 | ||
36 | //! Returns type of the scene node animator | 36 | //! Returns type of the scene node animator |
37 | virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FOLLOW_SPLINE; } | 37 | virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FOLLOW_SPLINE; } |
38 | 38 | ||
39 | //! Creates a clone of this animator. | 39 | //! Creates a clone of this animator. |
40 | /** Please note that you will have to drop | 40 | /** Please note that you will have to drop |
41 | (IReferenceCounted::drop()) the returned pointer after calling | 41 | (IReferenceCounted::drop()) the returned pointer after calling |
42 | this. */ | 42 | this. */ |
43 | virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0); | 43 | virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0); |
44 | 44 | ||
45 | protected: | 45 | protected: |
46 | 46 | ||
47 | //! clamps a the value idx to fit into range 0..size-1 | 47 | //! clamps a the value idx to fit into range 0..size-1 |
48 | s32 clamp(s32 idx, s32 size); | 48 | s32 clamp(s32 idx, s32 size); |
49 | 49 | ||
50 | core::array< core::vector3df > Points; | 50 | core::array< core::vector3df > Points; |
51 | f32 Speed; | 51 | f32 Speed; |
52 | f32 Tightness; | 52 | f32 Tightness; |
53 | u32 StartTime; | 53 | u32 StartTime; |
54 | bool Loop; | 54 | bool Loop; |
55 | bool PingPong; | 55 | bool PingPong; |
56 | }; | 56 | }; |
57 | 57 | ||
58 | 58 | ||
59 | } // end namespace scene | 59 | } // end namespace scene |
60 | } // end namespace irr | 60 | } // end namespace irr |
61 | 61 | ||
62 | #endif | 62 | #endif |
63 | 63 | ||