2 Copyright (C) 1996-1997 Id Software, Inc.
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 See the GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 // modelgen.h: header file for model generation program
24 // *********************************************************
25 // * This file must be identical in the modelgen directory *
26 // * and in the Quake directory, because it's used to *
27 // * pass data from one to the other via model files. *
28 // *********************************************************
33 #define ALIAS_VERSION 6
35 #define ALIAS_ONSEAM 0x0020
37 typedef enum aliasframetype_e { ALIAS_SINGLE=0, ALIAS_GROUP } aliasframetype_t;
39 typedef enum aliasskintype_e { ALIAS_SKIN_SINGLE=0, ALIAS_SKIN_GROUP } aliasskintype_t;
61 // TODO: could be shorts
63 typedef struct stvert_s
71 typedef struct dtriangle_s
78 #define DT_FACES_FRONT 0x0010
80 // This mirrors trivert_t in trilib.h, is present so Quake knows how to
83 typedef struct trivertx_s
86 unsigned char lightnormalindex;
90 typedef struct daliasframe_s
92 trivertx_t bboxmin; // lightnormal isn't used
93 trivertx_t bboxmax; // lightnormal isn't used
94 char name[16]; // frame name from grabbing
98 typedef struct daliasgroup_s
101 trivertx_t bboxmin; // lightnormal isn't used
102 trivertx_t bboxmax; // lightnormal isn't used
106 typedef struct daliasskingroup_s
112 typedef struct daliasinterval_s
118 typedef struct daliasskininterval_s
122 daliasskininterval_t;
124 typedef struct daliasframetype_s
126 aliasframetype_t type;
130 typedef struct daliasskintype_s
132 aliasskintype_t type;