Counter Strike : Global Offensive Source Code
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.

45 lines
955 B

  1. //======= Copyright � 1996-2007, Valve Corporation, All rights reserved. ======
  2. //
  3. // Purpose: Utils for working with HyperShade in Maya
  4. //
  5. //=============================================================================
  6. // Maya includes
  7. #include <maya/MObject.h>
  8. // Valve includes
  9. #include "valveMaya/Undo.h"
  10. //-----------------------------------------------------------------------------
  11. //
  12. //-----------------------------------------------------------------------------
  13. namespace ValveMaya
  14. {
  15. class CHyperShadeUtil
  16. {
  17. public:
  18. CHyperShadeUtil();
  19. CHyperShadeUtil( CUndo &undo );
  20. MStatus AddUtility( const MObject &utilityNode );
  21. MStatus AddShader( const MObject &shaderNode );
  22. MStatus AddTexture( const MObject &textureNode );
  23. protected:
  24. CUndo m_tmpUndo;
  25. CUndo &m_undo;
  26. MObject m_renderUtilityListObj;
  27. MObject m_shaderListObj;
  28. MObject m_textureListObj;
  29. void Init();
  30. };
  31. }