Ignore:
Timestamp:
08/20/08 09:03:55 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/LODInfo.h

    r2853 r2854  
    1616struct LODLevel 
    1717{ 
    18         //friend class SceneEntity; 
     18        friend class SceneEntity; 
    1919 
    2020public: 
     
    2222        LODLevel(float squaredDist): mSquaredDistance(squaredDist) {} 
    2323 
    24         inline float GetSquaredDistance() { return mSquaredDistance; } 
     24        inline float GetSquaredDistance() const { return mSquaredDistance; } 
    2525 
    26         inline int GetNumShapes() { return (int)mShapes.size(); } 
     26        inline int GetNumShapes() const { return (int)mShapes.size(); } 
    2727         
    28         inline int GetNumTriangles() { return mNumTriangles; } 
     28        inline int GetNumTriangles() const { return mNumTriangles; } 
    2929 
    30         inline Shape *GetShape(size_t i) { return mShapes[i]; } 
     30        inline Shape *GetShape(size_t i) const { return mShapes[i]; } 
    3131 
    3232        inline ShapeContainer &GetShapes() { return mShapes; } 
     
    3737        //////////////// 
    3838 
    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. 
    4040        */ 
    4141        static void InitFrame(const Vector3 &viewPoint); 
    4242 
    4343 
     44protected: 
     45 
     46        static Vector3 sViewPoint; 
     47        /** The current frame id is used to update LOD. 
     48        */ 
    4449        static int sFrameId; 
    45         static Vector3 sViewPoint; 
    4650 
    47  
    48  
    49 protected: 
    5051 
    5152        ///////////////////// 
    5253 
    53         float mNumTriangles; 
     54        int mNumTriangles; 
    5455 
    5556        /// distance of this LOD level 
Note: See TracChangeset for help on using the changeset viewer.