virtual ZRESULT setAlphaBlend(bool bBlendEnabled,
DWORD nOp,
DWORD nSrc,
DWORD nDst,
bool bColor=true,
bool bOp=true,
bool bSrc=true,
bool bDst=true,
bool* pInherit=NULL)=0;
Sets blending options for color or alpha. This method allows to set
source/destination blending modes and blending operation. You can change only
required arguments with this method call.
Parameters:
- bBlendEnabled
- Enables alpha blending.
- nOp
- Color/alpha operation mode specified as one of D3DTOP_* value
from DirectX SDK. Will take effect only of bOp argument is true.
- nSrc
- Color/alpha source blend specified as one of D3DTA_* value
from DirectX SDK. Will take effect only of bSrc argument is true.
- nDst
- Color/alpha destination blend specified as one of D3DTA_* value
from DirectX SDK. Will take effect only of bDst argument is true.
- bColor
- Optional argument specifies whether color component blending mode (true) or
alpha blending mode (false) should be set. Alpha blending mode can differ
from color blending mode only if
alpha separation is enabled.
- bOp
- Optional argument specifies whether nOp argument is valid and
should be set as blending operation.
- bSrc
- Optional argument specifies whether nSrc argument is valid and
should be set as source blending.
- bDst
- Optional argument specifies whether nDst argument is valid and
should be set as destination blending.
- pInherit
- Optional. Variable at this pointer specifies whether alpha blending
should be inherited from parent material (true).
See Also:
- Interface overview and methods
- getAlphaBlend method
- setAlphaSeparation method