Revision 1004,
1.0 KB
checked in by mattausch, 19 years ago
(diff) |
environment as a singleton
|
Line | |
---|
1 | #ifndef _VisibilityEnvironment_H__
|
---|
2 | #define _VisibilityEnvironment_H__
|
---|
3 |
|
---|
4 | #include <string>
|
---|
5 |
|
---|
6 |
|
---|
7 | namespace GtpVisibilityPreprocessor {
|
---|
8 | class Environment;
|
---|
9 | }
|
---|
10 |
|
---|
11 | namespace GtpVisibility {
|
---|
12 |
|
---|
13 | /** This class provides different parameters for the visibility manager.
|
---|
14 | */
|
---|
15 | class VisibilityEnvironment
|
---|
16 | {
|
---|
17 | public:
|
---|
18 | VisibilityEnvironment();
|
---|
19 | ~VisibilityEnvironment();
|
---|
20 | /** Different types of occlusion culling algorithms
|
---|
21 | */
|
---|
22 | enum CullingManagerType {COHERENT_HIERARCHICAL_CULLING,
|
---|
23 | FRUSTUM_CULLING,
|
---|
24 | STOP_AND_WAIT_CULLING,
|
---|
25 | NUM_CULLING_MANAGERS};
|
---|
26 |
|
---|
27 |
|
---|
28 | /** Loads an environment from disk.
|
---|
29 | */
|
---|
30 | bool LoadEnvironment(std::string filename);
|
---|
31 | /** Returns filename of scene.
|
---|
32 | */
|
---|
33 | std::string getSceneFileName();
|
---|
34 | /** Returns filename of view cells file.
|
---|
35 | */
|
---|
36 | std::string getViewCellsFileName();
|
---|
37 |
|
---|
38 | GtpVisibilityPreprocessor::Environment *GetPreprocessorEnvironment();
|
---|
39 |
|
---|
40 |
|
---|
41 | protected:
|
---|
42 | //GtpVisibilityPreprocessor::Environment *Environment::GetSingleton();
|
---|
43 | };
|
---|
44 | } // namespace GtpVisibility
|
---|
45 |
|
---|
46 | #endif // VisibilityEnvironment_H |
---|
Note: See
TracBrowser
for help on using the repository browser.