aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorTexture.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorTexture.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorTexture.h118
1 files changed, 59 insertions, 59 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorTexture.h b/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorTexture.h
index a27eef0..597b5be 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorTexture.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CSceneNodeAnimatorTexture.h
@@ -1,59 +1,59 @@
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_TEXTURE_H_INCLUDED__ 5#ifndef __C_SCENE_NODE_ANIMATOR_TEXTURE_H_INCLUDED__
6#define __C_SCENE_NODE_ANIMATOR_TEXTURE_H_INCLUDED__ 6#define __C_SCENE_NODE_ANIMATOR_TEXTURE_H_INCLUDED__
7 7
8#include "irrArray.h" 8#include "irrArray.h"
9#include "ISceneNodeAnimatorFinishing.h" 9#include "ISceneNodeAnimatorFinishing.h"
10 10
11namespace irr 11namespace irr
12{ 12{
13namespace scene 13namespace scene
14{ 14{
15 class CSceneNodeAnimatorTexture : public ISceneNodeAnimatorFinishing 15 class CSceneNodeAnimatorTexture : public ISceneNodeAnimatorFinishing
16 { 16 {
17 public: 17 public:
18 18
19 //! constructor 19 //! constructor
20 CSceneNodeAnimatorTexture(const core::array<video::ITexture*>& textures, 20 CSceneNodeAnimatorTexture(const core::array<video::ITexture*>& textures,
21 s32 timePerFrame, bool loop, u32 now); 21 s32 timePerFrame, bool loop, u32 now);
22 22
23 //! destructor 23 //! destructor
24 virtual ~CSceneNodeAnimatorTexture(); 24 virtual ~CSceneNodeAnimatorTexture();
25 25
26 //! animates a scene node 26 //! animates a scene node
27 virtual void animateNode(ISceneNode* node, u32 timeMs); 27 virtual void animateNode(ISceneNode* node, u32 timeMs);
28 28
29 //! Writes attributes of the scene node animator. 29 //! Writes attributes of the scene node animator.
30 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const; 30 virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
31 31
32 //! Reads attributes of the scene node animator. 32 //! Reads attributes of the scene node animator.
33 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0); 33 virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
34 34
35 //! Returns type of the scene node animator 35 //! Returns type of the scene node animator
36 virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_TEXTURE; } 36 virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_TEXTURE; }
37 37
38 //! Creates a clone of this animator. 38 //! Creates a clone of this animator.
39 /** Please note that you will have to drop 39 /** Please note that you will have to drop
40 (IReferenceCounted::drop()) the returned pointer after calling 40 (IReferenceCounted::drop()) the returned pointer after calling
41 this. */ 41 this. */
42 virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0); 42 virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0);
43 43
44 private: 44 private:
45 45
46 void clearTextures(); 46 void clearTextures();
47 47
48 core::array<video::ITexture*> Textures; 48 core::array<video::ITexture*> Textures;
49 u32 TimePerFrame; 49 u32 TimePerFrame;
50 u32 StartTime; 50 u32 StartTime;
51 bool Loop; 51 bool Loop;
52 }; 52 };
53 53
54 54
55} // end namespace scene 55} // end namespace scene
56} // end namespace irr 56} // end namespace irr
57 57
58#endif 58#endif
59 59