torqueConfig.h 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2013 GarageGames, LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to
  6. // deal in the Software without restriction, including without limitation the
  7. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. // sell copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. // IN THE SOFTWARE.
  21. //-----------------------------------------------------------------------------
  22. #ifndef _TORQUECONFIG_H_
  23. #define _TORQUECONFIG_H_
  24. //-----------------------------------------------------------------------------
  25. /// Version number is major * 1000 + minor * 100 + revision * 10.
  26. #define TORQUE_GAME_ENGINE 1000
  27. /// What's the name of your game? Used in a variety of places.
  28. #define TORQUE_GAME_NAME "Torque 2D 4.0: Rocket Edition"
  29. /// Human readable version string.
  30. #define TORQUE_GAME_VERSION_STRING "Open Source"
  31. //-----------------------------------------------------------------------------
  32. /// DSO version.
  33. #define DSO_VERSION (U32(Con::DSOVersion))
  34. //-----------------------------------------------------------------------------
  35. /// Used to suppress unused compiler warnings.
  36. #define TORQUE_UNUSED( arg )
  37. //-----------------------------------------------------------------------------
  38. /// Profiler macros used when the profiler is disabled.
  39. #define PROFILE_START(name) TORQUE_UNUSED(#name)
  40. #define PROFILE_END()
  41. #define PROFILE_SCOPE(name) TORQUE_UNUSED(#name)
  42. //-----------------------------------------------------------------------------
  43. /// The following pre-processor definitions should be added to your compiler command-line
  44. /// if you required their respective functionality:
  45. ///
  46. /// 'TORQUE_DEBUG'
  47. /// Should be associated with a compiler un-optimized build. Typically produces more
  48. /// diagnostic engine output such as warnings/errors to the console.
  49. ///
  50. /// 'TORQUE_RELEASE'
  51. /// Should be associated with a compiler optimized build. Typically produces less
  52. /// diagnostic engine output than the 'TORQUE_DEBUG' build.
  53. ///
  54. /// 'TORQUE_SHIPPING'
  55. /// Should be associated with a compiler optimized build that you intend to ship.
  56. /// Typically produces only the output that is useful (and available) for the
  57. /// end-user to report.
  58. ///
  59. /// 'TORQUE_UNICODE'
  60. /// When defined, enables unicode support.
  61. ///
  62. /// 'TORQUE_ENABLE_PROFILER'
  63. /// When defined, Torque will capture performance profiling information that sacrifices
  64. /// a small performance overhead to gain significant diagnostics information.
  65. ///
  66. /// 'TORQUE_DEBUG_NET'
  67. /// When defined, Torque will enabled certain features that enabled diagnostics of
  68. /// its networking sub-system.
  69. ///
  70. /// 'TORQUE_GATHER_METRICS'
  71. /// When defined, Torque will gather additional performance metrics.
  72. ///
  73. /// 'TORQUE_MULTITHREAD'
  74. /// When defined, Torque will attempt to make select systems thread-safe. This does not
  75. /// make the entire engine thread-safe nor is it a magic bullet that will make the engine
  76. /// perform operations in parallel and speed-up the engine.
  77. #endif