Qt3DRender::QBlendEquation Class
class Qt3DRender::QBlendEquationDie Klasse „QBlendEquation“ legt die Gleichung fest, die sowohl für die RGB-Überblendungsgleichung als auch für die Alpha-Überblendungsgleichung verwendet wird. Mehr...
| Header: | #include <Qt3DRender/QBlendEquation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | BlendEquation |
| Erbt von: | Qt3DRender::QRenderState |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Öffentliche Typen
| enum | BlendFunction { Add, Subtract, ReverseSubtract, Min, Max } |
Eigenschaften
- blendFunction : BlendFunction
Öffentliche Funktionen
| QBlendEquation(Qt3DCore::QNode *parent = nullptr) | |
| Qt3DRender::QBlendEquation::BlendFunction | blendFunction() const |
Öffentliche Slots
| void | setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
Signale
| void | blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
Detaillierte Beschreibung
Die Mischgleichung dient dazu, zu bestimmen, wie ein neues Pixel mit einem bereits im Framebuffer vorhandenen Pixel kombiniert wird.
Dokumentation zum Mitgliedstyp
enum QBlendEquation::BlendFunction
| Konstante | Wert | Beschreibung |
|---|---|---|
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 |
Dokumentation zu den Eigenschaften
blendFunction : BlendFunction
Enthält die Mischfunktion, die festlegt, wie Quell- und Zielfarben miteinander kombiniert werden.
Zugriffsfunktionen:
| Qt3DRender::QBlendEquation::BlendFunction | blendFunction() const |
| void | setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
Benachrichtigungssignal:
| void | blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
Dokumentation der Mitgliedsfunktionen
[explicit] QBlendEquation::QBlendEquation(Qt3DCore::QNode *parent = nullptr)
Der Konstruktor erstellt ein neues „Blend State“-Objekt mit dem angegebenen „ parent “.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.