]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake2/qdata/qdata.h
ported over the 1.5 branch version of q3map2 which is newer
[xonotic/netradiant.git] / tools / quake2 / qdata / qdata.h
1 /*
2 Copyright (C) 1999-2007 id Software, Inc. and contributors.
3 For a list of contributors, see the accompanying CONTRIBUTORS file.
4
5 This file is part of GtkRadiant.
6
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.
11
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.
16
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
20 */
21
22 #include <stdlib.h>
23 #include <stdio.h>
24 #include <math.h>
25 #include <string.h>
26 #include <sys/stat.h>
27
28 #include "cmdlib.h"
29 #include "scriplib.h"
30 #include "mathlib.h"
31 #include "trilib.h"
32 #include "lbmlib.h"
33 #include "q2_threads.h"
34 #include "l3dslib.h"
35 #include "bspfile.h"
36
37 #ifdef WIN32
38         #ifdef NDEBUG                                                   // Don't show in a Release build
39                 #pragma warning(disable : 4305)     // truncate from double to float
40                 #pragma warning(disable : 4244)     // conversion from double to float
41                 #pragma warning(disable : 4018)     // signed/unsigned mismatch
42         #endif
43 #endif
44
45 void Cmd_Modelname (void);
46 void Cmd_Base (void);
47 void Cmd_Cd (void);
48 void Cmd_Origin (void);
49 void Cmd_ScaleUp (void);
50 void Cmd_Frame (void);
51 void Cmd_Modelname (void);
52 void Cmd_Skin (void);
53 void Cmd_Skinsize (void);
54 void FinishModel (void);
55
56 void Cmd_Inverse16Table( void );
57
58 void Cmd_SpriteName (void);
59 void Cmd_Load (void);
60 void Cmd_SpriteFrame (void);
61 void FinishSprite (void);
62
63 void Cmd_Grab (void);
64 void Cmd_Raw (void);
65 void Cmd_Mip (void);
66 void Cmd_Environment (void);
67 void Cmd_Colormap (void);
68
69 void Cmd_File (void);
70 void Cmd_Dir (void);
71 void Cmd_StartWad (void);
72 void Cmd_EndWad (void);
73 void Cmd_Mippal (void);
74 void Cmd_Mipdir (void);
75 void Cmd_Alphalight (void);
76
77 void Cmd_Video (void);
78
79 void RemapZero (byte *pixels, byte *palette, int width, int height);
80
81 void ReleaseFile (char *filename);
82
83 extern  byte            *byteimage, *lbmpalette;
84 extern  int                     byteimagewidth, byteimageheight;
85
86 extern  qboolean        g_release;                      // don't grab, copy output data to new tree
87 extern  char            g_releasedir[1024];     // c:\quake2\baseq2, etc
88 extern  qboolean        g_archive;                      // don't grab, copy source data to new tree
89 extern  qboolean        do3ds;
90 extern  char            g_only[256];            // if set, only grab this cd
91 extern  qboolean        g_skipmodel;            // set true when a cd is not g_only
92
93 extern  char            *trifileext;