Revision 2772,
784 bytes
checked in by mattausch, 16 years ago
(diff) |
added randomization of the first invokation
|
Line | |
---|
1 | #ifndef __CHCPLUSPLUSTRAVERSER_H
|
---|
2 | #define __CHCPLUSPLUSTRAVERSER_H
|
---|
3 |
|
---|
4 | #include "RenderTraverser.h"
|
---|
5 |
|
---|
6 |
|
---|
7 | namespace CHCDemo
|
---|
8 | {
|
---|
9 |
|
---|
10 | /** Class implementing traversal using the CHC++ algorithm.
|
---|
11 | */
|
---|
12 | class CHCPlusPlusTraverser: public RenderTraverser
|
---|
13 | {
|
---|
14 | public:
|
---|
15 |
|
---|
16 | CHCPlusPlusTraverser();
|
---|
17 | //~CHCPlusPlusTraverser();
|
---|
18 |
|
---|
19 |
|
---|
20 | protected:
|
---|
21 | /** Traverses and renders the scene with the specified method
|
---|
22 | */
|
---|
23 | virtual void Traverse();
|
---|
24 |
|
---|
25 | void QueryPreviouslyInvisibleNodes(BvhNode *node);
|
---|
26 |
|
---|
27 | void IssueMultiQueries();
|
---|
28 | /** Handles the result of an occlusion query.
|
---|
29 | */
|
---|
30 | void HandleQueryResult(OcclusionQuery *query);
|
---|
31 |
|
---|
32 |
|
---|
33 | //////////////
|
---|
34 |
|
---|
35 | /// the query queue
|
---|
36 | QueryQueue mQueryQueue;
|
---|
37 |
|
---|
38 | BvhNodeQueue mIQueue;
|
---|
39 | BvhNodeQueue mVQueue;
|
---|
40 | };
|
---|
41 |
|
---|
42 | }
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 | #endif // __CHCPLUSPLUSTRAVERSER_H |
---|
Note: See
TracBrowser
for help on using the repository browser.