SoRenderManager(3)

๐Ÿ“ฆ
version 4.0.10 ยท 4 versions
, in fedora 43, fedora 44

๐Ÿ’– SoRenderManager(3) ๐Ÿ’–

okay so bestie, welcome to the SoRenderManager(3) manual page โ€” this one lives in the Coin manual set, and it is genuinely one of the most iconic classes in there. grab a boba, we're doing this. ๐Ÿง‹โœจ

heads up: this page is LONG, so it comes in three parts. this is part 1. do not panic. we go one section at a time and we keep every single detail, periodt. ๐Ÿ’…

๐Ÿ‘‘ NAME ๐Ÿ‘‘

SoRenderManager โ€” the class you use for controlling the rendering of a scene graph. that's it. that's the job. and it ate. ๐Ÿ”ฅ


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

#include <Inventor/SoRenderManager.h>

๐Ÿฆ‹ Classes

  • class Superimposition

๐ŸŒธ Public Types

enum RenderMode { AS_IS, WIREFRAME, POINTS, WIREFRAME_OVERLAY,
    HIDDEN_LINE, BOUNDING_BOX, SHADED_HIDDEN_LINES }
enum StereoMode { MONO, ANAGLYPH, SEPARATE_OUTPUT, QUAD_BUFFER =
    SEPARATE_OUTPUT, INTERLEAVED_ROWS, INTERLEAVED_COLUMNS }
enum BufferType { BUFFER_SINGLE, BUFFER_DOUBLE }
enum AutoClippingStrategy { NO_AUTO_CLIPPING, FIXED_NEAR_PLANE,
    VARIABLE_NEAR_PLANE }

๐Ÿ’– Public Member Functions

SoRenderManager (void)
virtual ~SoRenderManager ()
virtual void render (const SbBool clearwindow=TRUE, const SbBool
    clearzbuffer=TRUE)
virtual void render (SoGLRenderAction *action, const SbBool
    initmatrices=TRUE, const SbBool clearwindow=TRUE, const SbBool
    clearzbuffer=TRUE)
Superimposition * addSuperimposition (SoNode *scene, uint32_t
    flags=Superimposition::AUTOREDRAW|Superimposition::ZBUFFERON|Superimposition::CLEARZBUFFER)
void removeSuperimposition (Superimposition *s)
virtual void setSceneGraph (SoNode *const sceneroot)
virtual SoNode * getSceneGraph (void) const
void setCamera (SoCamera *camera)
SoCamera * getCamera (void) const
void setAutoClipping (AutoClippingStrategy autoclipping)
AutoClippingStrategy getAutoClipping (void) const
void setNearPlaneValue (float value)
float getNearPlaneValue (void) const
void setTexturesEnabled (const SbBool onoff)
SbBool isTexturesEnabled (void) const
void setDoubleBuffer (const SbBool enable)
SbBool isDoubleBuffer (void) const
void setRenderMode (const RenderMode mode)
RenderMode getRenderMode (void) const
void setStereoMode (const StereoMode mode)
StereoMode getStereoMode (void) const
void setStereoOffset (const float offset)
float getStereoOffset (void) const
void setRenderCallback (SoRenderManagerRenderCB *f, void *const
    userData=NULL)
SbBool isAutoRedraw (void) const
void setRedrawPriority (const uint32_t priority)
uint32_t getRedrawPriority (void) const
void scheduleRedraw (void)
void setWindowSize (const SbVec2s &newsize)
const SbVec2s & getWindowSize (void) const
void setSize (const SbVec2s &newsize)
const SbVec2s & getSize (void) const
void setOrigin (const SbVec2s &newOrigin)
const SbVec2s & getOrigin (void) const
void setViewportRegion (const SbViewportRegion &newRegion)
const SbViewportRegion & getViewportRegion (void) const
void setBackgroundColor (const SbColor4f &color)
const SbColor4f & getBackgroundColor (void) const
void setOverlayColor (const SbColor4f &color)
SbColor4f getOverlayColor (void) const
void setBackgroundIndex (const int index)
int getBackgroundIndex (void) const
void setRGBMode (const SbBool onOrOff)
SbBool isRGBMode (void) const
virtual void activate (void)
virtual void deactivate (void)
void setAntialiasing (const SbBool smoothing, const int numPasses)
void getAntialiasing (SbBool &smoothing, int &numPasses) const
void setGLRenderAction (SoGLRenderAction *const action)
SoGLRenderAction * getGLRenderAction (void) const
void setAudioRenderAction (SoAudioRenderAction *const action)
SoAudioRenderAction * getAudioRenderAction (void) const
void addPreRenderCallback (SoRenderManagerRenderCB *cb, void *data)
void removePreRenderCallback (SoRenderManagerRenderCB *cb, void *data)
void addPostRenderCallback (SoRenderManagerRenderCB *cb, void *data)
void removePostRenderCallback (SoRenderManagerRenderCB *cb, void *data)
void reinitialize (void)

โญ Static Public Member Functions

static void enableRealTimeUpdate (const SbBool flag)
static SbBool isRealTimeUpdateEnabled (void)
static uint32_t getDefaultRedrawPriority (void)

๐Ÿซถ Protected Member Functions

int isActive (void) const
void redraw (void)
void renderScene (SoGLRenderAction *action, SoNode *scene, uint32_t
    clearmask)
void actuallyRender (SoGLRenderAction *action, const SbBool
    initmatrices=TRUE, const SbBool clearwindow=TRUE, const SbBool
    clearzbuffer=TRUE)
void renderSingle (SoGLRenderAction *action, SbBool initmatrices, SbBool
    clearwindow, SbBool clearzbuffer)
void renderStereo (SoGLRenderAction *action, SbBool initmatrices, SbBool
    clearwindow, SbBool clearzbuffer)
void initStencilBufferForInterleavedStereo (void)
void clearBuffers (SbBool color, SbBool depth)

and two of those come with their own little one-liners, so we are NOT skipping them:

  • renderSingle โ€” Render once in correct draw style.
  • renderStereo โ€” Render scene according to current stereo mode.

๐ŸŒˆ Detailed Description ๐ŸŒˆ

The SoRenderManager class is used for controlling the rendering of a scene graph. (yes, the NAME said the same thing. it's a whole thing. we move.) ๐Ÿ’€

You can use this class to configure things like clipping planes, rendering mode, stereo rendering and the background color. In earlier versions of Coin/Inventor, this was set up in the GUI toolkits, making it quite hard to make a new Coin viewer for another GUI toolkit. With this new class all that is needed is to create one SoRenderManager instance per viewer/view. genuinely such a glow-up. ๐Ÿ˜ญ๐Ÿ’–

This class does not handle events for the scene graph/viewer. To do that you can use the SoEventManager class. different class, different job, we respect the division of labour. ๐Ÿซถ

Since

Coin 3.0


๐Ÿ”ฎ Member Enumeration Documentation ๐Ÿ”ฎ

๐Ÿ’œ enum SoRenderManager::RenderMode

Sets how rendering of primitives is done.

Enumerator

  • AS_IS โ€” Render primitives as they are described in the scene graph.
  • WIREFRAME โ€” Render polygons as wireframe
  • POINTS โ€” Render only the vertices of the polygons and lines.
  • WIREFRAME_OVERLAY โ€” Render a wireframe overlay in addition to the AS_IS mode
  • HIDDEN_LINE โ€” As WIREFRAME, but culls lines which would otherwise not be shown due to geometric culling.
  • BOUNDING_BOX โ€” Only show the bounding box of each object.
  • SHADED_HIDDEN_LINES โ€” Render dashed hidden lines with solid visible lines using three-pass rendering approach.

๐Ÿฆ‹ enum SoRenderManager::StereoMode

Manages how to render stereoscopic images.

Enumerator

  • MONO โ€” No stereoscopic rendering
  • ANAGLYPH โ€” Anaglyph rendering is used to provide a stereoscopic 3D effect, when viewed with 3D glasses. The image is made up of two color layers which are superimposed on each other, and appears as 3 dimensional when viewed through corresponding colored filters (glasses)
  • SEPARATE_OUTPUT โ€” Send output to separate buffers.
  • QUAD_BUFFER โ€” Same as SEPARATE_OUTPUT, SEPARATE_OUTPUT is more commonly known as QUAD_BUFFER, when also using double buffering.
  • INTERLEAVED_ROWS โ€” Render every second row as left and right image. If rendered with a polarized projector, polarized filters can be used to give a 3D effect.
  • INTERLEAVED_COLUMNS โ€” Render every second column as left and right image. If rendered with a polarized projector, polarized filters can be used to give a 3D effect.

๐ŸŒธ enum SoRenderManager::BufferType

Buffering strategy

Enumerator

  • BUFFER_SINGLE โ€” Output to one buffer
  • BUFFER_DOUBLE โ€” Alternate between output buffers

โญ enum SoRenderManager::AutoClippingStrategy

Strategy for adjusting camera near/far clipping plane

Enumerator

  • NO_AUTO_CLIPPING โ€” Turn off automatic clipping. The user needs to set the correct values in the camera.
  • FIXED_NEAR_PLANE โ€” Keep near plane at a fixed distance from the camera. The far plane is always set at the end of the bounding box.
  • VARIABLE_NEAR_PLANE โ€” Variable adjustment of the near plane relative to the camera.

๐ŸŽ€ Constructor & Destructor Documentation ๐ŸŽ€

SoRenderManager::SoRenderManager (void )

Constructor. that's it. she's born. ๐Ÿ‘‘

SoRenderManager::~SoRenderManager () [virtual]

Destructor. she's leaving. ๐Ÿ’…


๐Ÿ’– Member Function Documentation ๐Ÿ’–

void SoRenderManager::render (const SbBool clearwindow = TRUE, const SbBool clearzbuffer = TRUE) [virtual]

Render the scene graph.

All SbBool arguments should normally be TRUE, but they can be set to FALSE to optimize for special cases (e.g. when doing wireframe rendering one doesn't need a depth buffer). lowkey a whole optimization moment.

Parameters

  • clearwindow โ€” If set to TRUE, clear the rendering buffer before drawing.
  • clearzbuffer โ€” If set to TRUE, clear the depth buffer values before rendering.

void SoRenderManager::render (SoGLRenderAction * action, const SbBool initmatrices = TRUE, const SbBool clearwindow = TRUE, const SbBool clearzbuffer = TRUE) [virtual]

Render the scene graph.

All SbBool arguments should normally be TRUE, but they can be set to FALSE to optimize for special cases (e.g. when doing wireframe rendering one doesn't need a depth buffer).

Parameters

  • clearwindow โ€” If set to TRUE, clear the rendering buffer before drawing.
  • clearzbuffer โ€” If set to TRUE, clear the depth buffer values before rendering.
  • initmatrices โ€” If set to TRUE, the projection and modelview matrices are reset to identity.
  • action โ€” Renders with a user supplied action.

SoRenderManager::Superimposition * SoRenderManager::addSuperimposition (SoNode * scene, uint32_t flags = Superimposition::AUTOREDRAW | Superimposition::ZBUFFERON | Superimposition::CLEARZBUFFER)

Add a superimposition for this scene graph. A superimposition can either be a scene rendered in the background, or a scene rendered in the front of the actual scene graph. background scene, foreground scene, she contains multitudes. ๐ŸŒˆ

This is useful, for instance, if you want to add a gradient or an image in the background, and for having some HUD info in the foreground. obsessed actually.

Please note that if you use superimpositions, multipass antialiasing have to be handled in the render manager, and not in SoGLRenderAction, so the pass update features in SoGLRenderAction will be disabled. not me warning you in advance bestie ๐Ÿ˜ญ

See also

  • SoGLRenderAction::setNumPasses()
  • SoGLRenderAction::setPassUpdate()
  • SoGLRenderAction::setPassCallback()

void SoRenderManager::removeSuperimposition (Superimposition * s)

Removes a superimposition. she's gone, we thank her for her service. ๐Ÿ™ˆ

See also

  • addSuperimposition()

void SoRenderManager::setSceneGraph (SoNode *const sceneroot) [virtual]

Set the node which is top of the scene graph we're managing. The sceneroot node reference count will be increased by 1, and any previously set scene graph top node will have its reference count decreased by 1. the way that refcounting just... handles itself. ๐Ÿ’…

See also

  • getSceneGraph()

SoNode * SoRenderManager::getSceneGraph (void ) const [virtual]

Returns the pointer to root of scene graph.

void SoRenderManager::setCamera (SoCamera * camera)

Sets the camera to be used. ๐Ÿ“ธ

SoCamera * SoRenderManager::getCamera (void ) const

Returns the current camera.

void SoRenderManager::setAutoClipping (AutoClippingStrategy autoclipping)

Sets strategy for adjusting camera clipping plane


okay bestie, that's where part 1 wraps โ€” the rest of the member functions are chilling in part 2 ๐Ÿฆ‹โœจ

See also: SoRenderManager::AutoClippingStrategy


  • SoRenderManager::AutoClippingStrategy SoRenderManager::getAutoClipping (void ) const โ€” This method is literally handing you the current auto clipping strategy. periodt โœจ
    • See also: setAutoClipping
  • void SoRenderManager::setNearPlaneValue (float value) โ€” When you're using the SoRenderManager::FIXED_NEAR_PLANE auto clipping strategy, you set the near plane distance value with this method. no cap ๐Ÿ’…
    • See also: setAutoClipping, getNearPlaneValue, SoRenderManager::AutoClippingStrategy
  • float SoRenderManager::getNearPlaneValue (void ) const โ€” This method returns the near plane distance value that gets used when the SoRenderManager::FIXED_NEAR_PLANE auto clipping strategy is in play. default value is 0.6 ๐Ÿ“
    • See also: setAutoClipping, setNearPlaneValue, SoRenderManager::AutoClippingStrategy
  • void SoRenderManager::setTexturesEnabled (const SbBool onoff) โ€” Turn textures on or off when rendering. Defaults to TRUE. textures on fleek ๐ŸŽ€
    • See also: isTexturesEnabled
  • SbBool SoRenderManager::isTexturesEnabled (void ) const โ€” Tells you whether textures are enabled or not. vibe check ๐Ÿฆ‹
    • See also: setTexturesEnabled
  • void SoRenderManager::setDoubleBuffer (const SbBool enable) โ€” Tells the scene manager that double buffering is in use. double the buffer, double the fun ๐Ÿ˜ญ
  • SbBool SoRenderManager::isDoubleBuffer (void ) const โ€” Returns whether the scene manager is double buffered. fr fr ๐Ÿ‘‘
  • void SoRenderManager::setRenderMode (const RenderMode mode) โ€” Sets the render mode. mode: set ๐Ÿ’–
  • SoRenderManager::RenderMode SoRenderManager::getRenderMode (void ) const โ€” Returns the current render mode. what's the vibe? ๐ŸŒธ
  • void SoRenderManager::setStereoMode (const StereoMode mode) โ€” Sets the stereo mode. stereo slay ๐Ÿงš
  • SoRenderManager::StereoMode SoRenderManager::getStereoMode (void ) const โ€” Returns the current stereo mode. stereo vibes ๐Ÿ’œ
  • void SoRenderManager::setStereoOffset (const float offset) โ€” Sets the stereo offset used when doing stereo rendering. offset ting ๐Ÿ”ฅ
  • float SoRenderManager::getStereoOffset (void ) const โ€” Returns the current stereo offset. offset get โญ
  • void SoRenderManager::setRenderCallback (SoRenderManagerRenderCB * f, void *const userdata = NULL) โ€” Set the callback function f to invoke when rendering the scene. userdata gets passed as the first argument of the function. callback queen ๐Ÿ‘‘
  • SbBool SoRenderManager::isAutoRedraw (void ) const โ€” Returns TRUE if the SoRenderManager automatically redraws the scene when it detects changes in the scene graph. You turn automatic redraw on and off by setting a valid callback function with setRenderCallback(), or by passing NULL. auto redraw go brrr ๐Ÿ’€
  • void SoRenderManager::setRedrawPriority (const uint32_t priority) โ€” Sets up the redraw priority for the SoOneShotSensor used to trigger redraws. If you set this lower than for your own sensors, you can make sure some code always runs before redraw happens. priority check ๐Ÿซถ
    • See also: SoDelayQueueSensor
  • uint32_t SoRenderManager::getRedrawPriority (void ) const โ€” Returns the value of priority on the redraw sensor. priority got โœจ
  • void SoRenderManager::scheduleRedraw (void ) โ€” Redraw at the first opportunity as the system becomes idle. Multiple calls to this method before an actual redraw have taken place will only result in a single redraw of the scene. redraw when idle, no cap ๐Ÿ’…
  • void SoRenderManager::setWindowSize (const SbVec2s & newsize) โ€” Updates the window size of our SoGLRenderAction's viewport settings. Note that this only changes the info about window dimensions โ€” the actual viewport size and origin (i.e. the rectangle which redraws are confined to) will stay the same. window size tea ๐Ÿ“
    • See also: setViewportRegion()
  • const SbVec2s & SoRenderManager::getWindowSize (void ) const โ€” Returns the current render action window size. window size get ๐Ÿฆ‹
    • See also: setWindowSize()
  • void SoRenderManager::setSize (const SbVec2s & newsize) โ€” Sets the size of the rendering area for the viewport within the current window. size matters ๐Ÿ‘‘
  • const SbVec2s & SoRenderManager::getSize (void ) const โ€” Returns the size of the render area. area size โญ
  • void SoRenderManager::setOrigin (const SbVec2s & newOrigin) โ€” Sets only the origin of the viewport region within the rendering window. origin story ๐ŸŒˆ
    • See also: setViewportRegion(), setWindowSize()
  • const SbVec2s & SoRenderManager::getOrigin (void ) const โ€” Returns the origin of the rendering area viewport. origin get ๐Ÿ’œ
    • See also: setOrigin()
  • void SoRenderManager::setViewportRegion (const SbViewportRegion & newregion) โ€” Updates our SoGLRenderAction's viewport settings. This changes both the info about window dimensions and the actual viewport size and origin. viewport glow up โœจ
    • See also: setWindowSize()
  • const SbViewportRegion & SoRenderManager::getViewportRegion (void ) const โ€” Returns the current viewport region used by the render action and the event handling. viewport get ๐ŸŽ€
    • See also: setViewportRegion()
  • void SoRenderManager::setBackgroundColor (const SbColor4f & color) โ€” Sets the color of the rendering canvas. canvas color ๐Ÿ“
  • const SbColor4f & SoRenderManager::getBackgroundColor (void ) const โ€” Returns the color used for clearing the rendering area before rendering the scene. clear color ๐Ÿ’–
  • void SoRenderManager::setOverlayColor (const SbColor4f & color) โ€” Sets the color of the overlay. overlay slay ๐Ÿฆ‹
  • SbColor4f SoRenderManager::getOverlayColor (void ) const โ€” Returns the color used for rendering the overlay. overlay get ๐Ÿ’…
  • void SoRenderManager::setBackgroundIndex (const int index) โ€” Sets the index of the background color in the color lookup table if you're rendering in color index mode.
Note: color index mode is not supported yet in Coin. ๐Ÿ’€
  • int SoRenderManager::getBackgroundIndex (void ) const โ€” Returns the index of the color map for background filling. index get ๐Ÿ‘‘
    • See also: setBackgroundIndex()
  • void SoRenderManager::setRGBMode (const SbBool yes) โ€” Turns RGB true color mode on or off. If you turn true color mode off, color index mode will be used instead. RGB mode ๐ŸŒˆ
  • SbBool SoRenderManager::isRGBMode (void ) const โ€” Returns the "truecolor or colorindex" mode flag. RGB check โญ
  • void SoRenderManager::activate (void ) [virtual] โ€” Activates rendering and event handling. Default is off. activate! main character energy ๐Ÿ‘‘
  • void SoRenderManager::deactivate (void ) [virtual] โ€” Deactivates rendering and event handling. deactivate, bye ๐Ÿ’€
  • void SoRenderManager::setAntialiasing (const SbBool smoothing, const int numpasses) โ€” Turns antialiased rendering on or off. See the docs for SoGLRenderAction::setSmoothing() and SoGLRenderAction::setNumPasses(). smooth operator โœจ
  • void SoRenderManager::getAntialiasing (SbBool & smoothing, int & numpasses) const โ€” Returns rendering pass information. pass info ๐Ÿ’…
    • See also: setAntialiasing()
  • void SoRenderManager::setGLRenderAction (SoGLRenderAction *const action) โ€” Sets the action to use for rendering. Overrides the default action made in the constructor. action set ๐Ÿฆ‹
  • SoGLRenderAction * SoRenderManager::getGLRenderAction (void ) const โ€” Returns a pointer to the render action. action get ๐Ÿ“
  • void SoRenderManager::setAudioRenderAction (SoAudioRenderAction *const action) โ€” Sets the action to use for rendering audio. Overrides the default action made in the constructor. audio action ๐ŸŽ€
  • SoAudioRenderAction * SoRenderManager::getAudioRenderAction (void ) const โ€” Returns a pointer to the audio render action. audio get ๐Ÿ’œ
  • void SoRenderManager::enableRealTimeUpdate (const SbBool flag) [static] โ€” Sets whether or not SoRenderManager instances should "touch" the global realTime field after a redraw. If this isn't done, redrawing when animating the scene will only happen as fast as the realTime interval goes (which defaults to 12 times a second). real time update โญ
    • See also: SoDB::setRealTimeInterval()
  • SbBool SoRenderManager::isRealTimeUpdateEnabled (void ) [static] โ€” Returns whether or not we automatically notify everything connected to the realTime field after a redraw. real time check ๐ŸŒˆ
  • uint32_t SoRenderManager::getDefaultRedrawPriority (void ) [static] โ€” Returns the default priority of the redraw sensor. default priority ๐Ÿ‘‘
    • See also: SoDelayQueueSensor, setRedrawPriority()
  • void SoRenderManager::addPreRenderCallback (SoRenderManagerRenderCB * cb, void * data) โ€” Adds a function to be called before rendering starts. pre render callback ๐Ÿ’–
    • Parameters:
      • cb โ€” function to be called
      • data โ€” User specified data to supply to callback function
  • void SoRenderManager::removePreRenderCallback (SoRenderManagerRenderCB * cb, void * data) โ€” Removes a pre render callback. pre render remove ๐Ÿ’…
    • Precondition: The tuple (cb, data) must exactly match an earlier call to SoRenderManager::addPreRenderCallback
    • Parameters:
      • cb โ€” function to be called
      • data โ€” User specified data to supply to callback function
  • void SoRenderManager::addPostRenderCallback (SoRenderManagerRenderCB * cb, void * data) โ€” Adds a function to be called after rendering is complete. post render callback ๐Ÿฆ‹
    • Parameters:
      • cb โ€” function to be called
      • data โ€” User specified data to supply to callback function
  • void SoRenderManager::removePostRenderCallback (SoRenderManagerRenderCB * cb, void * data) โ€” Removes a post render callback. post render remove ๐Ÿ“
    • Precondition: The tuple (cb, data) must exactly match an earlier call to SoRenderManager::addPostRenderCallback
    • Parameters:
      • cb โ€” function to be called
      • data โ€” User specified data to supply to callback function
  • void SoRenderManager::reinitialize (void ) โ€” Reinitializes after parameters affecting the OpenGL context have changed. reinitialize, glow up โœจ
  • int SoRenderManager::isActive (void ) const [protected] โ€” Returns the active flag. active check ๐Ÿ‘‘
  • void SoRenderManager::redraw (void ) [protected] โ€” Does an immediate redraw by calling the redraw callback function. immediate redraw ๐Ÿ’€
  • void SoRenderManager::renderScene (SoGLRenderAction * action, SoNode * scene, uint32_t clearmask) [protected] โ€” Renders a scene and applies clear state as given by this renderManager. render scene ๐ŸŒˆ
    • Parameters:
      • action โ€” Action to apply
      • scene โ€” Scene to render
      • clearmask โ€” mask to pass to glClear
  • void SoRenderManager::actuallyRender (SoGLRenderAction * action, const SbBool initmatrices = TRUE, const SbBool clearwindow = TRUE, const SbBool clearzbuffer = TRUE) [protected] โ€” Convenience function for SoRenderManager::renderScene. actually render โญ
    • Parameters:
      • action โ€” Renders with a user supplied action.
      • initmatrices โ€” If set to TRUE, the projection and modelview matrices are reset to identity.
      • clearwindow โ€” If set to TRUE, clear the rendering buffer before drawing.
      • clearzbuffer โ€” If set to TRUE, clear the depth buffer values before rendering.
  • void SoRenderManager::renderSingle (SoGLRenderAction * action, SbBool initmatrices, SbBool clearwindow, SbBool clearzbuffer) [protected] โ€” Renders once in the correct draw style. Convenience function for SoRenderManager::renderScene. render single ๐Ÿฆ‹
    • Parameters:
      • action โ€” Renders with a user supplied action.
      • initmatrices โ€” If set to TRUE, the projection and modelview matrices are reset to identity.
      • clearwindow โ€” If set to TRUE, clear the rendering buffer before drawing.
      • clearzbuffer โ€” If set to TRUE, clear the depth buffer values before rendering.
  • void SoRenderManager::renderStereo (SoGLRenderAction * action, SbBool initmatrices, SbBool clearwindow, SbBool clearzbuffer) [protected] โ€” Renders the scene according to the current stereo mode. Convenience function for SoRenderManager::renderScene. render stereo ๐Ÿ’œ
    • Parameters:
      • action โ€” Renders with a user supplied action.
      • initmatrices โ€” If set to TRUE, the projection and modelview matrices are reset to identity.
      • clearwindow โ€” If set to TRUE, clear the rendering buffer before drawing.
      • clearzbuffer โ€” If set to TRUE, clear the depth buffer values before rendering.

Parameters

okay so these are the knobs you can twist, bestie โ€” one per vibe ๐Ÿ’…

  • action โ€” renders with a user supplied action. you bring the action, it renders it. iconic behavior tbh.
  • initmatrices โ€” if you set this to TRUE, the projection and modelview matrices get reset to identity. like a little factory reset for your matrices โœจ
  • clearwindow โ€” set to TRUE and the rendering buffer gets cleared before drawing. fresh canvas energy ๐ŸŽ€
  • clearzbuffer โ€” set to TRUE and the depth buffer values get cleared before rendering. no ghost pixels haunting you fr fr ๐Ÿ‘ป

void SoRenderManager::initStencilBufferForInterleavedStereo (void ) โ€” [protected]

lowkey a mouthful of a name but she's doing the most important job: this one initializes stencil buffers for interleaved stereo ๐Ÿฆ‹

note the [protected] tag, bestie โ€” this is not for you to call from the outside, it's internal machinery doing internal machinery things. iykyk ๐Ÿ’œ

void SoRenderManager::clearBuffers (SbBool color, SbBool depth) โ€” [protected]

clears buffers, but make it โœจcorrectโœจ โ€” she makes sure the background color is set correctly while she's at it. not just yeeting the pixels, she's setting the vibe first ๐ŸŒธ

Parameters

two SbBools, two decisions, one clean buffer:

  • color โ€” set to TRUE if the color buffer should be cleared. if you want the colors gone, say so. ๐ŸŽจ
  • depth โ€” set to TRUE if the depth buffer should be cleared. depth values? cleared. periodt. ๐Ÿ“
heads up: [protected] again โ€” internal use only, not part of your everyday API buffet ๐Ÿ™ˆ

โœจ Author โœจ

generated automatically by Doxygen for Coin from the source code ๐Ÿซถ so like, no human sat down and wrote this by hand โ€” the machine did it, and honestly? she ate ๐Ÿ’…


and that's a wrap on this whole page, bestie!! ๐ŸŽ€ you just read the manual page SoRenderManager(3), version 4.0.10, dated Thu Jun 25 2026 00:00:00 โ€” yeah, that date is giving time traveler but that's literally what it says, no cap ๐Ÿฆ‹ go forth and render responsibly, mwah ๐Ÿ’–๐Ÿ‘‘

๐Ÿ“ฆ where this page comes from