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.

70 lines
2.6 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. dnl
  34. dnl
  35. define(`d_TexBlendOpAlphaHdr', `
  36. void MMX_TexBlend_Op_Alpha_$1(PD3DI_RASTCOLOR pOut, PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2,
  37. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  38. dnl
  39. d_RepStr(`d_TexBlendOpAlphaHdr(AA)',
  40. `AA', None, CopyArg1, CopyArg2, Modulate, Modulate2, Modulate4, Add, AddSigned,
  41. BlendDiffuseAlpha, BlendTextureAlpha, BlendFactorAlpha, BlendTextureAlphaPM)
  42. dnl
  43. dnl
  44. define(`d_TexBlendGetColorHdr', `
  45. void MMX_TexBlend_Get_Color_$1_$2(PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2, PD3DI_RASTCOLOR pInput,
  46. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  47. dnl
  48. d_RepStr(`d_RepStr(`d_TexBlendGetColorHdr(AA, BB)',
  49. `AA', Texture, InvTexture, TextureAlpha, InvTextureAlpha)',
  50. `BB', Diffuse, Input, Factor, InvDiffuse, InvInput, InvFactor,
  51. DiffuseAlpha, InputAlpha, FactorAlpha, InvDiffuseAlpha, InvInputAlpha, InvFactorAlpha)
  52. dnl
  53. dnl
  54. define(`d_TexBlendOpColorHdr', `
  55. void MMX_TexBlend_Op_Color_$1(PD3DI_RASTCOLOR pOut, PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2,
  56. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  57. dnl
  58. d_RepStr(`d_TexBlendOpColorHdr(AA)',
  59. `AA', None, CopyArg1, CopyArg2, Modulate, Modulate2, Modulate4, Add, AddSigned,
  60. BlendDiffuseAlpha, BlendTextureAlpha, BlendFactorAlpha, BlendTextureAlphaPM)
  61. dnl
  62. #ifdef __cplusplus
  63. }
  64. #endif