2 ===========================================================================
3 Copyright (C) 1997-2006 Id Software, Inc.
5 This file is part of Quake 2 Tools source code.
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.
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.
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 ===========================================================================
36 extern HINSTANCE main_instance;
40 extern HWND mainwindow;
41 extern HWND camerawindow;
42 extern HWND palettewindow;
43 extern HWND skinwindow;
45 extern int screen_width, screen_height;
47 #define QE3_STYLE (WS_OVERLAPPED| WS_CAPTION | WS_THICKFRAME | \
48 /* WS_MINIMIZEBOX | */ WS_MAXIMIZEBOX | WS_CLIPSIBLINGS | \
49 WS_CLIPCHILDREN | WS_CHILD)
51 extern byte pic[1024*512];
52 extern unsigned rgb[1024*512];
53 extern unsigned index_texture[1024*512];
54 extern byte palette[768];
56 extern triangle_t *faces;
58 extern float tmcoords[10000][3][2];
60 extern int skinwidth, skinheight;
61 extern int picwidth, picheight;
62 extern int width, height;
63 extern int iwidth, iheight;
64 extern int width2, height2; // padded to ^2
66 extern char tri_filename[1024];
67 extern char skin_filename[1024];
69 extern int selected_index;
70 extern unsigned selected_rgb;
72 extern qboolean model_lines;
73 extern qboolean skin_lines;
75 extern qboolean modified;
76 extern qboolean modified_past_autosave;
78 #define TEXTURE_SKIN 1
79 #define TEXTURE_INDEX 2
83 #define MODEL_DISPLAYLIST 1
85 typedef void (APIENTRY *BINDTEXFUNCPTR)(GLenum, GLuint);
87 extern BINDTEXFUNCPTR BindTextureEXT;