overlay.h 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. *** Confidential - Westwood Studios ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : Commando *
  23. * *
  24. * $Archive:: /Commando/Code/Commando/overlay.h $*
  25. * *
  26. * $Author:: Byon_g $*
  27. * *
  28. * $Modtime:: 5/14/01 4:19p $*
  29. * *
  30. * $Revision:: 4 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #ifndef OVERLAY_H
  36. #define OVERLAY_H
  37. #ifndef ALWAYS_H
  38. #include "always.h"
  39. #endif
  40. #ifndef GAMEMODE_H
  41. #include "gamemode.h"
  42. #endif
  43. class CameraClass;
  44. class SimpleSceneClass;
  45. class RenderObjClass;
  46. #define OVERLAY_SCENE OverlayGameModeClass::Scene
  47. #define OVERLAY_CAMERA OverlayGameModeClass::Camera
  48. /*
  49. ** Game Mode to display screen images
  50. */
  51. class OverlayGameModeClass : public GameModeClass {
  52. public:
  53. virtual const char *Name() { return "Overlay"; } // the name of this mode
  54. virtual void Init(); // called when the mode is activated
  55. virtual void Shutdown(); // called when the mode is deactivated
  56. virtual void Think() {} // called each time through the main loop
  57. virtual void Render(); // called each time through the main loop
  58. static SimpleSceneClass * Scene;
  59. static CameraClass * Camera;
  60. };
  61. /*
  62. ** Game Mode to display W3D overlay files
  63. */
  64. class Overlay3DGameModeClass : public GameModeClass {
  65. public:
  66. virtual const char *Name() { return "Overlay3D"; } // the name of this mode
  67. virtual void Init(); // called when the mode is activated
  68. virtual void Shutdown(); // called when the mode is deactivated
  69. virtual void Think(); // called each time through the main loop
  70. virtual void Render(); // called each time through the main loop
  71. void Start_Intro( void );
  72. void Start_End_Screen( void );
  73. private:
  74. void Release_Model( void );
  75. void Set_Model( const char * name, const char * anim_name );
  76. static SimpleSceneClass * Scene;
  77. static CameraClass * Camera;
  78. static RenderObjClass * Model;
  79. static float ModelTimer;
  80. static bool EndScreen;
  81. };
  82. #endif