QEDEFS.H 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. #ifndef __QEDEFS_H__
  19. #define __QEDEFS_H__
  20. #define QE_VERSION 0x0501
  21. #define QE3_STYLE (WS_OVERLAPPED | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU | WS_CHILD)
  22. #define QE3_STYLE2 (WS_OVERLAPPED | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_MINIMIZEBOX | WS_THICKFRAME | WS_CAPTION | WS_SYSMENU)
  23. #define QE3_CHILDSTYLE (WS_OVERLAPPED | WS_MINIMIZEBOX | WS_THICKFRAME | WS_CAPTION | WS_VISIBLE | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_MAXIMIZEBOX)
  24. #define QE3_SPLITTER_STYLE (WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS)
  25. #define QE_AUTOSAVE_INTERVAL 5 // number of minutes between autosaves
  26. #define _3DFXCAMERA_WINDOW_CLASS "Q3DFXCamera"
  27. #define CAMERA_WINDOW_CLASS "QCamera"
  28. #define XY_WINDOW_CLASS "QXY"
  29. #define Z_WINDOW_CLASS "QZ"
  30. #define ENT_WINDOW_CLASS "QENT"
  31. #define TEXTURE_WINDOW_CLASS "QTEX"
  32. #define ZWIN_WIDTH 40
  33. #define CWIN_SIZE (0.4)
  34. #define MAX_EDGES 512
  35. //#define MAX_POINTS 1024
  36. #define MAX_POINTS 2048
  37. #define MAX_TERRA_POINTS 4096
  38. #define CMD_TEXTUREWAD 60000
  39. #define CMD_BSPCOMMAND 61000
  40. #define PITCH 0
  41. #define YAW 1
  42. #define ROLL 2
  43. #define QE_TIMER0 1
  44. #define PLANE_X 0
  45. #define PLANE_Y 1
  46. #define PLANE_Z 2
  47. #define PLANE_ANYX 3
  48. #define PLANE_ANYY 4
  49. #define PLANE_ANYZ 5
  50. #define ON_EPSILON 0.01
  51. #define KEY_FORWARD 1
  52. #define KEY_BACK 2
  53. #define KEY_TURNLEFT 4
  54. #define KEY_TURNRIGHT 8
  55. #define KEY_LEFT 16
  56. #define KEY_RIGHT 32
  57. #define KEY_LOOKUP 64
  58. #define KEY_LOOKDOWN 128
  59. #define KEY_UP 256
  60. #define KEY_DOWN 512
  61. // xy.c
  62. #define EXCLUDE_LIGHTS 0x01
  63. #define EXCLUDE_ENT 0x02
  64. #define EXCLUDE_PATHS 0x04
  65. #define EXCLUDE_WATER 0x08
  66. #define EXCLUDE_WORLD 0x10
  67. #define EXCLUDE_CLIP 0x20
  68. #define EXCLUDE_DETAIL 0x40
  69. #define EXCLUDE_CURVES 0x80
  70. #define INCLUDE_EASY 0x100
  71. #define INCLUDE_NORMAL 0x200
  72. #define INCLUDE_HARD 0x400
  73. #define INCLUDE_DEATHMATCH 0x800
  74. #define EXCLUDE_HINT 0x1000
  75. #define EXCLUDE_CAULK 0x2000
  76. #define EXCLUDE_ANGLES 0x4000
  77. #define EXCLUDE_TERRAIN 0x8000
  78. //
  79. // menu indexes for modifying menus
  80. //
  81. #define MENU_VIEW 2
  82. #define MENU_BSP 4
  83. #define MENU_TEXTURE 6
  84. #define MENU_PLUGIN 11
  85. // odd things not in windows header...
  86. #define VK_COMMA 188
  87. #define VK_PERIOD 190
  88. /*
  89. ** window bits
  90. */
  91. //++timo moved to qertypes.h
  92. // clean
  93. /*
  94. #define W_CAMERA 0x0001
  95. #define W_XY 0x0002
  96. #define W_XY_OVERLAY 0x0004
  97. #define W_Z 0x0008
  98. #define W_TEXTURE 0x0010
  99. #define W_Z_OVERLAY 0x0020
  100. #define W_CONSOLE 0x0040
  101. #define W_ENTITY 0x0080
  102. #define W_CAMERA_IFON 0x0100
  103. #define W_XZ 0x0200 //--| only used for patch vertex manip stuff
  104. #define W_YZ 0x0400 //--|
  105. #define W_ALL 0xFFFFFFFF
  106. */
  107. #define COLOR_TEXTUREBACK 0
  108. #define COLOR_GRIDBACK 1
  109. #define COLOR_GRIDMINOR 2
  110. #define COLOR_GRIDMAJOR 3
  111. #define COLOR_CAMERABACK 4
  112. #define COLOR_ENTITY 5
  113. #define COLOR_GRIDBLOCK 6
  114. #define COLOR_GRIDTEXT 7
  115. #define COLOR_BRUSHES 8
  116. #define COLOR_SELBRUSHES 9
  117. #define COLOR_CLIPPER 10
  118. #define COLOR_VIEWNAME 11
  119. #define COLOR_LAST 12
  120. // classes
  121. #define ENTITY_WIREFRAME 0x00001
  122. #define ENTITY_SKIN_MODEL 0x00010
  123. #define ENTITY_SELECTED_ONLY 0x00100
  124. #define ENTITY_BOXED 0x01000
  125. // menu settings
  126. #define ENTITY_BOX 0x01000
  127. #define ENTITY_WIRE 0x00001
  128. #define ENTITY_SELECTED 0x00101
  129. #define ENTITY_SKINNED 0x00010
  130. #define ENTITY_SKINNED_BOXED 0x01010
  131. #define ENTITY_SELECTED_SKIN 0x00110
  132. #endif