#include <MD3D9Renderer.h>
This method is obsolete.
MD3D9Renderer is a wrapper class to provide access to Maya's DirectX resources.
 Examples:
 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 MD3D9Renderer * | theRenderer () | 
| Returns a static pointer to the hardware renderer wrapper class.  More... | |
| MStatus makeSwatchContextCurrent | ( | unsigned int & | width, | 
| unsigned int & | height | ||
| ) | 
Create a directX render target (or context) to render into for swatches.
| [out] | width | The width of the swatch image. | 
| [out] | height | The height of the swatch image. | 
 Examples:
 Examples: Set the back ground color of the swatch.
This clear the reading buffer as well.
| [in] | color | The color to which the backgorund color will be set. | 
 Examples:
 Examples: Reads out the current swatch context color buffer into an image format.
| [in] | image | The image to copy the swatch into | 
 Examples:
 Examples: | 
 | static | 
Returns a static pointer to the hardware renderer wrapper class.
 Examples:
 Examples: