QEDEFS.H 4.8 KB

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