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 #ifndef __dxgitype_h__
20 #define __dxgitype_h__
22 #include "dxgiformat.h"
24 typedef struct DXGI_SAMPLE_DESC {
29 typedef enum DXGI_MODE_ROTATION {
30 DXGI_MODE_ROTATION_UNSPECIFIED = 0,
31 DXGI_MODE_ROTATION_IDENTITY = 1,
32 DXGI_MODE_ROTATION_ROTATE90 = 2,
33 DXGI_MODE_ROTATION_ROTATE180 = 3,
34 DXGI_MODE_ROTATION_ROTATE270 = 4,
37 typedef enum DXGI_MODE_SCANLINE_ORDER {
38 DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED = 0,
39 DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE = 1,
40 DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST = 2,
41 DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST = 3,
42 } DXGI_MODE_SCANLINE_ORDER;
44 typedef enum DXGI_MODE_SCALING {
45 DXGI_MODE_SCALING_UNSPECIFIED = 0,
46 DXGI_MODE_SCALING_CENTERED = 1,
47 DXGI_MODE_SCALING_STRETCHED = 2,
50 typedef struct DXGI_RATIONAL {
55 typedef struct DXGI_MODE_DESC {
58 DXGI_RATIONAL RefreshRate;
60 DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
61 DXGI_MODE_SCALING Scaling;
64 typedef struct DXGI_GAMMA_CONTROL_CAPABILITIES {
65 BOOL ScaleAndOffsetSupported;
66 float MaxConvertedValue;
67 float MinConvertedValue;
68 UINT NumGammaControlPoints;
69 float ControlPointPositions[1025];
70 } DXGI_GAMMA_CONTROL_CAPABILITIES;
72 typedef struct DXGI_RGB {
78 typedef struct DXGI_GAMMA_CONTROL {
81 DXGI_RGB GammaCurve[1025];