Cogs.Rendering
|
Encapsulates blend state for the graphics pipeline in a state object. More...
#include <BlendState.h>
Public Types | |
enum struct | Blend : uint8_t { Zero = 0 , One , SourceColor , InverseSourceColor , SourceAlpha , InverseSourceAlpha , DestinationAlpha , InverseDestinationAlpha , DestinationColor , InverseDestinationColor , SourceAlphaSaturate , BlendFactor , InverseBlendFactor , Count } |
Options for blend functions. More... | |
enum struct | BlendOperation : uint8_t { Add = 0 , Subtract , ReverseSubtract , Min , Max , Count } |
Static Public Member Functions | |
static BlendState | DefaultState () |
Creates a blend state object initialized with the default settings. | |
Public Attributes | |
uint8_t | enabled = 0 |
If blending is enabled. | |
Blend | sourceBlend = Blend::One |
Blend option for the blend source data. | |
Blend | destinationBlend = Blend::Zero |
Blend option for the blend destination data. | |
BlendOperation | operation = BlendOperation::Add |
How the two blend values are combined. | |
Encapsulates blend state for the graphics pipeline in a state object.
|
strong |
|
strong |
|
inlinestatic |
Blend Cogs::BlendState::destinationBlend = Blend::Zero |
Blend option for the blend destination data.
uint8_t Cogs::BlendState::enabled = 0 |
If blending is enabled.
BlendOperation Cogs::BlendState::operation = BlendOperation::Add |
How the two blend values are combined.
Blend Cogs::BlendState::sourceBlend = Blend::One |
Blend option for the blend source data.