visenum.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program 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. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***********************************************************************************************
  19. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : WWPhys *
  23. * *
  24. * $Archive:: /Commando/Code/wwphys/visenum.h $*
  25. * *
  26. * Author:: Greg Hjelstrom *
  27. * *
  28. * $Modtime:: 9/28/00 11:22a $*
  29. * *
  30. * $Revision:: 5 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #if defined(_MSC_VER)
  36. #pragma once
  37. #endif
  38. #ifndef VISENUM_H
  39. #define VISENUM_H
  40. enum VisStatusType
  41. {
  42. VIS_STATUS_OK = 0,
  43. VIS_STATUS_NOT_TAKEN,
  44. VIS_STATUS_ERROR,
  45. VIS_STATUS_BACKFACE_LEAK,
  46. VIS_STATUS_BACKFACE_OVERFLOW,
  47. };
  48. enum VisDirBitsType
  49. {
  50. VIS_FORWARD_BIT = 0x0001, // comptue visibility forward
  51. VIS_LEFT_BIT = 0x0002, // compute visibility left
  52. VIS_BACKWARDS_BIT = 0x0004, // compute visibility behind
  53. VIS_RIGHT_BIT = 0x0008, // compute visibility to the right
  54. VIS_UP_BIT = 0x0010, // compute visibility up
  55. VIS_DOWN_BIT = 0x0020, // compute visiblity down
  56. VIS_FORCE_ACCEPT = 0x0040, // accept this sample no matter what!
  57. VIS_DONT_RECENTER = 0x0080, // don't recenter the view-plane
  58. VIS_ALL = VIS_FORWARD_BIT | VIS_LEFT_BIT | VIS_BACKWARDS_BIT | VIS_RIGHT_BIT | VIS_UP_BIT | VIS_DOWN_BIT,
  59. };
  60. enum VisDirType
  61. {
  62. // direction indices, most functions use these
  63. VIS_FORWARD = 0,
  64. VIS_LEFT,
  65. VIS_BACKWARDS,
  66. VIS_RIGHT,
  67. VIS_UP,
  68. VIS_DOWN,
  69. VIS_DIRECTIONS
  70. };
  71. const float VIS_NEAR_CLIP = 0.2f;
  72. const float VIS_FAR_CLIP = 300.0f;
  73. #endif