Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
5.5 KiB

  1. /*==========================================================================;
  2. *
  3. * Copyright (C) Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dx7todx8.h
  6. * Content: DX7 to DX8 Direct3D aliases to aid porting DX7 apps to DX8
  7. *
  8. ***************************************************************************/
  9. #ifndef _DX7TODX8_H_
  10. ///////////////////////////////////////////////////////////////////////////////
  11. //
  12. // d3d8types.h
  13. //
  14. ///////////////////////////////////////////////////////////////////////////////
  15. #define D3DTRANSFORMSTATE_WORLD D3DTS_WORLD
  16. #define D3DTRANSFORMSTATE_VIEW D3DTS_VIEW
  17. #define D3DTRANSFORMSTATE_PROJECTION D3DTS_PROJECTION
  18. #define D3DTRANSFORMSTATE_WORLD1 D3DTS_WORLD1
  19. #define D3DTRANSFORMSTATE_WORLD2 D3DTS_WORLD2
  20. #define D3DTRANSFORMSTATE_WORLD3 D3DTS_WORLD3
  21. #define D3DTRANSFORMSTATE_TEXTURE0 D3DTS_TEXTURE0
  22. #define D3DTRANSFORMSTATE_TEXTURE1 D3DTS_TEXTURE1
  23. #define D3DTRANSFORMSTATE_TEXTURE2 D3DTS_TEXTURE2
  24. #define D3DTRANSFORMSTATE_TEXTURE3 D3DTS_TEXTURE3
  25. #define D3DTRANSFORMSTATE_TEXTURE4 D3DTS_TEXTURE4
  26. #define D3DTRANSFORMSTATE_TEXTURE5 D3DTS_TEXTURE5
  27. #define D3DTRANSFORMSTATE_TEXTURE6 D3DTS_TEXTURE6
  28. #define D3DTRANSFORMSTATE_TEXTURE7 D3DTS_TEXTURE7
  29. #define D3DTRANSFORMSTATE_FORCE_DWORD D3DTS_FORCE_DWORD
  30. #define D3DRENDERSTATE_ZENABLE D3DRS_ZENABLE
  31. #define D3DRENDERSTATE_FILLMODE D3DRS_FILLMODE
  32. #define D3DRENDERSTATE_SHADEMODE D3DRS_SHADEMODE
  33. #define D3DRENDERSTATE_LINEPATTERN D3DRS_LINEPATTERN
  34. #define D3DRENDERSTATE_ZWRITEENABLE D3DRS_ZWRITEENABLE
  35. #define D3DRENDERSTATE_ALPHATESTENABLE D3DRS_ALPHATESTENABLE
  36. #define D3DRENDERSTATE_LASTPIXEL D3DRS_LASTPIXEL
  37. #define D3DRENDERSTATE_SRCBLEND D3DRS_SRCBLEND
  38. #define D3DRENDERSTATE_DESTBLEND D3DRS_DESTBLEND
  39. #define D3DRENDERSTATE_CULLMODE D3DRS_CULLMODE
  40. #define D3DRENDERSTATE_ZFUNC D3DRS_ZFUNC
  41. #define D3DRENDERSTATE_ALPHAREF D3DRS_ALPHAREF
  42. #define D3DRENDERSTATE_ALPHAFUNC D3DRS_ALPHAFUNC
  43. #define D3DRENDERSTATE_DITHERENABLE D3DRS_DITHERENABLE
  44. #define D3DRENDERSTATE_ALPHABLENDENABLE D3DRS_ALPHABLENDENABLE
  45. #define D3DRENDERSTATE_FOGENABLE D3DRS_FOGENABLE
  46. #define D3DRENDERSTATE_SPECULARENABLE D3DRS_SPECULARENABLE
  47. #define D3DRENDERSTATE_ZVISIBLE D3DRS_ZVISIBLE
  48. #define D3DRENDERSTATE_FOGCOLOR D3DRS_FOGCOLOR
  49. #define D3DRENDERSTATE_FOGTABLEMODE D3DRS_FOGTABLEMODE
  50. #define D3DRENDERSTATE_FOGSTART D3DRS_FOGSTART
  51. #define D3DRENDERSTATE_FOGEND D3DRS_FOGEND
  52. #define D3DRENDERSTATE_FOGDENSITY D3DRS_FOGDENSITY
  53. #define D3DRENDERSTATE_EDGEANTIALIAS D3DRS_EDGEANTIALIAS
  54. #define D3DRENDERSTATE_ZBIAS D3DRS_ZBIAS
  55. #define D3DRENDERSTATE_RANGEFOGENABLE D3DRS_RANGEFOGENABLE
  56. #define D3DRENDERSTATE_STENCILENABLE D3DRS_STENCILENABLE
  57. #define D3DRENDERSTATE_STENCILFAIL D3DRS_STENCILFAIL
  58. #define D3DRENDERSTATE_STENCILZFAIL D3DRS_STENCILZFAIL
  59. #define D3DRENDERSTATE_STENCILPASS D3DRS_STENCILPASS
  60. #define D3DRENDERSTATE_STENCILFUNC D3DRS_STENCILFUNC
  61. #define D3DRENDERSTATE_STENCILREF D3DRS_STENCILREF
  62. #define D3DRENDERSTATE_STENCILMASK D3DRS_STENCILMASK
  63. #define D3DRENDERSTATE_STENCILWRITEMASK D3DRS_STENCILWRITEMASK
  64. #define D3DRENDERSTATE_TEXTUREFACTOR D3DRS_TEXTUREFACTOR
  65. #define D3DRENDERSTATE_WRAP0 D3DRS_WRAP0
  66. #define D3DRENDERSTATE_WRAP1 D3DRS_WRAP1
  67. #define D3DRENDERSTATE_WRAP2 D3DRS_WRAP2
  68. #define D3DRENDERSTATE_WRAP3 D3DRS_WRAP3
  69. #define D3DRENDERSTATE_WRAP4 D3DRS_WRAP4
  70. #define D3DRENDERSTATE_WRAP5 D3DRS_WRAP5
  71. #define D3DRENDERSTATE_WRAP6 D3DRS_WRAP6
  72. #define D3DRENDERSTATE_WRAP7 D3DRS_WRAP7
  73. #define D3DRENDERSTATE_CLIPPING D3DRS_CLIPPING
  74. #define D3DRENDERSTATE_LIGHTING D3DRS_LIGHTING
  75. #define D3DRENDERSTATE_EXTENTS D3DRS_EXTENTS
  76. #define D3DRENDERSTATE_AMBIENT D3DRS_AMBIENT
  77. #define D3DRENDERSTATE_FOGVERTEXMODE D3DRS_FOGVERTEXMODE
  78. #define D3DRENDERSTATE_COLORVERTEX D3DRS_COLORVERTEX
  79. #define D3DRENDERSTATE_LOCALVIEWER D3DRS_LOCALVIEWER
  80. #define D3DRENDERSTATE_NORMALIZENORMALS D3DRS_NORMALIZENORMALS
  81. #define D3DRENDERSTATE_DIFFUSEMATERIALSOURCE D3DRS_DIFFUSEMATERIALSOURCE
  82. #define D3DRENDERSTATE_SPECULARMATERIALSOURCE D3DRS_SPECULARMATERIALSOURCE
  83. #define D3DRENDERSTATE_AMBIENTMATERIALSOURCE D3DRS_AMBIENTMATERIALSOURCE
  84. #define D3DRENDERSTATE_EMISSIVEMATERIALSOURCE D3DRS_EMISSIVEMATERIALSOURCE
  85. #define D3DRENDERSTATE_VERTEXBLEND D3DRS_VERTEXBLEND
  86. #define D3DRENDERSTATE_CLIPPLANEENABLE D3DRS_CLIPPLANEENABLE
  87. #define RGBA_MAKE D3DCOLOR_RGBA
  88. #define RGB_MAKE D3DCOLOR_XRGB
  89. #define D3DRGBA D3DCOLOR_COLORVALUE
  90. #define D3DRGB(_r,_g,_b) D3DCOLOR_COLORVALUE(_r,_g,_b,1.f)
  91. #define _DX7TODX8_H_
  92. #endif //_DX7TODX8_H_