QBlendState Class

(Qt3DRender::QBlendState)

Encapsulates blending information. More...

Header: #include <QBlendState>
qmake: QT += 3drender
Since: Qt 5.5
Instantiated By: BlendState
Inherits: Qt3DRender::QRenderState
Inherited By:

Qt3DRender::QBlendStateSeparate

Public Types

enum Blending { Zero, One, SrcColor, SrcAlpha, ..., OneMinusSrc1Color0 }

Properties

Public Functions

QBlendState(Qt3DCore::QNode *parent = Q_NULLPTR)
~QBlendState()
Blending dstAlpha() const
Blending dstRGB() const
Blending srcAlpha() const
Blending srcRGB() const

Public Slots

void setDstAlpha(Blending dstAlpha)
void setDstRGB(Blending dstRGB)
void setSrcAlpha(Blending srcAlpha)
void setSrcRGB(Blending srcRGB)

Signals

void dstAlphaChanged(Blending dstAlpha)
void dstRGBChanged(Blending dstRGB)
void srcAlphaChanged(Blending srcAlpha)
void srcRGBChanged(Blending srcRGB)

Protected Functions

QBlendState(QRenderState::Type type, Qt3DCore::QNode *parent = Q_NULLPTR)

Additional Inherited Members

Detailed Description

Encapsulates blending information.

Member Type Documentation

enum QBlendState::Blending

ConstantValueDescription
Qt3DRender::QBlendState::Zero00
Qt3DRender::QBlendState::One11
Qt3DRender::QBlendState::SrcColor0x03000x0300
Qt3DRender::QBlendState::SrcAlpha0x03020x0302
Qt3DRender::QBlendState::Src1Alpha? 
Qt3DRender::QBlendState::Src1Color? 
Qt3DRender::QBlendState::DstColor0x03060x0306
Qt3DRender::QBlendState::DstAlpha0x03040x0304
Qt3DRender::QBlendState::SrcAlphaSaturate0x03080x0308
Qt3DRender::QBlendState::ConstantColor0x80010x8001
Qt3DRender::QBlendState::ConstantAlpha0x80030x8003
Qt3DRender::QBlendState::OneMinusSrcColor0x03010x0301
Qt3DRender::QBlendState::OneMinusSrcAlpha0x03030x0303
Qt3DRender::QBlendState::OneMinusDstAlpha0x03050x0305
Qt3DRender::QBlendState::OneMinusDstColor0x03070x0307
Qt3DRender::QBlendState::OneMinusConstantColor0x80020x8002
Qt3DRender::QBlendState::OneMinusConstantAlpha0x80040x8004
Qt3DRender::QBlendState::OneMinusSrc1Alpha? 
Qt3DRender::QBlendState::OneMinusSrc1Color0? 

Property Documentation

dstAlpha : Blending

Access functions:

Blending dstAlpha() const
void setDstAlpha(Blending dstAlpha)

Notifier signal:

void dstAlphaChanged(Blending dstAlpha)

dstRGB : Blending

Access functions:

Blending dstRGB() const
void setDstRGB(Blending dstRGB)

Notifier signal:

void dstRGBChanged(Blending dstRGB)

srcAlpha : Blending

Access functions:

Blending srcAlpha() const
void setSrcAlpha(Blending srcAlpha)

Notifier signal:

void srcAlphaChanged(Blending srcAlpha)

srcRGB : Blending

Access functions:

Blending srcRGB() const
void setSrcRGB(Blending srcRGB)

Notifier signal:

void srcRGBChanged(Blending srcRGB)

Member Function Documentation

QBlendState::QBlendState(Qt3DCore::QNode *parent = Q_NULLPTR)

Default constructs an instance of QBlendState.

[protected] QBlendState::QBlendState(QRenderState::Type type, Qt3DCore::QNode *parent = Q_NULLPTR)

Default constructs an instance of QBlendState.

QBlendState::~QBlendState()

Destroys the instance of QBlendState.

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