#include <maya/MIOStream.h>
#include <cstdlib>
#include <maya/MFnPlugin.h>
#include "viewRenderOverridePostColor.h"
#include "viewRenderOverridePostColorCmd.h"
#undef ENABLE_TRACE_API_CALLS
#ifdef ENABLE_TRACE_API_CALLS
#define TRACE_API_CALLS(x) cerr <<(x)<<"\n"
#else
#define TRACE_API_CALLS(x)
#endif
{
TRACE_API_CALLS("initializePlugin");
MFnPlugin plugin( obj, PLUGIN_COMPANY,
"1.0",
"Any");
if (renderer)
{
ColorPostProcessOverride *overridePtr = new ColorPostProcessOverride("ColorPostProcessOverride");
if (overridePtr)
{
}
viewRenderOverridePostColorCmd::creator,
viewRenderOverridePostColorCmd::newSyntax);
}
return status;
}
{
TRACE_API_CALLS("uninitializePlugin");
if (renderer)
{
if (overridePtr)
{
delete overridePtr;
}
plugin.deregisterCommand( commandName );
}
return status;
}