QBlendEquation Class

class Qt3DRender ::QBlendEquation

The QBlendEquation class specifies the equation used for both the RGB blend equation and the Alpha blend equation. 更多...

頭: #include <Qt3DRender/QBlendEquation>
qmake: QT += 3drender
Since: Qt 5.7
實例化: BlendEquation
繼承: Qt3DRender::QRenderState

該類在 Qt 5.7 引入。

公共類型

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

特性

公共函數

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

公共槽

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

信號

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

詳細描述

The blend equation is used to determine how a new pixel is combined with a pixel already in the framebuffer.

成員類型文檔編製

enum QBlendEquation:: BlendFunction

常量 描述
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

特性文檔編製

blendFunction : BlendFunction

Holds the blend function, which determines how source and destination colors are combined.

訪問函數:

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

通知程序信號:

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

成員函數文檔編製

QBlendEquation:: QBlendEquation ( Qt3DCore::QNode * parent = nullptr)

The constructor creates a new blend state object with the specified parent .