VISH
0.2
|
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>
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.
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.
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().
Context | The render context |
MinLevel | The start layer of object categories to be rendered |
MaxLevel | The end layer of object categories to be rendered |