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.

60 lines
2.5 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. define(`d_TexBlendHdr', `
  16. void C_TexBlend_$1(PD3DI_RASTCTX pCtx, PD3DI_RASTPRIM pP,
  17. PD3DI_RASTSPAN pS);')dnl
  18. dnl
  19. d_RepStr(`d_TexBlendHdr(AA)',
  20. `AA', Tex1_None, Tex1_Decal, Tex1_Modulate, Tex1_ModulateAlphaOVR, Tex1_Gen, TexM_Gen)
  21. dnl
  22. dnl
  23. define(`d_TexBlendGetAlphaHdr', `
  24. void C_TexBlend_Get_Alpha_$1_$2(PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2, PD3DI_RASTCOLOR pInput,
  25. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  26. dnl
  27. d_RepStr(`d_RepStr(`d_TexBlendGetAlphaHdr(AA, BB)',
  28. `AA', TextureAlpha, InvTextureAlpha)',
  29. `BB', DiffuseAlpha, InputAlpha, FactorAlpha, InvDiffuseAlpha, InvInputAlpha, InvFactorAlpha)
  30. dnl
  31. dnl
  32. define(`d_TexBlendOpAlphaHdr', `
  33. void C_TexBlend_Op_Alpha_$1(PD3DI_RASTCOLOR pOut, PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2,
  34. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  35. dnl
  36. d_RepStr(`d_TexBlendOpAlphaHdr(AA)',
  37. `AA', None, CopyArg1, CopyArg2, Modulate, Modulate2, Modulate4, Add, AddSigned,
  38. BlendDiffuseAlpha, BlendTextureAlpha, BlendFactorAlpha, BlendTextureAlphaPM)
  39. dnl
  40. dnl
  41. define(`d_TexBlendGetColorHdr', `
  42. void C_TexBlend_Get_Color_$1_$2(PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2, PD3DI_RASTCOLOR pInput,
  43. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  44. dnl
  45. d_RepStr(`d_RepStr(`d_TexBlendGetColorHdr(AA, BB)',
  46. `AA', Texture, InvTexture, TextureAlpha, InvTextureAlpha)',
  47. `BB', Diffuse, Input, Factor, InvDiffuse, InvInput, InvFactor,
  48. DiffuseAlpha, InputAlpha, FactorAlpha, InvDiffuseAlpha, InvInputAlpha, InvFactorAlpha)
  49. dnl
  50. dnl
  51. define(`d_TexBlendOpColorHdr', `
  52. void C_TexBlend_Op_Color_$1(PD3DI_RASTCOLOR pOut, PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2,
  53. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  54. dnl
  55. d_RepStr(`d_TexBlendOpColorHdr(AA)',
  56. `AA', None, CopyArg1, CopyArg2, Modulate, Modulate2, Modulate4, Add, AddSigned,
  57. BlendDiffuseAlpha, BlendTextureAlpha, BlendFactorAlpha, BlendTextureAlphaPM)
  58. dnl