viewRenderOverride/viewRenderOverrideMain.cpp
#include <stdio.h>
#include <maya/MString.h>
#include <maya/MFnPlugin.h>
#include <maya/MViewport2Renderer.h>
#include "viewRenderOverride.h"
static viewRenderOverride *viewRenderOverrideInstance = NULL;
{
MFnPlugin plugin( obj, PLUGIN_COMPANY,
"1.0",
"Any");
if (!viewRenderOverrideInstance)
{
if (renderer)
{
viewRenderOverrideInstance = new viewRenderOverride( "my_viewRenderOverride" );
}
}
if (!status)
{
status.
perror(
"registerOverride");
}
return status;
}
{
if (viewRenderOverrideInstance)
{
if (renderer)
{
}
delete viewRenderOverrideInstance;
viewRenderOverrideInstance = NULL;
}
if (!status)
{
status.
perror(
"deregisterOverride");
}
return status;
}