Changeset 2854 for GTP/trunk/App/Demos/Vis/FriendlyCulling/src/LODInfo.h
- Timestamp:
- 08/20/08 09:03:55 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/LODInfo.h
r2853 r2854 16 16 struct LODLevel 17 17 { 18 //friend class SceneEntity;18 friend class SceneEntity; 19 19 20 20 public: … … 22 22 LODLevel(float squaredDist): mSquaredDistance(squaredDist) {} 23 23 24 inline float GetSquaredDistance() { return mSquaredDistance; }24 inline float GetSquaredDistance() const { return mSquaredDistance; } 25 25 26 inline int GetNumShapes() { return (int)mShapes.size(); }26 inline int GetNumShapes() const { return (int)mShapes.size(); } 27 27 28 inline int GetNumTriangles() { return mNumTriangles; }28 inline int GetNumTriangles() const { return mNumTriangles; } 29 29 30 inline Shape *GetShape(size_t i) { return mShapes[i]; }30 inline Shape *GetShape(size_t i) const { return mShapes[i]; } 31 31 32 32 inline ShapeContainer &GetShapes() { return mShapes; } … … 37 37 //////////////// 38 38 39 /** Has to be called each frame in order to use proper LOD level.39 /** Has to be called each frame in order to initialize the proper LOD level. 40 40 */ 41 41 static void InitFrame(const Vector3 &viewPoint); 42 42 43 43 44 protected: 45 46 static Vector3 sViewPoint; 47 /** The current frame id is used to update LOD. 48 */ 44 49 static int sFrameId; 45 static Vector3 sViewPoint;46 50 47 48 49 protected:50 51 51 52 ///////////////////// 52 53 53 float mNumTriangles;54 int mNumTriangles; 54 55 55 56 /// distance of this LOD level
Note: See TracChangeset
for help on using the changeset viewer.