Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

QEDEFS.H (4465B)


      1 /*
      2 ===========================================================================
      3 Copyright (C) 1999-2005 Id Software, Inc.
      4 
      5 This file is part of Quake III Arena source code.
      6 
      7 Quake III Arena 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 III Arena 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 Foobar; 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 QE_VERSION  0x0501
     26 
     27 #define QE3_STYLE (WS_OVERLAPPED | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU | WS_CHILD)
     28 #define QE3_STYLE2 (WS_OVERLAPPED | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MINIMIZEBOX | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU)
     29 #define QE3_CHILDSTYLE (WS_OVERLAPPED | WS_MINIMIZEBOX | WS_THICKFRAME | WS_CAPTION | WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_MAXIMIZEBOX)
     30 
     31 #define QE3_SPLITTER_STYLE (WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS)
     32 
     33 
     34 
     35 #define QE_AUTOSAVE_INTERVAL  5       // number of minutes between autosaves
     36 
     37 #define	_3DFXCAMERA_WINDOW_CLASS	"Q3DFXCamera"
     38 #define	CAMERA_WINDOW_CLASS	"QCamera"
     39 #define	XY_WINDOW_CLASS	    "QXY"
     40 #define	Z_WINDOW_CLASS   	"QZ"
     41 #define	ENT_WINDOW_CLASS	"QENT"
     42 #define	TEXTURE_WINDOW_CLASS	"QTEX"
     43 
     44 #define	ZWIN_WIDTH	40
     45 #define CWIN_SIZE	(0.4)
     46 
     47 #define	MAX_EDGES	512
     48 //#define	MAX_POINTS	1024
     49 #define	MAX_POINTS	2048
     50 
     51 #define	MAX_TERRA_POINTS 4096
     52 
     53 #define	CMD_TEXTUREWAD	60000
     54 #define	CMD_BSPCOMMAND	61000
     55 
     56 #define	PITCH	0
     57 #define	YAW		1
     58 #define	ROLL	2
     59 
     60 #define QE_TIMER0   1
     61 
     62 #define	PLANE_X		0
     63 #define	PLANE_Y		1
     64 #define	PLANE_Z		2
     65 #define	PLANE_ANYX	3
     66 #define	PLANE_ANYY	4
     67 #define	PLANE_ANYZ	5
     68 
     69 #define	ON_EPSILON	0.01
     70 
     71 #define	KEY_FORWARD		1
     72 #define	KEY_BACK		2
     73 #define	KEY_TURNLEFT	4
     74 #define	KEY_TURNRIGHT	8
     75 #define	KEY_LEFT		16
     76 #define	KEY_RIGHT		32
     77 #define	KEY_LOOKUP		64
     78 #define	KEY_LOOKDOWN	128
     79 #define	KEY_UP			256
     80 #define	KEY_DOWN		512
     81 
     82 // xy.c
     83 #define EXCLUDE_LIGHTS	     0x01
     84 #define EXCLUDE_ENT		       0x02
     85 #define EXCLUDE_PATHS	       0x04
     86 #define EXCLUDE_WATER	       0x08
     87 #define EXCLUDE_WORLD	       0x10
     88 #define EXCLUDE_CLIP	       0x20
     89 #define	EXCLUDE_DETAIL	     0x40
     90 #define	EXCLUDE_CURVES	     0x80
     91 #define	INCLUDE_EASY	      0x100
     92 #define	INCLUDE_NORMAL	    0x200
     93 #define	INCLUDE_HARD	      0x400
     94 #define	INCLUDE_DEATHMATCH	0x800
     95 #define EXCLUDE_HINT	     0x1000
     96 #define EXCLUDE_CAULK      0x2000
     97 #define EXCLUDE_ANGLES     0x4000
     98 #define EXCLUDE_TERRAIN    0x8000
     99 
    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 
    110 // odd things not in windows header...
    111 #define	VK_COMMA		188
    112 #define	VK_PERIOD		190
    113 
    114 /*
    115 ** window bits
    116 */
    117 //++timo moved to qertypes.h
    118 // clean
    119 /*
    120 #define	W_CAMERA		  0x0001
    121 #define	W_XY			    0x0002
    122 #define	W_XY_OVERLAY	0x0004
    123 #define	W_Z				    0x0008
    124 #define	W_TEXTURE		  0x0010
    125 #define	W_Z_OVERLAY		0x0020
    126 #define W_CONSOLE		  0x0040
    127 #define W_ENTITY		  0x0080
    128 #define W_CAMERA_IFON 0x0100
    129 #define W_XZ          0x0200  //--| only used for patch vertex manip stuff
    130 #define W_YZ          0x0400  //--|
    131 #define	W_ALL			0xFFFFFFFF
    132 */
    133 
    134 #define	COLOR_TEXTUREBACK	0
    135 #define	COLOR_GRIDBACK		1
    136 #define	COLOR_GRIDMINOR		2
    137 #define	COLOR_GRIDMAJOR		3
    138 #define	COLOR_CAMERABACK	4
    139 #define COLOR_ENTITY      5
    140 #define COLOR_GRIDBLOCK   6
    141 #define COLOR_GRIDTEXT    7
    142 #define COLOR_BRUSHES     8
    143 #define COLOR_SELBRUSHES  9
    144 #define COLOR_CLIPPER     10
    145 #define COLOR_VIEWNAME    11
    146 #define COLOR_LAST        12
    147 
    148 // classes
    149 #define ENTITY_WIREFRAME		0x00001
    150 #define ENTITY_SKIN_MODEL		0x00010
    151 #define ENTITY_SELECTED_ONLY	0x00100
    152 #define ENTITY_BOXED			0x01000
    153 
    154 // menu settings
    155 #define ENTITY_BOX				0x01000
    156 #define ENTITY_WIRE				0x00001
    157 #define ENTITY_SELECTED			0x00101
    158 #define ENTITY_SKINNED 			0x00010
    159 #define ENTITY_SKINNED_BOXED	0x01010
    160 #define ENTITY_SELECTED_SKIN	0x00110
    161 
    162 
    163 
    164 #endif