QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
3 More...
#include <qgsmaterial.h>
Public Member Functions | |
QgsMaterial (Qt3DCore::QNode *parent=nullptr) | |
Constructor for QgsMaterial, with the specified parent node. | |
~QgsMaterial () override | |
void | disableClipping () |
Removes the uniform parameters used to define OpenGL clipping. | |
void | enableClipping (const QList< QVector4D > &clipPlanesEquations) |
Adds two uniform parameters to define OpenGL clipping from clipPlanesEquations. | |
3
Base class for all materials used within QGIS 3D views. It provides common functionality (such as clipping) that all materials should support (where applicable).
Definition at line 38 of file qgsmaterial.h.
|
explicit |
Constructor for QgsMaterial, with the specified parent node.
Definition at line 30 of file qgsmaterial.cpp.
|
overridedefault |
void QgsMaterial::disableClipping | ( | ) |
Removes the uniform parameters used to define OpenGL clipping.
It also removes the define macro used for clipping from vertex/geometry shaders. If clipping was not enabled, nothing happens.
Definition at line 89 of file qgsmaterial.cpp.
void QgsMaterial::enableClipping | ( | const QList< QVector4D > & | clipPlanesEquations | ) |
Adds two uniform parameters to define OpenGL clipping from clipPlanesEquations.
It also adds a define macro appropriate to vertex/geometry shaders.
Definition at line 38 of file qgsmaterial.cpp.