#include <MHWGeometryUtilities.h>
Utilities for Viewport 2.0.
This class is a utility class for rendering geometry in Viewport 2.0
Public Types | |
enum | GeometricShape { kDefaultSphere = 0, kDefaultPlane, kDefaultCube } |
Default geometry shapes. More... | |
Static Public Member Functions | |
static MColor | wireframeColor (const MDagPath &path) |
Returns the wireframe color used in Viewport 2.0 for the given DAG path. More... | |
::MHWRender::DisplayStatus | displayStatus (const MDagPath &path, MStatus *returnStatus=NULL) |
Returns the display status of the given DAG path. More... | |
static MGeometry * | acquireReferenceGeometry (GeometricShape shape, const MGeometryRequirements &requirements) |
Acquire reference geometry with required buffers. More... | |
static void | releaseReferenceGeometry (MGeometry *geometry) |
Release a generated reference geometry. More... | |
static const char * | className () |
Returns the name of this class. More... | |
enum GeometricShape |
Returns the wireframe color used in Viewport 2.0 for the given DAG path.
[in] | path | The DAG path to get wireframe color |
|
static |
Returns the display status of the given DAG path.
Note that the last selected object will have status kLead instead of kActive and if only one object is selected the status will be kLead.
[in] | path | the DAG path to get. |
[out] | returnStatus | Status code. |
|
static |
Acquire reference geometry with required buffers.
The user is responsible for releasing the geometry when it is no longer needed, by calling MGeometryUtilities::releaseReferenceGeometry().
[in] | shape | The shape of the requested geometry |
[in] | requirements | The list of required index and vertex buffers |
|
static |
Release a generated reference geometry.
[in] | geometry | The geometry to delete |
|
static |
Returns the name of this class.