SDK Files and Namespaces
Headers
Ornatrix SDK consists of a collection of interfaces and structures stored in separate header files. All interfaces are pure-virtual with inline methods and as such do not require linking and .lib files.
Namespaces
All classes are encapsulated within Ephere::Plugins::Autodesk::Max::Ornatrix
namespace for semantic reasons. Therefore, use the using namespace
declaration before referring to Ornatrix objects. For example:
#include <ihair.h>
using namespace Ephere::Plugins::Autodesk::Max::Ornatrix;
void MyFunction( Object* object )
{
auto hair = static_cast<IHair*>( object->GetInterface( IHairInterfaceID ) );
}
Missing Something? Let us know if this page needs more information about the topic.