In questa pagina

Qt3DRender::QBlendEquation Class

class Qt3DRender::QBlendEquation

La classe QBlendEquation definisce l'equazione utilizzata sia per l'equazione di fusione RGB che per quella alfa. Per saperne di più...

Intestazione: #include <Qt3DRender/QBlendEquation>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
In QML: BlendEquation
Eredita da: Qt3DRender::QRenderState
Stato: Obsoleto

Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.

Tipi pubblici

enum BlendFunction { Add, Subtract, ReverseSubtract, Min, Max }

Proprietà

Funzioni pubbliche

QBlendEquation(Qt3DCore::QNode *parent = nullptr)
Qt3DRender::QBlendEquation::BlendFunction blendFunction() const

Slot pubblici

void setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction)

Segnali

void blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction)

Descrizione dettagliata

L'equazione di fusione viene utilizzata per determinare in che modo un nuovo pixel viene combinato con un pixel già presente nel framebuffer.

Documentazione sui tipi dei membri

enum QBlendEquation::BlendFunction

CostanteValoreDescrizione
Qt3DRender::QBlendEquation::Add0x8006GL_FUNC_ADD
Qt3DRender::QBlendEquation::Subtract0x800AGL_FUNC_SUBTRACT
Qt3DRender::QBlendEquation::ReverseSubtract0x800BGL_FUNC_REVERSE_SUBTRACT
Qt3DRender::QBlendEquation::Min0x8007GL_MIN
Qt3DRender::QBlendEquation::Max0x8008GL_MAX

Documentazione delle proprietà

blendFunction : BlendFunction

Contiene la funzione di fusione, che determina come vengono combinati i colori di origine e di destinazione.

Funzioni di accesso:

Qt3DRender::QBlendEquation::BlendFunction blendFunction() const
void setBlendFunction(Qt3DRender::QBlendEquation::BlendFunction blendFunction)

Segnale di notifica:

void blendFunctionChanged(Qt3DRender::QBlendEquation::BlendFunction blendFunction)

Documentazione delle funzioni membro

[explicit] QBlendEquation::QBlendEquation(Qt3DCore::QNode *parent = nullptr)

Il costruttore crea un nuovo oggetto "blend state" con l'parent e specificata.

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