[PSDK]
[reactos.git] / reactos / include / reactos / wine / wined3d.idl
1 /*
2 * Copyright 2002-2003 The wine-d3d team
3 * Copyright 2002-2003 Jason Edmeades
4 * Copyright 2002-2003 Raphael Junqueira
5 * Copyright 2005 Oliver Stieber
6 * Copyright 2006 Stefan Dösinger
7 * Copyright 2006 Stefan Dösinger for CodeWeavers
8 * Copyright 2007 Henri Verbeet
9 * Copyright 2008 Henri Verbeet for CodeWeavers
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
26 import "unknwn.idl";
27
28 cpp_quote("#if 0")
29 typedef HANDLE HMONITOR;
30
31 typedef struct _RGNDATAHEADER
32 {
33 DWORD dwSize;
34 DWORD iType;
35 DWORD nCount;
36 DWORD nRgnSize;
37 RECT rcBound;
38 } RGNDATAHEADER;
39
40 typedef struct _RGNDATA
41 {
42 RGNDATAHEADER rdh;
43 char Buffer[1];
44 } RGNDATA;
45
46 typedef struct _LUID
47 {
48 DWORD LowPart;
49 LONG HighPart;
50 } LUID, *PLUID;
51 cpp_quote("#endif")
52
53 cpp_quote("#define WINED3D_OK S_OK")
54
55 const UINT _FACWINED3D = 0x876;
56 cpp_quote("#define MAKE_WINED3DSTATUS(code) MAKE_HRESULT(0, _FACWINED3D, code)")
57 cpp_quote("#define WINED3DOK_NOAUTOGEN MAKE_WINED3DSTATUS(2159)")
58
59 cpp_quote("#define MAKE_WINED3DHRESULT(code) MAKE_HRESULT(1, _FACWINED3D, code)")
60 cpp_quote("#define WINED3DERR_WRONGTEXTUREFORMAT MAKE_WINED3DHRESULT(2072)")
61 cpp_quote("#define WINED3DERR_UNSUPPORTEDCOLOROPERATION MAKE_WINED3DHRESULT(2073)")
62 cpp_quote("#define WINED3DERR_UNSUPPORTEDCOLORARG MAKE_WINED3DHRESULT(2074)")
63 cpp_quote("#define WINED3DERR_UNSUPPORTEDALPHAOPERATION MAKE_WINED3DHRESULT(2075)")
64 cpp_quote("#define WINED3DERR_UNSUPPORTEDALPHAARG MAKE_WINED3DHRESULT(2076)")
65 cpp_quote("#define WINED3DERR_TOOMANYOPERATIONS MAKE_WINED3DHRESULT(2077)")
66 cpp_quote("#define WINED3DERR_CONFLICTINGTEXTUREFILTER MAKE_WINED3DHRESULT(2078)")
67 cpp_quote("#define WINED3DERR_UNSUPPORTEDFACTORVALUE MAKE_WINED3DHRESULT(2079)")
68 cpp_quote("#define WINED3DERR_CONFLICTINGRENDERSTATE MAKE_WINED3DHRESULT(2081)")
69 cpp_quote("#define WINED3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_WINED3DHRESULT(2082)")
70 cpp_quote("#define WINED3DERR_CONFLICTINGTEXTUREPALETTE MAKE_WINED3DHRESULT(2086)")
71 cpp_quote("#define WINED3DERR_DRIVERINTERNALERROR MAKE_WINED3DHRESULT(2087)")
72 cpp_quote("#define WINED3DERR_NOTFOUND MAKE_WINED3DHRESULT(2150)")
73 cpp_quote("#define WINED3DERR_MOREDATA MAKE_WINED3DHRESULT(2151)")
74 cpp_quote("#define WINED3DERR_DEVICELOST MAKE_WINED3DHRESULT(2152)")
75 cpp_quote("#define WINED3DERR_DEVICENOTRESET MAKE_WINED3DHRESULT(2153)")
76 cpp_quote("#define WINED3DERR_NOTAVAILABLE MAKE_WINED3DHRESULT(2154)")
77 cpp_quote("#define WINED3DERR_OUTOFVIDEOMEMORY MAKE_WINED3DHRESULT(380)")
78 cpp_quote("#define WINED3DERR_INVALIDDEVICE MAKE_WINED3DHRESULT(2155)")
79 cpp_quote("#define WINED3DERR_INVALIDCALL MAKE_WINED3DHRESULT(2156)")
80 cpp_quote("#define WINED3DERR_DRIVERINVALIDCALL MAKE_WINED3DHRESULT(2157)")
81 cpp_quote("#define WINED3DERR_WASSTILLDRAWING MAKE_WINED3DHRESULT(540)")
82 cpp_quote("#define WINEDDERR_NOTAOVERLAYSURFACE MAKE_WINED3DHRESULT(580)")
83 cpp_quote("#define WINEDDERR_NOTLOCKED MAKE_WINED3DHRESULT(584)")
84 cpp_quote("#define WINEDDERR_NODC MAKE_WINED3DHRESULT(586)")
85 cpp_quote("#define WINEDDERR_DCALREADYCREATED MAKE_WINED3DHRESULT(620)")
86 cpp_quote("#define WINEDDERR_NOTFLIPPABLE MAKE_WINED3DHRESULT(582)")
87 cpp_quote("#define WINEDDERR_SURFACEBUSY MAKE_WINED3DHRESULT(430)")
88 cpp_quote("#define WINEDDERR_INVALIDRECT MAKE_WINED3DHRESULT(150)")
89 cpp_quote("#define WINEDDERR_NOCLIPLIST MAKE_WINED3DHRESULT(205)")
90 cpp_quote("#define WINEDDERR_OVERLAYNOTVISIBLE MAKE_WINED3DHRESULT(577)")
91
92 typedef DWORD WINED3DCOLOR;
93
94 typedef enum _WINED3DLIGHTTYPE
95 {
96 WINED3DLIGHT_POINT = 1,
97 WINED3DLIGHT_SPOT = 2,
98 WINED3DLIGHT_DIRECTIONAL = 3,
99 WINED3DLIGHT_PARALLELPOINT = 4, /* D3D7 */
100 WINED3DLIGHT_GLSPOT = 5, /* D3D7 */
101 WINED3DLIGHT_FORCE_DWORD = 0x7fffffff
102 } WINED3DLIGHTTYPE;
103
104 typedef enum _WINED3DPRIMITIVETYPE
105 {
106 WINED3DPT_UNDEFINED = 0,
107 WINED3DPT_POINTLIST = 1,
108 WINED3DPT_LINELIST = 2,
109 WINED3DPT_LINESTRIP = 3,
110 WINED3DPT_TRIANGLELIST = 4,
111 WINED3DPT_TRIANGLESTRIP = 5,
112 WINED3DPT_TRIANGLEFAN = 6,
113 WINED3DPT_LINELIST_ADJ = 10,
114 WINED3DPT_LINESTRIP_ADJ = 11,
115 WINED3DPT_TRIANGLELIST_ADJ = 12,
116 WINED3DPT_TRIANGLESTRIP_ADJ = 13,
117 WINED3DPT_FORCE_DWORD = 0x7fffffff
118 } WINED3DPRIMITIVETYPE;
119
120 typedef enum _WINED3DDEVTYPE
121 {
122 WINED3DDEVTYPE_HAL = 1,
123 WINED3DDEVTYPE_REF = 2,
124 WINED3DDEVTYPE_SW = 3,
125 WINED3DDEVTYPE_NULLREF = 4,
126 WINED3DDEVTYPE_FORCE_DWORD = 0xffffffff
127 } WINED3DDEVTYPE;
128
129 typedef enum _WINED3DDEGREETYPE
130 {
131 WINED3DDEGREE_LINEAR = 1,
132 WINED3DDEGREE_QUADRATIC = 2,
133 WINED3DDEGREE_CUBIC = 3,
134 WINED3DDEGREE_QUINTIC = 5,
135 WINED3DDEGREE_FORCE_DWORD = 0x7fffffff
136 } WINED3DDEGREETYPE;
137
138 typedef enum _WINED3DFORMAT
139 {
140 WINED3DFMT_UNKNOWN,
141 WINED3DFMT_B8G8R8_UNORM,
142 WINED3DFMT_B5G5R5X1_UNORM,
143 WINED3DFMT_B4G4R4A4_UNORM,
144 WINED3DFMT_B2G3R3_UNORM,
145 WINED3DFMT_B2G3R3A8_UNORM,
146 WINED3DFMT_B4G4R4X4_UNORM,
147 WINED3DFMT_R8G8B8X8_UNORM,
148 WINED3DFMT_B10G10R10A2_UNORM,
149 WINED3DFMT_P8_UINT_A8_UNORM,
150 WINED3DFMT_P8_UINT,
151 WINED3DFMT_L8_UNORM,
152 WINED3DFMT_L8A8_UNORM,
153 WINED3DFMT_L4A4_UNORM,
154 WINED3DFMT_R5G5_SNORM_L6_UNORM,
155 WINED3DFMT_R8G8_SNORM_L8X8_UNORM,
156 WINED3DFMT_R10G11B11_SNORM,
157 WINED3DFMT_R10G10B10_SNORM_A2_UNORM,
158 WINED3DFMT_D16_LOCKABLE,
159 WINED3DFMT_D32_UNORM,
160 WINED3DFMT_S1_UINT_D15_UNORM,
161 WINED3DFMT_X8D24_UNORM,
162 WINED3DFMT_S4X4_UINT_D24_UNORM,
163 WINED3DFMT_L16_UNORM,
164 WINED3DFMT_S8_UINT_D24_FLOAT,
165 WINED3DFMT_VERTEXDATA,
166 WINED3DFMT_R8G8_SNORM_Cx,
167 WINED3DFMT_R32G32B32A32_TYPELESS,
168 WINED3DFMT_R32G32B32A32_FLOAT,
169 WINED3DFMT_R32G32B32A32_UINT,
170 WINED3DFMT_R32G32B32A32_SINT,
171 WINED3DFMT_R32G32B32_TYPELESS,
172 WINED3DFMT_R32G32B32_FLOAT,
173 WINED3DFMT_R32G32B32_UINT,
174 WINED3DFMT_R32G32B32_SINT,
175 WINED3DFMT_R16G16B16A16_TYPELESS,
176 WINED3DFMT_R16G16B16A16_FLOAT,
177 WINED3DFMT_R16G16B16A16_UNORM,
178 WINED3DFMT_R16G16B16A16_UINT,
179 WINED3DFMT_R16G16B16A16_SNORM,
180 WINED3DFMT_R16G16B16A16_SINT,
181 WINED3DFMT_R32G32_TYPELESS,
182 WINED3DFMT_R32G32_FLOAT,
183 WINED3DFMT_R32G32_UINT,
184 WINED3DFMT_R32G32_SINT,
185 WINED3DFMT_R32G8X24_TYPELESS,
186 WINED3DFMT_D32_FLOAT_S8X24_UINT,
187 WINED3DFMT_R32_FLOAT_X8X24_TYPELESS,
188 WINED3DFMT_X32_TYPELESS_G8X24_UINT,
189 WINED3DFMT_R10G10B10A2_TYPELESS,
190 WINED3DFMT_R10G10B10A2_UNORM,
191 WINED3DFMT_R10G10B10A2_UINT,
192 WINED3DFMT_R10G10B10A2_SNORM,
193 WINED3DFMT_R11G11B10_FLOAT,
194 WINED3DFMT_R8G8B8A8_TYPELESS,
195 WINED3DFMT_R8G8B8A8_UNORM,
196 WINED3DFMT_R8G8B8A8_UNORM_SRGB,
197 WINED3DFMT_R8G8B8A8_UINT,
198 WINED3DFMT_R8G8B8A8_SNORM,
199 WINED3DFMT_R8G8B8A8_SINT,
200 WINED3DFMT_R16G16_TYPELESS,
201 WINED3DFMT_R16G16_FLOAT,
202 WINED3DFMT_R16G16_UNORM,
203 WINED3DFMT_R16G16_UINT,
204 WINED3DFMT_R16G16_SNORM,
205 WINED3DFMT_R16G16_SINT,
206 WINED3DFMT_R32_TYPELESS,
207 WINED3DFMT_D32_FLOAT,
208 WINED3DFMT_R32_FLOAT,
209 WINED3DFMT_R32_UINT,
210 WINED3DFMT_R32_SINT,
211 WINED3DFMT_R24G8_TYPELESS,
212 WINED3DFMT_D24_UNORM_S8_UINT,
213 WINED3DFMT_R24_UNORM_X8_TYPELESS,
214 WINED3DFMT_X24_TYPELESS_G8_UINT,
215 WINED3DFMT_R8G8_TYPELESS,
216 WINED3DFMT_R8G8_UNORM,
217 WINED3DFMT_R8G8_UINT,
218 WINED3DFMT_R8G8_SNORM,
219 WINED3DFMT_R8G8_SINT,
220 WINED3DFMT_R16_TYPELESS,
221 WINED3DFMT_R16_FLOAT,
222 WINED3DFMT_D16_UNORM,
223 WINED3DFMT_R16_UNORM,
224 WINED3DFMT_R16_UINT,
225 WINED3DFMT_R16_SNORM,
226 WINED3DFMT_R16_SINT,
227 WINED3DFMT_R8_TYPELESS,
228 WINED3DFMT_R8_UNORM,
229 WINED3DFMT_R8_UINT,
230 WINED3DFMT_R8_SNORM,
231 WINED3DFMT_R8_SINT,
232 WINED3DFMT_A8_UNORM,
233 WINED3DFMT_R1_UNORM,
234 WINED3DFMT_R9G9B9E5_SHAREDEXP,
235 WINED3DFMT_R8G8_B8G8_UNORM,
236 WINED3DFMT_G8R8_G8B8_UNORM,
237 WINED3DFMT_BC1_TYPELESS,
238 WINED3DFMT_BC1_UNORM,
239 WINED3DFMT_BC1_UNORM_SRGB,
240 WINED3DFMT_BC2_TYPELESS,
241 WINED3DFMT_BC2_UNORM,
242 WINED3DFMT_BC2_UNORM_SRGB,
243 WINED3DFMT_BC3_TYPELESS,
244 WINED3DFMT_BC3_UNORM,
245 WINED3DFMT_BC3_UNORM_SRGB,
246 WINED3DFMT_BC4_TYPELESS,
247 WINED3DFMT_BC4_UNORM,
248 WINED3DFMT_BC4_SNORM,
249 WINED3DFMT_BC5_TYPELESS,
250 WINED3DFMT_BC5_UNORM,
251 WINED3DFMT_BC5_SNORM,
252 WINED3DFMT_B5G6R5_UNORM,
253 WINED3DFMT_B5G5R5A1_UNORM,
254 WINED3DFMT_B8G8R8A8_UNORM,
255 WINED3DFMT_B8G8R8X8_UNORM,
256 /* FOURCC formats. */
257 WINED3DFMT_UYVY = 0x59565955, /* UYVY */
258 WINED3DFMT_YUY2 = 0x32595559, /* YUY2 */
259 WINED3DFMT_YV12 = 0x32315659, /* YV12 */
260 WINED3DFMT_DXT1 = 0x31545844, /* DXT1 */
261 WINED3DFMT_DXT2 = 0x32545844, /* DXT2 */
262 WINED3DFMT_DXT3 = 0x33545844, /* DXT3 */
263 WINED3DFMT_DXT4 = 0x34545844, /* DXT4 */
264 WINED3DFMT_DXT5 = 0x35545844, /* DXT5 */
265 WINED3DFMT_MULTI2_ARGB8 = 0x3154454d, /* MET1 */
266 WINED3DFMT_G8R8_G8B8 = 0x42475247, /* GRGB */
267 WINED3DFMT_R8G8_B8G8 = 0x47424752, /* RGBG */
268 WINED3DFMT_ATI2N = 0x32495441, /* ATI2 */
269 WINED3DFMT_INST = 0x54534e49, /* INST */
270 WINED3DFMT_NVHU = 0x5548564e, /* NVHU */
271 WINED3DFMT_NVHS = 0x5348564e, /* NVHS */
272
273 WINED3DFMT_FORCE_DWORD = 0xffffffff
274 } WINED3DFORMAT;
275
276 typedef enum _WINED3DRENDERSTATETYPE
277 {
278 WINED3DRS_TEXTUREHANDLE = 1, /* d3d7 */
279 WINED3DRS_ANTIALIAS = 2, /* d3d7 */
280 WINED3DRS_TEXTUREADDRESS = 3, /* d3d7 */
281 WINED3DRS_TEXTUREPERSPECTIVE = 4, /* d3d7 */
282 WINED3DRS_WRAPU = 5, /* d3d7 */
283 WINED3DRS_WRAPV = 6, /* d3d7 */
284 WINED3DRS_ZENABLE = 7,
285 WINED3DRS_FILLMODE = 8,
286 WINED3DRS_SHADEMODE = 9,
287 WINED3DRS_LINEPATTERN = 10, /* d3d7, d3d8 */
288 WINED3DRS_MONOENABLE = 11, /* d3d7 */
289 WINED3DRS_ROP2 = 12, /* d3d7 */
290 WINED3DRS_PLANEMASK = 13, /* d3d7 */
291 WINED3DRS_ZWRITEENABLE = 14,
292 WINED3DRS_ALPHATESTENABLE = 15,
293 WINED3DRS_LASTPIXEL = 16,
294 WINED3DRS_TEXTUREMAG = 17, /* d3d7 */
295 WINED3DRS_TEXTUREMIN = 18, /* d3d7 */
296 WINED3DRS_SRCBLEND = 19,
297 WINED3DRS_DESTBLEND = 20,
298 WINED3DRS_TEXTUREMAPBLEND = 21, /* d3d7 */
299 WINED3DRS_CULLMODE = 22,
300 WINED3DRS_ZFUNC = 23,
301 WINED3DRS_ALPHAREF = 24,
302 WINED3DRS_ALPHAFUNC = 25,
303 WINED3DRS_DITHERENABLE = 26,
304 WINED3DRS_ALPHABLENDENABLE = 27,
305 WINED3DRS_FOGENABLE = 28,
306 WINED3DRS_SPECULARENABLE = 29,
307 WINED3DRS_ZVISIBLE = 30, /* d3d7, d3d8 */
308 WINED3DRS_SUBPIXEL = 31, /* d3d7 */
309 WINED3DRS_SUBPIXELX = 32, /* d3d7 */
310 WINED3DRS_STIPPLEDALPHA = 33, /* d3d7 */
311 WINED3DRS_FOGCOLOR = 34,
312 WINED3DRS_FOGTABLEMODE = 35,
313 WINED3DRS_FOGSTART = 36,
314 WINED3DRS_FOGEND = 37,
315 WINED3DRS_FOGDENSITY = 38,
316 WINED3DRS_STIPPLEENABLE = 39, /* d3d7 */
317 WINED3DRS_EDGEANTIALIAS = 40, /* d3d7, d3d8 */
318 WINED3DRS_COLORKEYENABLE = 41, /* d3d7 */
319 WINED3DRS_BORDERCOLOR = 43, /* d3d7 */
320 WINED3DRS_TEXTUREADDRESSU = 44, /* d3d7 */
321 WINED3DRS_TEXTUREADDRESSV = 45, /* d3d7 */
322 WINED3DRS_MIPMAPLODBIAS = 46, /* d3d7 */
323 WINED3DRS_ZBIAS = 47, /* d3d7, d3d8 */
324 WINED3DRS_RANGEFOGENABLE = 48,
325 WINED3DRS_ANISOTROPY = 49, /* d3d7 */
326 WINED3DRS_FLUSHBATCH = 50, /* d3d7 */
327 WINED3DRS_TRANSLUCENTSORTINDEPENDENT = 51, /* d3d7 */
328 WINED3DRS_STENCILENABLE = 52,
329 WINED3DRS_STENCILFAIL = 53,
330 WINED3DRS_STENCILZFAIL = 54,
331 WINED3DRS_STENCILPASS = 55,
332 WINED3DRS_STENCILFUNC = 56,
333 WINED3DRS_STENCILREF = 57,
334 WINED3DRS_STENCILMASK = 58,
335 WINED3DRS_STENCILWRITEMASK = 59,
336 WINED3DRS_TEXTUREFACTOR = 60,
337 WINED3DRS_STIPPLEPATTERN00 = 64,
338 WINED3DRS_STIPPLEPATTERN01 = 65,
339 WINED3DRS_STIPPLEPATTERN02 = 66,
340 WINED3DRS_STIPPLEPATTERN03 = 67,
341 WINED3DRS_STIPPLEPATTERN04 = 68,
342 WINED3DRS_STIPPLEPATTERN05 = 69,
343 WINED3DRS_STIPPLEPATTERN06 = 70,
344 WINED3DRS_STIPPLEPATTERN07 = 71,
345 WINED3DRS_STIPPLEPATTERN08 = 72,
346 WINED3DRS_STIPPLEPATTERN09 = 73,
347 WINED3DRS_STIPPLEPATTERN10 = 74,
348 WINED3DRS_STIPPLEPATTERN11 = 75,
349 WINED3DRS_STIPPLEPATTERN12 = 76,
350 WINED3DRS_STIPPLEPATTERN13 = 77,
351 WINED3DRS_STIPPLEPATTERN14 = 78,
352 WINED3DRS_STIPPLEPATTERN15 = 79,
353 WINED3DRS_STIPPLEPATTERN16 = 80,
354 WINED3DRS_STIPPLEPATTERN17 = 81,
355 WINED3DRS_STIPPLEPATTERN18 = 82,
356 WINED3DRS_STIPPLEPATTERN19 = 83,
357 WINED3DRS_STIPPLEPATTERN20 = 84,
358 WINED3DRS_STIPPLEPATTERN21 = 85,
359 WINED3DRS_STIPPLEPATTERN22 = 86,
360 WINED3DRS_STIPPLEPATTERN23 = 87,
361 WINED3DRS_STIPPLEPATTERN24 = 88,
362 WINED3DRS_STIPPLEPATTERN25 = 89,
363 WINED3DRS_STIPPLEPATTERN26 = 90,
364 WINED3DRS_STIPPLEPATTERN27 = 91,
365 WINED3DRS_STIPPLEPATTERN28 = 92,
366 WINED3DRS_STIPPLEPATTERN29 = 93,
367 WINED3DRS_STIPPLEPATTERN30 = 94,
368 WINED3DRS_STIPPLEPATTERN31 = 95,
369 WINED3DRS_WRAP0 = 128,
370 WINED3DRS_WRAP1 = 129,
371 WINED3DRS_WRAP2 = 130,
372 WINED3DRS_WRAP3 = 131,
373 WINED3DRS_WRAP4 = 132,
374 WINED3DRS_WRAP5 = 133,
375 WINED3DRS_WRAP6 = 134,
376 WINED3DRS_WRAP7 = 135,
377 WINED3DRS_CLIPPING = 136,
378 WINED3DRS_LIGHTING = 137,
379 WINED3DRS_EXTENTS = 138, /* d3d7 */
380 WINED3DRS_AMBIENT = 139,
381 WINED3DRS_FOGVERTEXMODE = 140,
382 WINED3DRS_COLORVERTEX = 141,
383 WINED3DRS_LOCALVIEWER = 142,
384 WINED3DRS_NORMALIZENORMALS = 143,
385 WINED3DRS_COLORKEYBLENDENABLE = 144, /* d3d7 */
386 WINED3DRS_DIFFUSEMATERIALSOURCE = 145,
387 WINED3DRS_SPECULARMATERIALSOURCE = 146,
388 WINED3DRS_AMBIENTMATERIALSOURCE = 147,
389 WINED3DRS_EMISSIVEMATERIALSOURCE = 148,
390 WINED3DRS_VERTEXBLEND = 151,
391 WINED3DRS_CLIPPLANEENABLE = 152,
392 WINED3DRS_SOFTWAREVERTEXPROCESSING = 153, /* d3d8 */
393 WINED3DRS_POINTSIZE = 154,
394 WINED3DRS_POINTSIZE_MIN = 155,
395 WINED3DRS_POINTSPRITEENABLE = 156,
396 WINED3DRS_POINTSCALEENABLE = 157,
397 WINED3DRS_POINTSCALE_A = 158,
398 WINED3DRS_POINTSCALE_B = 159,
399 WINED3DRS_POINTSCALE_C = 160,
400 WINED3DRS_MULTISAMPLEANTIALIAS = 161,
401 WINED3DRS_MULTISAMPLEMASK = 162,
402 WINED3DRS_PATCHEDGESTYLE = 163,
403 WINED3DRS_PATCHSEGMENTS = 164, /* d3d8 */
404 WINED3DRS_DEBUGMONITORTOKEN = 165,
405 WINED3DRS_POINTSIZE_MAX = 166,
406 WINED3DRS_INDEXEDVERTEXBLENDENABLE = 167,
407 WINED3DRS_COLORWRITEENABLE = 168,
408 WINED3DRS_TWEENFACTOR = 170,
409 WINED3DRS_BLENDOP = 171,
410 WINED3DRS_POSITIONORDER = 172,
411 WINED3DRS_NORMALORDER = 173,
412 WINED3DRS_POSITIONDEGREE = 172,
413 WINED3DRS_NORMALDEGREE = 173,
414 WINED3DRS_SCISSORTESTENABLE = 174,
415 WINED3DRS_SLOPESCALEDEPTHBIAS = 175,
416 WINED3DRS_ANTIALIASEDLINEENABLE = 176,
417 WINED3DRS_MINTESSELLATIONLEVEL = 178,
418 WINED3DRS_MAXTESSELLATIONLEVEL = 179,
419 WINED3DRS_ADAPTIVETESS_X = 180,
420 WINED3DRS_ADAPTIVETESS_Y = 181,
421 WINED3DRS_ADAPTIVETESS_Z = 182,
422 WINED3DRS_ADAPTIVETESS_W = 183,
423 WINED3DRS_ENABLEADAPTIVETESSELLATION = 184,
424 WINED3DRS_TWOSIDEDSTENCILMODE = 185,
425 WINED3DRS_CCW_STENCILFAIL = 186,
426 WINED3DRS_CCW_STENCILZFAIL = 187,
427 WINED3DRS_CCW_STENCILPASS = 188,
428 WINED3DRS_CCW_STENCILFUNC = 189,
429 WINED3DRS_COLORWRITEENABLE1 = 190,
430 WINED3DRS_COLORWRITEENABLE2 = 191,
431 WINED3DRS_COLORWRITEENABLE3 = 192,
432 WINED3DRS_BLENDFACTOR = 193,
433 WINED3DRS_SRGBWRITEENABLE = 194,
434 WINED3DRS_DEPTHBIAS = 195,
435 WINED3DRS_WRAP8 = 198,
436 WINED3DRS_WRAP9 = 199,
437 WINED3DRS_WRAP10 = 200,
438 WINED3DRS_WRAP11 = 201,
439 WINED3DRS_WRAP12 = 202,
440 WINED3DRS_WRAP13 = 203,
441 WINED3DRS_WRAP14 = 204,
442 WINED3DRS_WRAP15 = 205,
443 WINED3DRS_SEPARATEALPHABLENDENABLE = 206,
444 WINED3DRS_SRCBLENDALPHA = 207,
445 WINED3DRS_DESTBLENDALPHA = 208,
446 WINED3DRS_BLENDOPALPHA = 209,
447 WINED3DRS_FORCE_DWORD = 0x7fffffff
448 } WINED3DRENDERSTATETYPE;
449 const UINT WINEHIGHEST_RENDER_STATE = WINED3DRS_BLENDOPALPHA;
450
451 typedef enum _WINED3DBLEND
452 {
453 WINED3DBLEND_ZERO = 1,
454 WINED3DBLEND_ONE = 2,
455 WINED3DBLEND_SRCCOLOR = 3,
456 WINED3DBLEND_INVSRCCOLOR = 4,
457 WINED3DBLEND_SRCALPHA = 5,
458 WINED3DBLEND_INVSRCALPHA = 6,
459 WINED3DBLEND_DESTALPHA = 7,
460 WINED3DBLEND_INVDESTALPHA = 8,
461 WINED3DBLEND_DESTCOLOR = 9,
462 WINED3DBLEND_INVDESTCOLOR = 10,
463 WINED3DBLEND_SRCALPHASAT = 11,
464 WINED3DBLEND_BOTHSRCALPHA = 12,
465 WINED3DBLEND_BOTHINVSRCALPHA = 13,
466 WINED3DBLEND_BLENDFACTOR = 14,
467 WINED3DBLEND_INVBLENDFACTOR = 15,
468 WINED3DBLEND_FORCE_DWORD = 0x7fffffff
469 } WINED3DBLEND;
470
471 typedef enum _WINED3DBLENDOP
472 {
473 WINED3DBLENDOP_ADD = 1,
474 WINED3DBLENDOP_SUBTRACT = 2,
475 WINED3DBLENDOP_REVSUBTRACT = 3,
476 WINED3DBLENDOP_MIN = 4,
477 WINED3DBLENDOP_MAX = 5,
478 WINED3DBLENDOP_FORCE_DWORD = 0x7fffffff
479 } WINED3DBLENDOP;
480
481 typedef enum _WINED3DVERTEXBLENDFLAGS
482 {
483 WINED3DVBF_DISABLE = 0,
484 WINED3DVBF_1WEIGHTS = 1,
485 WINED3DVBF_2WEIGHTS = 2,
486 WINED3DVBF_3WEIGHTS = 3,
487 WINED3DVBF_TWEENING = 255,
488 WINED3DVBF_0WEIGHTS = 256
489 } WINED3DVERTEXBLENDFLAGS;
490
491 typedef enum _WINED3DCMPFUNC
492 {
493 WINED3DCMP_NEVER = 1,
494 WINED3DCMP_LESS = 2,
495 WINED3DCMP_EQUAL = 3,
496 WINED3DCMP_LESSEQUAL = 4,
497 WINED3DCMP_GREATER = 5,
498 WINED3DCMP_NOTEQUAL = 6,
499 WINED3DCMP_GREATEREQUAL = 7,
500 WINED3DCMP_ALWAYS = 8,
501 WINED3DCMP_FORCE_DWORD = 0x7fffffff
502 } WINED3DCMPFUNC;
503
504 typedef enum _WINED3DZBUFFERTYPE
505 {
506 WINED3DZB_FALSE = 0,
507 WINED3DZB_TRUE = 1,
508 WINED3DZB_USEW = 2,
509 WINED3DZB_FORCE_DWORD = 0x7fffffff
510 } WINED3DZBUFFERTYPE;
511
512 typedef enum _WINED3DFOGMODE
513 {
514 WINED3DFOG_NONE = 0,
515 WINED3DFOG_EXP = 1,
516 WINED3DFOG_EXP2 = 2,
517 WINED3DFOG_LINEAR = 3,
518 WINED3DFOG_FORCE_DWORD = 0x7fffffff
519 } WINED3DFOGMODE;
520
521 typedef enum _WINED3DSHADEMODE
522 {
523 WINED3DSHADE_FLAT = 1,
524 WINED3DSHADE_GOURAUD = 2,
525 WINED3DSHADE_PHONG = 3,
526 WINED3DSHADE_FORCE_DWORD = 0x7fffffff
527 } WINED3DSHADEMODE;
528
529 typedef enum _WINED3DFILLMODE
530 {
531 WINED3DFILL_POINT = 1,
532 WINED3DFILL_WIREFRAME = 2,
533 WINED3DFILL_SOLID = 3,
534 WINED3DFILL_FORCE_DWORD = 0x7fffffff
535 } WINED3DFILLMODE;
536
537 typedef enum _WINED3DCULL
538 {
539 WINED3DCULL_NONE = 1,
540 WINED3DCULL_CW = 2,
541 WINED3DCULL_CCW = 3,
542 WINED3DCULL_FORCE_DWORD = 0x7fffffff
543 } WINED3DCULL;
544
545 typedef enum _WINED3DSTENCILOP
546 {
547 WINED3DSTENCILOP_KEEP = 1,
548 WINED3DSTENCILOP_ZERO = 2,
549 WINED3DSTENCILOP_REPLACE = 3,
550 WINED3DSTENCILOP_INCRSAT = 4,
551 WINED3DSTENCILOP_DECRSAT = 5,
552 WINED3DSTENCILOP_INVERT = 6,
553 WINED3DSTENCILOP_INCR = 7,
554 WINED3DSTENCILOP_DECR = 8,
555 WINED3DSTENCILOP_FORCE_DWORD = 0x7fffffff
556 } WINED3DSTENCILOP;
557
558 typedef enum _WINED3DMATERIALCOLORSOURCE
559 {
560 WINED3DMCS_MATERIAL = 0,
561 WINED3DMCS_COLOR1 = 1,
562 WINED3DMCS_COLOR2 = 2,
563 WINED3DMCS_FORCE_DWORD = 0x7fffffff
564 } WINED3DMATERIALCOLORSOURCE;
565
566 typedef enum _WINED3DPATCHEDGESTYLE
567 {
568 WINED3DPATCHEDGE_DISCRETE = 0,
569 WINED3DPATCHEDGE_CONTINUOUS = 1,
570 WINED3DPATCHEDGE_FORCE_DWORD = 0x7fffffff
571 } WINED3DPATCHEDGESTYLE;
572
573 typedef enum _WINED3DBACKBUFFER_TYPE
574 {
575 WINED3DBACKBUFFER_TYPE_MONO = 0,
576 WINED3DBACKBUFFER_TYPE_LEFT = 1,
577 WINED3DBACKBUFFER_TYPE_RIGHT = 2,
578 WINED3DBACKBUFFER_TYPE_FORCE_DWORD = 0x7fffffff
579 } WINED3DBACKBUFFER_TYPE;
580
581 typedef enum _WINED3DSWAPEFFECT
582 {
583 WINED3DSWAPEFFECT_DISCARD = 1,
584 WINED3DSWAPEFFECT_FLIP = 2,
585 WINED3DSWAPEFFECT_COPY = 3,
586 WINED3DSWAPEFFECT_COPY_VSYNC = 4,
587 WINED3DSWAPEFFECT_FORCE_DWORD = 0xffffffff
588 } WINED3DSWAPEFFECT;
589
590 typedef enum _WINED3DSAMPLERSTATETYPE
591 {
592 WINED3DSAMP_ADDRESSU = 1,
593 WINED3DSAMP_ADDRESSV = 2,
594 WINED3DSAMP_ADDRESSW = 3,
595 WINED3DSAMP_BORDERCOLOR = 4,
596 WINED3DSAMP_MAGFILTER = 5,
597 WINED3DSAMP_MINFILTER = 6,
598 WINED3DSAMP_MIPFILTER = 7,
599 WINED3DSAMP_MIPMAPLODBIAS = 8,
600 WINED3DSAMP_MAXMIPLEVEL = 9,
601 WINED3DSAMP_MAXANISOTROPY = 10,
602 WINED3DSAMP_SRGBTEXTURE = 11,
603 WINED3DSAMP_ELEMENTINDEX = 12,
604 WINED3DSAMP_DMAPOFFSET = 13,
605 WINED3DSAMP_FORCE_DWORD = 0x7fffffff,
606 } WINED3DSAMPLERSTATETYPE;
607 const UINT WINED3D_HIGHEST_SAMPLER_STATE = WINED3DSAMP_DMAPOFFSET;
608
609 typedef enum _WINED3DMULTISAMPLE_TYPE
610 {
611 WINED3DMULTISAMPLE_NONE = 0,
612 WINED3DMULTISAMPLE_NONMASKABLE = 1,
613 WINED3DMULTISAMPLE_2_SAMPLES = 2,
614 WINED3DMULTISAMPLE_3_SAMPLES = 3,
615 WINED3DMULTISAMPLE_4_SAMPLES = 4,
616 WINED3DMULTISAMPLE_5_SAMPLES = 5,
617 WINED3DMULTISAMPLE_6_SAMPLES = 6,
618 WINED3DMULTISAMPLE_7_SAMPLES = 7,
619 WINED3DMULTISAMPLE_8_SAMPLES = 8,
620 WINED3DMULTISAMPLE_9_SAMPLES = 9,
621 WINED3DMULTISAMPLE_10_SAMPLES = 10,
622 WINED3DMULTISAMPLE_11_SAMPLES = 11,
623 WINED3DMULTISAMPLE_12_SAMPLES = 12,
624 WINED3DMULTISAMPLE_13_SAMPLES = 13,
625 WINED3DMULTISAMPLE_14_SAMPLES = 14,
626 WINED3DMULTISAMPLE_15_SAMPLES = 15,
627 WINED3DMULTISAMPLE_16_SAMPLES = 16,
628 WINED3DMULTISAMPLE_FORCE_DWORD = 0xffffffff
629 } WINED3DMULTISAMPLE_TYPE;
630
631 typedef enum _WINED3DTEXTURESTAGESTATETYPE
632 {
633 WINED3DTSS_COLOROP = 0,
634 WINED3DTSS_COLORARG1 = 1,
635 WINED3DTSS_COLORARG2 = 2,
636 WINED3DTSS_ALPHAOP = 3,
637 WINED3DTSS_ALPHAARG1 = 4,
638 WINED3DTSS_ALPHAARG2 = 5,
639 WINED3DTSS_BUMPENVMAT00 = 6,
640 WINED3DTSS_BUMPENVMAT01 = 7,
641 WINED3DTSS_BUMPENVMAT10 = 8,
642 WINED3DTSS_BUMPENVMAT11 = 9,
643 WINED3DTSS_TEXCOORDINDEX = 10,
644 WINED3DTSS_BUMPENVLSCALE = 11,
645 WINED3DTSS_BUMPENVLOFFSET = 12,
646 WINED3DTSS_TEXTURETRANSFORMFLAGS = 13,
647 WINED3DTSS_COLORARG0 = 14,
648 WINED3DTSS_ALPHAARG0 = 15,
649 WINED3DTSS_RESULTARG = 16,
650 WINED3DTSS_CONSTANT = 17,
651 WINED3DTSS_FORCE_DWORD = 0x7fffffff
652 } WINED3DTEXTURESTAGESTATETYPE;
653 const UINT WINED3D_HIGHEST_TEXTURE_STATE = WINED3DTSS_CONSTANT;
654
655 typedef enum _WINED3DTEXTURETRANSFORMFLAGS
656 {
657 WINED3DTTFF_DISABLE = 0,
658 WINED3DTTFF_COUNT1 = 1,
659 WINED3DTTFF_COUNT2 = 2,
660 WINED3DTTFF_COUNT3 = 3,
661 WINED3DTTFF_COUNT4 = 4,
662 WINED3DTTFF_PROJECTED = 256,
663 WINED3DTTFF_FORCE_DWORD = 0x7fffffff
664 } WINED3DTEXTURETRANSFORMFLAGS;
665
666 typedef enum _WINED3DTEXTUREOP
667 {
668 WINED3DTOP_DISABLE = 1,
669 WINED3DTOP_SELECTARG1 = 2,
670 WINED3DTOP_SELECTARG2 = 3,
671 WINED3DTOP_MODULATE = 4,
672 WINED3DTOP_MODULATE2X = 5,
673 WINED3DTOP_MODULATE4X = 6,
674 WINED3DTOP_ADD = 7,
675 WINED3DTOP_ADDSIGNED = 8,
676 WINED3DTOP_ADDSIGNED2X = 9,
677 WINED3DTOP_SUBTRACT = 10,
678 WINED3DTOP_ADDSMOOTH = 11,
679 WINED3DTOP_BLENDDIFFUSEALPHA = 12,
680 WINED3DTOP_BLENDTEXTUREALPHA = 13,
681 WINED3DTOP_BLENDFACTORALPHA = 14,
682 WINED3DTOP_BLENDTEXTUREALPHAPM = 15,
683 WINED3DTOP_BLENDCURRENTALPHA = 16,
684 WINED3DTOP_PREMODULATE = 17,
685 WINED3DTOP_MODULATEALPHA_ADDCOLOR = 18,
686 WINED3DTOP_MODULATECOLOR_ADDALPHA = 19,
687 WINED3DTOP_MODULATEINVALPHA_ADDCOLOR = 20,
688 WINED3DTOP_MODULATEINVCOLOR_ADDALPHA = 21,
689 WINED3DTOP_BUMPENVMAP = 22,
690 WINED3DTOP_BUMPENVMAPLUMINANCE = 23,
691 WINED3DTOP_DOTPRODUCT3 = 24,
692 WINED3DTOP_MULTIPLYADD = 25,
693 WINED3DTOP_LERP = 26,
694 WINED3DTOP_FORCE_DWORD = 0x7fffffff,
695 } WINED3DTEXTUREOP;
696
697 typedef enum _WINED3DTEXTUREADDRESS
698 {
699 WINED3DTADDRESS_WRAP = 1,
700 WINED3DTADDRESS_MIRROR = 2,
701 WINED3DTADDRESS_CLAMP = 3,
702 WINED3DTADDRESS_BORDER = 4,
703 WINED3DTADDRESS_MIRRORONCE = 5,
704 WINED3DTADDRESS_FORCE_DWORD = 0x7fffffff
705 } WINED3DTEXTUREADDRESS;
706
707 typedef enum _WINED3DTRANSFORMSTATETYPE
708 {
709 WINED3DTS_VIEW = 2,
710 WINED3DTS_PROJECTION = 3,
711 WINED3DTS_TEXTURE0 = 16,
712 WINED3DTS_TEXTURE1 = 17,
713 WINED3DTS_TEXTURE2 = 18,
714 WINED3DTS_TEXTURE3 = 19,
715 WINED3DTS_TEXTURE4 = 20,
716 WINED3DTS_TEXTURE5 = 21,
717 WINED3DTS_TEXTURE6 = 22,
718 WINED3DTS_TEXTURE7 = 23,
719 WINED3DTS_WORLD = 256, /*WINED3DTS_WORLDMATRIX(0)*/
720 WINED3DTS_WORLD1 = 257,
721 WINED3DTS_WORLD2 = 258,
722 WINED3DTS_WORLD3 = 259,
723 WINED3DTS_FORCE_DWORD = 0x7fffffff
724 } WINED3DTRANSFORMSTATETYPE;
725 cpp_quote("#define WINED3DTS_WORLDMATRIX(index) (WINED3DTRANSFORMSTATETYPE)(index + 256)")
726
727 typedef enum _WINED3DBASISTYPE
728 {
729 WINED3DBASIS_BEZIER = 0,
730 WINED3DBASIS_BSPLINE = 1,
731 WINED3DBASIS_INTERPOLATE = 2,
732 WINED3DBASIS_FORCE_DWORD = 0x7fffffff
733 } WINED3DBASISTYPE;
734
735 typedef enum _WINED3DCUBEMAP_FACES
736 {
737 WINED3DCUBEMAP_FACE_POSITIVE_X = 0,
738 WINED3DCUBEMAP_FACE_NEGATIVE_X = 1,
739 WINED3DCUBEMAP_FACE_POSITIVE_Y = 2,
740 WINED3DCUBEMAP_FACE_NEGATIVE_Y = 3,
741 WINED3DCUBEMAP_FACE_POSITIVE_Z = 4,
742 WINED3DCUBEMAP_FACE_NEGATIVE_Z = 5,
743 WINED3DCUBEMAP_FACE_FORCE_DWORD = 0xffffffff
744 } WINED3DCUBEMAP_FACES;
745
746 typedef enum _WINED3DTEXTUREFILTERTYPE
747 {
748 WINED3DTEXF_NONE = 0,
749 WINED3DTEXF_POINT = 1,
750 WINED3DTEXF_LINEAR = 2,
751 WINED3DTEXF_ANISOTROPIC = 3,
752 WINED3DTEXF_FLATCUBIC = 4,
753 WINED3DTEXF_GAUSSIANCUBIC = 5,
754 WINED3DTEXF_PYRAMIDALQUAD = 6,
755 WINED3DTEXF_GAUSSIANQUAD = 7,
756 WINED3DTEXF_FORCE_DWORD = 0x7fffffff
757 } WINED3DTEXTUREFILTERTYPE;
758
759 typedef enum _WINED3DRESOURCETYPE
760 {
761 WINED3DRTYPE_SURFACE = 1,
762 WINED3DRTYPE_VOLUME = 2,
763 WINED3DRTYPE_TEXTURE = 3,
764 WINED3DRTYPE_VOLUMETEXTURE = 4,
765 WINED3DRTYPE_CUBETEXTURE = 5,
766 WINED3DRTYPE_BUFFER = 6,
767 WINED3DRTYPE_FORCE_DWORD = 0x7fffffff
768 } WINED3DRESOURCETYPE;
769 const UINT WINED3DRTYPECOUNT = WINED3DRTYPE_BUFFER + 1;
770
771 typedef enum _WINED3DPOOL
772 {
773 WINED3DPOOL_DEFAULT = 0,
774 WINED3DPOOL_MANAGED = 1,
775 WINED3DPOOL_SYSTEMMEM = 2,
776 WINED3DPOOL_SCRATCH = 3,
777 WINED3DPOOL_FORCE_DWORD = 0x7fffffff
778 } WINED3DPOOL;
779
780 typedef enum _WINED3DQUERYTYPE
781 {
782 WINED3DQUERYTYPE_VCACHE = 4,
783 WINED3DQUERYTYPE_RESOURCEMANAGER = 5,
784 WINED3DQUERYTYPE_VERTEXSTATS = 6,
785 WINED3DQUERYTYPE_EVENT = 8,
786 WINED3DQUERYTYPE_OCCLUSION = 9,
787 WINED3DQUERYTYPE_TIMESTAMP = 10,
788 WINED3DQUERYTYPE_TIMESTAMPDISJOINT = 11,
789 WINED3DQUERYTYPE_TIMESTAMPFREQ = 12,
790 WINED3DQUERYTYPE_PIPELINETIMINGS = 13,
791 WINED3DQUERYTYPE_INTERFACETIMINGS = 14,
792 WINED3DQUERYTYPE_VERTEXTIMINGS = 15,
793 WINED3DQUERYTYPE_PIXELTIMINGS = 16,
794 WINED3DQUERYTYPE_BANDWIDTHTIMINGS = 17,
795 WINED3DQUERYTYPE_CACHEUTILIZATION = 18
796 } WINED3DQUERYTYPE;
797
798 const UINT WINED3DISSUE_BEGIN = (1 << 1);
799 const UINT WINED3DISSUE_END = (1 << 0);
800 const UINT WINED3DGETDATA_FLUSH = (1 << 0);
801
802 typedef enum _WINED3DSTATEBLOCKTYPE
803 {
804 WINED3DSBT_INIT = 0,
805 WINED3DSBT_ALL = 1,
806 WINED3DSBT_PIXELSTATE = 2,
807 WINED3DSBT_VERTEXSTATE = 3,
808 WINED3DSBT_RECORDED = 4, /* WineD3D private */
809 WINED3DSBT_FORCE_DWORD = 0xffffffff
810 } WINED3DSTATEBLOCKTYPE;
811
812 typedef enum _WINED3DDECLMETHOD
813 {
814 WINED3DDECLMETHOD_DEFAULT = 0,
815 WINED3DDECLMETHOD_PARTIALU = 1,
816 WINED3DDECLMETHOD_PARTIALV = 2,
817 WINED3DDECLMETHOD_CROSSUV = 3,
818 WINED3DDECLMETHOD_UV = 4,
819 WINED3DDECLMETHOD_LOOKUP = 5,
820 WINED3DDECLMETHOD_LOOKUPPRESAMPLED = 6
821 } WINED3DDECLMETHOD;
822
823 typedef enum _WINED3DDECLUSAGE
824 {
825 WINED3DDECLUSAGE_POSITION = 0,
826 WINED3DDECLUSAGE_BLENDWEIGHT = 1,
827 WINED3DDECLUSAGE_BLENDINDICES = 2,
828 WINED3DDECLUSAGE_NORMAL = 3,
829 WINED3DDECLUSAGE_PSIZE = 4,
830 WINED3DDECLUSAGE_TEXCOORD = 5,
831 WINED3DDECLUSAGE_TANGENT = 6,
832 WINED3DDECLUSAGE_BINORMAL = 7,
833 WINED3DDECLUSAGE_TESSFACTOR = 8,
834 WINED3DDECLUSAGE_POSITIONT = 9,
835 WINED3DDECLUSAGE_COLOR = 10,
836 WINED3DDECLUSAGE_FOG = 11,
837 WINED3DDECLUSAGE_DEPTH = 12,
838 WINED3DDECLUSAGE_SAMPLE = 13
839 } WINED3DDECLUSAGE;
840
841 typedef enum _WINED3DSURFTYPE
842 {
843 SURFACE_UNKNOWN = 0, /* Default / Unknown surface type */
844 SURFACE_OPENGL, /* OpenGL surface: Renders using libGL, needed for 3D */
845 SURFACE_GDI, /* User surface. No 3D, DirectDraw rendering with GDI */
846 } WINED3DSURFTYPE;
847
848 enum wined3d_sysval_semantic
849 {
850 WINED3D_SV_DEPTH = 0xffffffff,
851 WINED3D_SV_TARGET0 = 0,
852 WINED3D_SV_TARGET1 = 1,
853 WINED3D_SV_TARGET2 = 2,
854 WINED3D_SV_TARGET3 = 3,
855 WINED3D_SV_TARGET4 = 4,
856 WINED3D_SV_TARGET5 = 5,
857 WINED3D_SV_TARGET6 = 6,
858 WINED3D_SV_TARGET7 = 7,
859 };
860
861 const UINT WINED3DCOLORWRITEENABLE_RED = (1<<0);
862 const UINT WINED3DCOLORWRITEENABLE_GREEN = (1<<1);
863 const UINT WINED3DCOLORWRITEENABLE_BLUE = (1<<2);
864 const UINT WINED3DCOLORWRITEENABLE_ALPHA = (1<<3);
865
866 const UINT WINED3DADAPTER_DEFAULT = 0;
867 const UINT WINED3DENUM_NO_WHQL_LEVEL = 2;
868 const UINT WINED3DPRESENT_BACK_BUFFER_MAX = 3;
869
870 const UINT WINED3DTSS_TCI_PASSTHRU = 0x00000;
871 const UINT WINED3DTSS_TCI_CAMERASPACENORMAL = 0x10000;
872 const UINT WINED3DTSS_TCI_CAMERASPACEPOSITION = 0x20000;
873 const UINT WINED3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR = 0x30000;
874 const UINT WINED3DTSS_TCI_SPHEREMAP = 0x40000;
875
876 const UINT WINED3DTA_SELECTMASK = 0x0000000f;
877 const UINT WINED3DTA_DIFFUSE = 0x00000000;
878 const UINT WINED3DTA_CURRENT = 0x00000001;
879 const UINT WINED3DTA_TEXTURE = 0x00000002;
880 const UINT WINED3DTA_TFACTOR = 0x00000003;
881 const UINT WINED3DTA_SPECULAR = 0x00000004;
882 const UINT WINED3DTA_TEMP = 0x00000005;
883 const UINT WINED3DTA_CONSTANT = 0x00000006;
884 const UINT WINED3DTA_COMPLEMENT = 0x00000010;
885 const UINT WINED3DTA_ALPHAREPLICATE = 0x00000020;
886
887 const UINT WINED3DPRESENTFLAG_LOCKABLE_BACKBUFFER = 0x00000001;
888 const UINT WINED3DPRESENTFLAG_DISCARD_DEPTHSTENCIL = 0x00000002;
889 const UINT WINED3DPRESENTFLAG_DEVICECLIP = 0x00000004;
890 const UINT WINED3DPRESENTFLAG_VIDEO = 0x00000010;
891 const UINT WINED3DPRESENTFLAG_NOAUTOROTATE = 0x00000020;
892 const UINT WINED3DPRESENTFLAG_UNPRUNEDMODE = 0x00000040;
893
894 const UINT WINED3DDP_MAXTEXCOORD = 8;
895
896 const UINT WINED3DUSAGE_RENDERTARGET = 0x00000001;
897 const UINT WINED3DUSAGE_DEPTHSTENCIL = 0x00000002;
898 const UINT WINED3DUSAGE_WRITEONLY = 0x00000008;
899 const UINT WINED3DUSAGE_SOFTWAREPROCESSING = 0x00000010;
900 const UINT WINED3DUSAGE_DONOTCLIP = 0x00000020;
901 const UINT WINED3DUSAGE_POINTS = 0x00000040;
902 const UINT WINED3DUSAGE_RTPATCHES = 0x00000080;
903 const UINT WINED3DUSAGE_NPATCHES = 0x00000100;
904 const UINT WINED3DUSAGE_DYNAMIC = 0x00000200;
905 const UINT WINED3DUSAGE_AUTOGENMIPMAP = 0x00000400;
906 const UINT WINED3DUSAGE_DMAP = 0x00004000;
907 const UINT WINED3DUSAGE_MASK = 0x00004fff;
908 const UINT WINED3DUSAGE_STATICDECL = 0x40000000;
909 const UINT WINED3DUSAGE_OVERLAY = 0x80000000;
910
911 const UINT WINED3DUSAGE_QUERY_LEGACYBUMPMAP = 0x00008000;
912 const UINT WINED3DUSAGE_QUERY_FILTER = 0x00020000;
913 const UINT WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING = 0x00080000;
914 const UINT WINED3DUSAGE_QUERY_SRGBREAD = 0x00010000;
915 const UINT WINED3DUSAGE_QUERY_SRGBWRITE = 0x00040000;
916 const UINT WINED3DUSAGE_QUERY_VERTEXTEXTURE = 0x00100000;
917 const UINT WINED3DUSAGE_QUERY_WRAPANDMIP = 0x00200000;
918 const UINT WINED3DUSAGE_QUERY_MASK = 0x003f8000;
919
920 const UINT WINED3DLOCK_READONLY = 0x0010;
921 const UINT WINED3DLOCK_NOSYSLOCK = 0x0800;
922 const UINT WINED3DLOCK_NOOVERWRITE = 0x1000;
923 const UINT WINED3DLOCK_DISCARD = 0x2000;
924 const UINT WINED3DLOCK_DONOTWAIT = 0x4000;
925 const UINT WINED3DLOCK_NO_DIRTY_UPDATE = 0x8000;
926
927 const UINT WINED3DPRESENT_RATE_DEFAULT = 0x000000000;
928
929 const UINT WINED3DPRESENT_INTERVAL_DEFAULT = 0x00000000;
930 const UINT WINED3DPRESENT_INTERVAL_ONE = 0x00000001;
931 const UINT WINED3DPRESENT_INTERVAL_TWO = 0x00000002;
932 const UINT WINED3DPRESENT_INTERVAL_THREE = 0x00000004;
933 const UINT WINED3DPRESENT_INTERVAL_FOUR = 0x00000008;
934 const UINT WINED3DPRESENT_INTERVAL_IMMEDIATE = 0x80000000;
935
936 const UINT WINED3DMAXUSERCLIPPLANES = 32;
937 const UINT WINED3DCLIPPLANE0 = (1 << 0);
938 const UINT WINED3DCLIPPLANE1 = (1 << 1);
939 const UINT WINED3DCLIPPLANE2 = (1 << 2);
940 const UINT WINED3DCLIPPLANE3 = (1 << 3);
941 const UINT WINED3DCLIPPLANE4 = (1 << 4);
942 const UINT WINED3DCLIPPLANE5 = (1 << 5);
943
944 /* FVF (Flexible Vertex Format) codes */
945 const UINT WINED3DFVF_RESERVED0 = 0x0001;
946 const UINT WINED3DFVF_POSITION_MASK = 0x400e;
947 const UINT WINED3DFVF_XYZ = 0x0002;
948 const UINT WINED3DFVF_XYZRHW = 0x0004;
949 const UINT WINED3DFVF_XYZB1 = 0x0006;
950 const UINT WINED3DFVF_XYZB2 = 0x0008;
951 const UINT WINED3DFVF_XYZB3 = 0x000a;
952 const UINT WINED3DFVF_XYZB4 = 0x000c;
953 const UINT WINED3DFVF_XYZB5 = 0x000e;
954 const UINT WINED3DFVF_XYZW = 0x4002;
955 const UINT WINED3DFVF_NORMAL = 0x0010;
956 const UINT WINED3DFVF_PSIZE = 0x0020;
957 const UINT WINED3DFVF_DIFFUSE = 0x0040;
958 const UINT WINED3DFVF_SPECULAR = 0x0080;
959 const UINT WINED3DFVF_TEXCOUNT_MASK = 0x0f00;
960 const UINT WINED3DFVF_TEXCOUNT_SHIFT = 8;
961 const UINT WINED3DFVF_TEX0 = 0x0000;
962 const UINT WINED3DFVF_TEX1 = 0x0100;
963 const UINT WINED3DFVF_TEX2 = 0x0200;
964 const UINT WINED3DFVF_TEX3 = 0x0300;
965 const UINT WINED3DFVF_TEX4 = 0x0400;
966 const UINT WINED3DFVF_TEX5 = 0x0500;
967 const UINT WINED3DFVF_TEX6 = 0x0600;
968 const UINT WINED3DFVF_TEX7 = 0x0700;
969 const UINT WINED3DFVF_TEX8 = 0x0800;
970 const UINT WINED3DFVF_LASTBETA_UBYTE4 = 0x1000;
971 const UINT WINED3DFVF_LASTBETA_D3DCOLOR = 0x8000;
972 const UINT WINED3DFVF_RESERVED2 = 0x6000;
973
974 const UINT WINED3DFVF_TEXTUREFORMAT1 = 3;
975 const UINT WINED3DFVF_TEXTUREFORMAT2 = 0;
976 const UINT WINED3DFVF_TEXTUREFORMAT3 = 1;
977 const UINT WINED3DFVF_TEXTUREFORMAT4 = 2;
978 cpp_quote("#define WINED3DFVF_TEXCOORDSIZE1(CoordIndex) (WINED3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16))")
979 cpp_quote("#define WINED3DFVF_TEXCOORDSIZE2(CoordIndex) (WINED3DFVF_TEXTUREFORMAT2)")
980 cpp_quote("#define WINED3DFVF_TEXCOORDSIZE3(CoordIndex) (WINED3DFVF_TEXTUREFORMAT3 << (CoordIndex*2 + 16))")
981 cpp_quote("#define WINED3DFVF_TEXCOORDSIZE4(CoordIndex) (WINED3DFVF_TEXTUREFORMAT4 << (CoordIndex*2 + 16))")
982
983 /* Clear flags */
984 const UINT WINED3DCLEAR_TARGET = 0x00000001;
985 const UINT WINED3DCLEAR_ZBUFFER = 0x00000002;
986 const UINT WINED3DCLEAR_STENCIL = 0x00000004;
987
988 /* Stream source flags */
989 const UINT WINED3DSTREAMSOURCE_INDEXEDDATA = (1 << 30);
990 const UINT WINED3DSTREAMSOURCE_INSTANCEDATA = (2 << 30);
991
992 /* SetPrivateData flags */
993 const UINT WINED3DSPD_IUNKNOWN = 0x00000001;
994
995 /* IWineD3D::CreateDevice behaviour flags */
996 const UINT WINED3DCREATE_FPU_PRESERVE = 0x00000002;
997 const UINT WINED3DCREATE_PUREDEVICE = 0x00000010;
998 const UINT WINED3DCREATE_SOFTWARE_VERTEXPROCESSING = 0x00000020;
999 const UINT WINED3DCREATE_HARDWARE_VERTEXPROCESSING = 0x00000040;
1000 const UINT WINED3DCREATE_MIXED_VERTEXPROCESSING = 0x00000080;
1001 const UINT WINED3DCREATE_DISABLE_DRIVER_MANAGEMENT = 0x00000100;
1002 const UINT WINED3DCREATE_ADAPTERGROUP_DEVICE = 0x00000200;
1003
1004 /* VTF defines */
1005 const UINT WINED3DDMAPSAMPLER = 0x100;
1006 const UINT WINED3DVERTEXTEXTURESAMPLER0 = (WINED3DDMAPSAMPLER + 1);
1007 const UINT WINED3DVERTEXTEXTURESAMPLER1 = (WINED3DDMAPSAMPLER + 2);
1008 const UINT WINED3DVERTEXTEXTURESAMPLER2 = (WINED3DDMAPSAMPLER + 3);
1009 const UINT WINED3DVERTEXTEXTURESAMPLER3 = (WINED3DDMAPSAMPLER + 4);
1010
1011 const UINT WINED3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD = 0x00000020;
1012 const UINT WINED3DCAPS3_LINEAR_TO_SRGB_PRESENTATION = 0x00000080;
1013 const UINT WINED3DCAPS3_COPY_TO_VIDMEM = 0x00000100;
1014 const UINT WINED3DCAPS3_COPY_TO_SYSTEMMEM = 0x00000200;
1015 const UINT WINED3DCAPS3_RESERVED = 0x8000001f;
1016
1017 const UINT WINED3DDEVCAPS2_STREAMOFFSET = 0x00000001;
1018 const UINT WINED3DDEVCAPS2_DMAPNPATCH = 0x00000002;
1019 const UINT WINED3DDEVCAPS2_ADAPTIVETESSRTPATCH = 0x00000004;
1020 const UINT WINED3DDEVCAPS2_ADAPTIVETESSNPATCH = 0x00000008;
1021 const UINT WINED3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES = 0x00000010;
1022 const UINT WINED3DDEVCAPS2_PRESAMPLEDDMAPNPATCH = 0x00000020;
1023 const UINT WINED3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET = 0x00000040;
1024
1025 const UINT WINED3DDTCAPS_UBYTE4 = 0x00000001;
1026 const UINT WINED3DDTCAPS_UBYTE4N = 0x00000002;
1027 const UINT WINED3DDTCAPS_SHORT2N = 0x00000004;
1028 const UINT WINED3DDTCAPS_SHORT4N = 0x00000008;
1029 const UINT WINED3DDTCAPS_USHORT2N = 0x00000010;
1030 const UINT WINED3DDTCAPS_USHORT4N = 0x00000020;
1031 const UINT WINED3DDTCAPS_UDEC3 = 0x00000040;
1032 const UINT WINED3DDTCAPS_DEC3N = 0x00000080;
1033 const UINT WINED3DDTCAPS_FLOAT16_2 = 0x00000100;
1034 const UINT WINED3DDTCAPS_FLOAT16_4 = 0x00000200;
1035
1036 const UINT WINED3DFVFCAPS_TEXCOORDCOUNTMASK = 0x0000ffff;
1037 const UINT WINED3DFVFCAPS_DONOTSTRIPELEMENTS = 0x00080000;
1038 const UINT WINED3DFVFCAPS_PSIZE = 0x00100000;
1039
1040 const UINT WINED3DLINECAPS_TEXTURE = 0x00000001;
1041 const UINT WINED3DLINECAPS_ZTEST = 0x00000002;
1042 const UINT WINED3DLINECAPS_BLEND = 0x00000004;
1043 const UINT WINED3DLINECAPS_ALPHACMP = 0x00000008;
1044 const UINT WINED3DLINECAPS_FOG = 0x00000010;
1045 const UINT WINED3DLINECAPS_ANTIALIAS = 0x00000020;
1046
1047 const UINT WINED3DMAX30SHADERINSTRUCTIONS = 32768;
1048 const UINT WINED3DMIN30SHADERINSTRUCTIONS = 512;
1049
1050 const UINT WINED3DPBLENDCAPS_ZERO = 0x00000001;
1051 const UINT WINED3DPBLENDCAPS_ONE = 0x00000002;
1052 const UINT WINED3DPBLENDCAPS_SRCCOLOR = 0x00000004;
1053 const UINT WINED3DPBLENDCAPS_INVSRCCOLOR = 0x00000008;
1054 const UINT WINED3DPBLENDCAPS_SRCALPHA = 0x00000010;
1055 const UINT WINED3DPBLENDCAPS_INVSRCALPHA = 0x00000020;
1056 const UINT WINED3DPBLENDCAPS_DESTALPHA = 0x00000040;
1057 const UINT WINED3DPBLENDCAPS_INVDESTALPHA = 0x00000080;
1058 const UINT WINED3DPBLENDCAPS_DESTCOLOR = 0x00000100;
1059 const UINT WINED3DPBLENDCAPS_INVDESTCOLOR = 0x00000200;
1060 const UINT WINED3DPBLENDCAPS_SRCALPHASAT = 0x00000400;
1061 const UINT WINED3DPBLENDCAPS_BOTHSRCALPHA = 0x00000800;
1062 const UINT WINED3DPBLENDCAPS_BOTHINVSRCALPHA = 0x00001000;
1063 const UINT WINED3DPBLENDCAPS_BLENDFACTOR = 0x00002000;
1064
1065 const UINT WINED3DPCMPCAPS_NEVER = 0x00000001;
1066 const UINT WINED3DPCMPCAPS_LESS = 0x00000002;
1067 const UINT WINED3DPCMPCAPS_EQUAL = 0x00000004;
1068 const UINT WINED3DPCMPCAPS_LESSEQUAL = 0x00000008;
1069 const UINT WINED3DPCMPCAPS_GREATER = 0x00000010;
1070 const UINT WINED3DPCMPCAPS_NOTEQUAL = 0x00000020;
1071 const UINT WINED3DPCMPCAPS_GREATEREQUAL = 0x00000040;
1072 const UINT WINED3DPCMPCAPS_ALWAYS = 0x00000080;
1073
1074 const UINT WINED3DPMISCCAPS_MASKZ = 0x00000002;
1075 const UINT WINED3DPMISCCAPS_LINEPATTERNREP = 0x00000004;
1076 const UINT WINED3DPMISCCAPS_CULLNONE = 0x00000010;
1077 const UINT WINED3DPMISCCAPS_CULLCW = 0x00000020;
1078 const UINT WINED3DPMISCCAPS_CULLCCW = 0x00000040;
1079 const UINT WINED3DPMISCCAPS_COLORWRITEENABLE = 0x00000080;
1080 const UINT WINED3DPMISCCAPS_CLIPPLANESCALEDPOINTS = 0x00000100;
1081 const UINT WINED3DPMISCCAPS_CLIPTLVERTS = 0x00000200;
1082 const UINT WINED3DPMISCCAPS_TSSARGTEMP = 0x00000400;
1083 const UINT WINED3DPMISCCAPS_BLENDOP = 0x00000800;
1084 const UINT WINED3DPMISCCAPS_NULLREFERENCE = 0x00001000;
1085 const UINT WINED3DPMISCCAPS_INDEPENDENTWRITEMASKS = 0x00004000;
1086 const UINT WINED3DPMISCCAPS_PERSTAGECONSTANT = 0x00008000;
1087 const UINT WINED3DPMISCCAPS_FOGANDSPECULARALPHA = 0x00010000;
1088 const UINT WINED3DPMISCCAPS_SEPARATEALPHABLEND = 0x00020000;
1089 const UINT WINED3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS = 0x00040000;
1090 const UINT WINED3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING = 0x00080000;
1091 const UINT WINED3DPMISCCAPS_FOGVERTEXCLAMPED = 0x00100000;
1092
1093 const UINT WINED3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH = 24;
1094 const UINT WINED3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH = 0;
1095 const UINT WINED3DPS20_MAX_NUMTEMPS = 32;
1096 const UINT WINED3DPS20_MIN_NUMTEMPS = 12;
1097 const UINT WINED3DPS20_MAX_STATICFLOWCONTROLDEPTH = 4;
1098 const UINT WINED3DPS20_MIN_STATICFLOWCONTROLDEPTH = 0;
1099 const UINT WINED3DPS20_MAX_NUMINSTRUCTIONSLOTS = 512;
1100 const UINT WINED3DPS20_MIN_NUMINSTRUCTIONSLOTS = 96;
1101
1102 const UINT WINED3DPS20CAPS_ARBITRARYSWIZZLE = 0x00000001;
1103 const UINT WINED3DPS20CAPS_GRADIENTINSTRUCTIONS = 0x00000002;
1104 const UINT WINED3DPS20CAPS_PREDICATION = 0x00000004;
1105 const UINT WINED3DPS20CAPS_NODEPENDENTREADLIMIT = 0x00000008;
1106 const UINT WINED3DPS20CAPS_NOTEXINSTRUCTIONLIMIT = 0x00000010;
1107
1108 const UINT WINED3DPTADDRESSCAPS_WRAP = 0x00000001;
1109 const UINT WINED3DPTADDRESSCAPS_MIRROR = 0x00000002;
1110 const UINT WINED3DPTADDRESSCAPS_CLAMP = 0x00000004;
1111 const UINT WINED3DPTADDRESSCAPS_BORDER = 0x00000008;
1112 const UINT WINED3DPTADDRESSCAPS_INDEPENDENTUV = 0x00000010;
1113 const UINT WINED3DPTADDRESSCAPS_MIRRORONCE = 0x00000020;
1114
1115 const UINT WINED3DSTENCILCAPS_KEEP = 0x00000001;
1116 const UINT WINED3DSTENCILCAPS_ZERO = 0x00000002;
1117 const UINT WINED3DSTENCILCAPS_REPLACE = 0x00000004;
1118 const UINT WINED3DSTENCILCAPS_INCRSAT = 0x00000008;
1119 const UINT WINED3DSTENCILCAPS_DECRSAT = 0x00000010;
1120 const UINT WINED3DSTENCILCAPS_INVERT = 0x00000020;
1121 const UINT WINED3DSTENCILCAPS_INCR = 0x00000040;
1122 const UINT WINED3DSTENCILCAPS_DECR = 0x00000080;
1123 const UINT WINED3DSTENCILCAPS_TWOSIDED = 0x00000100;
1124
1125 const UINT WINED3DTEXOPCAPS_DISABLE = 0x00000001;
1126 const UINT WINED3DTEXOPCAPS_SELECTARG1 = 0x00000002;
1127 const UINT WINED3DTEXOPCAPS_SELECTARG2 = 0x00000004;
1128 const UINT WINED3DTEXOPCAPS_MODULATE = 0x00000008;
1129 const UINT WINED3DTEXOPCAPS_MODULATE2X = 0x00000010;
1130 const UINT WINED3DTEXOPCAPS_MODULATE4X = 0x00000020;
1131 const UINT WINED3DTEXOPCAPS_ADD = 0x00000040;
1132 const UINT WINED3DTEXOPCAPS_ADDSIGNED = 0x00000080;
1133 const UINT WINED3DTEXOPCAPS_ADDSIGNED2X = 0x00000100;
1134 const UINT WINED3DTEXOPCAPS_SUBTRACT = 0x00000200;
1135 const UINT WINED3DTEXOPCAPS_ADDSMOOTH = 0x00000400;
1136 const UINT WINED3DTEXOPCAPS_BLENDDIFFUSEALPHA = 0x00000800;
1137 const UINT WINED3DTEXOPCAPS_BLENDTEXTUREALPHA = 0x00001000;
1138 const UINT WINED3DTEXOPCAPS_BLENDFACTORALPHA = 0x00002000;
1139 const UINT WINED3DTEXOPCAPS_BLENDTEXTUREALPHAPM = 0x00004000;
1140 const UINT WINED3DTEXOPCAPS_BLENDCURRENTALPHA = 0x00008000;
1141 const UINT WINED3DTEXOPCAPS_PREMODULATE = 0x00010000;
1142 const UINT WINED3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR = 0x00020000;
1143 const UINT WINED3DTEXOPCAPS_MODULATECOLOR_ADDALPHA = 0x00040000;
1144 const UINT WINED3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR = 0x00080000;
1145 const UINT WINED3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA = 0x00100000;
1146 const UINT WINED3DTEXOPCAPS_BUMPENVMAP = 0x00200000;
1147 const UINT WINED3DTEXOPCAPS_BUMPENVMAPLUMINANCE = 0x00400000;
1148 const UINT WINED3DTEXOPCAPS_DOTPRODUCT3 = 0x00800000;
1149 const UINT WINED3DTEXOPCAPS_MULTIPLYADD = 0x01000000;
1150 const UINT WINED3DTEXOPCAPS_LERP = 0x02000000;
1151
1152 const UINT WINED3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH = 24;
1153 const UINT WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH = 0;
1154 const UINT WINED3DVS20_MAX_NUMTEMPS = 32;
1155 const UINT WINED3DVS20_MIN_NUMTEMPS = 12;
1156 const UINT WINED3DVS20_MAX_STATICFLOWCONTROLDEPTH = 4;
1157 const UINT WINED3DVS20_MIN_STATICFLOWCONTROLDEPTH = 1;
1158
1159 const UINT WINED3DVS20CAPS_PREDICATION = 0x00000001;
1160
1161 const UINT WINED3DCAPS2_NO2DDURING3DSCENE = 0x00000002;
1162 const UINT WINED3DCAPS2_FULLSCREENGAMMA = 0x00020000;
1163 const UINT WINED3DCAPS2_CANRENDERWINDOWED = 0x00080000;
1164 const UINT WINED3DCAPS2_CANCALIBRATEGAMMA = 0x00100000;
1165 const UINT WINED3DCAPS2_RESERVED = 0x02000000;
1166 const UINT WINED3DCAPS2_CANMANAGERESOURCE = 0x10000000;
1167 const UINT WINED3DCAPS2_DYNAMICTEXTURES = 0x20000000;
1168 const UINT WINED3DCAPS2_CANAUTOGENMIPMAP = 0x40000000;
1169
1170 const UINT WINED3DPRASTERCAPS_DITHER = 0x00000001;
1171 const UINT WINED3DPRASTERCAPS_ROP2 = 0x00000002;
1172 const UINT WINED3DPRASTERCAPS_XOR = 0x00000004;
1173 const UINT WINED3DPRASTERCAPS_PAT = 0x00000008;
1174 const UINT WINED3DPRASTERCAPS_ZTEST = 0x00000010;
1175 const UINT WINED3DPRASTERCAPS_SUBPIXEL = 0x00000020;
1176 const UINT WINED3DPRASTERCAPS_SUBPIXELX = 0x00000040;
1177 const UINT WINED3DPRASTERCAPS_FOGVERTEX = 0x00000080;
1178 const UINT WINED3DPRASTERCAPS_FOGTABLE = 0x00000100;
1179 const UINT WINED3DPRASTERCAPS_STIPPLE = 0x00000200;
1180 const UINT WINED3DPRASTERCAPS_ANTIALIASSORTDEPENDENT = 0x00000400;
1181 const UINT WINED3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT = 0x00000800;
1182 const UINT WINED3DPRASTERCAPS_ANTIALIASEDGES = 0x00001000;
1183 const UINT WINED3DPRASTERCAPS_MIPMAPLODBIAS = 0x00002000;
1184 const UINT WINED3DPRASTERCAPS_ZBIAS = 0x00004000;
1185 const UINT WINED3DPRASTERCAPS_ZBUFFERLESSHSR = 0x00008000;
1186 const UINT WINED3DPRASTERCAPS_FOGRANGE = 0x00010000;
1187 const UINT WINED3DPRASTERCAPS_ANISOTROPY = 0x00020000;
1188 const UINT WINED3DPRASTERCAPS_WBUFFER = 0x00040000;
1189 const UINT WINED3DPRASTERCAPS_TRANSLUCENTSORTINDEPENDENT = 0x00080000;
1190 const UINT WINED3DPRASTERCAPS_WFOG = 0x00100000;
1191 const UINT WINED3DPRASTERCAPS_ZFOG = 0x00200000;
1192 const UINT WINED3DPRASTERCAPS_COLORPERSPECTIVE = 0x00400000;
1193 const UINT WINED3DPRASTERCAPS_SCISSORTEST = 0x01000000;
1194 const UINT WINED3DPRASTERCAPS_SLOPESCALEDEPTHBIAS = 0x02000000;
1195 const UINT WINED3DPRASTERCAPS_DEPTHBIAS = 0x04000000;
1196 const UINT WINED3DPRASTERCAPS_MULTISAMPLE_TOGGLE = 0x08000000;
1197
1198 const UINT WINED3DPSHADECAPS_COLORFLATMONO = 0x00000001;
1199 const UINT WINED3DPSHADECAPS_COLORFLATRGB = 0x00000002;
1200 const UINT WINED3DPSHADECAPS_COLORGOURAUDMONO = 0x00000004;
1201 const UINT WINED3DPSHADECAPS_COLORGOURAUDRGB = 0x00000008;
1202 const UINT WINED3DPSHADECAPS_COLORPHONGMONO = 0x00000010;
1203 const UINT WINED3DPSHADECAPS_COLORPHONGRGB = 0x00000020;
1204 const UINT WINED3DPSHADECAPS_SPECULARFLATMONO = 0x00000040;
1205 const UINT WINED3DPSHADECAPS_SPECULARFLATRGB = 0x00000080;
1206 const UINT WINED3DPSHADECAPS_SPECULARGOURAUDMONO = 0x00000100;
1207 const UINT WINED3DPSHADECAPS_SPECULARGOURAUDRGB = 0x00000200;
1208 const UINT WINED3DPSHADECAPS_SPECULARPHONGMONO = 0x00000400;
1209 const UINT WINED3DPSHADECAPS_SPECULARPHONGRGB = 0x00000800;
1210 const UINT WINED3DPSHADECAPS_ALPHAFLATBLEND = 0x00001000;
1211 const UINT WINED3DPSHADECAPS_ALPHAFLATSTIPPLED = 0x00002000;
1212 const UINT WINED3DPSHADECAPS_ALPHAGOURAUDBLEND = 0x00004000;
1213 const UINT WINED3DPSHADECAPS_ALPHAGOURAUDSTIPPLED = 0x00008000;
1214 const UINT WINED3DPSHADECAPS_ALPHAPHONGBLEND = 0x00010000;
1215 const UINT WINED3DPSHADECAPS_ALPHAPHONGSTIPPLED = 0x00020000;
1216 const UINT WINED3DPSHADECAPS_FOGFLAT = 0x00040000;
1217 const UINT WINED3DPSHADECAPS_FOGGOURAUD = 0x00080000;
1218 const UINT WINED3DPSHADECAPS_FOGPHONG = 0x00100000;
1219
1220 const UINT WINED3DPTEXTURECAPS_PERSPECTIVE = 0x00000001;
1221 const UINT WINED3DPTEXTURECAPS_POW2 = 0x00000002;
1222 const UINT WINED3DPTEXTURECAPS_ALPHA = 0x00000004;
1223 const UINT WINED3DPTEXTURECAPS_TRANSPARENCY = 0x00000008;
1224 const UINT WINED3DPTEXTURECAPS_BORDER = 0x00000010;
1225 const UINT WINED3DPTEXTURECAPS_SQUAREONLY = 0x00000020;
1226 const UINT WINED3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE = 0x00000040;
1227 const UINT WINED3DPTEXTURECAPS_ALPHAPALETTE = 0x00000080;
1228 const UINT WINED3DPTEXTURECAPS_NONPOW2CONDITIONAL = 0x00000100;
1229 const UINT WINED3DPTEXTURECAPS_PROJECTED = 0x00000400;
1230 const UINT WINED3DPTEXTURECAPS_CUBEMAP = 0x00000800;
1231 const UINT WINED3DPTEXTURECAPS_COLORKEYBLEND = 0x00001000;
1232 const UINT WINED3DPTEXTURECAPS_VOLUMEMAP = 0x00002000;
1233 const UINT WINED3DPTEXTURECAPS_MIPMAP = 0x00004000;
1234 const UINT WINED3DPTEXTURECAPS_MIPVOLUMEMAP = 0x00008000;
1235 const UINT WINED3DPTEXTURECAPS_MIPCUBEMAP = 0x00010000;
1236 const UINT WINED3DPTEXTURECAPS_CUBEMAP_POW2 = 0x00020000;
1237 const UINT WINED3DPTEXTURECAPS_VOLUMEMAP_POW2 = 0x00040000;
1238 const UINT WINED3DPTEXTURECAPS_NOPROJECTEDBUMPENV = 0x00200000;
1239
1240 const UINT WINED3DPTFILTERCAPS_NEAREST = 0x00000001;
1241 const UINT WINED3DPTFILTERCAPS_LINEAR = 0x00000002;
1242 const UINT WINED3DPTFILTERCAPS_MIPNEAREST = 0x00000004;
1243 const UINT WINED3DPTFILTERCAPS_MIPLINEAR = 0x00000008;
1244 const UINT WINED3DPTFILTERCAPS_LINEARMIPNEAREST = 0x00000010;
1245 const UINT WINED3DPTFILTERCAPS_LINEARMIPLINEAR = 0x00000020;
1246 const UINT WINED3DPTFILTERCAPS_MINFPOINT = 0x00000100;
1247 const UINT WINED3DPTFILTERCAPS_MINFLINEAR = 0x00000200;
1248 const UINT WINED3DPTFILTERCAPS_MINFANISOTROPIC = 0x00000400;
1249 const UINT WINED3DPTFILTERCAPS_MIPFPOINT = 0x00010000;
1250 const UINT WINED3DPTFILTERCAPS_MIPFLINEAR = 0x00020000;
1251 const UINT WINED3DPTFILTERCAPS_MAGFPOINT = 0x01000000;
1252 const UINT WINED3DPTFILTERCAPS_MAGFLINEAR = 0x02000000;
1253 const UINT WINED3DPTFILTERCAPS_MAGFANISOTROPIC = 0x04000000;
1254 const UINT WINED3DPTFILTERCAPS_MAGFPYRAMIDALQUAD = 0x08000000;
1255 const UINT WINED3DPTFILTERCAPS_MAGFGAUSSIANQUAD = 0x10000000;
1256
1257 const UINT WINED3DVTXPCAPS_TEXGEN = 0x00000001;
1258 const UINT WINED3DVTXPCAPS_MATERIALSOURCE7 = 0x00000002;
1259 const UINT WINED3DVTXPCAPS_VERTEXFOG = 0x00000004;
1260 const UINT WINED3DVTXPCAPS_DIRECTIONALLIGHTS = 0x00000008;
1261 const UINT WINED3DVTXPCAPS_POSITIONALLIGHTS = 0x00000010;
1262 const UINT WINED3DVTXPCAPS_LOCALVIEWER = 0x00000020;
1263 const UINT WINED3DVTXPCAPS_TWEENING = 0x00000040;
1264 const UINT WINED3DVTXPCAPS_TEXGEN_SPHEREMAP = 0x00000100;
1265 const UINT WINED3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER = 0x00000200;
1266
1267 const UINT WINED3DCURSORCAPS_COLOR = 0x00000001;
1268 const UINT WINED3DCURSORCAPS_LOWRES = 0x00000002;
1269
1270 const UINT WINED3DDEVCAPS_FLOATTLVERTEX = 0x00000001;
1271 const UINT WINED3DDEVCAPS_SORTINCREASINGZ = 0x00000002;
1272 const UINT WINED3DDEVCAPS_SORTDECREASINGZ = 0X00000004;
1273 const UINT WINED3DDEVCAPS_SORTEXACT = 0x00000008;
1274 const UINT WINED3DDEVCAPS_EXECUTESYSTEMMEMORY = 0x00000010;
1275 const UINT WINED3DDEVCAPS_EXECUTEVIDEOMEMORY = 0x00000020;
1276 const UINT WINED3DDEVCAPS_TLVERTEXSYSTEMMEMORY = 0x00000040;
1277 const UINT WINED3DDEVCAPS_TLVERTEXVIDEOMEMORY = 0x00000080;
1278 const UINT WINED3DDEVCAPS_TEXTURESYSTEMMEMORY = 0x00000100;
1279 const UINT WINED3DDEVCAPS_TEXTUREVIDEOMEMORY = 0x00000200;
1280 const UINT WINED3DDEVCAPS_DRAWPRIMTLVERTEX = 0x00000400;
1281 const UINT WINED3DDEVCAPS_CANRENDERAFTERFLIP = 0x00000800;
1282 const UINT WINED3DDEVCAPS_TEXTURENONLOCALVIDMEM = 0x00001000;
1283 const UINT WINED3DDEVCAPS_DRAWPRIMITIVES2 = 0x00002000;
1284 const UINT WINED3DDEVCAPS_SEPARATETEXTUREMEMORIES = 0x00004000;
1285 const UINT WINED3DDEVCAPS_DRAWPRIMITIVES2EX = 0x00008000;
1286 const UINT WINED3DDEVCAPS_HWTRANSFORMANDLIGHT = 0x00010000;
1287 const UINT WINED3DDEVCAPS_CANBLTSYSTONONLOCAL = 0x00020000;
1288 const UINT WINED3DDEVCAPS_HWRASTERIZATION = 0x00080000;
1289 const UINT WINED3DDEVCAPS_PUREDEVICE = 0x00100000;
1290 const UINT WINED3DDEVCAPS_QUINTICRTPATCHES = 0x00200000;
1291 const UINT WINED3DDEVCAPS_RTPATCHES = 0x00400000;
1292 const UINT WINED3DDEVCAPS_RTPATCHHANDLEZERO = 0x00800000;
1293 const UINT WINED3DDEVCAPS_NPATCHES = 0x01000000;
1294
1295 /* dwDDFX */
1296 /* arithmetic stretching along y axis */
1297 const UINT WINEDDBLTFX_ARITHSTRETCHY = 0x00000001;
1298 /* mirror on y axis */
1299 const UINT WINEDDBLTFX_MIRRORLEFTRIGHT = 0x00000002;
1300 /* mirror on x axis */
1301 const UINT WINEDDBLTFX_MIRRORUPDOWN = 0x00000004;
1302 /* do not tear */
1303 const UINT WINEDDBLTFX_NOTEARING = 0x00000008;
1304 /* 180 degrees clockwise rotation */
1305 const UINT WINEDDBLTFX_ROTATE180 = 0x00000010;
1306 /* 270 degrees clockwise rotation */
1307 const UINT WINEDDBLTFX_ROTATE270 = 0x00000020;
1308 /* 90 degrees clockwise rotation */
1309 const UINT WINEDDBLTFX_ROTATE90 = 0x00000040;
1310 /* dwZBufferLow and dwZBufferHigh specify limits to the copied Z values */
1311 const UINT WINEDDBLTFX_ZBUFFERRANGE = 0x00000080;
1312 /* add dwZBufferBaseDest to every source z value before compare */
1313 const UINT WINEDDBLTFX_ZBUFFERBASEDEST = 0x00000100;
1314
1315 /* dwFlags for Blt* */
1316 const UINT WINEDDBLT_ALPHADEST = 0x00000001;
1317 const UINT WINEDDBLT_ALPHADESTCONSTOVERRIDE = 0x00000002;
1318 const UINT WINEDDBLT_ALPHADESTNEG = 0x00000004;
1319 const UINT WINEDDBLT_ALPHADESTSURFACEOVERRIDE = 0x00000008;
1320 const UINT WINEDDBLT_ALPHAEDGEBLEND = 0x00000010;
1321 const UINT WINEDDBLT_ALPHASRC = 0x00000020;
1322 const UINT WINEDDBLT_ALPHASRCCONSTOVERRIDE = 0x00000040;
1323 const UINT WINEDDBLT_ALPHASRCNEG = 0x00000080;
1324 const UINT WINEDDBLT_ALPHASRCSURFACEOVERRIDE = 0x00000100;
1325 const UINT WINEDDBLT_ASYNC = 0x00000200;
1326 const UINT WINEDDBLT_COLORFILL = 0x00000400;
1327 const UINT WINEDDBLT_DDFX = 0x00000800;
1328 const UINT WINEDDBLT_DDROPS = 0x00001000;
1329 const UINT WINEDDBLT_KEYDEST = 0x00002000;
1330 const UINT WINEDDBLT_KEYDESTOVERRIDE = 0x00004000;
1331 const UINT WINEDDBLT_KEYSRC = 0x00008000;
1332 const UINT WINEDDBLT_KEYSRCOVERRIDE = 0x00010000;
1333 const UINT WINEDDBLT_ROP = 0x00020000;
1334 const UINT WINEDDBLT_ROTATIONANGLE = 0x00040000;
1335 const UINT WINEDDBLT_ZBUFFER = 0x00080000;
1336 const UINT WINEDDBLT_ZBUFFERDESTCONSTOVERRIDE = 0x00100000;
1337 const UINT WINEDDBLT_ZBUFFERDESTOVERRIDE = 0x00200000;
1338 const UINT WINEDDBLT_ZBUFFERSRCCONSTOVERRIDE = 0x00400000;
1339 const UINT WINEDDBLT_ZBUFFERSRCOVERRIDE = 0x00800000;
1340 const UINT WINEDDBLT_WAIT = 0x01000000;
1341 const UINT WINEDDBLT_DEPTHFILL = 0x02000000;
1342 const UINT WINEDDBLT_DONOTWAIT = 0x08000000;
1343
1344 /* dwTrans for BltFast */
1345 const UINT WINEDDBLTFAST_NOCOLORKEY = 0x00000000;
1346 const UINT WINEDDBLTFAST_SRCCOLORKEY = 0x00000001;
1347 const UINT WINEDDBLTFAST_DESTCOLORKEY = 0x00000002;
1348 const UINT WINEDDBLTFAST_WAIT = 0x00000010;
1349 const UINT WINEDDBLTFAST_DONOTWAIT = 0x00000020;
1350
1351 /* DDSURFACEDESC.dwFlags */
1352 const UINT WINEDDSD_CAPS = 0x00000001;
1353 const UINT WINEDDSD_HEIGHT = 0x00000002;
1354 const UINT WINEDDSD_WIDTH = 0x00000004;
1355 const UINT WINEDDSD_PITCH = 0x00000008;
1356 const UINT WINEDDSD_BACKBUFFERCOUNT = 0x00000020;
1357 const UINT WINEDDSD_ZBUFFERBITDEPTH = 0x00000040;
1358 const UINT WINEDDSD_ALPHABITDEPTH = 0x00000080;
1359 const UINT WINEDDSD_LPSURFACE = 0x00000800;
1360 const UINT WINEDDSD_PIXELFORMAT = 0x00001000;
1361 const UINT WINEDDSD_CKDESTOVERLAY = 0x00002000;
1362 const UINT WINEDDSD_CKDESTBLT = 0x00004000;
1363 const UINT WINEDDSD_CKSRCOVERLAY = 0x00008000;
1364 const UINT WINEDDSD_CKSRCBLT = 0x00010000;
1365 const UINT WINEDDSD_MIPMAPCOUNT = 0x00020000;
1366 const UINT WINEDDSD_REFRESHRATE = 0x00040000;
1367 const UINT WINEDDSD_LINEARSIZE = 0x00080000;
1368 const UINT WINEDDSD_TEXTURESTAGE = 0x00100000;
1369 const UINT WINEDDSD_FVF = 0x00200000;
1370 const UINT WINEDDSD_SRCVBHANDLE = 0x00400000;
1371 const UINT WINEDDSD_ALL = 0x007ff9ee;
1372
1373 /* Set/Get Colour Key Flags */
1374 const UINT WINEDDCKEY_COLORSPACE = 0x00000001; /* Struct is single colour space */
1375 const UINT WINEDDCKEY_DESTBLT = 0x00000002; /* To be used as dest for blt */
1376 const UINT WINEDDCKEY_DESTOVERLAY = 0x00000004; /* To be used as dest for CK overlays */
1377 const UINT WINEDDCKEY_SRCBLT = 0x00000008; /* To be used as src for blt */
1378 const UINT WINEDDCKEY_SRCOVERLAY = 0x00000010; /* To be used as src for CK overlays */
1379
1380 /* dwFlags for GetBltStatus */
1381 const UINT WINEDDGBS_CANBLT = 0x00000001;
1382 const UINT WINEDDGBS_ISBLTDONE = 0x00000002;
1383
1384 /* dwFlags for GetFlipStatus */
1385 const UINT WINEDDGFS_CANFLIP = 0x00000001;
1386 const UINT WINEDDGFS_ISFLIPDONE = 0x00000002;
1387
1388 /* dwFlags for Flip */
1389 const UINT WINEDDFLIP_WAIT = 0x00000001;
1390 const UINT WINEDDFLIP_EVEN = 0x00000002; /* only valid for overlay */
1391 const UINT WINEDDFLIP_ODD = 0x00000004; /* only valid for overlay */
1392 const UINT WINEDDFLIP_NOVSYNC = 0x00000008;
1393 const UINT WINEDDFLIP_STEREO = 0x00000010;
1394 const UINT WINEDDFLIP_DONOTWAIT = 0x00000020;
1395 const UINT WINEDDFLIP_INTERVAL2 = 0x02000000;
1396 const UINT WINEDDFLIP_INTERVAL3 = 0x03000000;
1397 const UINT WINEDDFLIP_INTERVAL4 = 0x04000000;
1398
1399 const UINT WINEDDOVER_ALPHADEST = 0x00000001;
1400 const UINT WINEDDOVER_ALPHADESTCONSTOVERRIDE = 0x00000002;
1401 const UINT WINEDDOVER_ALPHADESTNEG = 0x00000004;
1402 const UINT WINEDDOVER_ALPHADESTSURFACEOVERRIDE = 0x00000008;
1403 const UINT WINEDDOVER_ALPHAEDGEBLEND = 0x00000010;
1404 const UINT WINEDDOVER_ALPHASRC = 0x00000020;
1405 const UINT WINEDDOVER_ALPHASRCCONSTOVERRIDE = 0x00000040;
1406 const UINT WINEDDOVER_ALPHASRCNEG = 0x00000080;
1407 const UINT WINEDDOVER_ALPHASRCSURFACEOVERRIDE = 0x00000100;
1408 const UINT WINEDDOVER_HIDE = 0x00000200;
1409 const UINT WINEDDOVER_KEYDEST = 0x00000400;
1410 const UINT WINEDDOVER_KEYDESTOVERRIDE = 0x00000800;
1411 const UINT WINEDDOVER_KEYSRC = 0x00001000;
1412 const UINT WINEDDOVER_KEYSRCOVERRIDE = 0x00002000;
1413 const UINT WINEDDOVER_SHOW = 0x00004000;
1414 const UINT WINEDDOVER_ADDDIRTYRECT = 0x00008000;
1415 const UINT WINEDDOVER_REFRESHDIRTYRECTS = 0x00010000;
1416 const UINT WINEDDOVER_REFRESHALL = 0x00020000;
1417 const UINT WINEDDOVER_DDFX = 0x00080000;
1418 const UINT WINEDDOVER_AUTOFLIP = 0x00100000;
1419 const UINT WINEDDOVER_BOB = 0x00200000;
1420 const UINT WINEDDOVER_OVERRIDEBOBWEAVE = 0x00400000;
1421 const UINT WINEDDOVER_INTERLEAVED = 0x00800000;
1422
1423 /* DirectDraw Caps */
1424 const UINT WINEDDSCAPS_RESERVED1 = 0x00000001;
1425 const UINT WINEDDSCAPS_ALPHA = 0x00000002;
1426 const UINT WINEDDSCAPS_BACKBUFFER = 0x00000004;
1427 const UINT WINEDDSCAPS_COMPLEX = 0x00000008;
1428 const UINT WINEDDSCAPS_FLIP = 0x00000010;
1429 const UINT WINEDDSCAPS_FRONTBUFFER = 0x00000020;
1430 const UINT WINEDDSCAPS_OFFSCREENPLAIN = 0x00000040;
1431 const UINT WINEDDSCAPS_OVERLAY = 0x00000080;
1432 const UINT WINEDDSCAPS_PALETTE = 0x00000100;
1433 const UINT WINEDDSCAPS_PRIMARYSURFACE = 0x00000200;
1434 const UINT WINEDDSCAPS_PRIMARYSURFACELEFT = 0x00000400;
1435 const UINT WINEDDSCAPS_SYSTEMMEMORY = 0x00000800;
1436 const UINT WINEDDSCAPS_TEXTURE = 0x00001000;
1437 const UINT WINEDDSCAPS_3DDEVICE = 0x00002000;
1438 const UINT WINEDDSCAPS_VIDEOMEMORY = 0x00004000;
1439 const UINT WINEDDSCAPS_VISIBLE = 0x00008000;
1440 const UINT WINEDDSCAPS_WRITEONLY = 0x00010000;
1441 const UINT WINEDDSCAPS_ZBUFFER = 0x00020000;
1442 const UINT WINEDDSCAPS_OWNDC = 0x00040000;
1443 const UINT WINEDDSCAPS_LIVEVIDEO = 0x00080000;
1444 const UINT WINEDDSCAPS_HWCODEC = 0x00100000;
1445 const UINT WINEDDSCAPS_MODEX = 0x00200000;
1446 const UINT WINEDDSCAPS_MIPMAP = 0x00400000;
1447 const UINT WINEDDSCAPS_RESERVED2 = 0x00800000;
1448 const UINT WINEDDSCAPS_ALLOCONLOAD = 0x04000000;
1449 const UINT WINEDDSCAPS_VIDEOPORT = 0x08000000;
1450 const UINT WINEDDSCAPS_LOCALVIDMEM = 0x10000000;
1451 const UINT WINEDDSCAPS_NONLOCALVIDMEM = 0x20000000;
1452 const UINT WINEDDSCAPS_STANDARDVGAMODE = 0x40000000;
1453 const UINT WINEDDSCAPS_OPTIMIZED = 0x80000000;
1454
1455 const UINT WINEDDCKEYCAPS_DESTBLT = 0x00000001;
1456 const UINT WINEDDCKEYCAPS_DESTBLTCLRSPACE = 0x00000002;
1457 const UINT WINEDDCKEYCAPS_DESTBLTCLRSPACEYUV = 0x00000004;
1458 const UINT WINEDDCKEYCAPS_DESTBLTYUV = 0x00000008;
1459 const UINT WINEDDCKEYCAPS_DESTOVERLAY = 0x00000010;
1460 const UINT WINEDDCKEYCAPS_DESTOVERLAYCLRSPACE = 0x00000020;
1461 const UINT WINEDDCKEYCAPS_DESTOVERLAYCLRSPACEYUV = 0x00000040;
1462 const UINT WINEDDCKEYCAPS_DESTOVERLAYONEACTIVE = 0x00000080;
1463 const UINT WINEDDCKEYCAPS_DESTOVERLAYYUV = 0x00000100;
1464 const UINT WINEDDCKEYCAPS_SRCBLT = 0x00000200;
1465 const UINT WINEDDCKEYCAPS_SRCBLTCLRSPACE = 0x00000400;
1466 const UINT WINEDDCKEYCAPS_SRCBLTCLRSPACEYUV = 0x00000800;
1467 const UINT WINEDDCKEYCAPS_SRCBLTYUV = 0x00001000;
1468 const UINT WINEDDCKEYCAPS_SRCOVERLAY = 0x00002000;
1469 const UINT WINEDDCKEYCAPS_SRCOVERLAYCLRSPACE = 0x00004000;
1470 const UINT WINEDDCKEYCAPS_SRCOVERLAYCLRSPACEYUV = 0x00008000;
1471 const UINT WINEDDCKEYCAPS_SRCOVERLAYONEACTIVE = 0x00010000;
1472 const UINT WINEDDCKEYCAPS_SRCOVERLAYYUV = 0x00020000;
1473 const UINT WINEDDCKEYCAPS_NOCOSTOVERLAY = 0x00040000;
1474
1475 const UINT WINEDDFXCAPS_BLTALPHA = 0x00000001;
1476 const UINT WINEDDFXCAPS_OVERLAYALPHA = 0x00000004;
1477 const UINT WINEDDFXCAPS_BLTARITHSTRETCHYN = 0x00000010;
1478 const UINT WINEDDFXCAPS_BLTARITHSTRETCHY = 0x00000020;
1479 const UINT WINEDDFXCAPS_BLTMIRRORLEFTRIGHT = 0x00000040;
1480 const UINT WINEDDFXCAPS_BLTMIRRORUPDOWN = 0x00000080;
1481 const UINT WINEDDFXCAPS_BLTROTATION = 0x00000100;
1482 const UINT WINEDDFXCAPS_BLTROTATION90 = 0x00000200;
1483 const UINT WINEDDFXCAPS_BLTSHRINKX = 0x00000400;
1484 const UINT WINEDDFXCAPS_BLTSHRINKXN = 0x00000800;
1485 const UINT WINEDDFXCAPS_BLTSHRINKY = 0x00001000;
1486 const UINT WINEDDFXCAPS_BLTSHRINKYN = 0x00002000;
1487 const UINT WINEDDFXCAPS_BLTSTRETCHX = 0x00004000;
1488 const UINT WINEDDFXCAPS_BLTSTRETCHXN = 0x00008000;
1489 const UINT WINEDDFXCAPS_BLTSTRETCHY = 0x00010000;
1490 const UINT WINEDDFXCAPS_BLTSTRETCHYN = 0x00020000;
1491 const UINT WINEDDFXCAPS_OVERLAYARITHSTRETCHY = 0x00040000;
1492 const UINT WINEDDFXCAPS_OVERLAYARITHSTRETCHYN = 0x00000008;
1493 const UINT WINEDDFXCAPS_OVERLAYSHRINKX = 0x00080000;
1494 const UINT WINEDDFXCAPS_OVERLAYSHRINKXN = 0x00100000;
1495 const UINT WINEDDFXCAPS_OVERLAYSHRINKY = 0x00200000;
1496 const UINT WINEDDFXCAPS_OVERLAYSHRINKYN = 0x00400000;
1497 const UINT WINEDDFXCAPS_OVERLAYSTRETCHX = 0x00800000;
1498 const UINT WINEDDFXCAPS_OVERLAYSTRETCHXN = 0x01000000;
1499 const UINT WINEDDFXCAPS_OVERLAYSTRETCHY = 0x02000000;
1500 const UINT WINEDDFXCAPS_OVERLAYSTRETCHYN = 0x04000000;
1501 const UINT WINEDDFXCAPS_OVERLAYMIRRORLEFTRIGHT = 0x08000000;
1502 const UINT WINEDDFXCAPS_OVERLAYMIRRORUPDOWN = 0x10000000;
1503
1504 const UINT WINEDDCAPS_3D = 0x00000001;
1505 const UINT WINEDDCAPS_ALIGNBOUNDARYDEST = 0x00000002;
1506 const UINT WINEDDCAPS_ALIGNSIZEDEST = 0x00000004;
1507 const UINT WINEDDCAPS_ALIGNBOUNDARYSRC = 0x00000008;
1508 const UINT WINEDDCAPS_ALIGNSIZESRC = 0x00000010;
1509 const UINT WINEDDCAPS_ALIGNSTRIDE = 0x00000020;
1510 const UINT WINEDDCAPS_BLT = 0x00000040;
1511 const UINT WINEDDCAPS_BLTQUEUE = 0x00000080;
1512 const UINT WINEDDCAPS_BLTFOURCC = 0x00000100;
1513 const UINT WINEDDCAPS_BLTSTRETCH = 0x00000200;
1514 const UINT WINEDDCAPS_GDI = 0x00000400;
1515 const UINT WINEDDCAPS_OVERLAY = 0x00000800;
1516 const UINT WINEDDCAPS_OVERLAYCANTCLIP = 0x00001000;
1517 const UINT WINEDDCAPS_OVERLAYFOURCC = 0x00002000;
1518 const UINT WINEDDCAPS_OVERLAYSTRETCH = 0x00004000;
1519 const UINT WINEDDCAPS_PALETTE = 0x00008000;
1520 const UINT WINEDDCAPS_PALETTEVSYNC = 0x00010000;
1521 const UINT WINEDDCAPS_READSCANLINE = 0x00020000;
1522 const UINT WINEDDCAPS_STEREOVIEW = 0x00040000;
1523 const UINT WINEDDCAPS_VBI = 0x00080000;
1524 const UINT WINEDDCAPS_ZBLTS = 0x00100000;
1525 const UINT WINEDDCAPS_ZOVERLAYS = 0x00200000;
1526 const UINT WINEDDCAPS_COLORKEY = 0x00400000;
1527 const UINT WINEDDCAPS_ALPHA = 0x00800000;
1528 const UINT WINEDDCAPS_COLORKEYHWASSIST = 0x01000000;
1529 const UINT WINEDDCAPS_NOHARDWARE = 0x02000000;
1530 const UINT WINEDDCAPS_BLTCOLORFILL = 0x04000000;
1531 const UINT WINEDDCAPS_BANKSWITCHED = 0x08000000;
1532 const UINT WINEDDCAPS_BLTDEPTHFILL = 0x10000000;
1533 const UINT WINEDDCAPS_CANCLIP = 0x20000000;
1534 const UINT WINEDDCAPS_CANCLIPSTRETCHED = 0x40000000;
1535 const UINT WINEDDCAPS_CANBLTSYSMEM = 0x80000000;
1536
1537 const UINT WINEDDCAPS2_CERTIFIED = 0x00000001;
1538 const UINT WINEDDCAPS2_NO2DDURING3DSCENE = 0x00000002;
1539 const UINT WINEDDCAPS2_VIDEOPORT = 0x00000004;
1540 const UINT WINEDDCAPS2_AUTOFLIPOVERLAY = 0x00000008;
1541 const UINT WINEDDCAPS2_CANBOBINTERLEAVED = 0x00000010;
1542 const UINT WINEDDCAPS2_CANBOBNONINTERLEAVED = 0x00000020;
1543 const UINT WINEDDCAPS2_COLORCONTROLOVERLAY = 0x00000040;
1544 const UINT WINEDDCAPS2_COLORCONTROLPRIMARY = 0x00000080;
1545 const UINT WINEDDCAPS2_CANDROPZ16BIT = 0x00000100;
1546 const UINT WINEDDCAPS2_NONLOCALVIDMEM = 0x00000200;
1547 const UINT WINEDDCAPS2_NONLOCALVIDMEMCAPS = 0x00000400;
1548 const UINT WINEDDCAPS2_NOPAGELOCKREQUIRED = 0x00000800;
1549 const UINT WINEDDCAPS2_WIDESURFACES = 0x00001000;
1550 const UINT WINEDDCAPS2_CANFLIPODDEVEN = 0x00002000;
1551 const UINT WINEDDCAPS2_CANBOBHARDWARE = 0x00004000;
1552 const UINT WINEDDCAPS2_COPYFOURCC = 0x00008000;
1553 const UINT WINEDDCAPS2_PRIMARYGAMMA = 0x00020000;
1554 const UINT WINEDDCAPS2_CANRENDERWINDOWED = 0x00080000;
1555 const UINT WINEDDCAPS2_CANCALIBRATEGAMMA = 0x00100000;
1556 const UINT WINEDDCAPS2_FLIPINTERVAL = 0x00200000;
1557 const UINT WINEDDCAPS2_FLIPNOVSYNC = 0x00400000;
1558 const UINT WINEDDCAPS2_CANMANAGETEXTURE = 0x00800000;
1559 const UINT WINEDDCAPS2_TEXMANINNONLOCALVIDMEM = 0x01000000;
1560 const UINT WINEDDCAPS2_STEREO = 0x02000000;
1561 const UINT WINEDDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL = 0x04000000;
1562
1563 /* DDCAPS.d */
1564 const UINT WINEDDPCAPS_4BIT = 0x00000001;
1565 const UINT WINEDDPCAPS_8BITENTRIES = 0x00000002;
1566 const UINT WINEDDPCAPS_8BIT = 0x00000004;
1567 const UINT WINEDDPCAPS_INITIALIZE = 0x00000008;
1568 const UINT WINEDDPCAPS_PRIMARYSURFACE = 0x00000010;
1569 const UINT WINEDDPCAPS_PRIMARYSURFACELEFT = 0x00000020;
1570 const UINT WINEDDPCAPS_ALLOW256 = 0x00000040;
1571 const UINT WINEDDPCAPS_VSYNC = 0x00000080;
1572 const UINT WINEDDPCAPS_1BIT = 0x00000100;
1573 const UINT WINEDDPCAPS_2BIT = 0x00000200;
1574 const UINT WINEDDPCAPS_ALPHA = 0x00000400;
1575
1576 typedef struct _WINED3DDISPLAYMODE
1577 {
1578 UINT Width;
1579 UINT Height;
1580 UINT RefreshRate;
1581 WINED3DFORMAT Format;
1582 } WINED3DDISPLAYMODE;
1583
1584 typedef struct _WINED3DCOLORVALUE
1585 {
1586 float r;
1587 float g;
1588 float b;
1589 float a;
1590 } WINED3DCOLORVALUE;
1591
1592 typedef struct _WINED3DVECTOR
1593 {
1594 float x;
1595 float y;
1596 float z;
1597 } WINED3DVECTOR;
1598
1599 typedef struct _WINED3DMATRIX
1600 {
1601 union
1602 {
1603 struct
1604 {
1605 float _11, _12, _13, _14;
1606 float _21, _22, _23, _24;
1607 float _31, _32, _33, _34;
1608 float _41, _42, _43, _44;
1609 } DUMMYSTRUCTNAME;
1610 float m[4][4];
1611 } DUMMYUNIONNAME;
1612 } WINED3DMATRIX;
1613
1614 typedef struct _WINED3DRECT
1615 {
1616 LONG x1;
1617 LONG y1;
1618 LONG x2;
1619 LONG y2;
1620 } WINED3DRECT;
1621
1622 typedef struct _WINED3DLIGHT
1623 {
1624 WINED3DLIGHTTYPE Type;
1625 WINED3DCOLORVALUE Diffuse;
1626 WINED3DCOLORVALUE Specular;
1627 WINED3DCOLORVALUE Ambient;
1628 WINED3DVECTOR Position;
1629 WINED3DVECTOR Direction;
1630 float Range;
1631 float Falloff;
1632 float Attenuation0;
1633 float Attenuation1;
1634 float Attenuation2;
1635 float Theta;
1636 float Phi;
1637 } WINED3DLIGHT;
1638
1639 typedef struct _WINED3DMATERIAL
1640 {
1641 WINED3DCOLORVALUE Diffuse;
1642 WINED3DCOLORVALUE Ambient;
1643 WINED3DCOLORVALUE Specular;
1644 WINED3DCOLORVALUE Emissive;
1645 float Power;
1646 } WINED3DMATERIAL;
1647
1648 typedef struct _WINED3DVIEWPORT
1649 {
1650 DWORD X;
1651 DWORD Y;
1652 DWORD Width;
1653 DWORD Height;
1654 float MinZ;
1655 float MaxZ;
1656 } WINED3DVIEWPORT;
1657
1658 typedef struct _WINED3DGAMMARAMP
1659 {
1660 WORD red[256];
1661 WORD green[256];
1662 WORD blue[256];
1663 } WINED3DGAMMARAMP;
1664
1665 typedef struct _WINED3DLINEPATTERN
1666 {
1667 WORD wRepeatFactor;
1668 WORD wLinePattern;
1669 } WINED3DLINEPATTERN;
1670
1671 typedef struct _WINEDD3DRECTPATCH_INFO
1672 {
1673 UINT StartVertexOffsetWidth;
1674 UINT StartVertexOffsetHeight;
1675 UINT Width;
1676 UINT Height;
1677 UINT Stride;
1678 WINED3DBASISTYPE Basis;
1679 WINED3DDEGREETYPE Degree;
1680 } WINED3DRECTPATCH_INFO;
1681
1682 typedef struct _WINED3DTRIPATCH_INFO
1683 {
1684 UINT StartVertexOffset;
1685 UINT NumVertices;
1686 WINED3DBASISTYPE Basis;
1687 WINED3DDEGREETYPE Degree;
1688 } WINED3DTRIPATCH_INFO;
1689
1690 typedef struct _WINED3DADAPTER_IDENTIFIER
1691 {
1692 char *driver;
1693 UINT driver_size;
1694 char *description;
1695 UINT description_size;
1696 char *device_name;
1697 UINT device_name_size;
1698 LARGE_INTEGER driver_version;
1699 DWORD vendor_id;
1700 DWORD device_id;
1701 DWORD subsystem_id;
1702 DWORD revision;
1703 GUID device_identifier;
1704 DWORD whql_level;
1705 LUID adapter_luid;
1706 SIZE_T video_memory;
1707 } WINED3DADAPTER_IDENTIFIER;
1708
1709 typedef struct _WINED3DPRESENT_PARAMETERS
1710 {
1711 UINT BackBufferWidth;
1712 UINT BackBufferHeight;
1713 WINED3DFORMAT BackBufferFormat;
1714 UINT BackBufferCount;
1715 WINED3DMULTISAMPLE_TYPE MultiSampleType;
1716 DWORD MultiSampleQuality;
1717 WINED3DSWAPEFFECT SwapEffect;
1718 HWND hDeviceWindow;
1719 BOOL Windowed;
1720 BOOL EnableAutoDepthStencil;
1721 WINED3DFORMAT AutoDepthStencilFormat;
1722 DWORD Flags;
1723 UINT FullScreen_RefreshRateInHz;
1724 UINT PresentationInterval;
1725 BOOL AutoRestoreDisplayMode;
1726 } WINED3DPRESENT_PARAMETERS;
1727
1728 typedef struct _WINED3DSURFACE_DESC
1729 {
1730 WINED3DFORMAT format;
1731 WINED3DRESOURCETYPE resource_type;
1732 DWORD usage;
1733 WINED3DPOOL pool;
1734 UINT size;
1735 WINED3DMULTISAMPLE_TYPE multisample_type;
1736 DWORD multisample_quality;
1737 UINT width;
1738 UINT height;
1739 } WINED3DSURFACE_DESC;
1740
1741 typedef struct _WINED3DVOLUME_DESC
1742 {
1743 WINED3DFORMAT Format;
1744 WINED3DRESOURCETYPE Type;
1745 DWORD Usage;
1746 WINED3DPOOL Pool;
1747 UINT Size;
1748 UINT Width;
1749 UINT Height;
1750 UINT Depth;
1751 } WINED3DVOLUME_DESC;
1752
1753 typedef struct _WINED3DCLIPSTATUS
1754 {
1755 DWORD ClipUnion;
1756 DWORD ClipIntersection;
1757 } WINED3DCLIPSTATUS;
1758
1759 typedef struct _WINED3DVERTEXELEMENT
1760 {
1761 WINED3DFORMAT format;
1762 WORD input_slot;
1763 WORD offset;
1764 UINT output_slot; /* D3D 8 & 10 */
1765 BYTE method;
1766 BYTE usage;
1767 BYTE usage_idx;
1768 } WINED3DVERTEXELEMENT;
1769
1770 typedef struct _WINED3DDEVICE_CREATION_PARAMETERS
1771 {
1772 UINT AdapterOrdinal;
1773 WINED3DDEVTYPE DeviceType;
1774 HWND hFocusWindow;
1775 DWORD BehaviorFlags;
1776 } WINED3DDEVICE_CREATION_PARAMETERS;
1777
1778 typedef struct _WINED3DDEVINFO_BANDWIDTHTIMINGS
1779 {
1780 float MaxBandwidthUtilized;
1781 float FrontEndUploadMemoryUtilizedPercent;
1782 float VertexRateUtilizedPercent;
1783 float TriangleSetupRateUtilizedPercent;
1784 float FillRateUtilizedPercent;
1785 } WINED3DDEVINFO_BANDWIDTHTIMINGS;
1786
1787 typedef struct _WINED3DDEVINFO_CACHEUTILIZATION
1788 {
1789 float TextureCacheHitRate;
1790 float PostTransformVertexCacheHitRate;
1791 } WINED3DDEVINFO_CACHEUTILIZATION;
1792
1793 typedef struct _WINED3DDEVINFO_INTERFACETIMINGS
1794 {
1795 float WaitingForGPUToUseApplicationResourceTimePercent;
1796 float WaitingForGPUToAcceptMoreCommandsTimePercent;
1797 float WaitingForGPUToStayWithinLatencyTimePercent;
1798 float WaitingForGPUExclusiveResourceTimePercent;
1799 float WaitingForGPUOtherTimePercent;
1800 } WINED3DDEVINFO_INTERFACETIMINGS;
1801
1802 typedef struct _WINED3DDEVINFO_PIPELINETIMINGS
1803 {
1804 float VertexProcessingTimePercent;
1805 float PixelProcessingTimePercent;
1806 float OtherGPUProcessingTimePercent;
1807 float GPUIdleTimePercent;
1808 } WINED3DDEVINFO_PIPELINETIMINGS;
1809
1810 typedef struct _WINED3DDEVINFO_STAGETIMINGS
1811 {
1812 float MemoryProcessingPercent;
1813 float ComputationProcessingPercent;
1814 } WINED3DDEVINFO_STAGETIMINGS;
1815
1816 typedef struct _WINED3DRASTER_STATUS
1817 {
1818 BOOL InVBlank;
1819 UINT ScanLine;
1820 } WINED3DRASTER_STATUS;
1821
1822 typedef struct WINED3DRESOURCESTATS
1823 {
1824 BOOL bThrashing;
1825 DWORD ApproxBytesDownloaded;
1826 DWORD NumEvicts;
1827 DWORD NumVidCreates;
1828 DWORD LastPri;
1829 DWORD NumUsed;
1830 DWORD NumUsedInVidMem;
1831 DWORD WorkingSet;
1832 DWORD WorkingSetBytes;
1833 DWORD TotalManaged;
1834 DWORD TotalBytes;
1835 } WINED3DRESOURCESTATS;
1836
1837 typedef struct _WINED3DDEVINFO_RESOURCEMANAGER
1838 {
1839 WINED3DRESOURCESTATS stats[WINED3DRTYPECOUNT];
1840 } WINED3DDEVINFO_RESOURCEMANAGER;
1841
1842 typedef struct _WINED3DDEVINFO_VERTEXSTATS
1843 {
1844 DWORD NumRenderedTriangles;
1845 DWORD NumExtraClippingTriangles;
1846 } WINED3DDEVINFO_VERTEXSTATS;
1847
1848 typedef struct _WINED3DLOCKED_RECT
1849 {
1850 INT Pitch;
1851 void *pBits;
1852 } WINED3DLOCKED_RECT;
1853
1854 typedef struct _WINED3DLOCKED_BOX
1855 {
1856 INT RowPitch;
1857 INT SlicePitch;
1858 void *pBits;
1859 } WINED3DLOCKED_BOX;
1860
1861 typedef struct _WINED3DBOX
1862 {
1863 UINT Left;
1864 UINT Top;
1865 UINT Right;
1866 UINT Bottom;
1867 UINT Front;
1868 UINT Back;
1869 } WINED3DBOX;
1870
1871 /*Vertex cache optimization hints.*/
1872 typedef struct WINED3DDEVINFO_VCACHE
1873 {
1874 DWORD Pattern; /* Must be a 4 char code FOURCC (e.g. CACH) */
1875 DWORD OptMethod; /* 0 to get the longest strips, 1 vertex cache */
1876 DWORD CacheSize; /* Cache size to use (only valid if OptMethod==1) */
1877 DWORD MagicNumber; /* Internal for deciding when to restart strips,
1878 non user modifiable (only valid if OptMethod==1) */
1879 } WINED3DDEVINFO_VCACHE;
1880
1881 typedef struct _WINED3DBUFFER_DESC
1882 {
1883 WINED3DRESOURCETYPE Type;
1884 DWORD Usage;
1885 WINED3DPOOL Pool;
1886 UINT Size;
1887 } WINED3DBUFFER_DESC;
1888
1889 typedef struct WineDirect3DStridedData
1890 {
1891 WINED3DFORMAT format; /* Format of the data */
1892 const BYTE *lpData; /* Pointer to start of data */
1893 DWORD dwStride; /* Stride between occurrences of this data */
1894 } WineDirect3DStridedData;
1895
1896 typedef struct WineDirect3DVertexStridedData
1897 {
1898 WineDirect3DStridedData position;
1899 WineDirect3DStridedData normal;
1900 WineDirect3DStridedData diffuse;
1901 WineDirect3DStridedData specular;
1902 WineDirect3DStridedData texCoords[WINED3DDP_MAXTEXCOORD];
1903 BOOL position_transformed;
1904 } WineDirect3DVertexStridedData;
1905
1906 typedef struct _WINED3DVSHADERCAPS2_0
1907 {
1908 DWORD Caps;
1909 INT DynamicFlowControlDepth;
1910 INT NumTemps;
1911 INT StaticFlowControlDepth;
1912 } WINED3DVSHADERCAPS2_0;
1913
1914 typedef struct _WINED3DPSHADERCAPS2_0
1915 {
1916 DWORD Caps;
1917 INT DynamicFlowControlDepth;
1918 INT NumTemps;
1919 INT StaticFlowControlDepth;
1920 INT NumInstructionSlots;
1921 } WINED3DPSHADERCAPS2_0;
1922
1923 typedef struct _WINEDDCAPS
1924 {
1925 DWORD Caps;
1926 DWORD Caps2;
1927 DWORD CKeyCaps;
1928 DWORD FXCaps;
1929 DWORD FXAlphaCaps;
1930 DWORD PalCaps;
1931 DWORD SVCaps;
1932 DWORD SVBCaps;
1933 DWORD SVBCKeyCaps;
1934 DWORD SVBFXCaps;
1935 DWORD VSBCaps;
1936 DWORD VSBCKeyCaps;
1937 DWORD VSBFXCaps;
1938 DWORD SSBCaps;
1939 DWORD SSBCKeyCaps;
1940 DWORD SSBFXCaps;
1941 DWORD ddsCaps;
1942 DWORD StrideAlign;
1943 } WINEDDCAPS;
1944
1945 typedef struct _WINED3DCAPS
1946 {
1947 WINED3DDEVTYPE DeviceType;
1948 UINT AdapterOrdinal;
1949
1950 DWORD Caps;
1951 DWORD Caps2;
1952 DWORD Caps3;
1953 DWORD PresentationIntervals;
1954
1955 DWORD CursorCaps;
1956 DWORD DevCaps;
1957 DWORD PrimitiveMiscCaps;
1958 DWORD RasterCaps;
1959 DWORD ZCmpCaps;
1960 DWORD SrcBlendCaps;
1961 DWORD DestBlendCaps;
1962 DWORD AlphaCmpCaps;
1963 DWORD ShadeCaps;
1964 DWORD TextureCaps;
1965 DWORD TextureFilterCaps;
1966 DWORD CubeTextureFilterCaps;
1967 DWORD VolumeTextureFilterCaps;
1968 DWORD TextureAddressCaps;
1969 DWORD VolumeTextureAddressCaps;
1970 DWORD LineCaps;
1971
1972 DWORD MaxTextureWidth;
1973 DWORD MaxTextureHeight;
1974 DWORD MaxVolumeExtent;
1975 DWORD MaxTextureRepeat;
1976 DWORD MaxTextureAspectRatio;
1977 DWORD MaxAnisotropy;
1978 float MaxVertexW;
1979
1980 float GuardBandLeft;
1981 float GuardBandTop;
1982 float GuardBandRight;
1983 float GuardBandBottom;
1984
1985 float ExtentsAdjust;
1986 DWORD StencilCaps;
1987
1988 DWORD FVFCaps;
1989 DWORD TextureOpCaps;
1990 DWORD MaxTextureBlendStages;
1991 DWORD MaxSimultaneousTextures;
1992
1993 DWORD VertexProcessingCaps;
1994 DWORD MaxActiveLights;
1995 DWORD MaxUserClipPlanes;
1996 DWORD MaxVertexBlendMatrices;
1997 DWORD MaxVertexBlendMatrixIndex;
1998
1999 float MaxPointSize;
2000
2001 DWORD MaxPrimitiveCount;
2002 DWORD MaxVertexIndex;
2003 DWORD MaxStreams;
2004 DWORD MaxStreamStride;
2005
2006 DWORD VertexShaderVersion;
2007 DWORD MaxVertexShaderConst;
2008
2009 DWORD PixelShaderVersion;
2010 float PixelShader1xMaxValue;
2011
2012 /* DX 9 */
2013 DWORD DevCaps2;
2014
2015 float MaxNpatchTessellationLevel;
2016 DWORD Reserved5; /* undocumented */
2017
2018 UINT MasterAdapterOrdinal;
2019 UINT AdapterOrdinalInGroup;
2020 UINT NumberOfAdaptersInGroup;
2021 DWORD DeclTypes;
2022 DWORD NumSimultaneousRTs;
2023 DWORD StretchRectFilterCaps;
2024 WINED3DVSHADERCAPS2_0 VS20Caps;
2025 WINED3DPSHADERCAPS2_0 PS20Caps;
2026 DWORD VertexTextureFilterCaps;
2027 DWORD MaxVShaderInstructionsExecuted;
2028 DWORD MaxPShaderInstructionsExecuted;
2029 DWORD MaxVertexShader30InstructionSlots;
2030 DWORD MaxPixelShader30InstructionSlots;
2031 DWORD Reserved2; /* Not in the microsoft headers but documented */
2032 DWORD Reserved3;
2033
2034 WINEDDCAPS DirectDrawCaps;
2035 } WINED3DCAPS;
2036
2037 /* DirectDraw types */
2038
2039 typedef struct _WINEDDCOLORKEY
2040 {
2041 DWORD dwColorSpaceLowValue; /* low boundary of color space that is to
2042 * be treated as Color Key, inclusive */
2043 DWORD dwColorSpaceHighValue; /* high boundary of color space that is
2044 * to be treated as Color Key, inclusive */
2045 } WINEDDCOLORKEY,*LPWINEDDCOLORKEY;
2046
2047 typedef struct _WINEDDBLTFX
2048 {
2049 DWORD dwSize; /* size of structure */
2050 DWORD dwDDFX; /* FX operations */
2051 DWORD dwROP; /* Win32 raster operations */
2052 DWORD dwDDROP; /* Raster operations new for DirectDraw */
2053 DWORD dwRotationAngle; /* Rotation angle for blt */
2054 DWORD dwZBufferOpCode; /* ZBuffer compares */
2055 DWORD dwZBufferLow; /* Low limit of Z buffer */
2056 DWORD dwZBufferHigh; /* High limit of Z buffer */
2057 DWORD dwZBufferBaseDest; /* Destination base value */
2058 DWORD dwZDestConstBitDepth; /* Bit depth used to specify Z constant for destination */
2059 union
2060 {
2061 DWORD dwZDestConst; /* Constant to use as Z buffer for dest */
2062 struct IWineD3DSurface *lpDDSZBufferDest; /* Surface to use as Z buffer for dest */
2063 } DUMMYUNIONNAME1;
2064 DWORD dwZSrcConstBitDepth; /* Bit depth used to specify Z constant for source */
2065 union
2066 {
2067 DWORD dwZSrcConst; /* Constant to use as Z buffer for src */
2068 struct IWineD3DSurface *lpDDSZBufferSrc; /* Surface to use as Z buffer for src */
2069 } DUMMYUNIONNAME2;
2070 DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */
2071 DWORD dwAlphaEdgeBlend; /* Alpha for edge blending */
2072 DWORD dwReserved;
2073 DWORD dwAlphaDestConstBitDepth; /* Bit depth used to specify alpha constant for destination */
2074 union
2075 {
2076 DWORD dwAlphaDestConst; /* Constant to use as Alpha Channel */
2077 struct IWineD3DSurface *lpDDSAlphaDest; /* Surface to use as Alpha Channel */
2078 } DUMMYUNIONNAME3;
2079 DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
2080 union
2081 {
2082 DWORD dwAlphaSrcConst; /* Constant to use as Alpha Channel */
2083 struct IWineD3DSurface *lpDDSAlphaSrc; /* Surface to use as Alpha Channel */
2084 } DUMMYUNIONNAME4;
2085 union
2086 {
2087 DWORD dwFillColor; /* color in RGB or Palettized */
2088 DWORD dwFillDepth; /* depth value for z-buffer */
2089 DWORD dwFillPixel; /* pixel val for RGBA or RGBZ */
2090 struct IWineD3DSurface *lpDDSPattern; /* Surface to use as pattern */
2091 } DUMMYUNIONNAME5;
2092 WINEDDCOLORKEY ddckDestColorkey; /* DestColorkey override */
2093 WINEDDCOLORKEY ddckSrcColorkey; /* SrcColorkey override */
2094 } WINEDDBLTFX,*LPWINEDDBLTFX;
2095
2096 typedef struct _WINEDDOVERLAYFX
2097 {
2098 DWORD dwSize; /* size of structure */
2099 DWORD dwAlphaEdgeBlendBitDepth; /* Bit depth used to specify constant for alpha edge blend */
2100 DWORD dwAlphaEdgeBlend; /* Constant to use as alpha for edge blend */
2101 DWORD dwReserved;
2102 DWORD dwAlphaDestConstBitDepth; /* Bit depth used to specify alpha constant for destination */
2103 union
2104 {
2105 DWORD dwAlphaDestConst; /* Constant to use as alpha channel for dest */
2106 struct IWineD3DSurface *lpDDSAlphaDest; /* Surface to use as alpha channel for dest */
2107 } DUMMYUNIONNAME1;
2108 DWORD dwAlphaSrcConstBitDepth; /* Bit depth used to specify alpha constant for source */
2109 union
2110 {
2111 DWORD dwAlphaSrcConst; /* Constant to use as alpha channel for src */
2112 struct IWineD3DSurface *lpDDSAlphaSrc; /* Surface to use as alpha channel for src */
2113 } DUMMYUNIONNAME2;
2114 WINEDDCOLORKEY dckDestColorkey; /* DestColorkey override */
2115 WINEDDCOLORKEY dckSrcColorkey; /* SrcColorkey override */
2116 DWORD dwDDFX; /* Overlay FX */
2117 DWORD dwFlags; /* flags */
2118 } WINEDDOVERLAYFX;
2119
2120 struct wined3d_buffer_desc
2121 {
2122 UINT byte_width;
2123 DWORD usage;
2124 UINT bind_flags;
2125 UINT cpu_access_flags;
2126 UINT misc_flags;
2127 };
2128
2129 struct wined3d_shader_signature_element
2130 {
2131 const char *semantic_name;
2132 UINT semantic_idx;
2133 enum wined3d_sysval_semantic sysval_semantic;
2134 DWORD component_type;
2135 UINT register_idx;
2136 DWORD mask;
2137 };
2138
2139 struct wined3d_shader_signature
2140 {
2141 UINT element_count;
2142 struct wined3d_shader_signature_element *elements;
2143 char *string_data;
2144 };
2145
2146 struct wined3d_parent_ops
2147 {
2148 void (*wined3d_object_destroyed)(void *parent);
2149 };
2150
2151 interface IWineD3DResource;
2152 interface IWineD3DSurface;
2153 interface IWineD3DVolume;
2154 interface IWineD3DSwapChain;
2155 interface IWineD3DDevice;
2156
2157 [
2158 object,
2159 local,
2160 uuid(aeb62dfc-bdcb-4f02-9519-1eeea00c15cd)
2161 ]
2162 interface IWineD3DDeviceParent : IUnknown
2163 {
2164 void WineD3DDeviceCreated(
2165 [in] IWineD3DDevice *device
2166 );
2167
2168 HRESULT CreateSurface(
2169 [in] IUnknown *superior,
2170 [in] UINT width,
2171 [in] UINT height,
2172 [in] WINED3DFORMAT format,
2173 [in] DWORD usage,
2174 [in] WINED3DPOOL pool,
2175 [in] UINT level,
2176 [in] WINED3DCUBEMAP_FACES face,
2177 [out] IWineD3DSurface **surface
2178 );
2179
2180 HRESULT CreateRenderTarget(
2181 [in] IUnknown *superior,
2182 [in] UINT width,
2183 [in] UINT height,
2184 [in] WINED3DFORMAT format,
2185 [in] WINED3DMULTISAMPLE_TYPE multisample_type,
2186 [in] DWORD multisample_quality,
2187 [in] BOOL lockable,
2188 [out] IWineD3DSurface **surface
2189 );
2190
2191 HRESULT CreateDepthStencilSurface(
2192 [in] IUnknown *superior,
2193 [in] UINT width,
2194 [in] UINT height,
2195 [in] WINED3DFORMAT format,
2196 [in] WINED3DMULTISAMPLE_TYPE multisample_type,
2197 [in] DWORD multisample_quality,
2198 [in] BOOL discard,
2199 [out] IWineD3DSurface **surface
2200 );
2201
2202 HRESULT CreateVolume(
2203 [in] IUnknown *superior,
2204 [in] UINT width,
2205 [in] UINT height,
2206 [in] UINT depth,
2207 [in] WINED3DFORMAT format,
2208 [in] WINED3DPOOL pool,
2209 [in] DWORD usage,
2210 [out] IWineD3DVolume **volume
2211 );
2212
2213 HRESULT CreateSwapChain(
2214 [in, out] WINED3DPRESENT_PARAMETERS *present_parameters,
2215 [out] IWineD3DSwapChain **swapchain
2216 );
2217 }
2218 typedef ULONG (*D3DCB_DESTROYSWAPCHAINFN)(IWineD3DSwapChain *pSwapChain);
2219 typedef HRESULT (*D3DCB_ENUMRESOURCES)(IWineD3DResource *resource, void *pData);
2220
2221 [
2222 object,
2223 local,
2224 uuid(46799311-8e0e-40ce-b2ec-ddb99f18fcb4)
2225 ]
2226 interface IWineD3DBase : IUnknown
2227 {
2228 HRESULT GetParent(
2229 [out] IUnknown **parent
2230 );
2231 }
2232
2233 [
2234 object,
2235 local,
2236 uuid(108f9c44-6f30-11d9-c687-00046142c14f)
2237 ]
2238 interface IWineD3D : IWineD3DBase
2239 {
2240 UINT GetAdapterCount(
2241 );
2242 HRESULT RegisterSoftwareDevice(
2243 [in] void *pInitializeFunction
2244 );
2245 HMONITOR GetAdapterMonitor(
2246 [in] UINT adapter_idx
2247 );
2248 UINT GetAdapterModeCount(
2249 [in] UINT adapter_idx,
2250 [in] WINED3DFORMAT format
2251 );
2252 HRESULT EnumAdapterModes(
2253 [in] UINT adapter_idx,
2254 [in] WINED3DFORMAT format,
2255 [in] UINT mode_idx,
2256 [out] WINED3DDISPLAYMODE *mode
2257 );
2258 HRESULT GetAdapterDisplayMode(
2259 [in] UINT adapter_idx,
2260 [out] WINED3DDISPLAYMODE *mode
2261 );
2262 HRESULT GetAdapterIdentifier(
2263 [in] UINT adapter_idx,
2264 [in] DWORD flags,
2265 [out] WINED3DADAPTER_IDENTIFIER *identifier
2266 );
2267 HRESULT CheckDeviceMultiSampleType(
2268 [in] UINT adapter_idx,
2269 [in] WINED3DDEVTYPE device_type,
2270 [in] WINED3DFORMAT surface_format,
2271 [in] BOOL windowed,
2272 [in] WINED3DMULTISAMPLE_TYPE multisample_type,
2273 [out] DWORD *quality_levels
2274 );
2275 HRESULT CheckDepthStencilMatch(
2276 [in] UINT adapter_idx,
2277 [in] WINED3DDEVTYPE device_type,
2278 [in] WINED3DFORMAT adapter_format,
2279 [in] WINED3DFORMAT render_target_format,
2280 [in] WINED3DFORMAT depth_stencil_format
2281 );
2282 HRESULT CheckDeviceType(
2283 [in] UINT adapter_idx,
2284 [in] WINED3DDEVTYPE device_type,
2285 [in] WINED3DFORMAT display_format,
2286 [in] WINED3DFORMAT backbuffer_format,
2287 [in] BOOL windowed
2288 );
2289 HRESULT CheckDeviceFormat(
2290 [in] UINT adaper_idx,
2291 [in] WINED3DDEVTYPE device_type,
2292 [in] WINED3DFORMAT adapter_format,
2293 [in] DWORD usage,
2294 [in] WINED3DRESOURCETYPE resource_type,
2295 [in] WINED3DFORMAT check_format,
2296 [in] WINED3DSURFTYPE surface_type
2297 );
2298 HRESULT CheckDeviceFormatConversion(
2299 [in] UINT adapter_idx,
2300 [in] WINED3DDEVTYPE device_type,
2301 [in] WINED3DFORMAT source_format,
2302 [in] WINED3DFORMAT target_format
2303 );
2304 HRESULT GetDeviceCaps(
2305 [in] UINT adapter_idx,
2306 [in] WINED3DDEVTYPE device_type,
2307 [out] WINED3DCAPS *caps
2308 );
2309 HRESULT CreateDevice(
2310 [in] UINT adapter_idx,
2311 [in] WINED3DDEVTYPE device_type,
2312 [in] HWND focus_window,
2313 [in] DWORD behaviour_flags,
2314 [in] IUnknown *parent,
2315 [in] IWineD3DDeviceParent *device_parent,
2316 [out] IWineD3DDevice **device
2317 );
2318 }
2319
2320 [
2321 object,
2322 local,
2323 uuid(1f3bfb34-6f30-11d9-c687-00046142c14f)
2324 ]
2325 interface IWineD3DResource : IWineD3DBase
2326 {
2327 HRESULT SetPrivateData(
2328 [in] REFGUID guid,
2329 [in] const void *data,
2330 [in] DWORD data_size,
2331 [in] DWORD flags
2332 );
2333 HRESULT GetPrivateData(
2334 [in] REFGUID guid,
2335 [out] void *data,
2336 [in, out] DWORD *data_size
2337 );
2338 HRESULT FreePrivateData(
2339 [in] REFGUID guid
2340 );
2341 DWORD SetPriority(
2342 [in] DWORD new_priority
2343 );
2344 DWORD GetPriority(
2345 );
2346 void PreLoad(
2347 );
2348 void UnLoad(
2349 );
2350 WINED3DRESOURCETYPE GetType(
2351 );
2352 }
2353
2354 [
2355 object,
2356 local,
2357 uuid(f7d8abf4-fb93-43e4-9c96-4618cf9b3cbc)
2358 ]
2359 interface IWineD3DRendertargetView : IWineD3DBase
2360 {
2361 HRESULT GetResource(
2362 [out] IWineD3DResource **resource
2363 );
2364 }
2365
2366 [
2367 object,
2368 local,
2369 uuid(f756720c-32b9-4439-b5a3-1d6c97037d9e)
2370 ]
2371 interface IWineD3DPalette : IWineD3DBase
2372 {
2373 HRESULT GetEntries(
2374 [in] DWORD flags,
2375 [in] DWORD start,
2376 [in] DWORD count,
2377 [out] PALETTEENTRY *entries
2378 );
2379 HRESULT GetCaps(
2380 [out] DWORD *caps
2381 );
2382 HRESULT SetEntries(
2383 [in] DWORD flags,
2384 [in] DWORD start,
2385 [in] DWORD count,
2386 [in] const PALETTEENTRY *entries
2387 );
2388 }
2389
2390 [
2391 object,
2392 local,
2393 uuid(8f2bceb1-d338-488c-ab7f-0ec980bf5d2d)
2394 ]
2395 interface IWineD3DClipper : IWineD3DBase
2396 {
2397 HRESULT GetClipList(
2398 [in] const RECT *rect,
2399 [out] RGNDATA *clip_list,
2400 [in, out] DWORD *clip_list_size
2401 );
2402 HRESULT GetHWnd(
2403 [out] HWND *hwnd
2404 );
2405 HRESULT IsClipListChanged(
2406 [out] BOOL *changed
2407 );
2408 HRESULT SetClipList(
2409 [in] const RGNDATA *clip_list,
2410 [in] DWORD flags
2411 );
2412 HRESULT SetHWnd(
2413 [in] DWORD flags,
2414 [in] HWND hwnd
2415 );
2416 }
2417
2418 [
2419 object,
2420 local,
2421 uuid(37cd5526-6f30-11d9-c687-00046142c14f)
2422 ]
2423 interface IWineD3DSurface : IWineD3DResource
2424 {
2425 HRESULT GetContainer(
2426 [in] REFIID riid,
2427 [out] void **container
2428 );
2429 HRESULT GetDesc(
2430 [out] WINED3DSURFACE_DESC *desc
2431 );
2432 HRESULT LockRect(
2433 [out] WINED3DLOCKED_RECT *locked_rect,
2434 [in] const RECT *rect,
2435 [in] DWORD flags
2436 );
2437 HRESULT UnlockRect(
2438 );
2439 HRESULT GetDC(
2440 [out] HDC *dc
2441 );
2442 HRESULT ReleaseDC(
2443 [in] HDC dc
2444 );
2445 HRESULT Flip(
2446 [in] IWineD3DSurface *override,
2447 [in] DWORD flags
2448 );
2449 HRESULT Blt(
2450 [in] const RECT *dst_rect,
2451 [in] IWineD3DSurface *src_surface,
2452 [in] const RECT *src_rect,
2453 [in] DWORD flags,
2454 [in] const WINEDDBLTFX *blt_fx,
2455 [in] WINED3DTEXTUREFILTERTYPE filter
2456 );
2457 HRESULT GetBltStatus(
2458 [in] DWORD flags
2459 );
2460 HRESULT GetFlipStatus(
2461 [in] DWORD flags
2462 );
2463 HRESULT IsLost(
2464 );
2465 HRESULT Restore(
2466 );
2467 HRESULT BltFast(
2468 [in] DWORD dst_x,
2469 [in] DWORD dst_y,
2470 [in] IWineD3DSurface *src_surface,
2471 [in] const RECT *src_rect,
2472 [in] DWORD trans
2473 );
2474 HRESULT GetPalette(
2475 [out] IWineD3DPalette **palette
2476 );
2477 HRESULT SetPalette(
2478 [in] IWineD3DPalette *palette
2479 );
2480 HRESULT RealizePalette(
2481 );
2482 HRESULT SetColorKey(
2483 [in] DWORD flags,
2484 [in] const WINEDDCOLORKEY *color_key
2485 );
2486 DWORD GetPitch(
2487 );
2488 HRESULT SetMem(
2489 [in] void *mem
2490 );
2491 HRESULT SetOverlayPosition(
2492 [in] LONG x,
2493 [in] LONG y
2494 );
2495 HRESULT GetOverlayPosition(
2496 [out] LONG *x,
2497 [out] LONG *y
2498 );
2499 HRESULT UpdateOverlayZOrder(
2500 [in] DWORD flags,
2501 [in] IWineD3DSurface *ref
2502 );
2503 HRESULT UpdateOverlay(
2504 [in] const RECT *src_rect,
2505 [in] IWineD3DSurface *dst_surface,
2506 [in] const RECT *dst_rect,
2507 [in] DWORD flags,
2508 [in] const WINEDDOVERLAYFX *fx
2509 );
2510 HRESULT SetClipper(
2511 [in] IWineD3DClipper *clipper
2512 );
2513 HRESULT GetClipper(
2514 [out] IWineD3DClipper **clipper
2515 );
2516 HRESULT LoadTexture(
2517 [in] BOOL srgb_mode
2518 );
2519 void BindTexture(
2520 [in] BOOL srgb
2521 );
2522 HRESULT SaveSnapshot(
2523 [in] const char *filename
2524 );
2525 HRESULT SetContainer(
2526 [in] IWineD3DBase *container
2527 );
2528 const void *GetData(
2529 );
2530 HRESULT SetFormat(
2531 [in] WINED3DFORMAT format
2532 );
2533 HRESULT PrivateSetup(
2534 );
2535 void ModifyLocation(
2536 [in] DWORD location,
2537 [in] BOOL persistent
2538 );
2539 HRESULT LoadLocation(
2540 [in] DWORD location,
2541 [in] const RECT *rect
2542 );
2543 WINED3DSURFTYPE GetImplType(
2544 );
2545 HRESULT DrawOverlay(
2546 );
2547 }
2548
2549 [
2550 object,
2551 local,
2552 uuid(24769ed8-6f30-11d9-c687-00046142c14f)
2553 ]
2554 interface IWineD3DVolume : IWineD3DResource
2555 {
2556 HRESULT GetContainer(
2557 [in] REFIID riid,
2558 [out] void **container
2559 );
2560 HRESULT GetDesc(
2561 [out] WINED3DVOLUME_DESC *desc
2562 );
2563 HRESULT LockBox(
2564 [out] WINED3DLOCKED_BOX *locked_box,
2565 [in] const WINED3DBOX *box,
2566 [in] DWORD flags
2567 );
2568 HRESULT UnlockBox(
2569 );
2570 HRESULT LoadTexture(
2571 [in] int gl_level,
2572 [in] BOOL srgb_mode
2573 );
2574 HRESULT SetContainer(
2575 [in] IWineD3DBase *container
2576 );
2577 }
2578
2579 [
2580 object,
2581 local,
2582 uuid(3c2aebf6-6f30-11d9-c687-00046142c14f)
2583 ]
2584 interface IWineD3DBaseTexture : IWineD3DResource
2585 {
2586 DWORD SetLOD(
2587 [in] DWORD new_lod
2588 );
2589 DWORD GetLOD(
2590 );
2591 DWORD GetLevelCount(
2592 );
2593 HRESULT SetAutoGenFilterType(
2594 WINED3DTEXTUREFILTERTYPE filter_type
2595 );
2596 WINED3DTEXTUREFILTERTYPE GetAutoGenFilterType(
2597 );
2598 void GenerateMipSubLevels(
2599 );
2600 BOOL SetDirty(
2601 BOOL dirty
2602 );
2603 BOOL GetDirty(
2604 );
2605 HRESULT BindTexture(
2606 [in] BOOL srgb
2607 );
2608 UINT GetTextureDimensions(
2609 );
2610 BOOL IsCondNP2(
2611 );
2612 }
2613
2614 [
2615 object,
2616 local,
2617 uuid(3e72cc1c-6f30-11d9-c687-00046142c14f)
2618 ]
2619 interface IWineD3DTexture : IWineD3DBaseTexture
2620 {
2621 HRESULT GetLevelDesc(
2622 [in] UINT level,
2623 [out] WINED3DSURFACE_DESC *desc
2624 );
2625 HRESULT GetSurfaceLevel(
2626 [in] UINT level,
2627 [out] IWineD3DSurface **surface
2628 );
2629 HRESULT LockRect(
2630 [in] UINT level,
2631 [out] WINED3DLOCKED_RECT *locked_rect,
2632 [in] const RECT *rect,
2633 [in] DWORD flags
2634 );
2635 HRESULT UnlockRect(
2636 [in] UINT level
2637 );
2638 HRESULT AddDirtyRect(
2639 [in] const RECT *dirty_rect
2640 );
2641 }
2642
2643 [
2644 object,
2645 local,
2646 uuid(41752900-6f30-11d9-c687-00046142c14f)
2647 ]
2648 interface IWineD3DCubeTexture : IWineD3DBaseTexture
2649 {
2650 HRESULT GetLevelDesc(
2651 [in] UINT level,
2652 [out] WINED3DSURFACE_DESC *desc
2653 );
2654 HRESULT GetCubeMapSurface(
2655 [in] WINED3DCUBEMAP_FACES face,
2656 [in] UINT level,
2657 [out] IWineD3DSurface **surface
2658 );
2659 HRESULT LockRect(
2660 [in] WINED3DCUBEMAP_FACES face,
2661 [in] UINT level,
2662 [out] WINED3DLOCKED_RECT *locked_rect,
2663 [in] const RECT *rect,
2664 [in] DWORD flags
2665 );
2666 HRESULT UnlockRect(
2667 [in] WINED3DCUBEMAP_FACES face,
2668 [in] UINT level
2669 );
2670 HRESULT AddDirtyRect(
2671 [in] WINED3DCUBEMAP_FACES face,
2672 [in] const RECT *dirty_rect
2673 );
2674 }
2675
2676 [
2677 object,
2678 local,
2679 uuid(7b39470c-6f30-11d9-c687-00046142c14f)
2680 ]
2681 interface IWineD3DVolumeTexture : IWineD3DBaseTexture
2682 {
2683 HRESULT GetLevelDesc(
2684 [in] UINT level,
2685 [out] WINED3DVOLUME_DESC *desc
2686 );
2687 HRESULT GetVolumeLevel(
2688 [in] UINT level,
2689 [out] IWineD3DVolume **volume
2690 );
2691 HRESULT LockBox(
2692 [in] UINT level,
2693 [out] WINED3DLOCKED_BOX *locked_box,
2694 [in] const WINED3DBOX *box,
2695 [in] DWORD flags
2696 );
2697 HRESULT UnlockBox(
2698 [in] UINT level
2699 );
2700 HRESULT AddDirtyBox(
2701 [in] const WINED3DBOX *dirty_box
2702 );
2703 }
2704
2705 [
2706 object,
2707 local,
2708 uuid(7cd55be6-6f30-11d9-c687-00046142c14f)
2709 ]
2710 interface IWineD3DVertexDeclaration : IWineD3DBase
2711 {
2712 }
2713
2714 [
2715 object,
2716 local,
2717 uuid(83b073ce-6f30-11d9-c687-00046142c14f)
2718 ]
2719 interface IWineD3DStateBlock : IUnknown
2720 {
2721 HRESULT Capture(
2722 );
2723 HRESULT Apply(
2724 );
2725 HRESULT InitStartupStateBlock(
2726 );
2727 }
2728
2729 [
2730 object,
2731 local,
2732 uuid(905ddbac-6f30-11d9-c687-00046142c14f)
2733 ]
2734 interface IWineD3DQuery : IWineD3DBase
2735 {
2736 HRESULT GetData(
2737 [out] void *data,
2738 [in] DWORD data_size,
2739 [in] DWORD flags
2740 );
2741 DWORD GetDataSize(
2742 );
2743 WINED3DQUERYTYPE GetType(
2744 );
2745 HRESULT Issue(
2746 DWORD flags
2747 );
2748 }
2749
2750 [
2751 object,
2752 local,
2753 uuid(34d01b10-6f30-11d9-c687-00046142c14f)
2754 ]
2755 interface IWineD3DSwapChain : IWineD3DBase
2756 {
2757 void Destroy(
2758 );
2759 HRESULT GetDevice(
2760 [out] IWineD3DDevice **device
2761 );
2762 HRESULT Present(
2763 [in] const RECT *src_rect,
2764 [in] const RECT *dst_rect,
2765 [in] HWND dst_window_override,
2766 [in] const RGNDATA *dirty_region,
2767 [in] DWORD flags
2768 );
2769 HRESULT SetDestWindowOverride(
2770 [in] HWND window
2771 );
2772 HRESULT GetFrontBufferData(
2773 [in] IWineD3DSurface *dst_surface
2774 );
2775 HRESULT GetBackBuffer(
2776 [in] UINT backbuffer_idx,
2777 [in] WINED3DBACKBUFFER_TYPE backbuffer_type,
2778 [out] IWineD3DSurface **backbuffer
2779 );
2780 HRESULT GetRasterStatus(
2781 [out] WINED3DRASTER_STATUS *raster_status
2782 );
2783 HRESULT GetDisplayMode(
2784 [out] WINED3DDISPLAYMODE *mode
2785 );
2786 HRESULT GetPresentParameters(
2787 [out] WINED3DPRESENT_PARAMETERS *present_parameters
2788 );
2789 HRESULT SetGammaRamp(
2790 [in] DWORD flags,
2791 [in] const WINED3DGAMMARAMP *ramp
2792 );
2793 HRESULT GetGammaRamp(
2794 [out] WINED3DGAMMARAMP *ramp
2795 );
2796 }
2797
2798 [
2799 object,
2800 local,
2801 uuid(b3f028e8-1a40-4ab3-9292-5bf6cfd80209)
2802 ]
2803 interface IWineD3DBuffer : IWineD3DResource
2804 {
2805 HRESULT Map(
2806 [in] UINT offset,
2807 [in] UINT size,
2808 [out] BYTE **data,
2809 [in] DWORD flags
2810 );
2811 HRESULT Unmap(
2812 );
2813 HRESULT GetDesc(
2814 [out] WINED3DBUFFER_DESC *desc
2815 );
2816 }
2817
2818 [
2819 object,
2820 local,
2821 uuid(eac93065-a4df-446f-86a1-9ef2bca40a3c)
2822 ]
2823 interface IWineD3DBaseShader : IWineD3DBase
2824 {
2825 HRESULT GetFunction(
2826 [out] void *data,
2827 [in, out] UINT *data_size
2828 );
2829 }
2830
2831 [
2832 object,
2833 local,
2834 uuid(7f7a2b60-6f30-11d9-c687-00046142c14f)
2835 ]
2836 interface IWineD3DVertexShader : IWineD3DBaseShader
2837 {
2838 HRESULT SetLocalConstantsF(
2839 [in] UINT start_idx,
2840 [in] const float *src_data,
2841 [in] UINT vector4f_count
2842 );
2843 }
2844
2845 [
2846 object,
2847 local,
2848 uuid(8276c113-388b-49d1-ad8b-c9dd8bcbabcd)
2849 ]
2850 interface IWineD3DGeometryShader : IWineD3DBaseShader
2851 {
2852 }
2853
2854 [
2855 object,
2856 local,
2857 uuid(818503da-6f30-11d9-c687-00046142c14f)
2858 ]
2859 interface IWineD3DPixelShader : IWineD3DBaseShader
2860 {
2861 }
2862
2863 [
2864 object,
2865 local,
2866 uuid(6d10a2ce-09d0-4a53-a427-11388f9f8ca5)
2867 ]
2868 interface IWineD3DDevice : IWineD3DBase
2869 {
2870 HRESULT CreateBuffer(
2871 [in] struct wined3d_buffer_desc *desc,
2872 [in] const void *data,
2873 [in] IUnknown *parent,
2874 [in] const struct wined3d_parent_ops *parent_ops,
2875 [out] IWineD3DBuffer **buffer
2876 );
2877 HRESULT CreateVertexBuffer(
2878 [in] UINT length,
2879 [in] DWORD usage,
2880 [in] WINED3DPOOL pool,
2881 [out] IWineD3DBuffer **vertex_buffer,
2882 [in] IUnknown *parent,
2883 [in] const struct wined3d_parent_ops *parent_ops
2884 );
2885 HRESULT CreateIndexBuffer(
2886 [in] UINT length,
2887 [in] DWORD usage,
2888 [in] WINED3DPOOL pool,
2889 [out] IWineD3DBuffer **index_buffer,
2890 [in] IUnknown *parent,
2891 [in] const struct wined3d_parent_ops *parent_ops
2892 );
2893 HRESULT CreateStateBlock(
2894 [in] WINED3DSTATEBLOCKTYPE type,
2895 [out] IWineD3DStateBlock **stateblock,
2896 [in] IUnknown *parent
2897 );
2898 HRESULT CreateSurface(
2899 [in] UINT width,
2900 [in] UINT height,
2901 [in] WINED3DFORMAT format,
2902 [in] BOOL lockable,
2903 [in] BOOL discard,
2904 [in] UINT level,
2905 [out] IWineD3DSurface **surface,
2906 [in] DWORD usage,
2907 [in] WINED3DPOOL pool,
2908 [in] WINED3DMULTISAMPLE_TYPE multisample_type,
2909 [in] DWORD multisample_quality,
2910 [in] WINED3DSURFTYPE surface_type,
2911 [in] IUnknown *parent,
2912 [in] const struct wined3d_parent_ops *parent_ops
2913 );
2914 HRESULT CreateRendertargetView(
2915 [in] IWineD3DResource *resource,
2916 [in] IUnknown *parent,
2917 [out] IWineD3DRendertargetView **rendertarget_view
2918 );
2919 HRESULT CreateTexture(
2920 [in] UINT width,
2921 [in] UINT height,
2922 [in] UINT levels,
2923 [in] DWORD usage,
2924 [in] WINED3DFORMAT format,
2925 [in] WINED3DPOOL pool,
2926 [out] IWineD3DTexture **texture,
2927 [in] IUnknown *parent,
2928 [in] const struct wined3d_parent_ops *parent_ops
2929 );
2930 HRESULT CreateVolumeTexture(
2931 [in] UINT width,
2932 [in] UINT height,
2933 [in] UINT depth,
2934 [in] UINT levels,
2935 [in] DWORD usage,
2936 [in] WINED3DFORMAT format,
2937 [in] WINED3DPOOL pool,
2938 [out] IWineD3DVolumeTexture **texture,
2939 [in] IUnknown *parent,
2940 [in] const struct wined3d_parent_ops *parent_ops
2941 );
2942 HRESULT CreateVolume(
2943 [in] UINT width,
2944 [in] UINT height,
2945 [in] UINT depth,
2946 [in] DWORD usage,
2947 [in] WINED3DFORMAT format,
2948 [in] WINED3DPOOL pool,
2949 [out] IWineD3DVolume **volume,
2950 [in] IUnknown *parent,
2951 [in] const struct wined3d_parent_ops *parent_ops
2952 );
2953 HRESULT CreateCubeTexture(
2954 [in] UINT edge_length,
2955 [in] UINT levels,
2956 [in] DWORD usage,
2957 [in] WINED3DFORMAT format,
2958 [in] WINED3DPOOL pool,
2959 [out] IWineD3DCubeTexture **texture,
2960 [in] IUnknown *parent,
2961 [in] const struct wined3d_parent_ops *parent_ops
2962 );
2963 HRESULT CreateQuery(
2964 [in] WINED3DQUERYTYPE type,
2965 [out] IWineD3DQuery **query,
2966 [in] IUnknown *parent
2967 );
2968 HRESULT CreateSwapChain(
2969 [in] WINED3DPRESENT_PARAMETERS *present_parameters,
2970 [out] IWineD3DSwapChain **swapchain,
2971 [in] IUnknown *parent,
2972 [in] WINED3DSURFTYPE surface_type
2973 );
2974 HRESULT CreateVertexDeclaration(
2975 [out] IWineD3DVertexDeclaration **declaration,
2976 [in] IUnknown *parent,
2977 [in] const struct wined3d_parent_ops *parent_ops,
2978 [in] const WINED3DVERTEXELEMENT *elements,
2979 [in] UINT element_count
2980 );
2981 HRESULT CreateVertexDeclarationFromFVF(
2982 [out] IWineD3DVertexDeclaration **declaration,
2983 [in] IUnknown *parent,
2984 [in] const struct wined3d_parent_ops *parent_ops,
2985 [in] DWORD fvf
2986 );
2987 HRESULT CreateVertexShader(
2988 [in] const DWORD *function,
2989 [in] const struct wined3d_shader_signature *output_signature,
2990 [out] IWineD3DVertexShader **shader,
2991 [in] IUnknown *parent,
2992 [in] const struct wined3d_parent_ops *parent_ops
2993 );
2994 HRESULT CreateGeometryShader(
2995 [in] const DWORD *byte_code,
2996 [in] const struct wined3d_shader_signature *output_signature,
2997 [out] IWineD3DGeometryShader **shader,
2998 [in] IUnknown *parent,
2999 [in] const struct wined3d_parent_ops *parent_ops
3000 );
3001 HRESULT CreatePixelShader(
3002 [in] const DWORD *function,
3003 [in] const struct wined3d_shader_signature *output_signature,
3004 [out] IWineD3DPixelShader **shader,
3005 [in] IUnknown *parent,
3006 [in] const struct wined3d_parent_ops *parent_ops
3007 );
3008 HRESULT CreatePalette(
3009 [in] DWORD flags,
3010 [in] const PALETTEENTRY *palette_entry,
3011 [out] IWineD3DPalette **palette,
3012 [in] IUnknown *parent
3013 );
3014 HRESULT Init3D(
3015 [in] WINED3DPRESENT_PARAMETERS *present_parameters
3016 );
3017 HRESULT InitGDI(
3018 [in] WINED3DPRESENT_PARAMETERS *present_parameters
3019 );
3020 HRESULT Uninit3D(
3021 [in] D3DCB_DESTROYSWAPCHAINFN destroy_swapchain_callback
3022 );
3023 HRESULT UninitGDI(
3024 [in] D3DCB_DESTROYSWAPCHAINFN destroy_swapchain_callback
3025 );
3026 void SetMultithreaded(
3027 );
3028 HRESULT EvictManagedResources(
3029 );
3030 UINT GetAvailableTextureMem(
3031 );
3032 HRESULT GetBackBuffer(
3033 [in] UINT swapchain_idx,
3034 [in] UINT backbuffer_idx,
3035 [in] WINED3DBACKBUFFER_TYPE backbuffer_type,
3036 [out] IWineD3DSurface **backbuffer
3037 );
3038 HRESULT GetCreationParameters(
3039 [out] WINED3DDEVICE_CREATION_PARAMETERS *creation_parameters
3040 );
3041 HRESULT GetDeviceCaps(
3042 [out] WINED3DCAPS *caps
3043 );
3044 HRESULT GetDirect3D(
3045 [out] IWineD3D** d3d
3046 );
3047 HRESULT GetDisplayMode(
3048 [in] UINT swapchain_idx,
3049 [out] WINED3DDISPLAYMODE *mode
3050 );
3051 HRESULT SetDisplayMode(
3052 [in] UINT swapchain_idx,
3053 [in] const WINED3DDISPLAYMODE *mode
3054 );
3055 UINT GetNumberOfSwapChains(
3056 );
3057 HRESULT GetRasterStatus(
3058 [in] UINT swapchain_idx,
3059 [out] WINED3DRASTER_STATUS *raster_status
3060 );
3061 HRESULT GetSwapChain(
3062 [in] UINT swapchain_idx,
3063 [out] IWineD3DSwapChain **swapchain
3064 );
3065 HRESULT Reset(
3066 [in] WINED3DPRESENT_PARAMETERS *present_parameters
3067 );
3068 HRESULT SetDialogBoxMode(
3069 [in] BOOL enable_dialogs
3070 );
3071 HRESULT SetCursorProperties(
3072 [in] UINT x_hotspot,
3073 [in] UINT y_hotspot,
3074 [in] IWineD3DSurface *cursor_surface
3075 );
3076 void SetCursorPosition(
3077 [in] int x_screen_space,
3078 [in] int y_screen_space,
3079 [in] DWORD flags
3080 );
3081 BOOL ShowCursor(
3082 [in] BOOL show
3083 );
3084 HRESULT SetClipPlane(
3085 [in] DWORD plane_idx,
3086 [in] const float *plane
3087 );
3088 HRESULT GetClipPlane(
3089 [in] DWORD plane_idx,
3090 [out] float *plane
3091 );
3092 HRESULT SetClipStatus(
3093 [in] const WINED3DCLIPSTATUS *clip_status
3094 );
3095 HRESULT GetClipStatus(
3096 [out] WINED3DCLIPSTATUS *clip_status
3097 );
3098 HRESULT SetCurrentTexturePalette(
3099 [in] UINT palette_number
3100 );
3101 HRESULT GetCurrentTexturePalette(
3102 [out] UINT *palette_number
3103 );
3104 HRESULT SetDepthStencilSurface(
3105 [in] IWineD3DSurface *depth_stencil
3106 );
3107 HRESULT GetDepthStencilSurface(
3108 [out] IWineD3DSurface **depth_stencil
3109 );
3110 void SetGammaRamp(
3111 [in] UINT swapchain_idx,
3112 [in] DWORD flags,
3113 [in] const WINED3DGAMMARAMP *ramp
3114 );
3115 void GetGammaRamp(
3116 [in] UINT swapchain_idx,
3117 [out] WINED3DGAMMARAMP *ramp
3118 );
3119 HRESULT SetIndexBuffer(
3120 [in] IWineD3DBuffer *index_buffer,
3121 [in] WINED3DFORMAT format
3122 );
3123 HRESULT GetIndexBuffer(
3124 [out] IWineD3DBuffer **index_buffer
3125 );
3126 HRESULT SetBaseVertexIndex(
3127 [in] INT base_index
3128 );
3129 HRESULT GetBaseVertexIndex(
3130 [out] INT *base_index
3131 );
3132 HRESULT SetLight(
3133 [in] DWORD light_idx,
3134 [in] const WINED3DLIGHT *light
3135 );
3136 HRESULT GetLight(
3137 [in] DWORD light_idx,
3138 [out] WINED3DLIGHT *light
3139 );
3140 HRESULT SetLightEnable(
3141 [in] DWORD light_idx,
3142 [in] BOOL enable
3143 );
3144 HRESULT GetLightEnable(
3145 [in] DWORD light_idx,
3146 [out] BOOL *enable
3147 );
3148 HRESULT SetMaterial(
3149 [in] const WINED3DMATERIAL *material
3150 );
3151 HRESULT GetMaterial(
3152 [out] WINED3DMATERIAL *material
3153 );
3154 HRESULT SetNPatchMode(
3155 [in] float segments
3156 );
3157 float GetNPatchMode(
3158 );
3159 HRESULT SetPaletteEntries(
3160 [in] UINT palette_number,
3161 [in] const PALETTEENTRY *entries
3162 );
3163 HRESULT GetPaletteEntries(
3164 [in] UINT palette_number,
3165 [out] PALETTEENTRY *entries
3166 );
3167 HRESULT SetPixelShader(
3168 [in] IWineD3DPixelShader *shader
3169 );
3170 HRESULT GetPixelShader(
3171 [out] IWineD3DPixelShader **shader
3172 );
3173 HRESULT SetPixelShaderConstantB(
3174 [in] UINT start_register,
3175 [in] const BOOL *constants,
3176 [in] UINT bool_count
3177 );
3178 HRESULT GetPixelShaderConstantB(
3179 [in] UINT start_register,
3180 [out] BOOL *constants,
3181 [in] UINT bool_count
3182 );
3183 HRESULT SetPixelShaderConstantI(
3184 [in] UINT start_register,
3185 [in] const int *constants,
3186 [in] UINT vector4i_count
3187 );
3188 HRESULT GetPixelShaderConstantI(
3189 [in] UINT start_register,
3190 [out] int *constants,
3191 [in] UINT vector4i_count
3192 );
3193 HRESULT SetPixelShaderConstantF(
3194 [in] UINT start_register,
3195 [in] const float *constants,
3196 [in] UINT vector4f_count
3197 );
3198 HRESULT GetPixelShaderConstantF(
3199 [in] UINT start_register,
3200 [out] float *constants,
3201 [in] UINT vector4f_count
3202 );
3203 HRESULT SetRenderState(
3204 [in] WINED3DRENDERSTATETYPE state,
3205 [in] DWORD value
3206 );
3207 HRESULT GetRenderState(
3208 [in] WINED3DRENDERSTATETYPE state,
3209 [out] DWORD *value
3210 );
3211 HRESULT SetRenderTarget(
3212 [in] DWORD render_target_idx,
3213 [in] IWineD3DSurface *render_target,
3214 [in] BOOL set_viewport
3215 );
3216 HRESULT GetRenderTarget(
3217 [in] DWORD render_target_idx,
3218 [out] IWineD3DSurface **render_target
3219 );
3220 HRESULT SetFrontBackBuffers(
3221 [in] IWineD3DSurface *front,
3222 [in] IWineD3DSurface *back
3223 );
3224 HRESULT SetSamplerState(
3225 [in] DWORD sampler_idx,
3226 [in] WINED3DSAMPLERSTATETYPE state,
3227 [in] DWORD value
3228 );
3229 HRESULT GetSamplerState(
3230 [in] DWORD sampler_idx,
3231 [in] WINED3DSAMPLERSTATETYPE state,
3232 [out] DWORD *value
3233 );
3234 HRESULT SetScissorRect(
3235 [in] const RECT *rect
3236 );
3237 HRESULT GetScissorRect(
3238 [out] RECT *rect
3239 );
3240 HRESULT SetSoftwareVertexProcessing(
3241 [in] BOOL software
3242 );
3243 BOOL GetSoftwareVertexProcessing(
3244 );
3245 HRESULT SetStreamSource(
3246 [in] UINT stream_idx,
3247 [in] IWineD3DBuffer *buffer,
3248 [in] UINT offset,
3249 [in] UINT stride
3250 );
3251 HRESULT GetStreamSource(
3252 [in] UINT stream_idx,
3253 [out] IWineD3DBuffer **buffer,
3254 [out] UINT *offset,
3255 [out] UINT *stride
3256 );
3257 HRESULT SetStreamSourceFreq(
3258 [in] UINT stream_idx,
3259 [in] UINT divider
3260 );
3261 HRESULT GetStreamSourceFreq(
3262 [in] UINT stream_idx,
3263 [out] UINT *divider
3264 );
3265 HRESULT SetTexture(
3266 [in] DWORD stage,
3267 [in] IWineD3DBaseTexture *texture
3268 );
3269 HRESULT GetTexture(
3270 [in] DWORD stage,
3271 [out] IWineD3DBaseTexture **texture
3272 );
3273 HRESULT SetTextureStageState(
3274 [in] DWORD stage,
3275 [in] WINED3DTEXTURESTAGESTATETYPE state,
3276 [in] DWORD value
3277 );
3278 HRESULT GetTextureStageState(
3279 [in] DWORD stage,
3280 [in] WINED3DTEXTURESTAGESTATETYPE state,
3281 [out] DWORD *value
3282 );
3283 HRESULT SetTransform(
3284 [in] WINED3DTRANSFORMSTATETYPE state,
3285 [in] const WINED3DMATRIX *matrix
3286 );
3287 HRESULT GetTransform(
3288 [in] WINED3DTRANSFORMSTATETYPE state,
3289 [out] WINED3DMATRIX *matrix
3290 );
3291 HRESULT SetVertexDeclaration(
3292 [in] IWineD3DVertexDeclaration *declaration
3293 );
3294 HRESULT GetVertexDeclaration(
3295 [out] IWineD3DVertexDeclaration **declaration
3296 );
3297 HRESULT SetVertexShader(
3298 [in] IWineD3DVertexShader *shader
3299 );
3300 HRESULT GetVertexShader(
3301 [out] IWineD3DVertexShader **shader
3302 );
3303 HRESULT SetVertexShaderConstantB(
3304 [in] UINT start_register,
3305 [in] const BOOL *constants,
3306 [in] UINT bool_count
3307 );
3308 HRESULT GetVertexShaderConstantB(
3309 [in] UINT start_register,
3310 [out] BOOL *constants,
3311 [in] UINT bool_count
3312 );
3313 HRESULT SetVertexShaderConstantI(
3314 [in] UINT start_register,
3315 [in] const int *constants,
3316 [in] UINT vector4i_count
3317 );
3318 HRESULT GetVertexShaderConstantI(
3319 [in] UINT start_register,
3320 [out] int *constants,
3321 [in] UINT vector4i_count
3322 );
3323 HRESULT SetVertexShaderConstantF(
3324 [in] UINT start_register,
3325 [in] const float *constants,
3326 [in] UINT vector4f_count
3327 );
3328 HRESULT GetVertexShaderConstantF(
3329 [in] UINT start_register,
3330 [out] float *constants,
3331 [in] UINT vector4f_count
3332 );
3333 HRESULT SetViewport(
3334 [in] const WINED3DVIEWPORT *viewport
3335 );
3336 HRESULT GetViewport(
3337 [out] WINED3DVIEWPORT *viewport
3338 );
3339 HRESULT MultiplyTransform(
3340 [in] WINED3DTRANSFORMSTATETYPE state,
3341 [in] const WINED3DMATRIX *matrix
3342 );
3343 HRESULT ValidateDevice(
3344 [out] DWORD *num_passes
3345 );
3346 HRESULT ProcessVertices(
3347 [in] UINT src_start_idx,
3348 [in] UINT dst_idx,
3349 [in] UINT vertex_count,
3350 [in] IWineD3DBuffer *dest_buffer,
3351 [in] IWineD3DVertexDeclaration *declaration,
3352 [in] DWORD flags,
3353 [in] DWORD DestFVF
3354 );
3355 HRESULT BeginStateBlock(
3356 );
3357 HRESULT EndStateBlock(
3358 [out] IWineD3DStateBlock **stateblock
3359 );
3360 HRESULT BeginScene(
3361 );
3362 HRESULT EndScene(
3363 );
3364 HRESULT Present(
3365 [in] const RECT *src_rect,
3366 [in] const RECT *dst_rect,
3367 [in] HWND dst_window_override,
3368 [in] const RGNDATA *dirty_region
3369 );
3370 HRESULT Clear(
3371 [in] DWORD rect_count,
3372 [in] const WINED3DRECT *rects,
3373 [in] DWORD flags,
3374 [in] WINED3DCOLOR color,
3375 [in] float z,
3376 [in] DWORD stencil
3377 );
3378 void ClearRendertargetView(
3379 [in] IWineD3DRendertargetView *rendertarget_view,
3380 [in] const float color[4]
3381 );
3382 void SetPrimitiveType(
3383 [in] WINED3DPRIMITIVETYPE primitive_topology
3384 );
3385 void GetPrimitiveType(
3386 [out] WINED3DPRIMITIVETYPE *primitive_topology
3387 );
3388 HRESULT DrawPrimitive(
3389 [in] UINT start_vertex,
3390 [in] UINT vertex_count
3391 );
3392 HRESULT DrawIndexedPrimitive(
3393 [in] UINT start_idx,
3394 [in] UINT index_count
3395 );
3396 HRESULT DrawPrimitiveUP(
3397 [in] UINT vertex_count,
3398 [in] const void *stream_data,
3399 [in] UINT stream_stride
3400 );
3401 HRESULT DrawIndexedPrimitiveUP(
3402 [in] UINT index_count,
3403 [in] const void *index_data,
3404 [in] WINED3DFORMAT index_data_format,
3405 [in] const void *stream_data,
3406 [in] UINT stream_stride
3407 );
3408 HRESULT DrawPrimitiveStrided(
3409 [in] UINT vertex_count,
3410 [in] const WineDirect3DVertexStridedData *strided_data
3411 );
3412 HRESULT DrawIndexedPrimitiveStrided(
3413 [in] UINT index_count,
3414 [in] const WineDirect3DVertexStridedData *strided_data,
3415 [in] UINT vertex_count,
3416 [in] const void *index_data,
3417 [in] WINED3DFORMAT index_data_format
3418 );
3419 HRESULT DrawRectPatch(
3420 [in] UINT handle,
3421 [in] const float *num_segs,
3422 [in] const WINED3DRECTPATCH_INFO *rect_patch_info
3423 );
3424 HRESULT DrawTriPatch(
3425 [in] UINT handle,
3426 [in] const float *num_segs,
3427 [in] const WINED3DTRIPATCH_INFO *tri_patch_info
3428 );
3429 HRESULT DeletePatch(
3430 [in] UINT handle
3431 );
3432 HRESULT ColorFill(
3433 [in] IWineD3DSurface *surface,
3434 [in] const WINED3DRECT *rect,
3435 [in] WINED3DCOLOR color
3436 );
3437 HRESULT UpdateTexture(
3438 [in] IWineD3DBaseTexture *src_texture,
3439 [in] IWineD3DBaseTexture *dst_texture
3440 );
3441 HRESULT UpdateSurface(
3442 [in] IWineD3DSurface *src_surface,
3443 [in] const RECT *src_rect,
3444 [in] IWineD3DSurface *dst_surface,
3445 [in] const POINT *dst_point
3446 );
3447 HRESULT GetFrontBufferData(
3448 [in] UINT swapchain_idx,
3449 [in] IWineD3DSurface *dst_surface
3450 );
3451 HRESULT EnumResources(
3452 [in] D3DCB_ENUMRESOURCES callback,
3453 [in] void *data
3454 );
3455 }
3456
3457 IWineD3D *WineDirect3DCreate(UINT dxVersion, IUnknown *parent);
3458 IWineD3DClipper *WineDirect3DCreateClipper(IUnknown *parent);
3459 void wined3d_mutex_lock(void);
3460 void wined3d_mutex_unlock(void);