Changeset 3283 for GTP


Ignore:
Timestamp:
01/16/09 17:39:00 (15 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/App/Demos/Vis/FriendlyCulling/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Pvs.cpp

    r3259 r3283  
    66namespace CHCDemoEngine 
    77{ 
     8 
     9bool Pvs::sStoreTimeStamps = false; 
     10 
    811 
    912void Pvs::Clear()  
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Pvs.h

    r3259 r3283  
    1919public: 
    2020 
    21         //Pvs() {} 
    22  
    2321        void Clear(); 
    2422 
     
    3129        inline SceneEntity *GetEntry(int i) const; 
    3230 
    33         inline void AddEntry(SceneEntity *ent); 
     31        inline void AddEntry(SceneEntity *ent, float timeStamp = 0.0f); 
    3432 
    3533 
    3634protected: 
    3735 
    38         /// hash table of PVS entries 
     36        /// vector of PVS entries 
    3937        SceneEntityContainer mEntries;  
     38        std::vector<float> mTimeStamps; 
     39 
     40        static bool sStoreTimeStamps; 
    4041}; 
    4142 
     
    4748 
    4849 
    49 inline void Pvs::AddEntry(SceneEntity *ent)  
     50inline void Pvs::AddEntry(SceneEntity *ent, float timeStamp)  
    5051{ 
    5152        mEntries.push_back(ent);  
     53 
     54        if (sStoreTimeStamps) 
     55        { 
     56                mTimeStamps.push_back(timeStamp); 
     57        } 
    5258} 
    5359 
Note: See TracChangeset for help on using the changeset viewer.