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

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