Changeset 2894 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.h
- Timestamp:
- 09/02/08 09:07:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Bvh.h
r2825 r2894 65 65 */ 66 66 virtual ~BvhNode(); 67 /** Returns unique id for this node.68 */69 //inline int GetId() {return mId;}70 67 /** Depth of this node in the tree. 71 68 */ … … 167 164 168 165 ///////// 169 // used for view frustum culling166 //-- used for view frustum culling 170 167 171 168 int mPlaneMask; … … 619 616 620 617 //////////////////////// 621 618 619 /// the bounding box of the bvh 620 AxisAlignedBox3 mBox; 622 621 /// the root of the hierarchy 623 622 BvhNode *mRoot; … … 627 626 size_t mGeometrySize; 628 627 629 630 ////////////////631 632 628 /// the current camera 633 629 Camera *mCamera; 630 631 632 //////////////// 633 //-- tigher bounds termination criteria 634 635 /** maximal depth from which children are fetched for 636 testing instead of the current node 637 */ 638 int mMaxDepthForTestingChildren; 639 /// threshold for computing tighter bounds 640 float mAreaRatioThreshold; 641 642 643 //////////////// 644 //-- statistics 645 646 BvhStats mBvhStats; 647 /// the overall number of nodes 648 int mNumNodes; 649 /// the number of "virtual" (=actually used) nodes 650 int mNumVirtualNodes; 651 652 653 //////////// 654 //-- rendering stuff 655 656 /// these proxy nodes are tested instead of the current node 657 BvhNodeContainer mTestNodes; 658 /// the indices used for vbo index buffering 659 unsigned int *mTestIndices; 660 /// a pointer to the end of the indices array 661 int mCurrentIndicesPtr; 662 /// the vbo id 663 unsigned int mVboId; 634 664 /// a vertex array used if working with indexed arrays (without vbo) 635 665 Vector3 *mVertices; 636 666 /// indices used for draw array rendering 637 667 unsigned int *mIndices; 638 639 /** maximal depth from which children are fetched for640 testing instead of the current node641 */642 int mMaxDepthForTestingChildren;643 644 float mAreaRatioThreshold;645 646 647 BvhStats mBvhStats;648 649 BvhNodeContainer mTestNodes;650 651 unsigned int *mTestIndices;652 /// a pointer to the end of the indices array653 int mCurrentIndicesPtr;654 655 int mNumNodes;656 657 /// the bounding box658 AxisAlignedBox3 mBox;659 660 int mNumVirtualNodes;661 662 //////////////663 664 unsigned int mVboId;665 668 }; 666 669
Note: See TracChangeset
for help on using the changeset viewer.