88 lines
2.5 KiB
C++
Executable File
88 lines
2.5 KiB
C++
Executable File
|
|
#ifndef _MFnBlinnShader
|
|
#define _MFnBlinnShader
|
|
//
|
|
//-
|
|
// ==========================================================================
|
|
// Copyright (C) Alias Systems, a division of Silicon Graphics Limited.
|
|
// All rights reserved. These coded instructions, statements and computer
|
|
// programs contain unpublished information proprietary to Alias Systems,
|
|
// a division of Silicon Graphics Limited, which is protected by the
|
|
// Canadian and US federal copyright law and may not be disclosed to third
|
|
// parties or copied or duplicated, in whole or in part, without prior
|
|
// written consent of Alias Systems, a division of Silicon Graphics Limited
|
|
// ==========================================================================
|
|
//+
|
|
//
|
|
// CLASS: MFnBlinnShader
|
|
//
|
|
// *****************************************************************************
|
|
//
|
|
// CLASS DESCRIPTION (MFnBlinnShader)
|
|
//
|
|
// MFnBlinnShader facilitates creation and manipulation of dependency graph
|
|
// nodes representing Blinn shaders.
|
|
//
|
|
// *****************************************************************************
|
|
|
|
#if defined __cplusplus
|
|
|
|
// *****************************************************************************
|
|
|
|
// INCLUDED HEADER FILES
|
|
|
|
|
|
#include <maya/MObject.h>
|
|
#include <maya/MStatus.h>
|
|
#include <maya/MFnReflectShader.h>
|
|
// *****************************************************************************
|
|
|
|
// DECLARATIONS
|
|
|
|
class MFnReflectShader;
|
|
|
|
// *****************************************************************************
|
|
|
|
// CLASS DECLARATION (MFnBlinnShader)
|
|
|
|
/// Manage Blinn shaders.
|
|
/**
|
|
Facilitate the creation and manipulation of Blinn shaders.
|
|
*/
|
|
#ifdef _WIN32
|
|
#pragma warning(disable: 4522)
|
|
#endif // _WIN32
|
|
|
|
class OPENMAYA_EXPORT MFnBlinnShader : public MFnReflectShader
|
|
{
|
|
|
|
declareMFn( MFnBlinnShader, MFnReflectShader );
|
|
|
|
public:
|
|
///
|
|
MObject create( bool UIvisible = true, MStatus * ReturnStatus = NULL );
|
|
///
|
|
float eccentricity( MStatus * ReturnStatus = NULL ) const;
|
|
///
|
|
MStatus setEccentricity( const float& eccentricity );
|
|
///
|
|
float specularRollOff( MStatus * ReturnStatus = NULL ) const;
|
|
///
|
|
MStatus setSpecularRollOff( const float& specular_rolloff );
|
|
|
|
protected:
|
|
// No protected members
|
|
|
|
private:
|
|
// No private members
|
|
|
|
};
|
|
|
|
#ifdef _WIN32
|
|
#pragma warning(default: 4522)
|
|
#endif // _WIN32
|
|
|
|
// *****************************************************************************
|
|
#endif /* __cplusplus */
|
|
#endif /* _MFnBlinnShader */
|