MeVisLab Resolution Independence API
SoOffscreenSceneRenderer Class Reference

This class implements rendering of an offscreen inventor scene. More...

#include <SoOffscreenSceneRenderer.h>

Public Member Functions

 SoOffscreenSceneRenderer ()
 Constructor.
 
virtual ~SoOffscreenSceneRenderer ()
 Destructor.
 
SoGLRenderAction * getRenderAction ()
 Returns the render action that is going to be used.
 
void render (const SbViewportRegion &region=SbViewportRegion(), SoNode *scene=nullptr)
 Renders the given scene, sets the viewport region before rendering.
 
virtual void GLRender (SoGLRenderAction *renderAction)
 This method can be reimplemented to implement custom GL rendering or state setup.
 

Detailed Description

This class implements rendering of an offscreen inventor scene.

Definition at line 20 of file SoOffscreenSceneRenderer.h.

Constructor & Destructor Documentation

◆ SoOffscreenSceneRenderer()

SoOffscreenSceneRenderer::SoOffscreenSceneRenderer ( )

Constructor.

◆ ~SoOffscreenSceneRenderer()

virtual SoOffscreenSceneRenderer::~SoOffscreenSceneRenderer ( )
virtual

Destructor.

Member Function Documentation

◆ getRenderAction()

SoGLRenderAction * SoOffscreenSceneRenderer::getRenderAction ( )
inline

Returns the render action that is going to be used.

Default blend mode is BLEND.

Definition at line 30 of file SoOffscreenSceneRenderer.h.

◆ GLRender()

virtual void SoOffscreenSceneRenderer::GLRender ( SoGLRenderAction * renderAction)
inlinevirtual

This method can be reimplemented to implement custom GL rendering or state setup.

Definition at line 41 of file SoOffscreenSceneRenderer.h.

◆ render()

void SoOffscreenSceneRenderer::render ( const SbViewportRegion & region = SbViewportRegion(),
SoNode * scene = nullptr )

Renders the given scene, sets the viewport region before rendering.

If the scene is NULL, the GLRender method below is still called and can be used to directly render inside of the SoGLRenderAction. This needs to have a valid active GL context when calling. Make sure that you are setting up the correct OpenGL state yourself, e.g. clearing the framebuffer, enabling depth test etc.


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