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.

75 lines
2.3 KiB

  1. /******************************Module*Header**********************************\
  2. *
  3. * ***************
  4. * * SAMPLE CODE *
  5. * ***************
  6. *
  7. * Module Name: pmdef.h
  8. *
  9. * Content: bitfield definitions for Permedia2 registers
  10. *
  11. * Copyright (c) 1994-1998 3Dlabs Inc. Ltd. All rights reserved.
  12. * Copyright (c) 1995-1999 Microsoft Corporation. All rights reserved.
  13. \*****************************************************************************/
  14. #ifndef __pmdef__
  15. #define __pmdef__
  16. // Texture unit bit fields
  17. // Texture color mode
  18. #define PM_TEXCOLORMODE_ENABLE 0
  19. #define PM_TEXCOLORMODE_APPLICATION 1
  20. #define PM_TEXCOLORMODE_TEXTURETYPE 4
  21. // Texture address mode
  22. #define PM_TEXADDRESSMODE_ENABLE 0
  23. #define PM_TEXADDRESSMODE_PERSPECTIVE 1
  24. #define PM_TEXADDRESSMODE_FAST 2
  25. // Texture map format
  26. #define PM_TEXMAPFORMAT_PP0 0
  27. #define PM_TEXMAPFORMAT_PP1 3
  28. #define PM_TEXMAPFORMAT_PP2 6
  29. #define PM_TEXMAPFORMAT_TEXELSIZE 19
  30. // Texture data format
  31. #define PM_TEXDATAFORMAT_ALPHAMAP_EXCLUDE 2
  32. #define PM_TEXDATAFORMAT_ALPHAMAP_INCLUDE 1
  33. #define PM_TEXDATAFORMAT_ALPHAMAP_DISABLE 0
  34. #define PM_TEXDATAFORMAT_FORMAT 0
  35. #define PM_TEXDATAFORMAT_NOALPHAPIXELS 4
  36. #define PM_TEXDATAFORMAT_FORMATEXTENSION 6
  37. #define PM_TEXDATAFORMAT_COLORORDER 5
  38. // Dither unit bit fields
  39. #define PM_DITHERMODE_ENABLE 0
  40. #define PM_DITHERMODE_DITHERENABLE 1
  41. #define PM_DITHERMODE_COLORFORMAT 2
  42. #define PM_DITHERMODE_XOFFSET 6
  43. #define PM_DITHERMODE_YOFFSET 8
  44. #define PM_DITHERMODE_COLORORDER 10
  45. #define PM_DITHERMODE_DITHERMETHOD 11
  46. #define PM_DITHERMODE_FORCEALPHA 12
  47. #define PM_DITHERMODE_COLORFORMATEXTENSION 16
  48. // Alpha Blend unit bit fields
  49. #define PM_ALPHABLENDMODE_ENABLE 0
  50. #define PM_ALPHABLENDMODE_OPERATION 1
  51. #define PM_ALPHABLENDMODE_COLORFORMAT 8
  52. #define PM_ALPHABLENDMODE_COLORORDER 13
  53. #define PM_ALPHABLENDMODE_BLENDTYPE 14
  54. #define PM_ALPHABLENDMODE_COLORFORMATEXTENSION 16
  55. // Window register
  56. #define PM_WINDOW_LBUPDATESOURCE_LBSOURCEDATA 0
  57. #define PM_WINDOW_LBUPDATESOURCE_REGISTERS 1
  58. // Texture unit YUV mode
  59. #define PM_YUVMODE_CHROMATEST_DISABLE 0
  60. #define PM_YUVMODE_CHROMATEST_PASSWITHIN 1
  61. #define PM_YUVMODE_CHROMATEST_FAILWITHIN 2
  62. #define PM_YUVMODE_TESTDATA_INPUT 0
  63. #define PM_YUVMODE_TESTDATA_OUTPUT 1
  64. #endif