Rev | Line | |
---|
[6] | 1 | #ifndef __MS_PLUGIN_H__ |
---|
| 2 | #define __MS_PLUGIN_H__ |
---|
| 3 | |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | struct msModel; |
---|
| 7 | class cMsPlugIn |
---|
| 8 | { |
---|
| 9 | public: |
---|
| 10 | enum |
---|
| 11 | { |
---|
| 12 | eTypeImport = 1, |
---|
| 13 | eTypeExport = 2, |
---|
| 14 | eTypeTool = 3, |
---|
| 15 | eTypeEdit = 4, |
---|
| 16 | eTypeVertex = 5, |
---|
| 17 | eTypeFace = 6, |
---|
| 18 | eTypeAnimate = 7, |
---|
| 19 | eTypeMask = 0x000F, |
---|
| 20 | |
---|
| 21 | eNormalsAndTexCoordsPerTriangleVertex = 128 |
---|
| 22 | }; |
---|
| 23 | |
---|
| 24 | public: |
---|
| 25 | cMsPlugIn () {}; |
---|
| 26 | virtual ~cMsPlugIn () {}; |
---|
| 27 | |
---|
| 28 | public: |
---|
| 29 | virtual int GetType () = 0; |
---|
| 30 | virtual const char * GetTitle () = 0; |
---|
| 31 | virtual int Execute (msModel* pModel) = 0; |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | typedef cMsPlugIn* (*FN_CREATE_PLUGIN)(); |
---|
| 37 | |
---|
| 38 | cMsPlugIn *CreatePlugIn (); |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | #endif // __MS_PLUGIN_H__ |
---|
Note: See
TracBrowser
for help on using the repository browser.