QGLColorMaterial ClassThe QGLColorMaterial class implements flat or per-vertex color materials for 3D rendering. More... #include <QGLColorMaterial> Inherits: QGLAbstractMaterial. This class was introduced in Qt 4.8. Properties
Public Functions
Reimplemented Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe QGLColorMaterial class implements flat or per-vertex color materials for 3D rendering. When bound to a QGLPainter, QGLColorMaterial will select a flat color drawing effect, to render fragments with color(), ignoring any lights or textures that may be active on the QGLPainter state. If the geometry has the QGL::Color attribute, then a per-vertex color will be used instead and color() is ignored. See also QGLMaterial. Property Documentation
|
QColor | color() const |
void | setColor(const QColor & color) |
Notifier signal:
void | colorChanged() |
See also colorChanged().
Constructs a new flat color material and attaches it to parent.
Destroys this flat color material.
Reimplemented from QGLAbstractMaterial::bind().
Reimplemented from QGLAbstractMaterial::isTransparent().
Reimplemented from QGLAbstractMaterial::prepareToDraw().
Reimplemented from QGLAbstractMaterial::release().