MTargetBlendDesc Class Reference

#include <MStateManager.h>

Class Description

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.

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. More...
 
MTargetBlendDescoperator= (const MTargetBlendDesc &rDesc)
 NO SCRIPT SUPPORT. More...
 

Static Public Member Functions

static const char * className ()
 Returns the name of this class. More...
 

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. More...
 

Constructor & Destructor Documentation

MTargetBlendDesc ( const MTargetBlendDesc rDesc)

NO SCRIPT SUPPORT.

Copy constructor.

Parameters
[in]rDescThe descriptor to copy

Member Function Documentation

MTargetBlendDesc & operator= ( const MTargetBlendDesc rDesc)

NO SCRIPT SUPPORT.

Assignment operator.

Parameters
[in]rDescThe descriptor to copy
Returns
Reference to this descriptor
const char * className ( )
static

Returns the name of this class.

Returns
Name of this class.

Member Data Documentation

MBlendState::ChannelMask targetWriteMask

Indicates what color components(red, green, blue, alpha) are writable, the default is RGBA.

+ Examples:

The documentation for this class was generated from the following files:
  • MStateManager.h
  • MStateManager.cpp