Changeset 308 for trunk/VUT/GtpVisibilityPreprocessor/src/Pvs.h
- Timestamp:
- 10/05/05 02:19:15 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Pvs.h
r265 r308 7 7 class BspNode; 8 8 class Ray; 9 class Intersectable; 9 10 10 11 struct LtKdNode … … 92 93 }; 93 94 95 96 struct LtIntersectable 97 { 98 bool operator()(const Intersectable *a, 99 const Intersectable *b) const 100 { 101 return a < b; 102 } 103 }; 104 105 struct ViewCellPvsData { 106 int mVisibleSamples; 107 ViewCellPvsData() {} 108 ViewCellPvsData(const int samples): mVisibleSamples(samples) {} 109 }; 110 111 typedef std::map<Intersectable *, ViewCellPvsData, LtIntersectable> ViewCellPvsMap; 112 113 class ViewCellPvs 114 { 115 public: 116 ViewCellPvs(): mEntries() {} 117 118 ViewCellPvsMap mEntries; 119 120 int Compress() {return 0;} 121 int GetSize() {return (int)mEntries.size();} 122 123 ViewCellPvsData *Find(Intersectable *obj); 124 int AddObject(Intersectable *obj); 125 126 void GetData(const int index, 127 Intersectable *&obj, 128 ViewCellPvsData &data); 129 130 }; 131 94 132 #endif 95 133
Note: See TracChangeset
for help on using the changeset viewer.