Changeset 3073 for GTP/trunk/App/Demos
- Timestamp:
- 10/27/08 01:12:00 (16 years ago)
- Location:
- GTP/trunk/App/Demos/Vis/FriendlyCulling/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.cpp
r3072 r3073 532 532 /////////////////// 533 533 //-- for the first time we come here => create vbo and indices 534 534 /* 535 535 if (!mIndices) 536 536 { … … 544 544 PrepareVertices(); 545 545 } 546 546 */ 547 547 /////////////// 548 548 549 549 int numNodes = 0; 550 550 /* 551 551 BvhNodeContainer::const_iterator nit, nit_end = nodes.end(); 552 552 … … 563 563 numNodes += node->mNumTestNodes; 564 564 } 565 565 */ 566 566 return numNodes; 567 567 } … … 678 678 BvhNodeContainer nodes; 679 679 680 nodes.reserve(GetNum StaticNodes());680 nodes.reserve(GetNumNodes()); 681 681 CollectNodes(mRoot, nodes); 682 682 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.h
r3072 r3073 735 735 inline bool TerminationCriteriaMet(BvhLeaf *leaf) const; 736 736 737 /** Returns number of bvh nodes.738 */739 inline int GetNumStaticNodes() const { return mNumNodes; }740 741 737 void ComputeMaxDepthForVirtualLeaves(); 742 738 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/RenderState.cpp
r3068 r3073 311 311 } 312 312 } 313 ShaderManager::GetSingleton()->DisableFragmentProfile(); 314 ShaderManager::GetSingleton()->DisableVertexProfile(); 315 313 316 } 314 317 -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Shape.cpp
r3072 r3073 26 26 void Shape::Render(RenderState *state) 27 27 { 28 if (mMaterial) 29 mMaterial->Render(state); 28 //if (mMaterial) mMaterial->Render(state); 30 29 //mDepthWriteEnabled = true; 31 30 glDepthMask(GL_TRUE); glDepthFunc(GL_LESS);
Note: See TracChangeset
for help on using the changeset viewer.