Auf dieser Seite

Qt3DRender::QBlendEquation Class

class Qt3DRender::QBlendEquation

Die 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

Ö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

KonstanteWertBeschreibung
Qt3DRender::QBlendEquation::Add0x8006GL_FUNC_ADD
Qt3DRender::QBlendEquation::Subtract0x800AGL_FUNC_SUBTRACT
Qt3DRender::QBlendEquation::ReverseSubtract0x800BGL_FUNC_REVERSE_SUBTRACT
Qt3DRender::QBlendEquation::Min0x8007GL_MIN
Qt3DRender::QBlendEquation::Max0x8008GL_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.