2
0

physresourcemgr.h 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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/physresourcemgr.h $*
  25. * *
  26. * Original Author:: Greg Hjelstrom *
  27. * *
  28. * $Author:: Greg_h $*
  29. * *
  30. * $Modtime:: 6/20/01 3:16p $*
  31. * *
  32. * $Revision:: 2 $*
  33. * *
  34. *---------------------------------------------------------------------------------------------*
  35. * Functions: *
  36. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  37. #ifndef PHYSRESOURCEMGR_H
  38. #define PHYSRESOURCEMGR_H
  39. #include "always.h"
  40. #include "shader.h"
  41. class TextureClass;
  42. class VertexMaterialClass;
  43. class MaterialPassClass;
  44. /**
  45. ** PhysResourceMgrClass
  46. ** This class is just a collection of resources that I've ended up needed at one time or another
  47. ** in the physics library. I thought it would be easier to collect them all here so the Init and
  48. ** Shutdown code can clean them all up at once.
  49. */
  50. class PhysResourceMgrClass
  51. {
  52. public:
  53. static void Init(void);
  54. static void Shutdown(void);
  55. static bool Set_Shadow_Blob_Texture(const char * texname);
  56. static TextureClass * Get_Shadow_Blob_Texture(void);
  57. static MaterialPassClass * Get_Highlight_Material_Pass(void);
  58. static TextureClass * Get_Stealth_Texture(void);
  59. static TextureClass * Peek_Stealth_Texture(void);
  60. static VertexMaterialClass * Create_Emissive_Material(void);
  61. static TextureClass * Get_Grid_Texture(void);
  62. static TextureClass * Peek_Grid_Texture(void);
  63. };
  64. #endif