source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Transform3.h @ 2840

Revision 2840, 776 bytes checked in by mattausch, 16 years ago (diff)
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
9namespace CHCDemoEngine
10{
11
12class RenderState;
13class Matrix4x4;
14
15
16/** Class representing a transformation
17*/
18class Transform3
19{
20public:
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
40protected:
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.