- Timestamp:
- 01/16/09 17:39:00 (16 years ago)
- 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 6 6 namespace CHCDemoEngine 7 7 { 8 9 bool Pvs::sStoreTimeStamps = false; 10 8 11 9 12 void Pvs::Clear() -
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Pvs.h
r3259 r3283 19 19 public: 20 20 21 //Pvs() {}22 23 21 void Clear(); 24 22 … … 31 29 inline SceneEntity *GetEntry(int i) const; 32 30 33 inline void AddEntry(SceneEntity *ent );31 inline void AddEntry(SceneEntity *ent, float timeStamp = 0.0f); 34 32 35 33 36 34 protected: 37 35 38 /// hash tableof PVS entries36 /// vector of PVS entries 39 37 SceneEntityContainer mEntries; 38 std::vector<float> mTimeStamps; 39 40 static bool sStoreTimeStamps; 40 41 }; 41 42 … … 47 48 48 49 49 inline void Pvs::AddEntry(SceneEntity *ent )50 inline void Pvs::AddEntry(SceneEntity *ent, float timeStamp) 50 51 { 51 52 mEntries.push_back(ent); 53 54 if (sStoreTimeStamps) 55 { 56 mTimeStamps.push_back(timeStamp); 57 } 52 58 } 53 59
Note: See TracChangeset
for help on using the changeset viewer.