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

mdlstruct.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_AEMDLLDR_MDLSTRUCT_H__
00023 #define __AEPLUGIN_AEMDLLDR_MDLSTRUCT_H__
00024 
00025 #define ONLY_INCLUDE_STD
00026 #include <aedefs.h>
00027 #undef ONLY_INCLUDE_STD
00028 
00034 
00035 enum modelState_t {
00036         MODEL_IDLE,
00037         MODEL_CROUCH,
00038         MODEL_RUN,
00039         MODEL_JUMP
00040 };
00041 
00043 typedef struct {
00044         short s;
00045         short t;
00046 } stIndex_t;
00047 
00049 typedef struct {
00051         unsigned char v[3];
00053         unsigned char normalIndex;
00054 } framePoint_t;
00055 
00057 typedef struct {
00059         float scale[3];
00061         float translate[3];
00063         char name[16];
00065         framePoint_t fp[1];
00066 } frame_t;
00067 
00069 typedef struct {
00071         unsigned short meshIndex[3];
00073         unsigned short stIndex[3];
00074 } mesh_t;
00075 
00077 typedef struct {
00079         int ident;
00081         int version;
00083         int skinwidth;
00085         int skinheight;
00087         unsigned int frameSize;
00089         int numSkins;
00091         unsigned int numVertices;
00093         unsigned int numTexCoords;
00095         unsigned int numTriangles;
00097         int numGLcmds;
00099         unsigned int numFrames;
00101         int offsetSkins;
00103         int offsetST;
00105         int offsetTris;
00107         int offsetFrames;
00109         int offsetGLcmds;
00110         // EOF
00111         int offsetEnd;
00112 } md2Header_t;
00113 
00116 #endif // __AEPLUGIN_AEMDLLDR_MDLSTRUCT_H__

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