+ add getter method to return current render mode
This commit is contained in:
@@ -1270,6 +1270,11 @@ void View3DInventorViewer::setRenderType(const RenderType type)
|
||||
}
|
||||
}
|
||||
|
||||
View3DInventorViewer::RenderType View3DInventorViewer::getRenderType() const
|
||||
{
|
||||
return this->renderType;
|
||||
}
|
||||
|
||||
void View3DInventorViewer::renderToFramebuffer(QGLFramebufferObject* fbo)
|
||||
{
|
||||
static_cast<QGLWidget*>(this->viewport())->makeCurrent();
|
||||
|
||||
@@ -156,6 +156,7 @@ public:
|
||||
int getFeedbackSize(void) const;
|
||||
|
||||
void setRenderType(const RenderType type);
|
||||
RenderType getRenderType() const;
|
||||
void renderToFramebuffer(QGLFramebufferObject*);
|
||||
|
||||
virtual void setViewing(SbBool enable);
|
||||
|
||||
Reference in New Issue
Block a user