Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 336 vs 337 for /trunk/Source Code/Environment/Terrain/Quadtree/Headers/QuadtreeNode.h

Diff revisions: vs.
  @@ -69,16 +69,16 @@
69 69
70 70 void sceneUpdate(const U64 deltaTime, SceneGraphNode* const sgn, SceneState& sceneState);
71 71
72 - inline bool isALeaf() const {
72 + inline bool isALeaf() const {
73 73 return !(_children[CHILD_NW] && _children[CHILD_NE] && _children[CHILD_SW] && _children[CHILD_SE]);
74 74 }
75 75
76 - inline BoundingBox& getBoundingBox() {return _boundingBox;}
77 - inline void setBoundingBox(const BoundingBox& bbox) {_boundingBox = bbox;}
78 - inline TerrainChunk* getChunk() {return _terrainChunk;}
76 + inline BoundingBox& getBoundingBox() {return _boundingBox;}
77 + inline void setBoundingBox(const BoundingBox& bbox) {_boundingBox = bbox;}
78 + inline TerrainChunk* getChunk() {return _terrainChunk;}
79 79
80 - inline QuadtreeNode* getChild(ChildPosition pos) { return _children[pos]; }
81 - inline QuadtreeNode* getChild(U32 index) { return _children[index]; }
80 + inline QuadtreeNode* getChild(ChildPosition pos) { return _children[pos]; }
81 + inline QuadtreeNode* getChild(U32 index) { return _children[index]; }
82 82
83 83 QuadtreeNode();
84 84 ~QuadtreeNode();
  @@ -91,11 +91,11 @@
91 91 private:
92 92 F32 _terLoDOffset; ///<Small offset to prevent wrong LoD selection on border cases
93 93 U32 _minHMSize;
94 - I8 _LOD; ///< LOD level
95 - BoundingBox _boundingBox; ///< Node BoundingBox
94 + I8 _LOD; ///< LOD level
95 + BoundingBox _boundingBox; ///< Node BoundingBox
96 96 BoundingSphere _boundingSphere; ///< Node BoundingSphere
97 - QuadtreeNode* _children[4]; ///< Node children
98 - TerrainChunk* _terrainChunk; ///< Terrain Chunk contained in node
97 + QuadtreeNode* _children[4]; ///< Node children
98 + TerrainChunk* _terrainChunk; ///< Terrain Chunk contained in node
99 99 };
100 100
101 101 }; //namespace Divide