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