Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 89 lines (64 sloc) 2.384 kb
707e8491 »
2012-01-31 The Quake 2 tools as originally released under the GPL license.
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 #include "cmdlib.h"
24 #include "mathlib.h"
25 #include "lbmlib.h"
26 #include "trilib.h"
27 #include "l3dslib.h"
28
29 #include <windows.h>
30 #include <GL/gl.h>
31 #include <GL/glu.h>
32 #include <GL/glaux.h>
33 #include "resource.h"
34 #include "afxres.h"
35
36 extern HINSTANCE main_instance;
37
38 extern HGLRC baseRC;
39
40 extern HWND mainwindow;
41 extern HWND camerawindow;
42 extern HWND palettewindow;
43 extern HWND skinwindow;
44
45 extern int screen_width, screen_height;
46
47 #define QE3_STYLE (WS_OVERLAPPED| WS_CAPTION | WS_THICKFRAME | \
48 /* WS_MINIMIZEBOX | */ WS_MAXIMIZEBOX | WS_CLIPSIBLINGS | \
49 WS_CLIPCHILDREN | WS_CHILD)
50
51 extern byte pic[1024*512];
52 extern unsigned rgb[1024*512];
53 extern unsigned index_texture[1024*512];
54 extern byte palette[768];
55
56 extern triangle_t *faces;
57 extern int numfaces;
58 extern float tmcoords[10000][3][2];
59
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
65
66 extern char tri_filename[1024];
67 extern char skin_filename[1024];
68
69 extern int selected_index;
70 extern unsigned selected_rgb;
71
72 extern qboolean model_lines;
73 extern qboolean skin_lines;
74
75 extern qboolean modified;
76 extern qboolean modified_past_autosave;
77
78 #define TEXTURE_SKIN 1
79 #define TEXTURE_INDEX 2
80
81 #define MENU_VIEW 2
82
83 #define MODEL_DISPLAYLIST 1
84
85 typedef void (APIENTRY *BINDTEXFUNCPTR)(GLenum, GLuint);
86
87 extern BINDTEXFUNCPTR BindTextureEXT;
88
Something went wrong with that request. Please try again.