Rev | Line | |
---|
[2840] | 1 | #ifndef __TRANSFORM3_H
|
---|
| 2 | #define __TRANSFORM3_H
|
---|
[2839] | 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;
|
---|
[2840] | 13 | class Matrix4x4;
|
---|
[2839] | 14 |
|
---|
| 15 |
|
---|
| 16 | /** Class representing a transformation
|
---|
| 17 | */
|
---|
[2840] | 18 | class Transform3
|
---|
[2839] | 19 | {
|
---|
| 20 | public:
|
---|
| 21 |
|
---|
| 22 | /** Creates a scene entity.
|
---|
| 23 | */
|
---|
[2840] | 24 | Transform3(Matrix4x4 *trafo);
|
---|
[2839] | 25 |
|
---|
[2840] | 26 | ~Transform3();
|
---|
[2839] | 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 |
|
---|
[2840] | 37 | static CGparameter sModelMatrixParam;
|
---|
| 38 |
|
---|
| 39 |
|
---|
[2839] | 40 | protected:
|
---|
| 41 |
|
---|
| 42 | /// transform matrix
|
---|
| 43 | Matrix4x4 *mMatrix;
|
---|
| 44 | };
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | }
|
---|
| 48 |
|
---|
[2840] | 49 | #endif // __TRANSFORM_H |
---|
Note: See
TracBrowser
for help on using the repository browser.