C++ API Reference
MRenderPassRegistry Class Reference

Access the render pass registry. More...

#include <MRenderPassRegistry.h>

Static Public Member Functions

static MRenderPassDef getRenderPassDefinition (const MString &passID, MStatus *ReturnStatus=NULL)
 Retrieve the definition of the specified render pass. More...
 
static MRenderPassDef registerRenderPassDefinition (const MString &passID, const MString &passName, const MString &passGroup, const MString &description, bool overload=false, MStatus *ReturnStatus=NULL)
 Creates a new render pass definition and registers it with the internal render pass registry. More...
 
static const char * className ()
 Returns the name of this class. More...
 

Detailed Description

Access the render pass registry.

This class provides a means to register custom render pass definitions with Maya's internal render pass registry. It can also be used to query pass definitions.

Member Function Documentation

OPENMAYA_MAJOR_NAMESPACE_OPEN MRenderPassDef getRenderPassDefinition ( const MString passID,
MStatus ReturnStatus = NULL 
)
static

Retrieve the definition of the specified render pass.

Parameters
[in]passIDThe ID of the pass
[out]ReturnStatusStatus code
Returns
The render pass definition if successful
Status Codes:
  • MS::kSuccess The pass definition was successfully retrieved
  • MS::kFailure The internal registry could not be accessed
  • MS::kNotFound The passID does not exist
MRenderPassDef registerRenderPassDefinition ( const MString passID,
const MString passName,
const MString passGroup,
const MString description,
bool  overload = false,
MStatus ReturnStatus = NULL 
)
static

Creates a new render pass definition and registers it with the internal render pass registry.

Returns the definition.

Parameters
[in]passIDThe ID of the pass
[in]passNameThe name of the new pass
[in]passGroupThe classification of the new pass
[in]descriptionA description of the new pass
[in]overloadIf true, override any existing pass with the same passID with this pass definiton
[out]ReturnStatusStatus code
Returns
The render pass definition if successful
Status Codes:
  • MS::kSuccess The pass was created and registered
  • MS::kFailure An object error has occured
const char * className ( )
static

Returns the name of this class.

Returns
The name of this class.

The documentation for this class was generated from the following files: