]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - tools/quake2/extra/qe4/qedefs.h
Merge branch 'NateEag-master-patch-12920' into 'master'
[xonotic/netradiant.git] / tools / quake2 / extra / qe4 / qedefs.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 #ifndef __QEDEFS_H__
24 #define __QEDEFS_H__
25
26 #define QE_VERSION  0x0401
27
28 #define QE3_STYLE (WS_OVERLAPPED| WS_CAPTION | WS_THICKFRAME | \
29                 /* WS_MINIMIZEBOX | */ WS_MAXIMIZEBOX  | WS_CLIPSIBLINGS | \
30                 WS_CLIPCHILDREN | WS_CHILD)
31
32 #define QE_AUTOSAVE_INTERVAL  5       // number of minutes between autosaves
33
34 #define CAMERA_WINDOW_CLASS     "QCamera"
35 #define XY_WINDOW_CLASS     "QXY"
36 #define Z_WINDOW_CLASS          "QZ"
37 #define ENT_WINDOW_CLASS        "QENT"
38
39 #define ZWIN_WIDTH      40
40 #define CWIN_SIZE       (0.4)
41
42 #define MAX_EDGES       256
43 #define MAX_POINTS      512
44
45 #define CMD_TEXTUREWAD  60000
46 #define CMD_BSPCOMMAND  61000
47
48 #define PITCH   0
49 #define YAW             1
50 #define ROLL    2
51
52 #define QE_TIMER0   1
53
54 #define PLANE_X         0
55 #define PLANE_Y         1
56 #define PLANE_Z         2
57 #define PLANE_ANYX      3
58 #define PLANE_ANYY      4
59 #define PLANE_ANYZ      5
60
61 #define ON_EPSILON      0.01
62
63 #define KEY_FORWARD             1
64 #define KEY_BACK                2
65 #define KEY_TURNLEFT    4
66 #define KEY_TURNRIGHT   8
67 #define KEY_LEFT                16
68 #define KEY_RIGHT               32
69 #define KEY_LOOKUP              64
70 #define KEY_LOOKDOWN    128
71 #define KEY_UP                  256
72 #define KEY_DOWN                512
73
74 // xy.c
75 #define EXCLUDE_LIGHTS  1
76 #define EXCLUDE_ENT             2
77 #define EXCLUDE_PATHS   4
78 #define EXCLUDE_WATER   8
79 #define EXCLUDE_WORLD   16
80 #define EXCLUDE_CLIP    32
81 #define EXCLUDE_DETAIL  64
82
83
84 //
85 // menu indexes for modifying menus
86 //
87 #define MENU_VIEW               2
88 #define MENU_BSP                4
89 #define MENU_TEXTURE    6
90
91
92 // odd things not in windows header...
93 #define VK_COMMA                188
94 #define VK_PERIOD               190
95
96 /*
97 ** window bits
98 */
99 #define W_CAMERA                0x0001
100 #define W_XY                    0x0002
101 #define W_XY_OVERLAY    0x0004
102 #define W_Z                             0x0008
103 #define W_TEXTURE               0x0010
104 #define W_Z_OVERLAY             0x0020
105 #define W_CONSOLE               0x0040
106 #define W_ENTITY                0x0080
107 #define W_ALL                   0xFFFFFFFF
108
109 #define COLOR_TEXTUREBACK       0
110 #define COLOR_GRIDBACK          1
111 #define COLOR_GRIDMINOR         2
112 #define COLOR_GRIDMAJOR         3
113 #define COLOR_CAMERABACK        4
114 #define COLOR_ENTITY        5
115 #define COLOR_LAST          6
116
117 #endif