Descriptor for a blend state for a single render target.
This class holds the complete blend state for a single render target. The blended result will be: result = !BlendEnable ? source : blendOperation(sourceBlendOption(source), destinationBlendOption(destination));
MBlendStateDesc maintains an array of MTargetBlendDesc of size MBlendState::kMaxTargets.
#include <MStateManager.h>
Public Member Functions |
|
| MTargetBlendDesc () | |
| Constructor, builds a default target blend
descriptor. |
|
| ~MTargetBlendDesc () | |
| Destructor. |
|
| void | setDefaults () |
| Set all values for the target blend state to
their default values. |
|
| MTargetBlendDesc (const MTargetBlendDesc &rDesc) | |
| NO SCRIPT SUPPORT. |
|
| MTargetBlendDesc & | operator= (const MTargetBlendDesc &rDesc) |
| NO SCRIPT SUPPORT. |
|
Static Public Member Functions |
|
| static const char * | className () |
| Returns the name of this class. |
|
Public Attributes |
|
| bool | blendEnable |
| Enable blending on this target, default is
false. |
|
| MBlendState::BlendOption | sourceBlend |
| The blend factor for the source color,
default is one. |
|
| MBlendState::BlendOption | destinationBlend |
| The blend factor for the destination color,
default is zero. |
|
| MBlendState::BlendOperation | blendOperation |
| The blend operation, default is add. |
|
| MBlendState::BlendOption | alphaSourceBlend |
| The blend factor for the source alpha,
default is one. |
|
| MBlendState::BlendOption | alphaDestinationBlend |
| The blend factor for the destination alpha,
default is zero. |
|
| MBlendState::BlendOperation | alphaBlendOperation |
| The blend operation for alpha, default is
add. |
|
| MBlendState::ChannelMask | targetWriteMask |
| Indicates what color components(red, green,
blue, alpha) are writable, the default is RGBA. |
|
| MTargetBlendDesc | ( | const MTargetBlendDesc & | rDesc | ) |
NO SCRIPT SUPPORT.
Copy constructor.
| [in] | rDesc | The descriptor to copy |
| MTargetBlendDesc & operator= | ( | const MTargetBlendDesc & | rDesc | ) |
NO SCRIPT SUPPORT.
Assignment operator.
| [in] | rDesc | The descriptor to copy |
| const char * className | ( | ) | [static] |
Indicates what color components(red, green, blue, alpha) are writable, the default is RGBA.