QBlendEquation Class
(Qt3DRender::QBlendEquation)The QBlendEquation class specifies the equation used for both the RGB blend equation and the Alpha blend equation. More...
Header: | #include <Qt3DRender/QBlendEquation> |
qmake: | QT += 3drender |
Since: | Qt 5.7 |
Instantiated By: | BlendEquation |
Inherits: | Qt3DRender::QRenderState |
This class was introduced in Qt 5.7.
Public Types
enum | BlendFunction { Add, Subtract, ReverseSubtract, Min, Max } |
Properties
- blendFunction : BlendFunction
- 3 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject
Public Functions
QBlendEquation(Qt3DCore::QNode *parent = nullptr) | |
Qt3DRender::QBlendEquation::BlendFunction | blendFunction() const |
- 13 public functions inherited from Qt3DCore::QNode
- 30 public functions inherited from QObject
Public Slots
void | setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
- 3 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject
Signals
void | blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
- 4 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject
Related Non-Members
typedef | QNodePtr |
typedef | QNodeVector |
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
Qt3DCore::QNodeId | qIdForNode(Qt3DCore::QNode *node) |
Qt3DCore::QNodeIdVector | qIdsForNodes(const T &nodes) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 9 static public members inherited from QObject
- 2 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
Detailed Description
The blend equation is used to determine how a new pixel is combined with a pixel already in the framebuffer.
Member Type Documentation
enum QBlendEquation::BlendFunction
Constant | Value | Description |
---|---|---|
Qt3DRender::QBlendEquation::Add | 0x8006 | GL_FUNC_ADD |
Qt3DRender::QBlendEquation::Subtract | 0x800A | GL_FUNC_SUBTRACT |
Qt3DRender::QBlendEquation::ReverseSubtract | 0x800B | GL_FUNC_REVERSE_SUBTRACT |
Qt3DRender::QBlendEquation::Min | 0x8007 | GL_MIN |
Qt3DRender::QBlendEquation::Max | 0x8008 | GL_MAX |
Property Documentation
blendFunction : BlendFunction
Holds the blend function, which determines how source and destination colors are combined.
Access functions:
Qt3DRender::QBlendEquation::BlendFunction | blendFunction() const |
void | setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
Notifier signal:
void | blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
Member Function Documentation
QBlendEquation::QBlendEquation(Qt3DCore::QNode *parent = nullptr)
The constructor creates a new blend state object with the specified parent.