Line | |
---|
1 | #ifndef __GLOBALLINESRENDERER_H
|
---|
2 | #define __GLOBALLINESRENDERER_H
|
---|
3 |
|
---|
4 | #include "common.h"
|
---|
5 | #include "Containers.h"
|
---|
6 |
|
---|
7 | class Beam;
|
---|
8 | class Intersectable;
|
---|
9 | class QGLPixelBuffer;
|
---|
10 |
|
---|
11 | struct VssRayContainer;
|
---|
12 |
|
---|
13 | namespace GtpVisibilityPreprocessor {
|
---|
14 |
|
---|
15 |
|
---|
16 | class __declspec(dllexport) GlobalLinesRenderer
|
---|
17 | {
|
---|
18 | GlobalLinesRenderer(QGLPixelBuffer *buffer1, QGLPixelBuffer *buffer2);
|
---|
19 | ~GlobalLinesRenderer();
|
---|
20 |
|
---|
21 | void CastGlobalLines(Beam &beam, const int samples);
|
---|
22 |
|
---|
23 | void InitGL();
|
---|
24 |
|
---|
25 | /** Computes rays from information gained with hw sampling
|
---|
26 | */
|
---|
27 | void ComputeRays(Intersectable *sourceObj, VssRayContainer &rays);
|
---|
28 |
|
---|
29 | float GetPixelError(int &pvsSize);
|
---|
30 |
|
---|
31 | int ComputePvs(ObjectContainer &objects, ObjectContainer &pvs) const;
|
---|
32 |
|
---|
33 | private:
|
---|
34 |
|
---|
35 | /** Draws the geometry for one pass.
|
---|
36 | */
|
---|
37 | void DrawGeometry();
|
---|
38 |
|
---|
39 | void ApplyDepthPeeling(Beam &beam, const int samples);
|
---|
40 |
|
---|
41 | void SetupProjection(const Vector3 &viewPoint,
|
---|
42 | const Beam &beam);
|
---|
43 |
|
---|
44 | QGLPixelBuffer *mNewBuffer;
|
---|
45 | QGLPixelBuffer *mOldBuffer;
|
---|
46 | };
|
---|
47 |
|
---|
48 |
|
---|
49 | };
|
---|
50 |
|
---|
51 | #endif
|
---|
52 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.