T3D.inc 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. //-----------------------------------------------------------------------------
  3. // Copyright (c) 2012 GarageGames, LLC
  4. //
  5. // Permission is hereby granted, free of charge, to any person obtaining a copy
  6. // of this software and associated documentation files (the "Software"), to
  7. // deal in the Software without restriction, including without limitation the
  8. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  9. // sell copies of the Software, and to permit persons to whom the Software is
  10. // furnished to do so, subject to the following conditions:
  11. //
  12. // The above copyright notice and this permission notice shall be included in
  13. // all copies or substantial portions of the Software.
  14. //
  15. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  20. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  21. // IN THE SOFTWARE.
  22. //-----------------------------------------------------------------------------
  23. // 3D
  24. addEngineSrcDir('collision');
  25. addEngineSrcDir('interior');
  26. addEngineSrcDir('materials');
  27. addEngineSrcDir('lighting');
  28. addEngineSrcDir('lighting/common');
  29. addEngineSrcDir('renderInstance');
  30. addEngineSrcDir('scene');
  31. addEngineSrcDir('scene/culling');
  32. addEngineSrcDir('scene/zones');
  33. addEngineSrcDir('scene/mixin');
  34. addEngineSrcDir('shaderGen');
  35. addEngineSrcDir('terrain');
  36. addEngineSrcDir('environment');
  37. addEngineSrcDir('forest');
  38. addEngineSrcDir('forest/ts');
  39. addEngineSrcDir('forest/editor');
  40. addEngineSrcDir('ts');
  41. addEngineSrcDir('ts/arch');
  42. addEngineSrcDir('physics');
  43. addEngineSrcDir('gui/3d');
  44. addEngineSrcDir('postFx' );
  45. // 3D game
  46. addEngineSrcDir('T3D');
  47. addEngineSrcDir('T3D/examples');
  48. addEngineSrcDir('T3D/fps');
  49. addEngineSrcDir('T3D/fx');
  50. addEngineSrcDir('T3D/vehicles');
  51. addEngineSrcDir('T3D/physics');
  52. addEngineSrcDir('T3D/decal');
  53. addEngineSrcDir('T3D/sfx');
  54. addEngineSrcDir('T3D/gameBase');
  55. addEngineSrcDir('T3D/turret');
  56. global $TORQUE_HIFI_NET;
  57. if ( $TORQUE_HIFI_NET == true )
  58. {
  59. addProjectDefines( 'TORQUE_HIFI_NET' );
  60. addEngineSrcDir('T3D/gameBase/hifi');
  61. }
  62. else
  63. addEngineSrcDir('T3D/gameBase/std');
  64. // Plstform specific stuff.
  65. switch( Generator::$platform )
  66. {
  67. case "360":
  68. addEngineSrcDir('ts/arch/360');
  69. // Fall through
  70. case "win32":
  71. addEngineSrcDir( 'terrain/hlsl' );
  72. addEngineSrcDir( 'forest/hlsl' );
  73. break;
  74. case "ps3":
  75. addEngineSrcDir('ts/arch/ps3');
  76. // Fall through
  77. case "mac":
  78. addEngineSrcDir( 'terrain/glsl' );
  79. addEngineSrcDir( 'forest/glsl' );
  80. break;
  81. }
  82. ?>