Back to class index
BlendState[Class Summary]
enableAlphaBlending
color1
colorOp
color2
alpha1
alphaOp
alpha2
enableAlphaToCoverage
Graphics
ctor (+1 overload)
~dtor
Create(...)
Deinit()

BlendState::Create

Syntax

void BlendState::Create(bool enableAlphaBlending, BlendSource color1, BlendOperation colorOp, BlendSource color2, BlendSource alpha1, BlendOperation alphaOp, BlendSource alpha2, bool enableAlphaToCoverage);

Recreates this state object to hold the given blending state.

Parameters

boolenableAlphaBlendingIf true, alpha blending is enabled. If false, all pixels are opaquely written onto the render target. BlendSourcecolor1Specifices the first operand in the blend equation for (r,g,b) color channels. BlendOperationcolorOpSpecifies the operation to use in the blend equation for (r,g,b) color channels. BlendSourcecolor2Specifies the second operand in the blend equation for (r,g,b) color channels. BlendSourcealpha1Specifies the first operand in the blend equation for the alpha (a) channel. BlendOperationalphaOpSpecifies the operation to use in the blend equation for the alpha (a) channel. BlendSourcealpha2Specifies the second operand in the blend equation for the alpha (a) channel. boolenableAlphaToCoverageIf true, alpha-to-coverage rendering is enabled when MSAA is active. This provides smoother antialiasing of the edges in alpha-tested geometry.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index