Класс QBlendEquationArguments
класс Qt3DRender::QBlendEquationArgumentsОборачивает информацию о смешивании: определяет, как входные значения (то, что будет отрисовано) повлияют на существующие значения (то, что уже отрисовано). Подробнее...
| Заголовок: | #include <QBlendEquationArguments> |
| CMake: | find_package(Qt6 COMPONENTS 3drender REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| С момента: | Qt 5.5 |
| Инициализируется из: | BlendEquationArguments |
| Наследует: | Qt3DRender::QRenderState |
Типы публичного доступа
| Перечисление | Blending { Zero, One, SourceColor, SourceAlpha, Source1Alpha, …, OneMinusSource1Color0 } |
Свойства
|
|
Публичные функции
| QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr) | |
| int | bufferIndex() const |
| Qt3DRender::QBlendEquationArguments::Blending | destinationAlpha() const |
| Qt3DRender::QBlendEquationArguments::Blending | destinationRgb() const |
| Qt3DRender::QBlendEquationArguments::Blending | sourceAlpha() const |
| Qt3DRender::QBlendEquationArguments::Blending | sourceRgb() const |
Публичные слоты
| void | setBufferIndex(int index) |
| void | setDestinationAlpha(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha) |
| void | setDestinationRgb(Qt3DRender::QBlendEquationArguments::Blending destinationRgb) |
| void | setDestinationRgba(Qt3DRender::QBlendEquationArguments::Blending destinationRgba) |
| void | setSourceAlpha(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha) |
| void | setSourceRgb(Qt3DRender::QBlendEquationArguments::Blending sourceRgb) |
| void | setSourceRgba(Qt3DRender::QBlendEquationArguments::Blending sourceRgba) |
Сигналы
| void | bufferIndexChanged(int index) |
| void | destinationAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha) |
| void | destinationRgbChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgb) |
| void | destinationRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgba) |
| void | sourceAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha) |
| void | sourceRgbChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgb) |
| void | sourceRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgba) |
Подробное описание
OpenGL pre-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 |
0x303 |
GL_SRC1_ALPHA |
Qt3DRender::QBlendEquationArguments::Source1Color |
0x304 |
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 |
0x8005 |
GL_ONE_MINUS_SRC1_ALPHA |
Qt3DRender::QBlendEquationArguments::OneMinusSource1Color |
0x8006 |
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
Функции доступа:
| Qt3DRender::QBlendEquationArguments::Blending | destinationAlpha() const |
| void | setDestinationAlpha(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha) |
Сигнал уведомления:
| void | destinationAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationAlpha) |
destinationRgb : Blending
Функции доступа:
| Qt3DRender::QBlendEquationArguments::Blending | destinationRgb() const |
| void | setDestinationRgb(Qt3DRender::QBlendEquationArguments::Blending destinationRgb) |
Сигнал уведомления:
| void | destinationRgbChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgb) |
sourceAlpha : Blending
Функции доступа:
| Qt3DRender::QBlendEquationArguments::Blending | sourceAlpha() const |
| void | setSourceAlpha(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha) |
Сигнал уведомления:
| void | sourceAlphaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceAlpha) |
sourceRgb : Blending
Функции доступа:
| Qt3DRender::QBlendEquationArguments::Blending | sourceRgb() const |
| void | setSourceRgb(Qt3DRender::QBlendEquationArguments::Blending sourceRgb) |
Сигнал уведомления:
| void | sourceRgbChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgb) |
Документация по членам-функциям
QBlendEquationArguments::QBlendEquationArguments(Qt3DCore::QNode *parent = nullptr)
Конструктор создаёт новый объект состояния смешивания с указанным parent.
[signal] void QBlendEquationArguments::destinationRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)
Уведомляет о том, что свойства destinationRgb и destinationAlpha изменились на destinationRgba.
[slot] void QBlendEquationArguments::setDestinationRgba(Qt3DRender::QBlendEquationArguments::Blending destinationRgba)
Изменить свойства destinationRgb и destinationAlpha на destinationRgba.
[slot] void QBlendEquationArguments::setSourceRgba(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)
Изменить свойства sourceRgb и sourceAlpha на sourceRgba.
[signal] void QBlendEquationArguments::sourceRgbaChanged(Qt3DRender::QBlendEquationArguments::Blending sourceRgba)
Уведомить о том, что свойства sourceRgb и sourceAlpha изменены на sourceRgba.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qt3drender-qblendequationarguments.html