Python API 2.0 Reference
OpenMayaRender.MBlendState Class Reference
+ Inheritance diagram for OpenMayaRender.MBlendState:

Public Member Functions

def __init__ ()
 
def desc ()
 
def resourceHandle ()
 

Static Public Member Functions

def __new__ ()
 

Static Public Attributes

int kAdd = 1
 
int kAlphaChannel = 8
 
int kBlendFactor = 14
 
int kBlueChannel = 4
 
int kBothInvSourceAlpha = 13
 
int kBothSourceAlpha = 12
 
int kDestinationAlpha = 7
 
int kDestinationColor = 9
 
int kGreenChannel = 2
 
int kInvBlendFactor = 15
 
int kInvDestinationAlpha = 8
 
int kInvDestinationColor = 10
 
int kInvSourceAlpha = 6
 
int kInvSourceColor = 4
 
int kMax = 5
 
int kMaxTargets = 8
 
int kMin = 4
 
int kNoChannels = 0
 
int kOne = 2
 
int kRGBAChannels = 15
 
int kRGBChannels = 7
 
int kRedChannel = 1
 
int kReverseSubtract = 3
 
int kSourceAlpha = 5
 
int kSourceAlphaSat = 11
 
int kSourceColor = 3
 
int kSubtract = 2
 
int kZero = 1
 

Detailed Description

Container class for an acquired GPU blend state.

Constructor & Destructor Documentation

def OpenMayaRender.MBlendState.__init__ ( )
Initialize self.  See help(type(self)) for accurate signature.

Member Function Documentation

def OpenMayaRender.MBlendState.__new__ ( )
static
Create and return a new object.  See help(type) for accurate signature.
def OpenMayaRender.MBlendState.desc ( )
desc() -> MBlendStateDesc

Get the blend state descriptor that was used to create the state object.
def OpenMayaRender.MBlendState.resourceHandle ( )
resourceHandle() -> long

Returns a long containing a C++ 'void' pointer which points to the draw API dependent handle for a blend state.
For OpenGL, such a handle does not exist and a NULL pointer will be returned.
For DirectX, a pointer to a Direct3D state will be returned.