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...

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

Ö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

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 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.