Cortex
10.0.0-a4
|
#include <DisplayStyle.h>
Inherits noncopyable.
Public Member Functions | |
IECoreGL::State * | baseState (M3dView::DisplayStyle style, M3dView::LightingMode lightingMode=M3dView::kLightDefault, bool transferCurrentColor=true) |
Maya specifies how things should be drawn using the M3dView::DisplayStyle enum, whereas IECoreGL uses State objects to specify the equivalent things (and more). When using IECoreGL to draw within maya nodes it then becomes necessary to translate from the maya definition into an IECoreGL::State object. This class performs that translation. Typically one would be held as member data in a node and baseState() would be called upon in the draw() method.
IECoreGL::State* IECoreMaya::DisplayStyle::baseState | ( | M3dView::DisplayStyle | style, |
M3dView::LightingMode | lightingMode = M3dView::kLightDefault , |
||
bool | transferCurrentColor = true |
||
) |
Returns a base state suitable for representing objects in the the style specified by maya. If setCurrentColor is true then the current gl color is also translated appropriately into the State (for bounding box, wireframe and points modes only).