[AE Engine logo] Public API Reference
Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

mdlldr.h

00001 /*
00002  *  AE Engine
00003  *
00004  *  Copyright (C) 2003 Riku "Rakkis" Nurminen
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  */
00021 
00022 #ifndef __AEPLUGIN_AEMODELLOADER_MDLLDR_H__
00023 #define __AEPLUGIN_AEMODELLOADER_MDLLDR_H__
00024 
00025 #define ONLY_INCLUDE_STD
00026 #include <aedefs.h>
00027 #undef ONLY_INCLUDE_STD
00028 #include <aegfx/material.h>
00029 #include <aemdlldr/md2object.h>
00030 #include <aemdlldr/mdlstruct.h>
00031 #include <aeplugin/plugin.h>
00032 #include <aereg/registry.h>
00033 
00039 
00040 enum aeModelType {
00042         AE_MODEL_MD2,
00044         AE_MODEL_UNKNOWN
00045 };
00046 
00052 class aeModelLoader: public aePlugin {
00053         AECF_CNDEF
00054 
00055  private:
00056         aeRegistry *aereg;
00057 
00058         aeModelType getModelType(char *);
00059         aeMD2Object *loadMD2(char *mdlstr, char *modelFile);
00060         aeMD2Object *loadMD2(char *mdlstr, char *modelFile, aeMaterial *mat);
00061 
00062  public:
00063         aeModelLoader(aeRegistry *aeReg);
00064         ~aeModelLoader();
00065 
00075         virtual aeModel *loadModel(char *mdlname, char *mdlfile, aeMaterial *mat);
00076 };
00077 
00078 #endif // __AEPLUGIN_AEMODELLOADER_MDLLDR_H__

AE Engine Public API Reference
Generated on Wed Apr 9 09:43:39 2003 by Doxygen.