Rev | Line | |
---|
[2116] | 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 |
|
---|
[2176] | 12 | //#include "HashPvs2.h"
|
---|
[2122] | 13 | #include "HashPvs.h"
|
---|
[2116] | 14 |
|
---|
[2122] | 15 | #define PVS_TYPE 0
|
---|
[2116] | 16 |
|
---|
[2122] | 17 | namespace GtpVisibilityPreprocessor {
|
---|
| 18 | typedef HashPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
| 19 | typedef HashPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
| 20 | }
|
---|
| 21 | #else
|
---|
| 22 | #ifdef USE_BIT_PVS
|
---|
[2116] | 23 |
|
---|
[2122] | 24 | #include "BitVectorPvs.h"
|
---|
[2116] | 25 |
|
---|
[2122] | 26 | #define PVS_TYPE 2
|
---|
[2117] | 27 |
|
---|
[2122] | 28 | namespace GtpVisibilityPreprocessor {
|
---|
| 29 | typedef BitVectorPvs<Intersectable *, PvsData> DefaultPvs;
|
---|
| 30 | typedef BitVectorPvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
| 31 | }
|
---|
[2116] | 32 |
|
---|
[2530] | 33 | #else // USE_VERBOSE_PVS
|
---|
[2122] | 34 | #include "Pvs.h"
|
---|
[2116] | 35 |
|
---|
[2122] | 36 | #define PVS_TYPE 1
|
---|
[2117] | 37 |
|
---|
[2122] | 38 | namespace GtpVisibilityPreprocessor {
|
---|
| 39 | typedef VerbosePvs<Intersectable *, PvsData> DefaultPvs;
|
---|
| 40 | typedef PvsIterator<Intersectable *, PvsData> ObjectPvsIterator;
|
---|
| 41 | }
|
---|
| 42 | #endif
|
---|
[2117] | 43 | #endif
|
---|
| 44 |
|
---|
| 45 | namespace GtpVisibilityPreprocessor {
|
---|
| 46 |
|
---|
[2116] | 47 | typedef PvsEntry<Intersectable *, PvsData> ObjectPvsEntry;
|
---|
| 48 |
|
---|
| 49 | }
|
---|
| 50 |
|
---|
| 51 |
|
---|
| 52 | #endif
|
---|
| 53 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.