Neo  0.5.0
Developer Documentation
TextureAnim.h
Go to the documentation of this file.
1 //========================================================================
2 // Copyright (c) 2003-2011 Anael Seghezzi <www.maratis3d.com>
3 //
4 // This software is provided 'as-is', without any express or implied
5 // warranty. In no event will the authors be held liable for any damages
6 // arising from the use of this software.
7 //
8 // Permission is granted to anyone to use this software for any purpose,
9 // including commercial applications, and to alter it and redistribute it
10 // freely, subject to the following restrictions:
11 //
12 // 1. The origin of this software must not be misrepresented; you must not
13 // claim that you wrote the original software. If you use this software
14 // in a product, an acknowledgment in the product documentation would
15 // be appreciated but is not required.
16 //
17 // 2. Altered source versions must be plainly marked as such, and must not
18 // be misrepresented as being the original software.
19 //
20 // 3. This notice may not be removed or altered from any source
21 // distribution.
22 //
23 //========================================================================
24 
25 
26 #ifndef __TEXTURE_ANIM
27 #define __TEXTURE_ANIM
28 
29 namespace Neo
30 {
31 class NEO_ENGINE_EXPORT TextureAnim
32 {
33 public:
34 
35  TextureAnim(void);
36  ~TextureAnim(void);
37 
38 private:
39 
40  unsigned int m_translateKeysNumber;
41  unsigned int m_scaleKeysNumber;
42  unsigned int m_rotationKeysNumber;
43 
44  Key * m_translateKeys;
45  Key * m_scaleKeys;
46  Key * m_rotationKeys;
47 
48 public:
49 
50  Key * allocTranslateKeys(unsigned int size);
51  Key * allocScaleKeys(unsigned int size);
52  Key * allocRotationKeys(unsigned int size);
53 
54  void clearTranslateKeys(void);
55  void clearScaleKeys(void);
56  void clearRotationKeys(void);
57 
58  inline unsigned int getTranslateKeysNumber(void){ return m_translateKeysNumber; }
59  inline unsigned int getScaleKeysNumber(void){ return m_scaleKeysNumber; }
60  inline unsigned int getRotationKeysNumber(void){ return m_rotationKeysNumber; }
61 
62  inline Key * getTranslateKeys(void){ return m_translateKeys; }
63  inline Key * getScaleKeys(void){ return m_scaleKeys; }
64  inline Key * getRotationKeys(void){ return m_rotationKeys; }
65 };
66 }
67 #endif
Definition: TextureAnim.h:31
unsigned int getTranslateKeysNumber(void)
Definition: TextureAnim.h:58
Key * getScaleKeys(void)
Definition: TextureAnim.h:63
Definition: Key.h:31
unsigned int getScaleKeysNumber(void)
Definition: TextureAnim.h:59
Definition: Color.h:29
unsigned int getRotationKeysNumber(void)
Definition: TextureAnim.h:60
Key * getRotationKeys(void)
Definition: TextureAnim.h:64
Key * getTranslateKeys(void)
Definition: TextureAnim.h:62