VISH  0.2
Public Member Functions | Public Attributes
Wizt::Viewer Class Reference

A viewer is a Vish object that takes a VSceneLayers as input (a selection of Vish objects which can render something) and provides a FrameBuffer as output. More...

#include </home/werner/origo/vish/ocean/Anemonia/Viewer.hpp>

List of all members.

Public Member Functions

Scene functions

Public Attributes


Detailed Description

A viewer is a Vish object that takes a VSceneLayers as input (a selection of Vish objects which can render something) and provides a FrameBuffer as output.

All objects providing a FrameBuffer as output are collected by a MetaViewer, which provides different means to display those FameBuffer.

A viewer may provide its own ValuePool, so any rendering is relative to this context.

The ValuePool may also be shared with some external ValuePool, so multiple Viewer may display the same parameter set.


Constructor & Destructor Documentation

Wizt::Viewer::Viewer ( const VFrameBuffer Renderer,
const string name,
int  p,
const RefPtr< VCreationPreferences > &  ViewerCreationPreferences,
const RefPtr< VCreationPreferences > &  ViewerScenePreferences = NullPtr() 
)

Construct a viewer, specify a renderer.

possibly make use of CreationPreferences here to attach to a non-default scene, if that would be of use.


Member Function Documentation

int Wizt::Viewer::render ( VRenderContext Context,
int  MinLevel = RENDER_FIRST,
int  MaxLevel = RENDER_LAST 
) const

Render the entire scene.

Calls VSceneLayers::render(), which calls VRenderContext::render(). Called by GLRenderer::grab().

Parameters:
ContextThe render context
MinLevelThe start layer of object categories to be rendered
MaxLevelThe end layer of object categories to be rendered
Returns:
The number of objects rendered, or negative if there is no VScene connected

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