|
C++ API Reference
|
This method is obsolete. More...
#include <MD3D9Renderer.h>
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... | |
This method is obsolete.
MD3D9Renderer is a wrapper class to provide access to Maya's DirectX resources.
| 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. |
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. |
Reads out the current swatch context color buffer into an image format.
| [in] | image | The image to copy the swatch into |
|
static |
Returns a static pointer to the hardware renderer wrapper class.