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.

74 lines
2.8 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // This file generates the headers for the texture blend functions.
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997.
  6. //
  7. // WARNING WARNING WARNING
  8. // This h file generated from a mh file.
  9. // EDIT THE MH FILE.
  10. // I warned you.
  11. // WARNING WARNING WARNING
  12. //
  13. //-----------------------------------------------------------------------------
  14. include(`m4hdr.mh')dnl
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. define(`d_TexBlendHdr', `
  19. void MMX_TexBlend_$1(PD3DI_RASTCTX pCtx, PD3DI_RASTPRIM pP,
  20. PD3DI_RASTSPAN pS);')dnl
  21. dnl
  22. d_RepStr(`d_TexBlendHdr(AA)',
  23. `AA', Tex1_None, Tex1_Decal, Tex1_Modulate, Tex1_ModulateAlphaOVR, Tex1_Gen, TexM_Gen)
  24. dnl
  25. dnl
  26. define(`d_TexBlendGetAlphaHdr', `
  27. void MMX_TexBlend_Get_Alpha_$1_$2(PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2, PD3DI_RASTCOLOR pInput,
  28. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  29. dnl
  30. d_RepStr(`d_RepStr(`d_TexBlendGetAlphaHdr(AA, BB)',
  31. `AA', TextureAlpha, InvTextureAlpha)',
  32. `BB', DiffuseAlpha, InputAlpha, FactorAlpha, InvDiffuseAlpha, InvInputAlpha, InvFactorAlpha,
  33. SpecularAlpha, InvSpecularAlpha)
  34. dnl
  35. dnl
  36. define(`d_TexBlendOpAlphaHdr', `
  37. void MMX_TexBlend_Op_Alpha_$1(PD3DI_RASTCOLOR pOut, PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2,
  38. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  39. dnl
  40. d_RepStr(`d_TexBlendOpAlphaHdr(AA)',
  41. `AA', None, CopyArg1, CopyArg2, Modulate, Modulate2, Modulate4, Add, AddSigned,
  42. BlendDiffuseAlpha, BlendTextureAlpha, BlendFactorAlpha, BlendTextureAlphaPM,
  43. AddSigned2, Subtract, AddSmooth)
  44. dnl
  45. dnl
  46. define(`d_TexBlendGetColorHdr', `
  47. void MMX_TexBlend_Get_Color_$1_$2(PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2, PD3DI_RASTCOLOR pInput,
  48. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  49. dnl
  50. d_RepStr(`d_RepStr(`d_TexBlendGetColorHdr(AA, BB)',
  51. `AA', Texture, InvTexture, TextureAlpha, InvTextureAlpha)',
  52. `BB', Diffuse, Input, Factor, InvDiffuse, InvInput, InvFactor,
  53. DiffuseAlpha, InputAlpha, FactorAlpha, InvDiffuseAlpha, InvInputAlpha, InvFactorAlpha,
  54. Specular, InvSpecular, SpecularAlpha, InvSpecularAlpha)
  55. dnl
  56. dnl
  57. define(`d_TexBlendOpColorHdr', `
  58. void MMX_TexBlend_Op_Color_$1(PD3DI_RASTCOLOR pOut, PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2,
  59. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  60. dnl
  61. d_RepStr(`d_TexBlendOpColorHdr(AA)',
  62. `AA', None, CopyArg1, CopyArg2, Modulate, Modulate2, Modulate4, Add, AddSigned,
  63. BlendDiffuseAlpha, BlendTextureAlpha, BlendFactorAlpha, BlendTextureAlphaPM,
  64. AddSigned2, Subtract, AddSmooth, ModulateAlphaAddColor, ModulateColorAddAlpha)
  65. dnl
  66. #ifdef __cplusplus
  67. }
  68. #endif