]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/tools/radiant/QEDEFS.H
hello world
[icculus/iodoom3.git] / neo / tools / radiant / QEDEFS.H
1 /*
2 ===========================================================================
3
4 Doom 3 GPL Source Code
5 Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company. 
6
7 This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).  
8
9 Doom 3 Source Code is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 Doom 3 Source Code is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with Doom 3 Source Code.  If not, see <http://www.gnu.org/licenses/>.
21
22 In addition, the Doom 3 Source Code is also subject to certain additional terms. You should have received a copy of these additional terms immediately following the terms and conditions of the GNU General Public License which accompanied the Doom 3 Source Code.  If not, please request a copy in writing from id Software at the address below.
23
24 If you have questions concerning this license or the applicable additional terms, you may contact in writing id Software LLC, c/o ZeniMax Media Inc., Suite 120, Rockville, Maryland 20850 USA.
25
26 ===========================================================================
27 */
28 #ifndef __QEDEFS_H__
29 #define __QEDEFS_H__
30
31 #define QE_VERSION  0x0501
32
33 #define QE3_STYLE (WS_OVERLAPPED | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU | WS_CHILD)
34 #define QE3_STYLE2 (WS_OVERLAPPED | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MINIMIZEBOX | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU)
35 #define QE3_CHILDSTYLE (WS_OVERLAPPED | WS_MINIMIZEBOX | WS_THICKFRAME | WS_CAPTION | WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_MAXIMIZEBOX)
36
37 #define QE3_SPLITTER_STYLE (WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS)
38
39
40
41 #define QE_AUTOSAVE_INTERVAL  5       // number of minutes between autosaves
42
43 #define _3DFXCAMERA_WINDOW_CLASS        "Q3DFXCamera"
44 #define CAMERA_WINDOW_CLASS     "QCamera"
45 #define XY_WINDOW_CLASS     "QXY"
46 #define Z_WINDOW_CLASS          "QZ"
47 #define ENT_WINDOW_CLASS        "QENT"
48 #define TEXTURE_WINDOW_CLASS    "QTEX"
49
50 #define ZWIN_WIDTH      40
51 #define CWIN_SIZE       (0.4)
52
53 #define MAX_EDGES       512
54 #define MAX_POINTS      1024
55
56 #define CMD_TEXTUREWAD  60000
57 #define CMD_BSPCOMMAND  61000
58
59 #define PITCH   0
60 #define YAW             1
61 #define ROLL    2
62
63 #define QE_TIMER0   1
64 #define QE_TIMER1   2
65
66 #define PLANE_X         0
67 #define PLANE_Y         1
68 #define PLANE_Z         2
69 #define PLANE_ANYX      3
70 #define PLANE_ANYY      4
71 #define PLANE_ANYZ      5
72
73 // #define      ON_EPSILON      0.01
74
75 #define KEY_FORWARD             1
76 #define KEY_BACK                2
77 #define KEY_TURNLEFT    4
78 #define KEY_TURNRIGHT   8
79 #define KEY_LEFT                16
80 #define KEY_RIGHT               32
81 #define KEY_LOOKUP              64
82 #define KEY_LOOKDOWN    128
83 #define KEY_UP                  256
84 #define KEY_DOWN                512
85
86 // xy.c
87 #define EXCLUDE_LIGHTS          0x00000001
88 #define EXCLUDE_ENT                     0x00000002
89 #define EXCLUDE_PATHS           0x00000004
90 #define EXCLUDE_DYNAMICS        0x00000008
91 #define EXCLUDE_WORLD           0x00000010
92 #define EXCLUDE_CLIP            0x00000020
93 //#define       EXCLUDE_DETAIL          0x00000040
94 #define EXCLUDE_CURVES          0x00000080
95 #define INCLUDE_EASY            0x00000100
96 #define INCLUDE_NORMAL          0x00000200
97 #define INCLUDE_HARD            0x00000400
98 #define INCLUDE_DEATHMATCH      0x00000800
99 #define EXCLUDE_HINT            0x00001000
100 #define EXCLUDE_CAULK           0x00002000
101 #define EXCLUDE_ANGLES          0x00004000
102 #define EXCLUDE_VISPORTALS      0x00008000
103 #define EXCLUDE_NODRAW          0x00010000
104 #define EXCLUDE_COMBATNODES     0x00020000
105 #define EXCLUDE_TRIGGERS        0x00040000
106 // _D3XP
107 #define EXCLUDE_MODELS          0x00080000
108
109
110 //
111 // menu indexes for modifying menus
112 //
113 #define MENU_VIEW               2
114 #define MENU_BSP                4
115 #define MENU_TEXTURE    6
116 #define MENU_PLUGIN     11
117
118
119 // odd things not in windows header...
120 #define VK_COMMA                188
121 #define VK_PERIOD               190
122
123 /*
124 ** window bits
125 */
126 //++timo moved to qertypes.h
127 // clean
128 /*
129 #define W_CAMERA                  0x0001
130 #define W_XY                        0x0002
131 #define W_XY_OVERLAY    0x0004
132 #define W_Z                                 0x0008
133 #define W_TEXTURE                 0x0010
134 #define W_Z_OVERLAY             0x0020
135 #define W_CONSOLE                 0x0040
136 #define W_ENTITY                  0x0080
137 #define W_CAMERA_IFON 0x0100
138 #define W_XZ          0x0200  //--| only used for patch vertex manip stuff
139 #define W_YZ          0x0400  //--|
140 #define W_ALL                   0xFFFFFFFF
141 */
142
143 enum {
144         COLOR_TEXTUREBACK,
145         COLOR_GRIDBACK,
146         COLOR_GRIDMINOR,
147         COLOR_GRIDMAJOR,
148         COLOR_CAMERABACK,
149         COLOR_ENTITY,
150         COLOR_GRIDBLOCK,
151         COLOR_GRIDTEXT,
152         COLOR_BRUSHES,
153         COLOR_SELBRUSHES,
154         COLOR_CLIPPER,
155         COLOR_VIEWNAME,
156         COLOR_PRECISION_CROSSHAIR,
157         COLOR_LAST
158 };
159
160 // classes
161 #define ENTITY_WIREFRAME                0x00001
162 #define ENTITY_SKIN_MODEL               0x00010
163 #define ENTITY_SELECTED_ONLY    0x00100
164 #define ENTITY_BOXED                    0x01000
165
166 // menu settings
167 #define ENTITY_WIRE                             0x00001
168 #define ENTITY_SKINNED                  0x00002
169
170
171 #endif