dxgitype.idl 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. /*
  2. * Copyright 2007 Andras Kovacs
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  17. */
  18. import "dxgicommon.idl";
  19. import "dxgiformat.idl";
  20. cpp_quote("#if 0")
  21. typedef unsigned int UINT;
  22. typedef long BOOL;
  23. cpp_quote("#endif")
  24. typedef enum DXGI_MODE_ROTATION
  25. {
  26. DXGI_MODE_ROTATION_UNSPECIFIED = 0x0,
  27. DXGI_MODE_ROTATION_IDENTITY = 0x1,
  28. DXGI_MODE_ROTATION_ROTATE90 = 0x2,
  29. DXGI_MODE_ROTATION_ROTATE180 = 0x3,
  30. DXGI_MODE_ROTATION_ROTATE270 = 0x4,
  31. } DXGI_MODE_ROTATION;
  32. typedef enum DXGI_MODE_SCANLINE_ORDER
  33. {
  34. DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED = 0x0,
  35. DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE = 0x1,
  36. DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST = 0x2,
  37. DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST = 0x3,
  38. } DXGI_MODE_SCANLINE_ORDER;
  39. typedef enum DXGI_MODE_SCALING
  40. {
  41. DXGI_MODE_SCALING_UNSPECIFIED = 0x0,
  42. DXGI_MODE_SCALING_CENTERED = 0x1,
  43. DXGI_MODE_SCALING_STRETCHED = 0x2,
  44. } DXGI_MODE_SCALING;
  45. cpp_quote("#ifndef D3DCOLORVALUE_DEFINED")
  46. cpp_quote("#define D3DCOLORVALUE_DEFINED")
  47. typedef struct _D3DCOLORVALUE
  48. {
  49. float r;
  50. float g;
  51. float b;
  52. float a;
  53. } D3DCOLORVALUE;
  54. cpp_quote("#endif")
  55. typedef D3DCOLORVALUE DXGI_RGBA;
  56. typedef struct DXGI_MODE_DESC
  57. {
  58. UINT Width;
  59. UINT Height;
  60. DXGI_RATIONAL RefreshRate;
  61. DXGI_FORMAT Format;
  62. DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
  63. DXGI_MODE_SCALING Scaling;
  64. } DXGI_MODE_DESC;
  65. typedef struct DXGI_GAMMA_CONTROL_CAPABILITIES
  66. {
  67. BOOL ScaleAndOffsetSupported;
  68. float MaxConvertedValue;
  69. float MinConvertedValue;
  70. UINT NumGammaControlPoints;
  71. float ControlPointPositions[1025];
  72. } DXGI_GAMMA_CONTROL_CAPABILITIES;
  73. typedef struct DXGI_RGB
  74. {
  75. float Red;
  76. float Green;
  77. float Blue;
  78. } DXGI_RGB;
  79. typedef struct DXGI_GAMMA_CONTROL
  80. {
  81. DXGI_RGB Scale;
  82. DXGI_RGB Offset;
  83. DXGI_RGB GammaCurve[1025];
  84. } DXGI_GAMMA_CONTROL;