Home -> IStateGroupNode -> SetBlendMode

Description

The SetBlendMode method configures the blend mode settings to use if blending is enabled.

Usage

void SetBlendMode(BlendOperation blendOperationRGB, BlendFactor blendFactorSourceRGB, BlendFactor blendFactorDestinationRGB, BlendOperation blendOperationA, BlendFactor blendFactorSourceA, BlendFactor blendFactorDestinationA);
void SetBlendMode(IFrameBuffer::AttachmentType type, size_t index, BlendOperation blendOperationRGB, BlendFactor blendFactorSourceRGB, BlendFactor blendFactorDestinationRGB, BlendOperation blendOperationA, BlendFactor blendFactorSourceA, BlendFactor blendFactorDestinationA);

Argument list

blendOperationRGB [BlendOperation]
The operation used to combine the source and destination RGB values.
blendFactorSourceRGB [BlendFactor]
The multiplier applied to the source RGB value before the blend operation.
blendFactorDestinationRGB [BlendFactor]
The multiplier applied to the destination RGB value before the blend operation.
blendOperationA [BlendOperation]
The operation used to combine the source and destination alpha values.
blendFactorSourceA [BlendFactor]
The multiplier applied to the source alpha value before the blend operation.
blendFactorDestinationA [BlendFactor]
The multiplier applied to the destination alpha value before the blend operation.

See also