//*********************************************************** // // Name: Patch.Cpp // Last Update: 23/2/02 // Author: Poya Manouchehri // // Description: CPatch is a smaller portion of the terrain. // It handles the ROAM implementation and its // own rendering. // //*********************************************************** #include "Patch.h" CPatch::CPatch () { m_pVertices = NULL; } CPatch::~CPatch () { } //Initialize the patch void CPatch::Initialize (STerrainVertex *first_vertex) { m_pVertices = first_vertex; m_Bounds.SetEmpty(); for (int j=0; j