precompiled.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*
  2. ===========================================================================
  3. Doom 3 BFG Edition GPL Source Code
  4. Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
  5. This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
  6. Doom 3 BFG Edition 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 BFG Edition 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 BFG Edition Source Code. If not, see <http://www.gnu.org/licenses/>.
  16. In addition, the Doom 3 BFG Edition 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 BFG Edition 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 __PRECOMPILED_H__
  21. #define __PRECOMPILED_H__
  22. #include "sys/sys_defines.h"
  23. #include "sys/sys_builddefines.h"
  24. #include "sys/sys_includes.h"
  25. #include "sys/sys_assert.h"
  26. #include "sys/sys_types.h"
  27. #include "sys/sys_intrinsics.h"
  28. #include "sys/sys_threading.h"
  29. //-----------------------------------------------------
  30. #define ID_TIME_T int64 // Signed because -1 means "File not found" and we don't want that to compare > than any other time
  31. // non-portable system services
  32. #include "../sys/sys_public.h"
  33. // id lib
  34. #include "../idlib/Lib.h"
  35. #include "sys/sys_filesystem.h"
  36. // framework
  37. #include "../framework/BuildVersion.h"
  38. #include "../framework/Licensee.h"
  39. #include "../framework/CmdSystem.h"
  40. #include "../framework/CVarSystem.h"
  41. #include "../framework/Common.h"
  42. #include "../framework/File.h"
  43. #include "../framework/File_Manifest.h"
  44. #include "../framework/File_SaveGame.h"
  45. #include "../framework/File_Resource.h"
  46. #include "../framework/FileSystem.h"
  47. #include "../framework/UsercmdGen.h"
  48. #include "../framework/Serializer.h"
  49. #include "../framework/PlayerProfile.h"
  50. // decls
  51. #include "../framework/TokenParser.h"
  52. #include "../framework/DeclManager.h"
  53. #include "../framework/DeclTable.h"
  54. #include "../framework/DeclSkin.h"
  55. #include "../framework/DeclEntityDef.h"
  56. #include "../framework/DeclFX.h"
  57. #include "../framework/DeclParticle.h"
  58. #include "../framework/DeclAF.h"
  59. #include "../framework/DeclPDA.h"
  60. // We have expression parsing and evaluation code in multiple places:
  61. // materials, sound shaders, and guis. We should unify them.
  62. const int MAX_EXPRESSION_OPS = 4096;
  63. const int MAX_EXPRESSION_REGISTERS = 4096;
  64. // renderer
  65. #include "../renderer/OpenGL/qgl.h"
  66. #include "../renderer/Cinematic.h"
  67. #include "../renderer/Material.h"
  68. #include "../renderer/BufferObject.h"
  69. #include "../renderer/VertexCache.h"
  70. #include "../renderer/Model.h"
  71. #include "../renderer/ModelManager.h"
  72. #include "../renderer/RenderSystem.h"
  73. #include "../renderer/RenderWorld.h"
  74. // sound engine
  75. #include "../sound/sound.h"
  76. // user interfaces
  77. #include "../ui/ListGUI.h"
  78. #include "../ui/UserInterface.h"
  79. #include "../swf/SWF.h"
  80. // collision detection system
  81. #include "../cm/CollisionModel.h"
  82. // AAS files and manager
  83. #include "../aas/AASFile.h"
  84. #include "../aas/AASFileManager.h"
  85. // game
  86. #include "../d3xp/Game.h"
  87. // Session / Network
  88. #include "../sys/LightweightCompression.h"
  89. #include "../sys/Snapshot.h"
  90. #include "../sys/PacketProcessor.h"
  91. #include "../sys/SnapshotProcessor.h"
  92. #include "../sys/sys_savegame.h"
  93. #include "../sys/sys_session_savegames.h"
  94. #include "../sys/sys_profile.h"
  95. #include "../sys/sys_localuser.h"
  96. #include "../sys/sys_signin.h"
  97. #include "../sys/sys_stats_misc.h"
  98. #include "../sys/sys_stats.h"
  99. #include "../sys/sys_session.h"
  100. #include "../sys/sys_achievements.h"
  101. //-----------------------------------------------------
  102. #ifndef _D3SDK
  103. #ifdef GAME_DLL
  104. #include "../d3xp/Game_local.h"
  105. #else
  106. #include "../framework/DemoChecksum.h"
  107. // framework
  108. #include "../framework/Compressor.h"
  109. #include "../framework/EventLoop.h"
  110. #include "../framework/KeyInput.h"
  111. #include "../framework/EditField.h"
  112. #include "../framework/DebugGraph.h"
  113. #include "../framework/Console.h"
  114. #include "../framework/DemoFile.h"
  115. #include "../framework/Common_dialog.h"
  116. #endif /* !GAME_DLL */
  117. #endif /* !_D3SDK */
  118. //-----------------------------------------------------
  119. #undef min
  120. #undef max
  121. #include <algorithm> // for min / max / swap
  122. #endif /* !__PRECOMPILED_H__ */