]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - radiant/qedefs.h
more eol-style
[xonotic/netradiant.git] / radiant / qedefs.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 #ifndef __QEDEFS_H__
23 #define __QEDEFS_H__
24
25 #define _3DFXCAMERA_WINDOW_CLASS        "Q3DFXCamera"
26 #define CAMERA_WINDOW_CLASS     "QCamera"
27 #define XY_WINDOW_CLASS     "QXY"
28 #define Z_WINDOW_CLASS          "QZ"
29 #define ENT_WINDOW_CLASS        "QENT"
30 #define TEXTURE_WINDOW_CLASS    "QTEX"
31
32 #define ZWIN_WIDTH      40
33 #define CWIN_SIZE       (0.4)
34
35 #define MAX_EDGES       512
36 #define MAX_POINTS      1024
37
38 #define CMD_TEXTUREWAD  60000
39 #define CMD_BSPCOMMAND  61000
40
41 #define PITCH   0
42 #define YAW             1
43 #define ROLL    2
44
45 #define QE_TIMER0   1
46
47 #define PLANE_X         0
48 #define PLANE_Y         1
49 #define PLANE_Z         2
50 #define PLANE_ANYX      3
51 #define PLANE_ANYY      4
52 #define PLANE_ANYZ      5
53
54 #define ON_EPSILON      0.01
55
56 #define KEY_FORWARD             1
57 #define KEY_BACK                2
58 #define KEY_TURNLEFT    4
59 #define KEY_TURNRIGHT   8
60 #define KEY_LEFT                16
61 #define KEY_RIGHT               32
62 #define KEY_LOOKUP              64
63 #define KEY_LOOKDOWN    128
64 #define KEY_UP                  256
65 #define KEY_DOWN                512
66
67 // xy.c
68 #define EXCLUDE_WORLD           0x00000001
69 #define EXCLUDE_ENT             0x00000002
70 #define EXCLUDE_CURVES          0x00000004
71 #define EXCLUDE_TRANSLUCENT     0x00000008
72 #define EXCLUDE_LIQUIDS         0x00000010
73 #define EXCLUDE_CAULK           0x00000020
74 #define EXCLUDE_CLIP            0x00000040
75 #define EXCLUDE_PATHS           0x00000080
76 #define EXCLUDE_LIGHTS          0x00000100
77 #define EXCLUDE_DETAILS         0x00000200
78 #define EXCLUDE_HINTSSKIPS      0x00000400
79 #define EXCLUDE_MODELS          0x00000800
80 #define EXCLUDE_AREAPORTALS     0x00001000
81 #define EXCLUDE_TRIGGERS        0x00002000
82 #define EXCLUDE_CLUSTERPORTALS  0x00004000
83 #define EXCLUDE_TERRAIN         0x00008000
84 #define EXCLUDE_LIGHTGRID       0x00010000
85 #define EXCLUDE_STRUCTURAL      0x00020000
86 #define EXCLUDE_BOTCLIP               0x00040000
87
88 #define INCLUDE_EASY            0x00000001
89 #define INCLUDE_NORMAL          0x00000002
90 #define INCLUDE_HARD            0x00000004
91 #define INCLUDE_DEATHMATCH      0x00000008
92 #define INCLUDE_NAMES           0x00000010
93 #define INCLUDE_COORDS          0x00000020
94 #define INCLUDE_BLOCKS          0x00000040
95 #define INCLUDE_ANGLES          0x00000080
96 #define INCLUDE_PATCHBBOXES     0x00000100
97 #define INCLUDE_PATCHWIREFRAME  0x00000200
98 #define INCLUDE_CAMERATINT      0x00000400
99 #define INCLUDE_MODELBOXONLY    0x00000800
100
101 //
102 // menu indexes for modifying menus
103 //
104 #define MENU_VIEW               2
105 #define MENU_BSP                4
106 #define MENU_TEXTURE    6
107 #define MENU_PLUGIN     11
108
109 // odd things not in windows header...
110 #define VK_COMMA                188
111 #define VK_PERIOD               190
112
113 // ShowEntitiesAs flags
114 // used in camera code, not menus
115 #define ENTITY_WIREFRAME                0x00001
116 #define ENTITY_SKIN_MODEL               0x00010
117 #define ENTITY_SELECTED_ONLY    0x00100
118 #define ENTITY_BOXED                    0x01000
119
120 // ShowEntitiesAs menu settings .. combinations of the above settings
121 #define ENTITY_BOX                              0x01000
122 #define ENTITY_WIRE                             0x00001
123 #define ENTITY_SELECTED                 0x00101
124 #define ENTITY_SKINNED                  0x00010
125 #define ENTITY_SKINNED_BOXED    0x01010
126 #define ENTITY_SELECTED_SKIN    0x00110
127
128 #endif