source: GTP/trunk/App/Games/Jungle_Rumble/src/Quad.h @ 1378

Revision 1378, 691 bytes checked in by giegl, 18 years ago (diff)

GTPD - Jungle Rumble - integrate into GTP SVN structure

Line 
1#pragma once
2#include "Plane.h"
3#include "Node.h"
4#include "Vector.h"
5#include "vector"
6
7class Camera;
8
9#define SPTR boost::shared_ptr
10
11class Quad
12{
13public:
14        Quad(void);
15        ~Quad(void);
16
17        void setPosition(float _x, float _z);
18        void setDimension(float _width, float _height);
19
20        void buildQuadTree(int _level);
21        void clipQuadAgainstCamera(Plane *view);
22        bool nodeInside(Node* node);
23        void deleteQuadTree();
24
25        Vector getMinBBox();
26        Vector getMaxBBox();
27
28        Quad *q[4];
29        int level;
30private:
31       
32        int  getClipType(Plane *view);
33
34        Vector position;
35        float width;
36        float height;
37       
38
39        Vector minBBox;
40        Vector maxBBox;
41
42        bool fullyVisible;
43        bool partlyVisible;
44};
Note: See TracBrowser for help on using the repository browser.