screenfademanager.h 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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 : Combat *
  23. * *
  24. * $Archive:: /Commando/Code/Combat/screenfademanager.h $*
  25. * *
  26. * Original Author:: Greg Hjelstrom *
  27. * *
  28. * $Author:: Byon_g $*
  29. * *
  30. * $Modtime:: 1/17/02 12:08p $*
  31. * *
  32. * $Revision:: 3 $*
  33. * *
  34. *---------------------------------------------------------------------------------------------*
  35. * Functions: *
  36. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  37. #if defined(_MSC_VER)
  38. #pragma once
  39. #endif
  40. #ifndef SCREENFADEMANAGER_H
  41. #define SCREENFADEMANAGER_H
  42. #include "always.h"
  43. class Vector3;
  44. class ChunkSaveClass;
  45. class ChunkLoadClass;
  46. /**
  47. ** ScreenFadeManager
  48. ** This class renders letterbox polys and full-screen "tint" polys. It should get to
  49. ** think once per frame and get rendered last.
  50. */
  51. class ScreenFadeManager
  52. {
  53. public:
  54. /*
  55. ** Infrastructure
  56. */
  57. static void Init();
  58. static void Shutdown();
  59. static void Think();
  60. static void Render();
  61. static bool Save( ChunkSaveClass & csave );
  62. static bool Load( ChunkLoadClass & cload );
  63. /*
  64. ** Interface for controlling the overlay effects
  65. */
  66. static void Enable_Letterbox(bool onoff, float time = 1.0f);
  67. static void Set_Screen_Overlay_Color(const Vector3 & color,float time = 0.0f);
  68. static void Set_Screen_Overlay_Color(float r,float g, float b,float time = 0.0f);
  69. static void Set_Screen_Overlay_Opacity(float opacity,float time = 0.0f);
  70. };
  71. #endif //SCREENFADEMANAGER_H