Initial revision
[0ad:0ad.git] / terrain / bak / 0 / Patch.h
1 //***********************************************************
2 //
3 // Name:                Patch.H
4 // Last Update: 23/2/02
5 // Author:              Poya Manouchehri
6 //
7 // Description: CPatch is a smaller portion of the terrain.
8 //                              It handles its own rendering
9 //
10 //***********************************************************
11
12 #ifndef PATCH_H
13 #define PATCH_H
14
15 #include "Matrix3D.H"
16 #include "Camera.H"
17 #include "TerrGlobals.H"
18 #include "MiniPatch.H"
19
20 class CPatch
21 {
22         public:
23                 CPatch ();
24                 ~CPatch ();
25
26                 //initialize the patch
27                 void Initialize (STerrainVertex *first_vertex);
28
29 //      protected:
30                 CMiniPatch              m_MiniPatches[4][4];
31
32                 SBoundingBox    m_Bounds;
33                 unsigned int    m_LastVisFrame;
34                 
35                 STerrainVertex  *m_pVertices;
36 };
37
38
39 typedef CPatch          *LPPATCH;
40
41 #endif