source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/Pvs.h @ 3243

Revision 3243, 626 bytes checked in by mattausch, 16 years ago (diff)
Line 
1#ifndef __PVS_H
2#define __PVS_H
3
4#include "common.h"
5
6
7namespace CHCDemoEngine
8{
9
10/** Template class representing the Potentially Visible Set (PVS)
11        mainly from a view cell, but also e.g., from objects.
12*/
13class Pvs
14{
15
16public:
17
18        Pvs() {};
19
20        void Clear() { mEntries.clear(); }
21
22        bool Empty() const { return mEntries.empty(); }
23
24        SceneEntity *GetEntry(int i) const { return mEntries[i]; }
25
26        int Size() { return (int)mEntries.size(); }
27
28        void AddEntry(SceneEntity *ent) { mEntries.push_back(ent); }
29
30
31protected:
32
33        /// hash table of PVS entries
34        SceneEntityContainer mEntries;
35};
36
37}
38
39#endif
Note: See TracBrowser for help on using the repository browser.