2 Copyright (C) 1999-2006 Id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
5 This file is part of GtkRadiant.
7 GtkRadiant is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 GtkRadiant is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GtkRadiant; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 #if !defined( INCLUDED_MDLFORMAT_H )
23 #define INCLUDED_MDLFORMAT_H
25 typedef unsigned char byte;
27 const unsigned char MDL_IDENT[4] = { 'I', 'D', 'P', 'O', };
31 #define MDL_ONSEAM 0x0020
33 typedef enum { MDL_FRAME_SINGLE = 0, MDL_FRAME_GROUP } aliasframetype_t;
35 typedef enum { MDL_SKIN_SINGLE = 0, MDL_SKIN_GROUP } aliasskintype_t;
37 typedef float float3[3];
57 // TODO: could be shorts
65 typedef struct dtriangle_s {
70 #define MDL_FACES_FRONT 1
72 // This mirrors trivert_t in trilib.h, is present so Quake knows how to
77 byte lightnormalindex;
80 const int MDL_XYZNORMAL_SIZE = 4;
83 mdlXyzNormal_t bboxmin; // lightnormal isn't used
84 mdlXyzNormal_t bboxmax; // lightnormal isn't used
85 char name[16]; // frame name from grabbing
88 const int MDL_FRAME_SIZE = ( MDL_XYZNORMAL_SIZE * 2 ) + 16;
92 mdlXyzNormal_t bboxmin; // lightnormal isn't used
93 mdlXyzNormal_t bboxmax; // lightnormal isn't used
96 const int MDL_FRAMEGROUP_SIZE = 4 + ( MDL_XYZNORMAL_SIZE * 2 );
104 } mdlFrameInterval_t;
111 aliasframetype_t type;
115 aliasskintype_t type;