source: GTP/trunk/App/Demos/Illum/Hierarchical Systems Demo [OpenGL]/RESOURCES/include/My3DGraphRes/Impostor.h @ 852

Revision 852, 1007 bytes checked in by szirmay, 18 years ago (diff)
Line 
1#pragma once
2
3#include "Camera.h"
4
5class Impostor
6{
7public:
8        Impostor(void);
9        ~Impostor(void);
10
11        void Display();
12        void updateCamera(bool forceRefresh);
13        void setViewCamera(Camera* camera){m_ViewCamera=camera;}
14        Camera* getCamera(){return m_ViewCamera;}
15        Camera getOwnCamera(){return m_OwnCamera;}
16        void SetErrorTolerance(double error){m_ErrorTolerance=error;}
17
18        bool NeedRefresh;
19        void setObjSphereRadius(double radius){m_ObjectBSphereRadius=radius;}
20        void setObjPosition(Vector position){m_ObjectPosition=position;}
21       
22        void ApplyCameraTransform(){m_OwnCamera.SetViewandProjection();}
23        void ApplyCameraTransformOrto(){m_OwnCamera.SetViewandProjectionOrto();}
24
25        Vector m_UpRight;
26        Vector m_UpLeft;
27        Vector m_DownRight;
28        Vector m_DownLeft;
29       
30        void DisplayScreenQuad(int u=1,int v=1);
31
32        double Vertices[12];
33        double UVs[8];
34
35private:
36
37        Camera m_OwnCamera;
38        Camera* m_ViewCamera;   
39
40        double m_ErrorTolerance;
41        double m_ObjectBSphereRadius;
42        Vector m_ObjectPosition;
43};
Note: See TracBrowser for help on using the repository browser.