16#include <Inventor/actions/SoGLRenderAction.h>
38 void render(
const SbViewportRegion& region = SbViewportRegion(), SoNode* scene =
nullptr);
41 virtual void GLRender(SoGLRenderAction* renderAction) {}
44 SoGLRenderAction* _action;
45 SoRef<SoOffscreenViewerProxyNode> _root;
#define MLOFFSCREENRENDER_EXPORT
Defines macro needed for Windows (export of classes from this DLL)
This class implements rendering of an offscreen inventor scene.
void render(const SbViewportRegion ®ion=SbViewportRegion(), SoNode *scene=nullptr)
Renders the given scene, sets the viewport region before rendering.
SoGLRenderAction * getRenderAction()
Returns the render action that is going to be used.
virtual ~SoOffscreenSceneRenderer()
Destructor.
virtual void GLRender(SoGLRenderAction *renderAction)
This method can be reimplemented to implement custom GL rendering or state setup.
SoOffscreenSceneRenderer()
Constructor.
This class implements access to the state of the SoOffscreenRenderer viewer.