Submission from Joseph Stell, added LoadModels to TerrapageNode.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user