2 * Copyright 2007 Andras Kovacs
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.
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.
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
19 import
"dxgicommon.idl";
20 import
"dxgiformat.idl";
23 typedef unsigned int UINT
;
27 typedef enum DXGI_MODE_ROTATION
29 DXGI_MODE_ROTATION_UNSPECIFIED
= 0x0,
30 DXGI_MODE_ROTATION_IDENTITY
= 0x1,
31 DXGI_MODE_ROTATION_ROTATE90
= 0x2,
32 DXGI_MODE_ROTATION_ROTATE180
= 0x3,
33 DXGI_MODE_ROTATION_ROTATE270
= 0x4,
36 typedef enum DXGI_MODE_SCANLINE_ORDER
38 DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED
= 0x0,
39 DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE
= 0x1,
40 DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST
= 0x2,
41 DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST
= 0x3,
42 } DXGI_MODE_SCANLINE_ORDER
;
44 typedef enum DXGI_MODE_SCALING
46 DXGI_MODE_SCALING_UNSPECIFIED
= 0x0,
47 DXGI_MODE_SCALING_CENTERED
= 0x1,
48 DXGI_MODE_SCALING_STRETCHED
= 0x2,
51 cpp_quote
("#ifndef D3DCOLORVALUE_DEFINED")
52 cpp_quote
("#define D3DCOLORVALUE_DEFINED")
53 typedef struct _D3DCOLORVALUE
61 typedef D3DCOLORVALUE DXGI_RGBA
;
63 typedef struct DXGI_MODE_DESC
67 DXGI_RATIONAL RefreshRate
;
69 DXGI_MODE_SCANLINE_ORDER ScanlineOrdering
;
70 DXGI_MODE_SCALING Scaling
;
73 typedef struct DXGI_GAMMA_CONTROL_CAPABILITIES
75 BOOL ScaleAndOffsetSupported
;
76 float MaxConvertedValue
;
77 float MinConvertedValue
;
78 UINT NumGammaControlPoints
;
79 float ControlPointPositions
[1025];
80 } DXGI_GAMMA_CONTROL_CAPABILITIES
;
82 typedef struct DXGI_RGB
89 typedef struct DXGI_GAMMA_CONTROL
93 DXGI_RGB GammaCurve
[1025];