Represents blending state.
More...
#include <State.h>
|
|
uint16 | enabled |
| | true if blending is enabled.
|
| |
|
BlendArg | sourceColor |
| | Determines how source color will be used.
|
| |
|
BlendArg | sourceAlpha |
| | Determines how source alpha will be used.
|
| |
|
BlendArg | destColor |
| | Determines how destination color will be used.
|
| |
|
BlendArg | destAlpha |
| | Determines how destination alpha will be used.
|
| |
|
BlendOp | opColor |
| | Type of operation that will be performed on color if blending is enabled.
|
| |
|
BlendOp | opAlpha |
| | Type of operation that will be performed on alpha if blending is enabled.
|
| |
Represents blending state.
◆ BlendFunction() [1/2]
| gpu::State::BlendFunction::BlendFunction |
( |
bool |
enabled, |
|
|
BlendArg |
sourceColor, |
|
|
BlendOp |
operationColor, |
|
|
BlendArg |
destinationColor, |
|
|
BlendArg |
sourceAlpha, |
|
|
BlendOp |
operationAlpha, |
|
|
BlendArg |
destinationAlpha |
|
) |
| |
|
inline |
- Parameters
-
| enabled | true if blending is enabled. |
| sourceColor | Determines how source color will be used. |
| operationColor | Type of operation that will be performed on color if blending is enabled. |
| destinationColor | Determines how destination color will be used. |
| sourceAlpha | Determines how source alpha will be used. |
| operationAlpha | Type of operation that will be performed on alpha if blending is enabled. |
| destinationAlpha | Determines how destination alpha will be used. |
◆ BlendFunction() [2/2]
| gpu::State::BlendFunction::BlendFunction |
( |
bool |
enabled = false, |
|
|
BlendArg |
source = ONE, |
|
|
BlendOp |
operation = BLEND_OP_ADD, |
|
|
BlendArg |
destination = ZERO |
|
) |
| |
|
inline |
- Parameters
-
| enabled | true if blending is enabled. |
| source | Determines how source (both color and alpha) will be used. |
| operation | Type of operation that will be performed on both color and alpha if blending is enabled. |
| destination | Determines how destination (both color and alpha) will be used. |
◆ getDestinationAlpha()
| BlendArg gpu::State::BlendFunction::getDestinationAlpha |
( |
| ) |
const |
|
inline |
- Returns
- Enum determining how destination alpha will be used.
◆ getDestinationColor()
| BlendArg gpu::State::BlendFunction::getDestinationColor |
( |
| ) |
const |
|
inline |
- Returns
- Enum determining how destination color will be used.
◆ getOperationAlpha()
| BlendOp gpu::State::BlendFunction::getOperationAlpha |
( |
| ) |
const |
|
inline |
- Returns
- Type of operation that will be performed on alpha if blending is enabled.
◆ getOperationColor()
| BlendOp gpu::State::BlendFunction::getOperationColor |
( |
| ) |
const |
|
inline |
- Returns
- Type of operation that will be performed if blending is enabled.
◆ getSourceAlpha()
| BlendArg gpu::State::BlendFunction::getSourceAlpha |
( |
| ) |
const |
|
inline |
- Returns
- Enum determining how source alpha will be used.
◆ getSourceColor()
| BlendArg gpu::State::BlendFunction::getSourceColor |
( |
| ) |
const |
|
inline |
- Returns
- Enum determining how source color will be used.
◆ isEnabled()
| bool gpu::State::BlendFunction::isEnabled |
( |
| ) |
const |
|
inline |
- Returns
true if blending is enabled.
The documentation for this struct was generated from the following file: