Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions include/Inventor/SoRenderManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ typedef void SoRenderManagerRenderCB(void * userdata, class SoRenderManager * mg
class COIN_DLL_API SoRenderManager {
public:

enum class RenderPipeline {
LEGACY_GL,
DRAW_LIST
};

class COIN_DLL_API Superimposition {
public:
enum StateFlags {
Expand Down Expand Up @@ -178,6 +183,8 @@ class COIN_DLL_API SoRenderManager {
void getAntialiasing(SbBool & smoothing, int & numPasses) const;
void setGLRenderAction(SoGLRenderAction * const action);
SoGLRenderAction * getGLRenderAction(void) const;
void setRenderPipeline(RenderPipeline pipeline);
RenderPipeline getRenderPipeline(void) const;
void setAudioRenderAction(SoAudioRenderAction * const action);
SoAudioRenderAction * getAudioRenderAction(void) const;

Expand Down Expand Up @@ -211,6 +218,8 @@ class COIN_DLL_API SoRenderManager {
SbBool clearwindow,
SbBool clearzbuffer);

void renderDrawListPipeline(SbBool clearwindow, SbBool clearzbuffer);

void renderStereo(SoGLRenderAction * action,
SbBool initmatrices,
SbBool clearwindow,
Expand Down
2 changes: 2 additions & 0 deletions include/Inventor/SoSceneManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ class COIN_DLL_API SoSceneManager {
void getAntialiasing(SbBool & smoothing, int & numPasses) const;
void setGLRenderAction(SoGLRenderAction * const action);
SoGLRenderAction * getGLRenderAction(void) const;
void setRenderPipeline(SoRenderManager::RenderPipeline pipeline);
SoRenderManager::RenderPipeline getRenderPipeline(void) const;
void setAudioRenderAction(SoAudioRenderAction * const action);
SoAudioRenderAction * getAudioRenderAction(void) const;
void setHandleEventAction(SoHandleEventAction * hea);
Expand Down
12 changes: 12 additions & 0 deletions src/misc/SoSceneManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,18 @@ SoSceneManager::getGLRenderAction(void) const
return PRIVATE(this)->rendermanager->getGLRenderAction();
}

void
SoSceneManager::setRenderPipeline(const SoRenderManager::RenderPipeline pipeline)
{
PRIVATE(this)->rendermanager->setRenderPipeline(pipeline);
}

SoRenderManager::RenderPipeline
SoSceneManager::getRenderPipeline(void) const
{
return PRIVATE(this)->rendermanager->getRenderPipeline();
}

/*!
Set the \a action to use for rendering audio. Overrides the default action
made in the constructor.
Expand Down
4 changes: 2 additions & 2 deletions src/rendering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ set(COIN_RENDERING_FILES
SoRenderBackend.cpp
SoGLRenderBackend.cpp
SoIDPickBuffer.cpp
SoRenderManager.cpp
SoRenderManagerP.cpp
)

if(COIN_BUILD_LEGACY_GL_RENDERER)
list(APPEND COIN_RENDERING_FILES
SoGLBigImage.cpp
SoGLImage.cpp
SoGLCubeMapImage.cpp
SoRenderManager.cpp
SoRenderManagerP.cpp
SoOffscreenRenderer.cpp
SoOffscreenCGData.cpp
SoOffscreenGLXData.cpp
Expand Down
Loading
Loading