VISH  0.2
Public Member Functions | Public Attributes
Wizt::GLRenderer Struct Reference

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>

List of all members.

Public Member Functions

Public Attributes


Detailed Description

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


Constructor & Destructor Documentation

Wizt::GLRenderer::GLRenderer ( const WeakPtr< GLViewer > &  V)

Construct a GLRenderer with a GLViewer which provides the GL Context via the.

function.


Member Function Documentation

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();.

Parameters:
RenderObjectsThe objects that should be rendered here.
ContextThe 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();.

Parameters:
RenderObjectsThe objects that should be rendered here.
ContextThe 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.


The documentation for this struct was generated from the following files: