Skip to content

Commit

Permalink
add docs and fix unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Mar 1, 2021
1 parent 0466ba3 commit 09569c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/3d/qgsabstract3dengine.h
Expand Up @@ -96,6 +96,11 @@ class _3D_EXPORT QgsAbstract3DEngine : public QObject
*/
virtual QSurface *surface() const = 0;

/**
* Returns the shadow rendering frame graph object used to render the scene
*
* \since QGIS 3.18
*/
virtual QgsShadowRenderingFrameGraph *frameGraph() = 0;

signals:
Expand Down
2 changes: 1 addition & 1 deletion src/3d/qgsoffscreen3dengine.cpp
Expand Up @@ -103,7 +103,7 @@ void QgsOffscreen3DEngine::setClearColor( const QColor &color )

void QgsOffscreen3DEngine::setFrustumCullingEnabled( bool enabled )
{
mFrameGraph->setFrustumCullingEnabled( false );
mFrameGraph->setFrustumCullingEnabled( enabled );
}

void QgsOffscreen3DEngine::setRootEntity( Qt3DCore::QEntity *root )
Expand Down

0 comments on commit 09569c2

Please sign in to comment.