D:/Zythum/DinoKod/mapMaxExport/MAPMaxExporter.h

00001 //---------------------------------------------------------------------------------------------
00002 //      This file is a part of "DinoKod".
00003 //      Copyright © 2003 Dino Productions. All Rights Reserved.
00004 //      
00005 //      File                    : MAPMaxExporter.h
00006 //      Author                  : Sebastien LEIX        sebastien.leix@wanadoo.fr
00007 //      Date                    : 04/01/2003
00008 //      Modification    :
00009 //
00010 //---------------------------------------------------------------------------------------------
00011 #ifndef _MAPMAXEXPORTER_H__
00012 #define _MAPMAXEXPORTER_H__
00013 
00014 #include <windows.h>
00015 #include <commctrl.h>
00016 #include <max.h>
00017 #include <iparamm2.h>
00018 
00019 //class KMdlLoader;
00020 //class KMdlMesh;
00021 
00022 //---------------------------------------------------------------------------------------------
00023 class KMapExporter : public SceneExport
00024 {
00025 protected:
00026         static INT_PTR CALLBACK ExportDlgProc( HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam );
00027 //      bool                                    ExportNode( KMdlLoader& Loader, KMdlMesh* pMesh, INode* pNode, bool bSelected, TimeValue Time );
00028 //      KMdlMesh*                               ExportGeomObject( KMdlLoader& Loader, INode* pNode, TimeValue Time );
00029 //      bool                                    ExportMaterials( KMdlLoader& Loader, MtlBaseLib* pMtlBaseLib );
00030 //      Point3                                  GetVertexNormal(Mesh* mesh, int faceNo, RVertex* rv);
00031 
00032 public:
00033         KMapExporter();
00034         virtual ~KMapExporter();
00035 
00036         virtual int                             ExtCount()                              { return 1;                                                                     }
00037         virtual const TCHAR*    Ext( int i )                    { return _T("map");                                                     }
00038         virtual const TCHAR*    LongDesc()                              { return _T("3D Map for 3Dino Engine"); }
00039         virtual const TCHAR*    ShortDesc()                             { return _T("3Dino Map");                                       }
00040         virtual const TCHAR*    AuthorName()                    { return _T("Dino Productions");                        }
00041         virtual const TCHAR*    CopyrightMessage()              { return _T("Copyright (c) 2003 Dino Productions");}
00042         virtual unsigned int    Version()                               { return 100; /* v1.00 */                                       }
00043         virtual const TCHAR*    OtherMessage1()                 { return _T("The Dino Touch");                          }
00044         virtual const TCHAR*    OtherMessage2()                 { return _T("Dino Productions Forever");        }
00045         virtual void                    ShowAbout( HWND hWnd );
00046 
00047         virtual int                             DoExport( const TCHAR *name, ExpInterface *ei, Interface *i, BOOL suppressPrompts=FALSE, DWORD options=0 );
00048 };
00049 
00050 //---------------------------------------------------------------------------------------------
00051 class KMapExporterClassDesc : public ClassDesc2
00052 {
00053 public:
00054         int                             IsPublic()                                              { return TRUE;                                                          }
00055         void*                   Create( BOOL loading )                  { return new KMapExporter();                            }
00056         const TCHAR*    ClassName()                                             { return _T("KMapExporter");                            }
00057         SClass_ID               SuperClassID()                                  { return SCENE_EXPORT_CLASS_ID;                                         }
00058         Class_ID                ClassID()                                               { return Class_ID(0x59747a3a, 0x25e57de0);      }
00059         const TCHAR*    Category()                                              { return _T("");                                                        }
00060 };
00061 
00062 static KMapExporterClassDesc MapExporterClassDesc;
00063 
00064 #endif  _MAPMAXEXPORTER_H__

Generated on Sun Mar 25 20:02:13 2007 for Zythum Project by  doxygen 1.5.1-p1