Класс QBlendEquationArguments
(Qt3DRender::QBlendEquationArguments)Инкапсулирует информацию о смешивании: определяет, как входящие значения (то, что будет нарисовано) повлияют на существующие значения (то, что уже нарисовано). Подробнее...
| Заголовок: | #include <QBlendEquationArguments> |
| qmake: | QT += 3drender |
| С тех пор: | Qt 5.5 |
| Инициализируется: | BlendEquationArguments |
| Наследует: | Qt3DRender::QRenderState |
Открытые типы
| перечисление | Blending { Zero, One, SourceColor, SourceAlpha, ..., OneMinusSource1Color0 } |
Свойства
|
|
- 3 свойства унаследованы от Qt3DCore::QNode
- 1 свойство унаследовано от QObject
Открытые функции
| QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr) | |
| int | bufferIndex() const |
| Blending | destinationAlpha() const |
| Blending | destinationRgb() const |
| Blending | sourceAlpha() const |
| Blending | sourceRgb() const |
- 11 открытых функций унаследованы от Qt3DCore::QNode
- 32 открытых функций унаследованы от QObject
Открытые слоты
| void | setBufferIndex(int index) |
| void | setDestinationAlpha(Blending destinationAlpha) |
| void | setDestinationRgb(Blending destinationRgb) |
| void | setDestinationRgba(Blending destinationRgba) |
| void | setSourceAlpha(Blending sourceAlpha) |
| void | setSourceRgb(Blending sourceRgb) |
| void | setSourceRgba(Blending sourceRgba) |
- 3 открытых слота унаследованы от Qt3DCore::QNode
- 1 открытый слот унаследован от QObject
Сигналы
| void | bufferIndexChanged(int index) |
| void | destinationAlphaChanged(Blending destinationAlpha) |
| void | destinationRgbChanged(Blending destinationRgb) |
| void | destinationRgbaChanged(Blending destinationRgba) |
| void | sourceAlphaChanged(Blending sourceAlpha) |
| void | sourceRgbChanged(Blending sourceRgb) |
| void | sourceRgbaChanged(Blending sourceRgba) |
- 4 сигнала унаследованы от Qt3DCore::QNode
- 2 сигнала унаследованы от QObject
Защищенные функции
| QBlendEquationArguments(QBlendEquationArgumentsPrivate &dd, Qt3DCore::QNode *parent = nullptr) |
- 2 защищенные функции унаследованы от Qt3DCore::QNode
- 9 защищенных функций унаследованы от QObject
Дополнительные унаследованные члены
- 11 статических открытых членов унаследованы от QObject
Подробное описание
Инкапсулирует информацию о смешивании: определяет, как входящие значения (то, что будет нарисовано) повлияют на существующие значения (то, что уже нарисовано).
OpenGL до версии 3.0: Устанавливает один и тот же режим смешивания для всех буферов отрисовки (один QBlendEquationArguments) OpenGL 3.0-pre4.0: Устанавливает одинаковый режим смешивания для всех буферов отрисовки, но может отключить смешивание для отдельных буферов (один QBlendEquationArguments для установки glBlendFunc, n QBlendEquationArgumentss для включения/отключения буферов отрисовки) OpenGL 4.0+: Может установить режим смешивания индивидуально для каждого буфера отрисовки.
Документация по типу члена
перечисление QBlendEquationArguments::Blending
| Постоянная | Значение | Описание |
|---|---|---|
Qt3DRender::QBlendEquationArguments::Zero |
0 |
GL_ZERO |
Qt3DRender::QBlendEquationArguments::One |
1 |
GL_ONE |
Qt3DRender::QBlendEquationArguments::SourceColor |
0x0300 |
GL_SRC_COLOR |
Qt3DRender::QBlendEquationArguments::SourceAlpha |
0x0302 |
GL_SRC_ALPHA |
Qt3DRender::QBlendEquationArguments::Source1Alpha |
? | GL_SRC1_ALPHA |
Qt3DRender::QBlendEquationArguments::Source1Color |
? | GL_SRC1_COLOR |
Qt3DRender::QBlendEquationArguments::DestinationColor |
0x0306 |
GL_DST_COLOR |
Qt3DRender::QBlendEquationArguments::DestinationAlpha |
0x0304 |
GL_DST_ALPHA |
Qt3DRender::QBlendEquationArguments::SourceAlphaSaturate |
0x0308 |
GL_SRC_ALPHA_SATURATE |
Qt3DRender::QBlendEquationArguments::ConstantColor |
0x8001 |
0GL_CONSTANT_COLOR |
Qt3DRender::QBlendEquationArguments::ConstantAlpha |
0x8003 |
GL_CONSTANT_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusSourceColor |
0x0301 |
GL_ONE_MINUS_SRC_COLOR |
Qt3DRender::QBlendEquationArguments::OneMinusSourceAlpha |
0x0303 |
GL_ONE_MINUS_SRC_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusDestinationAlpha |
0x0305 |
GL_ONE_MINUS_DST_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusDestinationColor |
0x0307 |
GL_ONE_MINUS_DST_COLOR |
Qt3DRender::QBlendEquationArguments::OneMinusConstantColor |
0x8002 |
GL_ONE_MINUS_CONSTANT_COLOR |
Qt3DRender::QBlendEquationArguments::OneMinusConstantAlpha |
0x8004 |
GL_ONE_MINUS_CONSTANT_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusSource1Alpha |
? | GL_ONE_MINUS_SRC1_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusSource1Color |
? | GL_ONE_MINUS_SRC1_COLOR |
Qt3DRender::QBlendEquationArguments::OneMinusSource1Color0 |
OneMinusSource1Color |
GL_ONE_MINUS_SRC1_COLOR (устаревшее) |
Документация по свойствам
bufferIndex : int
Указывает индекс буфера отрисовки, к которому применяется этот BlendEquationArguments. Если отрицательное значение, то это будет применяться ко всем буферам отрисовки.
Функции доступа:
| int | bufferIndex() const |
| void | setBufferIndex(int index) |
Сигнал уведомления:
| void | bufferIndexChanged(int index) |
destinationAlpha : Blending
Функции доступа:
| Blending | destinationAlpha() const |
| void | setDestinationAlpha(Blending destinationAlpha) |
Сигнал уведомления:
| void | destinationAlphaChanged(Blending destinationAlpha) |
destinationRgb : Blending
Функции доступа:
| Blending | destinationRgb() const |
| void | setDestinationRgb(Blending destinationRgb) |
Сигнал уведомления:
| void | destinationRgbChanged(Blending destinationRgb) |
sourceAlpha : Blending
Функции доступа:
| Blending | sourceAlpha() const |
| void | setSourceAlpha(Blending sourceAlpha) |
Сигнал уведомления:
| void | sourceAlphaChanged(Blending sourceAlpha) |
sourceRgb : Blending
Функции доступа:
| Blending | sourceRgb() const |
| void | setSourceRgb(Blending sourceRgb) |
Сигнал уведомления:
| void | sourceRgbChanged(Blending sourceRgb) |
Документация по функциям-членам
QBlendEquationArguments::QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr)
Инициализирует экземпляр QBlendEquationArguments.
[protected] QBlendEquationArguments::QBlendEquationArguments(QBlendEquationArgumentsPrivate &dd, Qt3DCore::QNode *parent = nullptr)
Конструктор копирования.
[signal] void QBlendEquationArguments::destinationRgbaChanged(Blending destinationRgba)
Уведомляет о том, что свойства destinationRgb и destinationAlpha изменились на destinationRgba.
[slot] void QBlendEquationArguments::setDestinationRgba(Blending destinationRgba)
Изменить оба свойства destinationRgb и destinationAlpha на destinationRgba.
[slot] void QBlendEquationArguments::setSourceRgba(Blending sourceRgba)
Изменить оба свойства sourceRgb и sourceAlpha на sourceRgba.
[signal] void QBlendEquationArguments::sourceRgbaChanged(Blending sourceRgba)
Уведомить о том, что оба свойства sourceRgb и sourceAlpha были изменены на sourceRgba.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.9/qt3drender-qblendequationarguments.html