Rev | Line | |
---|
[1939] | 1 | #ifndef __GLOBALLINESRENDERER_H
|
---|
| 2 | #define __GLOBALLINESRENDERER_H
|
---|
[1938] | 3 |
|
---|
[1939] | 4 | #include "common.h"
|
---|
[1938] | 5 | #include "Containers.h"
|
---|
| 6 |
|
---|
| 7 | class Beam;
|
---|
[1939] | 8 | class Intersectable;
|
---|
[1940] | 9 | class QGLPixelBuffer;
|
---|
| 10 |
|
---|
[1938] | 11 | struct VssRayContainer;
|
---|
| 12 |
|
---|
[1939] | 13 | namespace GtpVisibilityPreprocessor {
|
---|
[1938] | 14 |
|
---|
[1939] | 15 |
|
---|
| 16 | class __declspec(dllexport) GlobalLinesRenderer
|
---|
[1938] | 17 | {
|
---|
[1940] | 18 | GlobalLinesRenderer(QGLPixelBuffer *buffer1, QGLPixelBuffer *buffer2);
|
---|
[1939] | 19 | ~GlobalLinesRenderer();
|
---|
[1938] | 20 |
|
---|
[1939] | 21 | void CastGlobalLines(Beam &beam, const int samples);
|
---|
[1938] | 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 |
|
---|
[1940] | 35 | /** Draws the geometry for one pass.
|
---|
| 36 | */
|
---|
| 37 | void DrawGeometry();
|
---|
| 38 |
|
---|
[1939] | 39 | void ApplyDepthPeeling(Beam &beam, const int samples);
|
---|
[1938] | 40 |
|
---|
[1939] | 41 | void SetupProjection(const Vector3 &viewPoint,
|
---|
| 42 | const Beam &beam);
|
---|
[1938] | 43 |
|
---|
[1940] | 44 | QGLPixelBuffer *mNewBuffer;
|
---|
| 45 | QGLPixelBuffer *mOldBuffer;
|
---|
[1938] | 46 | };
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | };
|
---|
| 50 |
|
---|
| 51 | #endif
|
---|
| 52 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.