MD3D9Renderer Class Reference

#include <MD3D9Renderer.h>

Class Description

This method is obsolete.

Deprecated:
Use the DirectX 11 device from MHWRender::MRenderer::GPUDeviceHandle() instead.

MD3D9Renderer is a wrapper class to provide access to Maya's DirectX resources.

+ Examples:

Public Member Functions

MStatus makeSwatchContextCurrent (unsigned int &width, unsigned int &height)
 Create a directX render target (or context) to render into for swatches. More...
 
MStatus setBackgroundColor (const MColor &color)
 Set the back ground color of the swatch. More...
 
MStatus readSwatchContextPixels (MImage &image)
 Reads out the current swatch context color buffer into an image format. More...
 

Static Public Member Functions

static MD3D9RenderertheRenderer ()
 Returns a static pointer to the hardware renderer wrapper class. More...
 

Member Function Documentation

MStatus makeSwatchContextCurrent ( unsigned int &  width,
unsigned int &  height 
)

Create a directX render target (or context) to render into for swatches.

Parameters
[out]widthThe width of the swatch image.
[out]heightThe height of the swatch image.
Returns
  • MS::kSuccess The method was successful.
  • MS::kFailure An error has occurred.
+ Examples:
MStatus setBackgroundColor ( const MColor color)

Set the back ground color of the swatch.

This clear the reading buffer as well.

Parameters
[in]colorThe color to which the backgorund color will be set.
Returns
  • MS::kSuccess The method was successful.
  • MS::kFailure An error has occurred.
+ Examples:
MStatus readSwatchContextPixels ( MImage image)

Reads out the current swatch context color buffer into an image format.

Parameters
[in]imageThe image to copy the swatch into
Returns
  • MS::kSuccess The method was successful.
  • MS::kFailure An error has occurred.
+ Examples:
MD3D9Renderer * theRenderer ( )
static

Returns a static pointer to the hardware renderer wrapper class.

Returns
Pointer to a MD3D9Renderer.
+ Examples:

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