shdlib.cpp 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. ** Command & Conquer Generals Zero Hour(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 : WWShade *
  23. * *
  24. * $Archive:: /Commando/Code/wwshade/shdlib.cpp $*
  25. * *
  26. * Org Author:: Kenny Mitchell *
  27. * *
  28. * Author : Kenny Mitchell *
  29. * *
  30. * $Modtime:: 07/01/02 10:31a $*
  31. * *
  32. * $Revision:: 1 $*
  33. * *
  34. *---------------------------------------------------------------------------------------------*
  35. * WWShade.lib library interface *
  36. *---------------------------------------------------------------------------------------------*/
  37. #include "shdlib.h"
  38. #include "assetmgr.h"
  39. #include "shdloader.h"
  40. #include "shdrenderer.h"
  41. void SHD_Init()
  42. {
  43. ShdRendererClass::Peek_Instance()->Init();
  44. }
  45. void SHD_Shutdown()
  46. {
  47. ShdRendererClass::Peek_Instance()->Shutdown();
  48. }
  49. void SHD_Init_Shaders()
  50. {
  51. ShdRendererClass::Init_Shaders();
  52. }
  53. void SHD_Shutdown_Shaders()
  54. {
  55. ShdRendererClass::Shutdown_Shaders();
  56. }
  57. void SHD_Flush()
  58. {
  59. ShdRendererClass::Peek_Instance()->Flush();
  60. }
  61. void SHD_Register_Loader()
  62. {
  63. WW3DAssetManager::Get_Instance()->Register_Prototype_Loader(&_ShdMeshLoader);
  64. // WW3DAssetManager::Get_Instance()->Register_Prototype_Loader(&_ShdMeshLegacyLoader);
  65. WW3DAssetManager::Get_Instance()->Register_Prototype_Loader(&_MeshLoader);
  66. }