DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
 
modelgen.h
Go to the documentation of this file.
1/*
2Copyright (C) 1996-1997 Id Software, Inc.
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19*/
20//
21// modelgen.h: header file for model generation program
22//
23
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// *********************************************************
29
30#ifndef MODELGEN_H
31#define MODELGEN_H
32
33#include "qtypes.h"
34
35#define ALIAS_VERSION 6
36
37#define ALIAS_ONSEAM 0x0020
38
39typedef enum aliasframetype_e { ALIAS_SINGLE=0, ALIAS_GROUP } aliasframetype_t;
40
41typedef enum aliasskintype_e { ALIAS_SKIN_SINGLE=0, ALIAS_SKIN_GROUP } aliasskintype_t;
42
61mdl_t;
62
63// TODO: could be shorts
64
65typedef struct stvert_s
66{
67 int onseam;
68 int s;
69 int t;
70}
72
73typedef struct dtriangle_s
74{
76 int vertindex[3];
77}
79
80#define DT_FACES_FRONT 0x0010
81
82// This mirrors trivert_t in trilib.h, is present so Quake knows how to
83// load this data
84
85typedef struct trivertx_s
86{
87 unsigned char v[3];
88 unsigned char lightnormalindex;
89}
91
92typedef struct daliasframe_s
93{
94 trivertx_t bboxmin; // lightnormal isn't used
95 trivertx_t bboxmax; // lightnormal isn't used
96 char name[16]; // frame name from grabbing
97}
99
100typedef struct daliasgroup_s
101{
103 trivertx_t bboxmin; // lightnormal isn't used
104 trivertx_t bboxmax; // lightnormal isn't used
105}
107
108typedef struct daliasskingroup_s
109{
111}
113
114typedef struct daliasinterval_s
115{
116 float interval;
117}
119
120typedef struct daliasskininterval_s
121{
122 float interval;
123}
125
126typedef struct daliasframetype_s
127{
129}
131
132typedef struct daliasskintype_s
133{
135}
137
138#endif
139
const GLdouble * v
Definition glquake.h:762
const GLchar * name
Definition glquake.h:601
aliasframetype_t
Definition modelgen.h:39
@ ALIAS_SINGLE
Definition modelgen.h:39
@ ALIAS_GROUP
Definition modelgen.h:39
aliasskintype_t
Definition modelgen.h:41
@ ALIAS_SKIN_GROUP
Definition modelgen.h:41
@ ALIAS_SKIN_SINGLE
Definition modelgen.h:41
vec_t vec3_t[3]
Definition qtypes.h:71
trivertx_t bboxmin
Definition modelgen.h:94
trivertx_t bboxmax
Definition modelgen.h:95
aliasframetype_t type
Definition modelgen.h:128
trivertx_t bboxmax
Definition modelgen.h:104
trivertx_t bboxmin
Definition modelgen.h:103
aliasskintype_t type
Definition modelgen.h:134
int facesfront
Definition modelgen.h:75
int numskins
Definition modelgen.h:51
vec3_t eyeposition
Definition modelgen.h:50
int version
Definition modelgen.h:46
int numverts
Definition modelgen.h:54
float size
Definition modelgen.h:59
int ident
Definition modelgen.h:45
float boundingradius
Definition modelgen.h:49
vec3_t scale
Definition modelgen.h:47
vec3_t scale_origin
Definition modelgen.h:48
int flags
Definition modelgen.h:58
int synctype
Definition modelgen.h:57
int numtris
Definition modelgen.h:55
int skinwidth
Definition modelgen.h:52
int numframes
Definition modelgen.h:56
int skinheight
Definition modelgen.h:53
int s
Definition modelgen.h:68
int onseam
Definition modelgen.h:67
int t
Definition modelgen.h:69
unsigned char lightnormalindex
Definition modelgen.h:88