Neo  0.5.0
Developer Documentation
MaterialAnim.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 __MATERIAL_ANIM
27 #define __MATERIAL_ANIM
28 
29 namespace Neo
30 {
31 class NEO_ENGINE_EXPORT MaterialAnim
32 {
33 public:
34 
35  MaterialAnim(void);
36  ~MaterialAnim(void);
37 
38 private:
39 
40  unsigned int m_opacityKeysNumber;
41  unsigned int m_shininessKeysNumber;
42  unsigned int m_customValueKeysNumber;
43  unsigned int m_diffuseKeysNumber;
44  unsigned int m_specularKeysNumber;
45  unsigned int m_emitKeysNumber;
46  unsigned int m_customColorKeysNumber;
47 
48  Key * m_opacityKeys;
49  Key * m_shininessKeys;
50  Key * m_customValueKeys;
51  Key * m_diffuseKeys;
52  Key * m_specularKeys;
53  Key * m_emitKeys;
54  Key * m_customColorKeys;
55 
56 public:
57 
58  Key * allocOpacityKeys(unsigned int size);
59  Key * allocShininessKeys(unsigned int size);
60  Key * allocCustomValueKeys(unsigned int size);
61  Key * allocDiffuseKeys(unsigned int size);
62  Key * allocSpecularKeys(unsigned int size);
63  Key * allocEmitKeys(unsigned int size);
64  Key * allocCustomColorKeys(unsigned int size);
65 
66  void clearOpacityKeys(void);
67  void clearShininessKeys(void);
68  void clearCustomValueKeys(void);
69  void clearDiffuseKeys(void);
70  void clearSpecularKeys(void);
71  void clearEmitKeys(void);
72  void clearCustomColorKeys(void);
73 
74  inline unsigned int getOpacityKeysNumber(void){ return m_opacityKeysNumber; }
75  inline unsigned int getShininessKeysNumber(void){ return m_shininessKeysNumber; }
76  inline unsigned int getCustomValueKeysNumber(void){ return m_customValueKeysNumber; }
77  inline unsigned int getDiffuseKeysNumber(void){ return m_diffuseKeysNumber; }
78  inline unsigned int getSpecularKeysNumber(void){ return m_specularKeysNumber; }
79  inline unsigned int getEmitKeysNumber(void){ return m_emitKeysNumber; }
80  inline unsigned int getCustomColorKeysNumber(void){ return m_customColorKeysNumber; }
81 
82  inline Key * getOpacityKeys(void){ return m_opacityKeys; }
83  inline Key * getShininessKeys(void){ return m_shininessKeys; }
84  inline Key * getCustomValueKeys(void){ return m_customValueKeys; }
85  inline Key * getDiffuseKeys(void){ return m_diffuseKeys; }
86  inline Key * getSpecularKeys(void){ return m_specularKeys; }
87  inline Key * getEmitKeys(void){ return m_emitKeys; }
88  inline Key * getCustomColorKeys(void){ return m_customColorKeys; }
89 };
90 }
91 #endif
Key * getCustomValueKeys(void)
Definition: MaterialAnim.h:84
unsigned int getShininessKeysNumber(void)
Definition: MaterialAnim.h:75
Key * getDiffuseKeys(void)
Definition: MaterialAnim.h:85
unsigned int getOpacityKeysNumber(void)
Definition: MaterialAnim.h:74
Key * getShininessKeys(void)
Definition: MaterialAnim.h:83
Key * getCustomColorKeys(void)
Definition: MaterialAnim.h:88
Key * getSpecularKeys(void)
Definition: MaterialAnim.h:86
Definition: Key.h:31
unsigned int getDiffuseKeysNumber(void)
Definition: MaterialAnim.h:77
unsigned int getCustomColorKeysNumber(void)
Definition: MaterialAnim.h:80
Definition: MaterialAnim.h:31
unsigned int getSpecularKeysNumber(void)
Definition: MaterialAnim.h:78
Key * getOpacityKeys(void)
Definition: MaterialAnim.h:82
Definition: Color.h:29
Key * getEmitKeys(void)
Definition: MaterialAnim.h:87
unsigned int getEmitKeysNumber(void)
Definition: MaterialAnim.h:79
unsigned int getCustomValueKeysNumber(void)
Definition: MaterialAnim.h:76