Revision 657,
1.0 KB
checked in by mattausch, 19 years ago
(diff) |
added ogre dependencies and patched ogre sources
|
Line | |
---|
1 |
|
---|
2 |
|
---|
3 |
|
---|
4 |
|
---|
5 |
|
---|
6 |
|
---|
7 |
|
---|
8 |
|
---|
9 |
|
---|
10 |
|
---|
11 | #define NT_PLUGIN
|
---|
12 |
|
---|
13 | #define MNoVersionString
|
---|
14 |
|
---|
15 | #include <maya/MObject.h>
|
---|
16 | #include <maya/MFnPlugin.h>
|
---|
17 | //#include <maya/MGlobal.h>
|
---|
18 |
|
---|
19 | #include "OgreExporter.h"
|
---|
20 |
|
---|
21 |
|
---|
22 | namespace
|
---|
23 | {
|
---|
24 | const char* const csg_pAuthorString = "(C) Copyright Marc Hernandez";
|
---|
25 | const char* const csg_pVersionString = "0.1";
|
---|
26 |
|
---|
27 | } // namespace {}
|
---|
28 |
|
---|
29 | MStatus __declspec( dllexport ) initializePlugin(MObject Object)
|
---|
30 | {
|
---|
31 | MStatus status;
|
---|
32 | MFnPlugin Plugin( Object, csg_pAuthorString, csg_pVersionString, "Any", &status );
|
---|
33 | if (!status)
|
---|
34 | {
|
---|
35 | status.perror("MFnPlugin");
|
---|
36 | return status;
|
---|
37 | }
|
---|
38 |
|
---|
39 | // Register the exporters
|
---|
40 | {
|
---|
41 | OgreExporter::RegisterPlugin(Plugin);
|
---|
42 | }
|
---|
43 |
|
---|
44 | return status;
|
---|
45 | }
|
---|
46 |
|
---|
47 | MStatus __declspec( dllexport ) uninitializePlugin( MObject Object )
|
---|
48 | {
|
---|
49 | MStatus status;
|
---|
50 | MFnPlugin Plugin( Object, csg_pAuthorString, csg_pVersionString, "Any", &status );
|
---|
51 | if (!status)
|
---|
52 | {
|
---|
53 | status.perror("MFnPlugin");
|
---|
54 | return status;
|
---|
55 | }
|
---|
56 |
|
---|
57 | // Exporters
|
---|
58 | {
|
---|
59 | OgreExporter::DeregisterPlugin( Plugin );
|
---|
60 | }
|
---|
61 |
|
---|
62 | return status ;
|
---|
63 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.