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