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.

64 lines
2.7 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. SpecularAlpha, InvSpecularAlpha)
  31. dnl
  32. dnl
  33. define(`d_TexBlendOpAlphaHdr', `
  34. void C_TexBlend_Op_Alpha_$1(PD3DI_RASTCOLOR pOut, PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2,
  35. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  36. dnl
  37. d_RepStr(`d_TexBlendOpAlphaHdr(AA)',
  38. `AA', None, CopyArg1, CopyArg2, Modulate, Modulate2, Modulate4, Add, AddSigned,
  39. BlendDiffuseAlpha, BlendTextureAlpha, BlendFactorAlpha, BlendTextureAlphaPM,
  40. AddSigned2, Subtract, AddSmooth)
  41. dnl
  42. dnl
  43. define(`d_TexBlendGetColorHdr', `
  44. void C_TexBlend_Get_Color_$1_$2(PD3DI_RASTCOLOR pArg1, PD3DI_RASTCOLOR pArg2, PD3DI_RASTCOLOR pInput,
  45. PD3DI_RASTCTX pCtx, PD3DI_RASTSPAN pS, INT32 iTex);')dnl
  46. dnl
  47. d_RepStr(`d_RepStr(`d_TexBlendGetColorHdr(AA, BB)',
  48. `AA', Texture, InvTexture, TextureAlpha, InvTextureAlpha)',
  49. `BB', Diffuse, Input, Factor, InvDiffuse, InvInput, InvFactor,
  50. DiffuseAlpha, InputAlpha, FactorAlpha, InvDiffuseAlpha, InvInputAlpha, InvFactorAlpha,
  51. Specular, InvSpecular, SpecularAlpha, InvSpecularAlpha)
  52. dnl
  53. dnl
  54. define(`d_TexBlendOpColorHdr', `
  55. void C_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. AddSigned2, Subtract, AddSmooth, ModulateAlphaAddColor, ModulateColorAddAlpha)
  62. dnl