Submission from Joseph Stell, added LoadModels to TerrapageNode.

This commit is contained in:
Robert Osfield
2003-01-14 14:00:09 +00:00
parent edd04fd5a0
commit 3365634a01
3 changed files with 5 additions and 2 deletions

View File

@@ -61,6 +61,9 @@ bool TerrapageNode::loadDatabase()
// Note: Should be checking the return values
txpArchive->LoadMaterials();
// Note: Should be checking the return values
txpArchive->LoadModels();
// get the exents of the archive
const trpgHeader *head = txpArchive->GetHeader();
trpg2dPoint sw,ne;

View File

@@ -51,7 +51,7 @@ namespace txp
/// Load and create textures and materials
void LoadMaterials();
// Load and create models, usualy OpenFlight models
/// Load and create models, usualy OpenFlight models
bool LoadModels();
/** Load a TXP tile and

View File

@@ -59,7 +59,7 @@ public:
inline void AddStripStat(int val) { stripStat[MIN(14,val)]++; totalStripTri += val; totalTri += val; numStrip++;}
inline void AddFanStat(int val) { fanStat[MIN(14,val)]++; totalFanTri += val; totalTri += val; numFan++;}
inline void AddBagStat(int val) { totalBagTri += val; totalTri += val;}
inline void AddQuadStat(int val) { totalQuad++; }
inline void AddQuadStat(int /*val*/) { totalQuad++; }
};
/* Geometry Helper