» Back to Documentation

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 )
{
    IHair* hair = static_cast<IHair*>( object->GetInterface( IHairInterfaceID ) );
}