]> git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake2/extra/qdata/qdata.h
Partial OSX support
[xonotic/netradiant.git] / tools / quake2 / extra / qdata / qdata.h
1 /*
2 ===========================================================================
3 Copyright (C) 1997-2006 Id Software, Inc.
4
5 This file is part of Quake 2 Tools source code.
6
7 Quake 2 Tools source code is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the License,
10 or (at your option) any later version.
11
12 Quake 2 Tools source code is distributed in the hope that it will be
13 useful, 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.
16
17 You should have received a copy of the GNU General Public License
18 along with Quake 2 Tools source code; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20 ===========================================================================
21 */
22
23 // qdata.h
24
25
26 #include <cstdlib>
27 #include <stdio.h>
28 #include <math.h>
29 #include <string.h>
30 #include <sys/stat.h>
31
32 #include "cmdlib.h"
33 #include "scriplib.h"
34 #include "mathlib.h"
35 #include "trilib.h"
36 #include "lbmlib.h"
37 #include "threads.h"
38 #include "l3dslib.h"
39 #include "bspfile.h"
40
41 void Cmd_Modelname (void);
42 void Cmd_Base (void);
43 void Cmd_Cd (void);
44 void Cmd_Origin (void);
45 void Cmd_ScaleUp (void);
46 void Cmd_Frame (void);
47 void Cmd_Modelname (void);
48 void Cmd_Skin (void);
49 void Cmd_Skinsize (void);
50 void FinishModel (void);
51
52 void Cmd_Inverse16Table( void );
53
54 void Cmd_SpriteName (void);
55 void Cmd_Load (void);
56 void Cmd_SpriteFrame (void);
57 void FinishSprite (void);
58
59 void Cmd_Grab (void);
60 void Cmd_Raw (void);
61 void Cmd_Mip (void);
62 void Cmd_Environment (void);
63 void Cmd_Colormap (void);
64
65 void Cmd_File (void);
66 void Cmd_Dir (void);
67 void Cmd_StartWad (void);
68 void Cmd_EndWad (void);
69 void Cmd_Mippal (void);
70 void Cmd_Mipdir (void);
71 void Cmd_Alphalight (void);
72
73 void Cmd_Video (void);
74
75 void RemapZero (byte *pixels, byte *palette, int width, int height);
76
77 void ReleaseFile (char *filename);
78
79 extern  byte            *byteimage, *lbmpalette;
80 extern  int                     byteimagewidth, byteimageheight;
81
82 extern  qboolean        g_release;                      // don't grab, copy output data to new tree
83 extern  char            g_releasedir[1024];     // c:\quake2\baseq2, etc
84 extern  qboolean        g_archive;                      // don't grab, copy source data to new tree
85 extern  qboolean        do3ds;
86 extern  char            g_only[256];            // if set, only grab this cd
87 extern  qboolean        g_skipmodel;            // set true when a cd is not g_only
88
89 extern  char            *trifileext;