Changeset 2080 for GTP/trunk/Lib
- Timestamp:
- 02/05/07 13:22:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Geom/shared/GTGeometry/src/GeoLodTreeLibrary.cpp
r1782 r2080 5 5 using namespace Geometry; 6 6 7 Geometry::LodTreeLibrary::LodTreeLibrary(const LodStripsLibraryData *lodstripsdata, 8 const TreeSimplificationSequence *simpseq, 9 Geometry::Mesh *treeGeoMesh, 10 Geometry::IndexData *userindexdata) 11 { 12 // Cargar el tronco 7 Geometry::LodTreeLibrary::LodTreeLibrary( 8 const LodStripsLibraryData *lodstripsdata, 9 const TreeSimplificationSequence *simpseq, 10 Geometry::Mesh *treeGeoMesh, 11 Geometry::IndexData *userindexdata) 12 { 13 // Cargar el tronco. 13 14 trunk = new LodStripsLibrary(lodstripsdata,treeGeoMesh,userindexdata); 14 15 … … 18 19 for (size_t i = 0; i < treeGeoMesh->mSubMeshCount; i++) 19 20 { 20 if (treeGeoMesh->mSubMesh[i].mType ==GEO_TRIANGLE_LIST)21 if (treeGeoMesh->mSubMesh[i].mType == GEO_TRIANGLE_LIST) 21 22 { 22 23 mLeavesSubMesh = (uint32)i; … … 25 26 } 26 27 27 delete_indexdata =false;28 dataRetrievalInterface =userindexdata;28 delete_indexdata = false; 29 dataRetrievalInterface = userindexdata; 29 30 30 31 // Cargar la copa del árbol 31 Geometry::SubMesh * leafsSubMesh = &(treeGeoMesh->mSubMesh[mLeavesSubMesh]); 32 foliage = new Foliage(mLeavesSubMesh,leafsSubMesh,simpseq); 32 Geometry::SubMesh *leafsSubMesh = 33 &(treeGeoMesh->mSubMesh[mLeavesSubMesh]); 34 35 foliage = new Foliage(mLeavesSubMesh,leafsSubMesh,simpseq); 36 33 37 GoToFoliageLod(1.0f); 34 38 } 39 35 40 /* 36 41 LodTreeLibrary::LodTreeLibrary(const LodTreeLibrary &t) … … 102 107 + 103 108 newlod * foliage->leafCount ); 104 109 105 110 foliage->CalculateLOD(targetLeaves); 106 111
Note: See TracChangeset
for help on using the changeset viewer.