XSIPLUGINCALLBACK XSI::CStatus XSILoadPlugin( XSI::PluginRegistrar& in_reg )
{
	using namespace XSI;
	in_reg.PutAuthor( L"Softimage Corp" );
	in_reg.PutName( L"VMF Import Plug-in" );	in_reg.PutVersion( 1, 0 );

	// register the commands plugin item.
	in_reg.RegisterCommand( L"VMFImport", L"VMFImport" );
	// register property
	in_reg.RegisterProperty( L"VMFImportProperty" );	//
	// register the menu for the import 
//	in_reg.RegisterMenu(XSI::siMenuMainFileImportID, L"CPPImportVMF", false, false);
//	in_reg.RegisterMenu((XSI::siMenuAnchorPoints)1014, L"CPPImportVMF", false, false);

	return XSI::CStatus::OK;	
}
Esempio n. 2
0
/** Registers the export command, the menu item, and the option dialog */
CStatus XSILoadPlugin( XSI::PluginRegistrar& registrar )
{
	registrar.PutAuthor( L"Steve Streeting" );
	registrar.PutName( L"OGRE Exporter Plugin" );	
    registrar.PutVersion( 1, 0 );
    registrar.PutURL(L"http://www.ogre3d.org");
    

	// register the mesh export command
	registrar.RegisterCommand( L"OgreMeshExportCommand", L"OgreMeshExportCommand" );

    // register the menu under File > Export
	registrar.RegisterMenu(siMenuMainFileExportID, L"OgreMeshExportMenu", false, false);

	// register the export dialog properties factory
	registrar.RegisterProperty( L"OgreMeshExportOptions" );

#ifdef _DEBUG
    Application app;
    app.LogMessage( registrar.GetName() + L" has been loaded.");
#endif

    return XSI::CStatus::OK;	
}