OpenMayaRender.MBlendState Class Reference

Class Description

Container class for an acquired GPU blend state.
+ Inheritance diagram for OpenMayaRender.MBlendState:

Public Member Functions

__init__ ()
 
desc ()
 
resourceHandle ()
 

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
 

Constructor & Destructor Documentation

OpenMayaRender.MBlendState.__init__ ( )
x.__init__(...) initializes x; see help(type(x)) for signature

Member Function Documentation

OpenMayaRender.MBlendState.desc ( )
desc() -> MBlendStateDesc

Get the blend state descriptor that was used to create the state object.
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.