Access DirectX utility class.
MD3D9Renderer is a wrapper class to provide access to Maya's DirectX resources.
#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. |
|
| MStatus | setBackgroundColor (const MColor &color) |
| Set the back ground color of the swatch.
|
|
| MStatus | readSwatchContextPixels (MImage &image) |
| Reads out the current swatch context color
buffer into an image format. |
|
Static Public Member Functions |
|
| static MD3D9Renderer * | theRenderer () |
| Returns a static pointer to the hardware
renderer wrapper class. |
|
| 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 |
| MD3D9Renderer * theRenderer | ( | ) | [static] |
Returns a static pointer to the hardware renderer wrapper class.