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...
Kopfzeile: | #include <Qt3DRender/QBlendEquation> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
In QML: | BlendEquation |
Vererbt: | Qt3DRender::QRenderState |
Status: | Veraltet |
Ö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 Überblendungsgleichung wird verwendet, um zu bestimmen, wie ein neues Pixel mit einem bereits im Framebuffer vorhandenen Pixel kombiniert wird.
Dokumentation der Mitgliedstypen
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 der Eigenschaften
blendFunction : BlendFunction
Enthält die Mischfunktion, die bestimmt, wie Quell- und Zielfarben kombiniert werden.
Zugriffsfunktionen:
Qt3DRender::QBlendEquation::BlendFunction | blendFunction() const |
void | setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
Benachrichtigungssignal:
void | blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction) |
Member Function Dokumentation
[explicit]
QBlendEquation::QBlendEquation(Qt3DCore::QNode *parent = nullptr)
Der Konstruktor erzeugt ein neues Blend-State-Objekt mit dem angegebenen parent.
© 2025 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.