_GLOBALS.H 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. /* $Header: /Commando/Code/Tests/MeshTest/_GLOBALS.H 5 5/01/98 11:04a Greg_h $ */
  19. /***********************************************************************************************
  20. *** Confidential - Westwood Studios ***
  21. ***********************************************************************************************
  22. * *
  23. * Project Name : Commando *
  24. * *
  25. * $Archive:: /Commando/Code/Tests/MeshTest/_GLOBALS.H $*
  26. * *
  27. * $Author:: Greg_h $*
  28. * *
  29. * $Modtime:: 4/30/98 2:33p $*
  30. * *
  31. * $Revision:: 5 $*
  32. * *
  33. *---------------------------------------------------------------------------------------------*
  34. * Functions: *
  35. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  36. #ifndef _GLOBALS_H
  37. #define _GLOBALS_H
  38. #ifndef ALWAYS_H
  39. #include "always.h"
  40. #endif
  41. #ifndef KEYBOARD_H
  42. #include "keyboard.h"
  43. #endif
  44. #ifndef XMOUSE_H
  45. #include "xmouse.h"
  46. #endif
  47. #ifndef STIMER_H
  48. #include "stimer.h"
  49. #endif
  50. extern bool GameInFocus;
  51. extern Mouse * MouseCursor;
  52. extern WWKeyboardClass * Keyboard;
  53. extern int Argc;
  54. extern char * Argv[20];
  55. #if 0
  56. // 60 Hz Timer
  57. extern SystemTimerClass SystemTimer;
  58. #define SYSTEM_TIMER_RATE TIMER_SECOND
  59. #else
  60. // 1 KHz Timer
  61. #define SystemTimer() (int)timeGetTime()
  62. #define SYSTEM_TIMER_RATE 1000
  63. #endif
  64. #endif