MeVisLab Resolution Independence API
|
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 ®ion=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. | |
This class implements rendering of an offscreen inventor scene.
Definition at line 20 of file SoOffscreenSceneRenderer.h.
SoOffscreenSceneRenderer::SoOffscreenSceneRenderer | ( | ) |
Constructor.
|
virtual |
Destructor.
|
inline |
Returns the render action that is going to be used.
Default blend mode is BLEND.
Definition at line 30 of file SoOffscreenSceneRenderer.h.
|
inlinevirtual |
This method can be reimplemented to implement custom GL rendering or state setup.
Definition at line 41 of file SoOffscreenSceneRenderer.h.
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.