/project/max5_import/main_import.cpp
http://narutortsproject.googlecode.com/ · C++ · 55 lines · 45 code · 8 blank · 2 comment · 2 complexity · 689d53cc8a256f9a16f09264cb236e10 MD5 · raw file
- #include "n3dimport.h"
-
- HINSTANCE hInstance;
- bool ControlsInit = false;
-
- class MyPlugClassDesc : public ClassDesc
- {
- public:
- int IsPublic() { return 1; }
- void *Create(BOOL Loading = FALSE) { return new MyImp; }
- const TCHAR *ClassName() { return _T("Naruto Import"); }
- SClass_ID SuperClassID() { return SCENE_IMPORT_CLASS_ID; }
- Class_ID ClassID() { return N3D_IMPORT_CLASS_ID; }
- const TCHAR *Category() { return _T(""); }
- };
-
- static MyPlugClassDesc MyPlugCD;
-
- BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
- {
- hInstance = hModule;
- if (!ControlsInit)
- {
- ControlsInit = true;
- //InitCustomControls(hInstance);
- //InitCommonControls();
- }
- return TRUE;
- }
-
- __declspec(dllexport) int LibNumberClasses()
- {
- return 1;
- }
-
- __declspec(dllexport) ClassDesc *LibClassDesc(int i)
- {
- switch (i)
- {
- case 0:
- return &MyPlugCD;
- default:
- return 0;
- }
- }
-
- __declspec(dllexport) const TCHAR *LibDescription()
- {
- return _T("Naruto 3D import plugin");
- }
-
- __declspec(dllexport) ULONG LibVersion()
- {
- return VERSION_3DSMAX;
- }