|
VISH
0.2
|
A renderer class that captures OpenGL renderings from a viewer object into some offline buffer, using FrameBuffer objects with multisampling. More...
#include </home/werner/origo/vish/ocean/GLvish/GLRenderer.hpp>
A renderer class that captures OpenGL renderings from a viewer object into some offline buffer, using FrameBuffer objects with multisampling.
class MyViewer : public Viewer { VOutput<VFrameBuffer> img; MyViewer() :img( self(), VFrameBuffer( new GLRenderer(self()) ), "OpenGLViewport", new VCreationPreferences("OpenGL") ) {} };
, GLViewer
Construct a GLRenderer with a GLViewer which provides the GL Context via the.
GLViewer::initializeContext(Context) )
function.
| int Wizt::GLRenderer::grab | ( | const VRequest & | Context, |
| VFrameBuffer::Grab & | , | ||
| const VFrameBuffer::Size & | Sz, | ||
| const RefPtr< VContext::Addendum > & | ContextAddendum | ||
| ) | const [virtual] |
Virtual grab function, it is supposed to call Grab::retrieve();.
| RenderObjects | The objects that should be rendered here. |
| Context | The VRequest providing the context in which this function is called. It is used to avoid infinite recursions. |
Implements Wizt::VFrameBuffer::Renderer.
| int Wizt::GLRenderer::grab | ( | const VRequest & | Context, |
| const VSceneLayers & | RenderObjects, | ||
| VFrameBuffer::Grab & | , | ||
| const VFrameBuffer::Size & | Sz, | ||
| const RefPtr< VContext::Addendum > & | ContextAddendum | ||
| ) | const [virtual] |
Virtual grab function, it is supposed to call Grab::retrieve();.
| RenderObjects | The objects that should be rendered here. |
| Context | The VRequest providing the context in which this function is called. It is used to avoid infinite recursions. |
TODO: EXPORT DEPTH LAYERS AS PARAMETER (Once depth layering works)
TODO: Consider using the VRequest's ROOT VObject as ROOT object here as well since this is/may be an indirectly triggered request.
antialiasing samples
16 bit depth buffer
Implements Wizt::VFrameBuffer::Renderer.
1.7.5