Changeset 1321 for GTP/trunk/App/Demos/Geom/Demo_LodStrips
- Timestamp:
- 09/04/06 15:35:59 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Geom/Demo_LodStrips
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Geom/Demo_LodStrips/main.cpp
r1306 r1321 13 13 /*===========================================================================*/ 14 14 #include "ExampleApplication.h" 15 //#include "OgreLodStripsLibrary.h"16 15 #include "GeoLodStripsLibrary.h" 17 16 #include "GeoMeshLoader.h" … … 404 403 myStrips = new Geometry::LodStripsLibrary(meshloader->GetLodStripsData(),themesh); 405 404 406 for (unsigned int i=0; i<ogreMesh->getNumSubMeshes(); i++)407 {408 Ogre::RenderOperation mRenderOp;409 ogreMesh->getSubMesh(i)->_getRenderOperation(mRenderOp,0);410 int indices_to_render = myStrips->GetValidIndexCount(i);411 412 mRenderOp.indexData->indexBuffer =413 Ogre::HardwareBufferManager::getSingleton().createIndexBuffer(414 Ogre::HardwareIndexBuffer::IT_32BIT, // type of index415 indices_to_render, // number of indexes416 Ogre::HardwareBuffer::HBU_DISCARDABLE , // usage417 false);418 }419 420 405 entity->setNormaliseNormals(true); 421 406 aboveWaterEnts.push_back(entity); 422 407 entity->setMaterialName("LODStripsDemo/Ogro"); 423 408 424 for (int i=-3; i<7; i++) 425 for (int j=0; j<4; j++) 409 for (int i=-3; i<7; i++) // 7 410 for (int j=0; j<4; j++) // 4 426 411 { 427 412 char newObjName[16]="";
Note: See TracChangeset
for help on using the changeset viewer.