Skip to content

Commit b6c7045

Browse files
committed
Add DirectX SDK
1 parent a475495 commit b6c7045

File tree

134 files changed

+115246
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+115246
-0
lines changed

sdk/DXSDK/Include/D2D1.h

Lines changed: 6996 additions & 0 deletions
Large diffs are not rendered by default.

sdk/DXSDK/Include/D2D1Helper.h

Lines changed: 948 additions & 0 deletions
Large diffs are not rendered by default.

sdk/DXSDK/Include/D2DBaseTypes.h

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
//---------------------------------------------------------------------------
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
//
4+
// This file is automatically generated. Please do not edit it directly.
5+
//
6+
// File name: D2DBaseTypes.h
7+
//---------------------------------------------------------------------------
8+
#pragma once
9+
10+
11+
#ifndef _D2DBASETYPES_INCLUDED
12+
#define _D2DBASETYPES_INCLUDED
13+
14+
#ifndef COM_NO_WINDOWS_H
15+
#include <windows.h>
16+
#endif // #ifndef COM_NO_WINDOWS_H
17+
18+
#ifndef D3DCOLORVALUE_DEFINED
19+
20+
//+-----------------------------------------------------------------------------
21+
//
22+
// Struct:
23+
// D3DCOLORVALUE
24+
//
25+
//------------------------------------------------------------------------------
26+
typedef struct D3DCOLORVALUE
27+
{
28+
FLOAT r;
29+
FLOAT g;
30+
FLOAT b;
31+
FLOAT a;
32+
33+
} D3DCOLORVALUE;
34+
35+
#define D3DCOLORVALUE_DEFINED
36+
#endif
37+
38+
39+
//+-----------------------------------------------------------------------------
40+
//
41+
// Struct:
42+
// D2D_POINT_2U
43+
//
44+
//------------------------------------------------------------------------------
45+
typedef struct D2D_POINT_2U
46+
{
47+
UINT32 x;
48+
UINT32 y;
49+
50+
} D2D_POINT_2U;
51+
52+
53+
//+-----------------------------------------------------------------------------
54+
//
55+
// Struct:
56+
// D2D_POINT_2F
57+
//
58+
//------------------------------------------------------------------------------
59+
typedef struct D2D_POINT_2F
60+
{
61+
FLOAT x;
62+
FLOAT y;
63+
64+
} D2D_POINT_2F;
65+
66+
67+
//+-----------------------------------------------------------------------------
68+
//
69+
// Struct:
70+
// D2D_RECT_F
71+
//
72+
//------------------------------------------------------------------------------
73+
typedef struct D2D_RECT_F
74+
{
75+
FLOAT left;
76+
FLOAT top;
77+
FLOAT right;
78+
FLOAT bottom;
79+
80+
} D2D_RECT_F;
81+
82+
83+
//+-----------------------------------------------------------------------------
84+
//
85+
// Struct:
86+
// D2D_RECT_U
87+
//
88+
//------------------------------------------------------------------------------
89+
typedef struct D2D_RECT_U
90+
{
91+
UINT32 left;
92+
UINT32 top;
93+
UINT32 right;
94+
UINT32 bottom;
95+
96+
} D2D_RECT_U;
97+
98+
99+
//+-----------------------------------------------------------------------------
100+
//
101+
// Struct:
102+
// D2D_SIZE_F
103+
//
104+
//------------------------------------------------------------------------------
105+
typedef struct D2D_SIZE_F
106+
{
107+
FLOAT width;
108+
FLOAT height;
109+
110+
} D2D_SIZE_F;
111+
112+
113+
//+-----------------------------------------------------------------------------
114+
//
115+
// Struct:
116+
// D2D_SIZE_U
117+
//
118+
//------------------------------------------------------------------------------
119+
typedef struct D2D_SIZE_U
120+
{
121+
UINT32 width;
122+
UINT32 height;
123+
124+
} D2D_SIZE_U;
125+
126+
typedef D3DCOLORVALUE D2D_COLOR_F;
127+
128+
//+-----------------------------------------------------------------------------
129+
//
130+
// Struct:
131+
// D2D_MATRIX_3X2_F
132+
//
133+
//------------------------------------------------------------------------------
134+
typedef struct D2D_MATRIX_3X2_F
135+
{
136+
FLOAT _11;
137+
FLOAT _12;
138+
FLOAT _21;
139+
FLOAT _22;
140+
FLOAT _31;
141+
FLOAT _32;
142+
143+
} D2D_MATRIX_3X2_F;
144+
145+
#endif // #ifndef _D2DBASETYPES_INCLUDED

sdk/DXSDK/Include/D2Derr.h

Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
/*=========================================================================*\
2+
3+
Copyright (c) Microsoft Corporation. All rights reserved.
4+
5+
\*=========================================================================*/
6+
7+
#pragma once
8+
9+
/*=========================================================================*\
10+
D2D Status Codes
11+
\*=========================================================================*/
12+
13+
#define FACILITY_D2D 0x899
14+
15+
#define MAKE_D2DHR( sev, code )\
16+
MAKE_HRESULT( sev, FACILITY_D2D, (code) )
17+
18+
#define MAKE_D2DHR_ERR( code )\
19+
MAKE_D2DHR( 1, code )
20+
21+
22+
//+----------------------------------------------------------------------------
23+
//
24+
// D2D error codes
25+
//
26+
//------------------------------------------------------------------------------
27+
28+
//
29+
// Error codes shared with WINCODECS
30+
//
31+
32+
//
33+
// The pixel format is not supported.
34+
//
35+
#define D2DERR_UNSUPPORTED_PIXEL_FORMAT WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT
36+
37+
//
38+
// Error codes that were already returned in prior versions and were part of the
39+
// MIL facility.
40+
41+
//
42+
// Error codes mapped from WIN32 where there isn't already another HRESULT based
43+
// define
44+
//
45+
46+
//
47+
// The supplied buffer was too small to accomodate the data.
48+
//
49+
#define D2DERR_INSUFFICIENT_BUFFER HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
50+
51+
52+
//
53+
// D2D specific codes
54+
//
55+
56+
//
57+
// The object was not in the correct state to process the method.
58+
//
59+
#define D2DERR_WRONG_STATE MAKE_D2DHR_ERR(0x001)
60+
61+
//
62+
// The object has not yet been initialized.
63+
//
64+
#define D2DERR_NOT_INITIALIZED MAKE_D2DHR_ERR(0x002)
65+
66+
//
67+
// The requested opertion is not supported.
68+
//
69+
#define D2DERR_UNSUPPORTED_OPERATION MAKE_D2DHR_ERR(0x003)
70+
71+
//
72+
// The geomery scanner failed to process the data.
73+
//
74+
#define D2DERR_SCANNER_FAILED MAKE_D2DHR_ERR(0x004)
75+
76+
//
77+
// D2D could not access the screen.
78+
//
79+
#define D2DERR_SCREEN_ACCESS_DENIED MAKE_D2DHR_ERR(0x005)
80+
81+
//
82+
// A valid display state could not be determined.
83+
//
84+
#define D2DERR_DISPLAY_STATE_INVALID MAKE_D2DHR_ERR(0x006)
85+
86+
//
87+
// The supplied vector is vero.
88+
//
89+
#define D2DERR_ZERO_VECTOR MAKE_D2DHR_ERR(0x007)
90+
91+
//
92+
// An internal error (D2D bug) occurred. On checked builds, we would assert.
93+
//
94+
// The application should close this instance of D2D and should consider
95+
// restarting its process.
96+
//
97+
#define D2DERR_INTERNAL_ERROR MAKE_D2DHR_ERR(0x008)
98+
99+
//
100+
// The display format we need to render is not supported by the
101+
// hardware device.
102+
//
103+
#define D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED MAKE_D2DHR_ERR(0x009)
104+
105+
//
106+
// A call to this method is invalid.
107+
//
108+
#define D2DERR_INVALID_CALL MAKE_D2DHR_ERR(0x00A)
109+
110+
//
111+
// No HW rendering device is available for this operation.
112+
//
113+
#define D2DERR_NO_HARDWARE_DEVICE MAKE_D2DHR_ERR(0x00B)
114+
115+
//
116+
// There has been a presentation error that may be recoverable. The caller
117+
// needs to recreate, rerender the entire frame, and reattempt present.
118+
//
119+
#define D2DERR_RECREATE_TARGET MAKE_D2DHR_ERR(0x00C)
120+
121+
//
122+
// Shader construction failed because it was too complex.
123+
//
124+
#define D2DERR_TOO_MANY_SHADER_ELEMENTS MAKE_D2DHR_ERR(0x00D)
125+
126+
//
127+
// Shader compilation failed.
128+
//
129+
#define D2DERR_SHADER_COMPILE_FAILED MAKE_D2DHR_ERR(0x00E)
130+
131+
//
132+
// Requested DX surface size exceeded maximum texture size.
133+
//
134+
#define D2DERR_MAX_TEXTURE_SIZE_EXCEEDED MAKE_D2DHR_ERR(0x00F)
135+
136+
//
137+
// The requested D2D version is not supported.
138+
//
139+
#define D2DERR_UNSUPPORTED_VERSION MAKE_D2DHR_ERR(0x010)
140+
141+
//
142+
// Invalid number.
143+
//
144+
#define D2DERR_BAD_NUMBER MAKE_D2DHR_ERR(0x0011)
145+
146+
//
147+
// Objects used together must be created from the same factory instance.
148+
//
149+
#define D2DERR_WRONG_FACTORY MAKE_D2DHR_ERR(0x012)
150+
151+
//
152+
// A layer resource can only be in use once at any point in time.
153+
//
154+
#define D2DERR_LAYER_ALREADY_IN_USE MAKE_D2DHR_ERR(0x013)
155+
156+
//
157+
// The pop call did not match the corresponding push call
158+
//
159+
#define D2DERR_POP_CALL_DID_NOT_MATCH_PUSH MAKE_D2DHR_ERR(0x014)
160+
161+
//
162+
// The resource was realized on the wrong render target
163+
//
164+
#define D2DERR_WRONG_RESOURCE_DOMAIN MAKE_D2DHR_ERR(0x015)
165+
166+
//
167+
// The push and pop calls were unbalanced
168+
//
169+
#define D2DERR_PUSH_POP_UNBALANCED MAKE_D2DHR_ERR(0x016)
170+
171+
//
172+
// Attempt to copy from a render target while a layer or clip rect is applied
173+
//
174+
#define D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT MAKE_D2DHR_ERR(0x017)
175+
176+
//
177+
// The brush types are incompatible for the call.
178+
//
179+
#define D2DERR_INCOMPATIBLE_BRUSH_TYPES MAKE_D2DHR_ERR(0x018)
180+
181+
//
182+
// An unknown win32 failure occurred.
183+
//
184+
#define D2DERR_WIN32_ERROR MAKE_D2DHR_ERR(0x019)
185+
186+
//
187+
// The render target is not compatible with GDI
188+
//
189+
#define D2DERR_TARGET_NOT_GDI_COMPATIBLE MAKE_D2DHR_ERR(0x01A)
190+
191+
//
192+
// A text client drawing effect object is of the wrong type
193+
//
194+
#define D2DERR_TEXT_EFFECT_IS_WRONG_TYPE MAKE_D2DHR_ERR(0x01B)
195+
196+
//
197+
// The application is holding a reference to the IDWriteTextRenderer interface
198+
// after the corresponding DrawText or DrawTextLayout call has returned. The
199+
// IDWriteTextRenderer instance will be zombied.
200+
//
201+
#define D2DERR_TEXT_RENDERER_NOT_RELEASED MAKE_D2DHR_ERR(0x01C)
202+
203+
//
204+
// The requested size is larger than the guaranteed supported texture size.
205+
//
206+
#define D2DERR_EXCEEDS_MAX_BITMAP_SIZE MAKE_D2DHR_ERR(0x01D)

0 commit comments

Comments
 (0)