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

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: