www.pudn.com > Gimcrack-v0.0051-Source.zip > md2format.h


#ifndef _MD2FORMAT_H_ 
#define _MD2FORMAT_H_ 
 
#include "../global.h" 
#include "../math/point.h" 
 
struct MD2TexInd 
{ 
	short x; 
	short y; 
}; 
 
struct MD2FramePoint 
{ 
	byte v[3]; 
	byte normalIndex; 
}; 
 
struct MD2Frame 
{ 
	GcPoint3		scale; 
	GcPoint3		translate; 
	char			name[16]; 
	MD2FramePoint	fp[1]; 
}; 
 
struct MD2Tri 
{ 
	ushort triInd[3]; 
	ushort texCrdInd[3]; 
}; 
 
struct MD2Header 
{ 
	int ident; 
	int version; 
	int skinWidth; 
	int skinHeight; 
	int frameSize; 
	int numSkins; 
	int numVertices; 
	int numTexCoords; 
	int numTris; 
	int numGLCmds; 
	int numFrames; 
	int offsetSkins; 
	int offsetTexCoords; 
	int offsetTris; 
	int offsetFrames; 
	int offsetGLCmds; 
	int offsetEnd; 
}; 
 
#endif