31 #include "../shared/defines.h" 33 #define IDMDXHEADER "UFOMDX" 40 #define IDALIASHEADER (('2'<<24)+('P'<<16)+('D'<<8)+'I') 41 #define IDTAGHEADER (('2'<<24)+('P'<<16)+('D'<<8)+'J') 42 #define MD2_ALIAS_VERSION 8 45 #define MD2_MAX_TRIANGLES 4096 46 #define MD2_MAX_VERTS 2048 47 #define MD2_MAX_FRAMES 1024 48 #define MD2_MAX_SKINS 32 49 #define MD2_MAX_SKINNAME 64 50 #define MD2_MAX_TAGNAME 64 63 uint16_t index_verts[3];
90 typedef struct dAliasFrame_s {
159 #define IDMD3HEADER (('3'<<24)+('P'<<16)+('D'<<8)+'I') 161 #define MD3_ALIAS_VERSION 15 162 #define MD3_ALIAS_MAX_LODS 4 164 #define MD3_MAX_TRIANGLES 8192 165 #define MD3_MAX_VERTS 4096 166 #define MD3_MAX_SHADERS 256 167 #define MD3_MAX_FRAMES 1024 168 #define MD3_MAX_MESHES 32 169 #define MD3_MAX_TAGS 16 170 #define MD3_MAX_PATH 64 173 #define MD3_XYZ_SCALE (1.0f/64.0f) 251 #define IDBSPHEADER (('P'<<24)+('S'<<16)+('B'<<8)+'I') 253 #define BSPVERSION 79 269 #define BSP_SwapHeader(header, name) { \ 271 (header)->ident = LittleLong((header)->ident); \ 272 (header)->version = LittleLong((header)->version); \ 273 for (i = 0; i < HEADER_LUMPS; i++) { \ 274 lump_t* l = &(header)->lumps[i]; \ 275 l->filelen = LittleLong(l->filelen); \ 276 l->fileofs = LittleLong(l->fileofs); \ 277 if (l->fileofs == (uint32_t) -1) \ 278 Sys_Error("Invalid bsp header found (lump overflow %i): '%s'", i, (name)); \
is a variable sized structure, however all frame_t structures within the same file will have the same...
static const vec3_t scale
These two shorts are used to map a vertex onto a skin The horizontal axis position is given by s...
Tag file header structure - 32 byte A tag for a model must have the same amount of frames as the mode...
Directory of the different data blocks.
the glcmd format: a positive integer starts a tristrip command, followed by that many vertex structur...
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
QGL_EXTERN int GLboolean GLfloat * v