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