formconv.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 : WW3D *
  23. * *
  24. * $Archive:: /Commando/Code/ww3d2/formconv.h $*
  25. * *
  26. * Original Author:: Nathaniel Hoffman *
  27. * *
  28. * Author : Kenny Mitchell *
  29. * *
  30. * $Modtime:: 06/27/02 1:27p $*
  31. * *
  32. * $Revision:: 3 $*
  33. * *
  34. * 06/27/02 KM Z Format support *
  35. *---------------------------------------------------------------------------------------------*
  36. * Functions: *
  37. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  38. #if defined(_MSC_VER)
  39. #pragma once
  40. #endif
  41. #ifndef FORMCONV_H
  42. #define FORMCONV_H
  43. #include "ww3dformat.h"
  44. #include <d3d8.h>
  45. /*
  46. ** This file is used for conversions between D3DFORMAT and WW3DFormat.
  47. */
  48. D3DFORMAT WW3DFormat_To_D3DFormat(WW3DFormat ww3d_format);
  49. WW3DFormat D3DFormat_To_WW3DFormat(D3DFORMAT d3d_format);
  50. D3DFORMAT WW3DZFormat_To_D3DFormat(WW3DZFormat ww3d_zformat);
  51. WW3DZFormat D3DFormat_To_WW3DZFormat(D3DFORMAT d3d_format);
  52. void Init_D3D_To_WW3_Conversion();
  53. #endif