PS2GameMtl.cpp 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 : Buccaneer Bay *
  23. * *
  24. * File name : PS2GameMtl.cpp *
  25. * *
  26. * Programmer : Mike Lytle *
  27. * *
  28. * Start date : 10/12/1999 *
  29. * *
  30. * Last update : 10/12/1999 *
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #include "gamemtl.h"
  36. #include <Max.h>
  37. #include <gport.h>
  38. #include <hsv.h>
  39. #include "dllmain.h"
  40. #include "resource.h"
  41. #include "util.h"
  42. /*****************************************************************
  43. *
  44. * PS2 GameMtl Class Descriptor
  45. *
  46. *****************************************************************/
  47. Class_ID PS2GameMaterialClassID(0x2ed62ad7, 0x50571dfd);
  48. // This adds W3D PS2 choice to the Max material selector.
  49. class PS2GameMaterialClassDesc:public ClassDesc {
  50. public:
  51. int IsPublic() { return 1; }
  52. void * Create(BOOL loading)
  53. {
  54. GameMtl *mtl = new GameMtl(loading);
  55. mtl->Set_Shader_Type(GameMtl::STE_PS2_SHADER);
  56. return ((void*)mtl);
  57. }
  58. const TCHAR * ClassName() { return Get_String(IDS_PS2_GAMEMTL); }
  59. SClass_ID SuperClassID() { return MATERIAL_CLASS_ID; }
  60. Class_ID ClassID() { return PS2GameMaterialClassID; }
  61. const TCHAR* Category() { return _T(""); }
  62. };
  63. static PS2GameMaterialClassDesc _PS2GameMaterialCD;
  64. ClassDesc * Get_PS2_Game_Material_Desc() { return &_PS2GameMaterialCD; }