#include <MD3D9Renderer.h>
MD3D9Renderer is a wrapper class to provide access to Maya's DirectX resources.
Public Member Functions | |
MStatus | makeSwatchContextCurrent (unsigned int &width, unsigned int &height) |
MStatus | setBackgroundColor (const MColor &color) |
MStatus | readSwatchContextPixels (MImage &image) |
Static Public Member Functions | |
static MD3D9Renderer * | theRenderer () |
MStatus MD3D9Renderer::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 * MD3D9Renderer::theRenderer | ( | ) | [static] |
Returns a static pointer to the hardware renderer wrapper class.
Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. | Generated with 1.5.6 |