Line | |
---|
1 | #ifndef __TRANSFORM3_H
|
---|
2 | #define __TRANSFORM3_H
|
---|
3 |
|
---|
4 | #include "glInterface.h"
|
---|
5 | #include <Cg/cg.h>
|
---|
6 | #include <Cg/cgGL.h>
|
---|
7 | #include "common.h"
|
---|
8 |
|
---|
9 | namespace CHCDemoEngine
|
---|
10 | {
|
---|
11 |
|
---|
12 | class RenderState;
|
---|
13 | class Matrix4x4;
|
---|
14 |
|
---|
15 |
|
---|
16 | /** Class representing a transformation
|
---|
17 | */
|
---|
18 | class Transform3
|
---|
19 | {
|
---|
20 | public:
|
---|
21 |
|
---|
22 | /** Creates a scene entity.
|
---|
23 | */
|
---|
24 | Transform3(Matrix4x4 *trafo);
|
---|
25 |
|
---|
26 | ~Transform3();
|
---|
27 | /** Loads this transformation.
|
---|
28 | */
|
---|
29 | void Load(RenderState *state);
|
---|
30 | /** Unloads this transformation
|
---|
31 | */
|
---|
32 | void Unload(RenderState *state);
|
---|
33 | /** Returns the trafo of this scene entity.
|
---|
34 | */
|
---|
35 | inline Matrix4x4 *GetMatrix() const { return mMatrix; }
|
---|
36 |
|
---|
37 | static CGparameter sModelMatrixParam;
|
---|
38 |
|
---|
39 |
|
---|
40 | protected:
|
---|
41 |
|
---|
42 | /// transform matrix
|
---|
43 | Matrix4x4 *mMatrix;
|
---|
44 | };
|
---|
45 |
|
---|
46 |
|
---|
47 | }
|
---|
48 |
|
---|
49 | #endif // __TRANSFORM_H |
---|
Note: See
TracBrowser
for help on using the repository browser.