Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3a5c3394
Commit
3a5c3394
authored
Sep 21, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 22, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Convert dxgitype.h to IDL.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
25a8773d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
39 deletions
+48
-39
Makefile.in
include/Makefile.in
+1
-1
dxgi.idl
include/dxgi.idl
+1
-1
dxgitype.idl
include/dxgitype.idl
+46
-37
No files found.
include/Makefile.in
View file @
3a5c3394
...
...
@@ -69,6 +69,7 @@ IDL_SRCS = \
dxgi.idl
\
dxgi1_2.idl
\
dxgi1_3.idl
\
dxgitype.idl
\
dxva2api.idl
\
dyngraph.idl
\
endpointvolume.idl
\
...
...
@@ -369,7 +370,6 @@ HEADER_SRCS = \
dxerr9.h
\
dxfile.h
\
dxgiformat.h
\
dxgitype.h
\
errorrep.h
\
errors.h
\
evcode.h
\
...
...
include/dxgi.idl
View file @
3a5c3394
...
...
@@ -18,7 +18,7 @@
import
"oaidl.idl"
;
import
"ocidl.idl"
;
import
"dxgitype.
h
"
;
import
"dxgitype.
idl
"
;
const
UINT
_FACDXGI
=
0
x87a
;
...
...
include/dxgitype.
h
→
include/dxgitype.
idl
View file @
3a5c3394
...
...
@@ -16,55 +16,63 @@
*
Foundation
,
Inc
.
,
51
Franklin
St
,
Fifth
Floor
,
Boston
,
MA
02110
-
1301
,
USA
*/
#ifndef __dxgitype_h__
#define __dxgitype_h__
import
"dxgiformat.h"
;
#include "dxgiformat.h"
cpp_quote
(
"#if 0"
)
typedef
unsigned
int
UINT
;
typedef
long
BOOL
;
cpp_quote
(
"#endif"
)
#ifndef D3DCOLORVALUE_DEFINED
typedef
struct
_D3DCOLORVALUE
{
typedef
enum
DXGI_MODE_ROTATION
{
DXGI_MODE_ROTATION_UNSPECIFIED
=
0
x0
,
DXGI_MODE_ROTATION_IDENTITY
=
0
x1
,
DXGI_MODE_ROTATION_ROTATE90
=
0
x2
,
DXGI_MODE_ROTATION_ROTATE180
=
0
x3
,
DXGI_MODE_ROTATION_ROTATE270
=
0
x4
,
}
DXGI_MODE_ROTATION
;
typedef
enum
DXGI_MODE_SCANLINE_ORDER
{
DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED
=
0
x0
,
DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE
=
0
x1
,
DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST
=
0
x2
,
DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST
=
0
x3
,
}
DXGI_MODE_SCANLINE_ORDER
;
typedef
enum
DXGI_MODE_SCALING
{
DXGI_MODE_SCALING_UNSPECIFIED
=
0
x0
,
DXGI_MODE_SCALING_CENTERED
=
0
x1
,
DXGI_MODE_SCALING_STRETCHED
=
0
x2
,
}
DXGI_MODE_SCALING
;
cpp_quote
(
"#ifndef D3DCOLORVALUE_DEFINED"
)
cpp_quote
(
"#define D3DCOLORVALUE_DEFINED"
)
typedef
struct
_D3DCOLORVALUE
{
float
r
;
float
g
;
float
b
;
float
a
;
}
D3DCOLORVALUE
;
#define D3DCOLORVALUE_DEFINED
#endif
cpp_quote
(
"#endif"
)
typedef
D3DCOLORVALUE
DXGI_RGBA
;
typedef
struct
DXGI_SAMPLE_DESC
{
typedef
struct
DXGI_SAMPLE_DESC
{
UINT
Count
;
UINT
Quality
;
}
DXGI_SAMPLE_DESC
;
typedef
enum
DXGI_MODE_ROTATION
{
DXGI_MODE_ROTATION_UNSPECIFIED
=
0
,
DXGI_MODE_ROTATION_IDENTITY
=
1
,
DXGI_MODE_ROTATION_ROTATE90
=
2
,
DXGI_MODE_ROTATION_ROTATE180
=
3
,
DXGI_MODE_ROTATION_ROTATE270
=
4
,
}
DXGI_MODE_ROTATION
;
typedef
enum
DXGI_MODE_SCANLINE_ORDER
{
DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED
=
0
,
DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE
=
1
,
DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST
=
2
,
DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST
=
3
,
}
DXGI_MODE_SCANLINE_ORDER
;
typedef
enum
DXGI_MODE_SCALING
{
DXGI_MODE_SCALING_UNSPECIFIED
=
0
,
DXGI_MODE_SCALING_CENTERED
=
1
,
DXGI_MODE_SCALING_STRETCHED
=
2
,
}
DXGI_MODE_SCALING
;
typedef
struct
DXGI_RATIONAL
{
typedef
struct
DXGI_RATIONAL
{
UINT
Numerator
;
UINT
Denominator
;
}
DXGI_RATIONAL
;
typedef
struct
DXGI_MODE_DESC
{
typedef
struct
DXGI_MODE_DESC
{
UINT
Width
;
UINT
Height
;
DXGI_RATIONAL
RefreshRate
;
...
...
@@ -73,7 +81,8 @@ typedef struct DXGI_MODE_DESC {
DXGI_MODE_SCALING
Scaling
;
}
DXGI_MODE_DESC
;
typedef
struct
DXGI_GAMMA_CONTROL_CAPABILITIES
{
typedef
struct
DXGI_GAMMA_CONTROL_CAPABILITIES
{
BOOL
ScaleAndOffsetSupported
;
float
MaxConvertedValue
;
float
MinConvertedValue
;
...
...
@@ -81,16 +90,16 @@ typedef struct DXGI_GAMMA_CONTROL_CAPABILITIES {
float
ControlPointPositions
[
1025
]
;
}
DXGI_GAMMA_CONTROL_CAPABILITIES
;
typedef
struct
DXGI_RGB
{
typedef
struct
DXGI_RGB
{
float
Red
;
float
Green
;
float
Blue
;
}
DXGI_RGB
;
typedef
struct
DXGI_GAMMA_CONTROL
{
typedef
struct
DXGI_GAMMA_CONTROL
{
DXGI_RGB
Scale
;
DXGI_RGB
Offset
;
DXGI_RGB
GammaCurve
[
1025
]
;
}
DXGI_GAMMA_CONTROL
;
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment