PageRenderTime 29ms CodeModel.GetById 26ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/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
 1#include "n3dimport.h"
 2
 3HINSTANCE		hInstance;
 4bool			ControlsInit = false;
 5
 6class MyPlugClassDesc : public ClassDesc  
 7{
 8public:
 9	int			IsPublic() { return 1; }
10	void		*Create(BOOL Loading = FALSE) { return new MyImp; }
11	const TCHAR	*ClassName() { return _T("Naruto Import"); }
12	SClass_ID	SuperClassID() { return SCENE_IMPORT_CLASS_ID; }
13	Class_ID	ClassID() { return N3D_IMPORT_CLASS_ID; }
14	const TCHAR	*Category() { return _T(""); }
15};
16
17static MyPlugClassDesc	MyPlugCD;
18
19BOOL APIENTRY DllMain(HINSTANCE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
20{
21	hInstance = hModule;
22	if (!ControlsInit)
23	{
24		ControlsInit = true;
25		//InitCustomControls(hInstance);
26		//InitCommonControls();
27	}
28    return TRUE;
29}
30
31__declspec(dllexport) int LibNumberClasses()
32{
33	return 1;
34}
35
36__declspec(dllexport) ClassDesc *LibClassDesc(int i)
37{
38	switch (i)
39	{
40	case 0:
41    return &MyPlugCD;
42	default:
43    return 0;
44	}
45}
46
47__declspec(dllexport) const TCHAR *LibDescription()
48{
49	return _T("Naruto 3D import plugin");
50}
51
52__declspec(dllexport) ULONG LibVersion()
53{
54	return VERSION_3DSMAX;
55}