You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structmdl_header_t
{
intident; /* magic number: "IDPO" */intversion; /* version: 6 */vec3_tscale; /* scale factor */vec3_ttranslate; /* translation vector */floatboundingradius;
vec3_teyeposition; /* eyes' position */intnum_skins; /* number of textures */intskinwidth; /* texture width */intskinheight; /* texture height */intnum_verts; /* number of vertices */intnum_tris; /* number of triangles */intnum_frames; /* number of frames */intsynctype; /* 0 = synchron, 1 = random */intflags; /* state flag */floatsize;
intnumstverts; /* only present in Hexen II expansion pack mdl files */
};
Skin
structmdl_skin_t
{
intgroup; /* 0 = single, 1 = group */GLubyte*data; /* texture data */
};
Group of skins
structmdl_groupskin_t
{
intgroup; /* 1 = group */intnb; /* number of pics */float*time; /* time duration for each pic */ubyte**data; /* texture data */
};
structmdl_simpleframe_t
{
structmdl_vertex_tbboxmin; /* bouding box min */structmdl_vertex_tbboxmax; /* bouding box max */charname[16];
structmdl_vertex_t*verts; /* vertex list of the frame */
};
Group of simple frames
structmdl_groupframe_t
{
inttype; /* !0 = group */structmdl_vertex_tmin; /* min pos in all simple frames */structmdl_vertex_tmax; /* max pos in all simple frames */float*time; /* time duration for each frame */structmdl_simpleframe_t*frames; /* simple frame list */
};