You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
955 B
46 lines
955 B
//======= Copyright © 1996-2007, Valve Corporation, All rights reserved. ======
|
|
//
|
|
// Purpose: Utils for working with HyperShade in Maya
|
|
//
|
|
//=============================================================================
|
|
|
|
|
|
// Maya includes
|
|
#include <maya/MObject.h>
|
|
|
|
|
|
// Valve includes
|
|
#include "valveMaya/Undo.h"
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
//
|
|
//-----------------------------------------------------------------------------
|
|
namespace ValveMaya
|
|
{
|
|
|
|
class CHyperShadeUtil
|
|
{
|
|
public:
|
|
CHyperShadeUtil();
|
|
|
|
CHyperShadeUtil( CUndo &undo );
|
|
|
|
MStatus AddUtility( const MObject &utilityNode );
|
|
|
|
MStatus AddShader( const MObject &shaderNode );
|
|
|
|
MStatus AddTexture( const MObject &textureNode );
|
|
|
|
protected:
|
|
CUndo m_tmpUndo;
|
|
CUndo &m_undo;
|
|
|
|
MObject m_renderUtilityListObj;
|
|
MObject m_shaderListObj;
|
|
MObject m_textureListObj;
|
|
|
|
void Init();
|
|
};
|
|
|
|
}
|