Line | |
---|
1 | #ifndef __PVSDEFINITIONS_H
|
---|
2 | #define __PVSDEFINITIONS_H
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include <math.h>
|
---|
6 |
|
---|
7 | ////////////
|
---|
8 | //-- typedefs
|
---|
9 |
|
---|
10 | #ifdef USE_HASH_PVS
|
---|
11 |
|
---|
12 | //#include "HashPvs2.h"
|
---|
13 | #include "HashPvs.h"
|
---|
14 |
|
---|
15 | #define PVS_TYPE 0
|
---|
16 |
|
---|
17 | namespace GtpVisibilityPreprocessor {
|
---|
18 | typedef HashPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
19 | typedef HashPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
20 | }
|
---|
21 | #else
|
---|
22 | #ifdef USE_BIT_PVS
|
---|
23 |
|
---|
24 | #include "BitVectorPvs.h"
|
---|
25 |
|
---|
26 | #define PVS_TYPE 2
|
---|
27 |
|
---|
28 | namespace GtpVisibilityPreprocessor {
|
---|
29 | typedef BitVectorPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
30 | typedef BitVectorPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
31 | }
|
---|
32 |
|
---|
33 | #else // USE_VERBOSE_PVS
|
---|
34 | #include "Pvs.h"
|
---|
35 |
|
---|
36 | #define PVS_TYPE 1
|
---|
37 |
|
---|
38 | namespace GtpVisibilityPreprocessor {
|
---|
39 | typedef VerbosePvs<Intersectable *, PvsData> DefaultPvs;
|
---|
40 | typedef PvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
41 | }
|
---|
42 | #endif
|
---|
43 | #endif
|
---|
44 |
|
---|
45 | namespace GtpVisibilityPreprocessor {
|
---|
46 |
|
---|
47 | typedef PvsEntry<Intersectable *, PvsData> ObjectPvsEntry;
|
---|
48 |
|
---|
49 | }
|
---|
50 |
|
---|
51 |
|
---|
52 | #endif
|
---|
53 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.