MTargetBlendDesc Class Reference


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

#include <MStateManager.h>

List of all members.

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.

Constructor & Destructor Documentation

MTargetBlendDesc ( const MTargetBlendDesc rDesc )

NO SCRIPT SUPPORT.

Copy constructor.

Parameters:
[in] rDesc The descriptor to copy

Member Function Documentation

MTargetBlendDesc & operator= ( const MTargetBlendDesc rDesc )

NO SCRIPT SUPPORT.

Assignment operator.

Parameters:
[in] rDesc The 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

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


MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc
MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc MTargetBlendDesc