SbRenderEngineMode Class Reference

VSG extension Render engine mode. More...

#include <Inventor/SbRenderEngineMode.h>

List of all members.

Public Types

enum  RenderMode {

Public Member Functions

 SbRenderEngineMode ()
void setRenderMode (RenderMode renderMode)
RenderMode getRenderMode () const
void setChildrenInherit (bool isChildrenInherited)
bool isChildrenInherit () const
bool isNotDefined () const

Static Public Member Functions

static void enableWarnings (bool flag)
static void postInitWarning (const char *methodName)

Detailed Description

VSG extension Render engine mode.

The render engine mode class indicates how a node performs its rendering. For example, the node can be using OpenGL calls or Open Inventor calls in order to achieve this task.

By default, a custom node is assumed to use the OpenGL compatibility-profile which means that it is allowed to use all OpenGL features even the ones that were deprecated in recent versions. If a node is only using core-profile OpenGL calls, it should give this information to the renderer using this enum.

However, it is strongly encouraged to avoid calling directly OpenGL methods to perform the rendering of a node and rely on Open Inventor instead. Using only Open Inventor calls is the optimal way as it allows harnessing a wide range of optimizations that are not available when using direct OpenGL calls.

Member Enumeration Documentation

Defines the list of supported render mode for a custom node.


Internally used to detect that a node did not set explicitly its RenderEngineMode by calling setRenderEngineMode method (This is the default).

If parent class has called setChildrenInherit(true), then this node type will inherit it. Else a warning will be issued and OIV_OPENINVENTOR_RENDERING will be used.


The node uses only Open Inventor calls to perform its rendering (optimal way).


The node relies on OpenGL fixed-function pipeline & deprecated features (OpenGL compatibility profile).


The node uses OpenGL but only shader and modern features (OpenGL 3.3+ core profile).

Constructor & Destructor Documentation

SbRenderEngineMode::SbRenderEngineMode (  )  [inline]

Default Constructor.

Member Function Documentation

static void SbRenderEngineMode::enableWarnings ( bool  flag  )  [static]

Enable or disable RenderEngineMode warning messages.

Default is true. Default value can be changed by using OIV_OPENGL_COMPATIBILITY_WARNING environment variable.

RenderMode SbRenderEngineMode::getRenderMode (  )  const [inline]

Returns the current RenderMode.

bool SbRenderEngineMode::isChildrenInherit (  )  const [inline]

Returns true is derived node should inherit this RenderMode.

bool SbRenderEngineMode::isNotDefined (  )  const [inline]

Return true if the RenderMode has not be defined explicilty.

static void SbRenderEngineMode::postInitWarning ( const char *  methodName  )  [static]

Post a warning related to Open Inventor 10 OpenGL support.

SbRenderEngineMode has not been set before SO__NODE_INIT_CLASS macro by a custom node.

void SbRenderEngineMode::setChildrenInherit ( bool  isChildrenInherited  )  [inline]

Indicates if any derived node should inherit this RenderMode.

Default is false

void SbRenderEngineMode::setRenderMode ( RenderMode  renderMode  )  [inline]

Set the RenderMode.


If you specify your node type in the initClass() method, this method should be called before calling the SO_NODE_INIT_CLASS macro

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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.