2003-11-03 17:22:45 +01:00
|
|
|
//***********************************************************
|
|
|
|
//
|
2003-11-24 23:52:23 +01:00
|
|
|
// Name: Patch.h
|
2003-11-03 17:22:45 +01:00
|
|
|
// Last Update: 23/2/02
|
|
|
|
// Author: Poya Manouchehri
|
|
|
|
//
|
|
|
|
// Description: CPatch is a smaller portion of the terrain.
|
|
|
|
// It handles its own rendering
|
|
|
|
//
|
|
|
|
//***********************************************************
|
|
|
|
|
|
|
|
#ifndef PATCH_H
|
|
|
|
#define PATCH_H
|
|
|
|
|
2003-11-25 21:09:57 +01:00
|
|
|
#include "Bound.h"
|
2003-11-24 23:52:23 +01:00
|
|
|
#include "TerrGlobals.h"
|
|
|
|
#include "MiniPatch.h"
|
2003-11-03 17:22:45 +01:00
|
|
|
|
|
|
|
class CPatch
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CPatch ();
|
|
|
|
~CPatch ();
|
|
|
|
|
|
|
|
//initialize the patch
|
|
|
|
void Initialize (STerrainVertex *first_vertex);
|
|
|
|
|
|
|
|
// protected:
|
|
|
|
CMiniPatch m_MiniPatches[16][16];
|
|
|
|
|
2003-11-25 21:09:57 +01:00
|
|
|
CBound m_Bounds;
|
2003-11-03 17:22:45 +01:00
|
|
|
unsigned int m_LastVisFrame;
|
|
|
|
|
|
|
|
STerrainVertex *m_pVertices;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|