VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wine/wined3d.h@ 33223

Last change on this file since 33223 was 32622, checked in by vboxsync, 14 years ago

wddm: VBOXWDDM->VBOX_WITH_WDDM

  • Property svn:eol-style set to native
File size: 313.0 KB
Line 
1/*** Autogenerated by WIDL 1.1.43 from ../../include/wine/wined3d.idl - Do not edit ***/
2
3#include <rpc.h>
4#include <rpcndr.h>
5
6#ifndef __WIDL_WINED3D_H
7#define __WIDL_WINED3D_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/* Headers for imported files */
14
15#include <unknwn.h>
16
17/* Forward declarations */
18
19#ifndef __IWineD3DDeviceParent_FWD_DEFINED__
20#define __IWineD3DDeviceParent_FWD_DEFINED__
21typedef interface IWineD3DDeviceParent IWineD3DDeviceParent;
22#endif
23
24#ifndef __IWineD3DBase_FWD_DEFINED__
25#define __IWineD3DBase_FWD_DEFINED__
26typedef interface IWineD3DBase IWineD3DBase;
27#endif
28
29#ifndef __IWineD3D_FWD_DEFINED__
30#define __IWineD3D_FWD_DEFINED__
31typedef interface IWineD3D IWineD3D;
32#endif
33
34#ifndef __IWineD3DResource_FWD_DEFINED__
35#define __IWineD3DResource_FWD_DEFINED__
36typedef interface IWineD3DResource IWineD3DResource;
37#endif
38
39#ifndef __IWineD3DRendertargetView_FWD_DEFINED__
40#define __IWineD3DRendertargetView_FWD_DEFINED__
41typedef interface IWineD3DRendertargetView IWineD3DRendertargetView;
42#endif
43
44#ifndef __IWineD3DPalette_FWD_DEFINED__
45#define __IWineD3DPalette_FWD_DEFINED__
46typedef interface IWineD3DPalette IWineD3DPalette;
47#endif
48
49#ifndef __IWineD3DClipper_FWD_DEFINED__
50#define __IWineD3DClipper_FWD_DEFINED__
51typedef interface IWineD3DClipper IWineD3DClipper;
52#endif
53
54#ifndef __IWineD3DSurface_FWD_DEFINED__
55#define __IWineD3DSurface_FWD_DEFINED__
56typedef interface IWineD3DSurface IWineD3DSurface;
57#endif
58
59#ifndef __IWineD3DVolume_FWD_DEFINED__
60#define __IWineD3DVolume_FWD_DEFINED__
61typedef interface IWineD3DVolume IWineD3DVolume;
62#endif
63
64#ifndef __IWineD3DBaseTexture_FWD_DEFINED__
65#define __IWineD3DBaseTexture_FWD_DEFINED__
66typedef interface IWineD3DBaseTexture IWineD3DBaseTexture;
67#endif
68
69#ifndef __IWineD3DTexture_FWD_DEFINED__
70#define __IWineD3DTexture_FWD_DEFINED__
71typedef interface IWineD3DTexture IWineD3DTexture;
72#endif
73
74#ifndef __IWineD3DCubeTexture_FWD_DEFINED__
75#define __IWineD3DCubeTexture_FWD_DEFINED__
76typedef interface IWineD3DCubeTexture IWineD3DCubeTexture;
77#endif
78
79#ifndef __IWineD3DVolumeTexture_FWD_DEFINED__
80#define __IWineD3DVolumeTexture_FWD_DEFINED__
81typedef interface IWineD3DVolumeTexture IWineD3DVolumeTexture;
82#endif
83
84#ifndef __IWineD3DVertexDeclaration_FWD_DEFINED__
85#define __IWineD3DVertexDeclaration_FWD_DEFINED__
86typedef interface IWineD3DVertexDeclaration IWineD3DVertexDeclaration;
87#endif
88
89#ifndef __IWineD3DStateBlock_FWD_DEFINED__
90#define __IWineD3DStateBlock_FWD_DEFINED__
91typedef interface IWineD3DStateBlock IWineD3DStateBlock;
92#endif
93
94#ifndef __IWineD3DQuery_FWD_DEFINED__
95#define __IWineD3DQuery_FWD_DEFINED__
96typedef interface IWineD3DQuery IWineD3DQuery;
97#endif
98
99#ifndef __IWineD3DSwapChain_FWD_DEFINED__
100#define __IWineD3DSwapChain_FWD_DEFINED__
101typedef interface IWineD3DSwapChain IWineD3DSwapChain;
102#endif
103
104#ifndef __IWineD3DBuffer_FWD_DEFINED__
105#define __IWineD3DBuffer_FWD_DEFINED__
106typedef interface IWineD3DBuffer IWineD3DBuffer;
107#endif
108
109#ifndef __IWineD3DBaseShader_FWD_DEFINED__
110#define __IWineD3DBaseShader_FWD_DEFINED__
111typedef interface IWineD3DBaseShader IWineD3DBaseShader;
112#endif
113
114#ifndef __IWineD3DVertexShader_FWD_DEFINED__
115#define __IWineD3DVertexShader_FWD_DEFINED__
116typedef interface IWineD3DVertexShader IWineD3DVertexShader;
117#endif
118
119#ifndef __IWineD3DGeometryShader_FWD_DEFINED__
120#define __IWineD3DGeometryShader_FWD_DEFINED__
121typedef interface IWineD3DGeometryShader IWineD3DGeometryShader;
122#endif
123
124#ifndef __IWineD3DPixelShader_FWD_DEFINED__
125#define __IWineD3DPixelShader_FWD_DEFINED__
126typedef interface IWineD3DPixelShader IWineD3DPixelShader;
127#endif
128
129#ifndef __IWineD3DDevice_FWD_DEFINED__
130#define __IWineD3DDevice_FWD_DEFINED__
131typedef interface IWineD3DDevice IWineD3DDevice;
132#endif
133
134
135#if 0
136typedef HANDLE HMONITOR;
137typedef struct _RGNDATAHEADER {
138 DWORD dwSize;
139 DWORD iType;
140 DWORD nCount;
141 DWORD nRgnSize;
142 RECT rcBound;
143} RGNDATAHEADER;
144typedef struct _RGNDATA {
145 RGNDATAHEADER rdh;
146 char Buffer[1];
147} RGNDATA;
148typedef struct _LUID {
149 DWORD LowPart;
150 LONG HighPart;
151} LUID;
152typedef struct _LUID *PLUID;
153#endif
154#define WINED3D_OK S_OK
155#define _FACWINED3D (0x876)
156
157#define MAKE_WINED3DSTATUS(code) MAKE_HRESULT(0, _FACWINED3D, code)
158#define WINED3DOK_NOAUTOGEN MAKE_WINED3DSTATUS(2159)
159#define MAKE_WINED3DHRESULT(code) MAKE_HRESULT(1, _FACWINED3D, code)
160#define WINED3DERR_WRONGTEXTUREFORMAT MAKE_WINED3DHRESULT(2072)
161#define WINED3DERR_UNSUPPORTEDCOLOROPERATION MAKE_WINED3DHRESULT(2073)
162#define WINED3DERR_UNSUPPORTEDCOLORARG MAKE_WINED3DHRESULT(2074)
163#define WINED3DERR_UNSUPPORTEDALPHAOPERATION MAKE_WINED3DHRESULT(2075)
164#define WINED3DERR_UNSUPPORTEDALPHAARG MAKE_WINED3DHRESULT(2076)
165#define WINED3DERR_TOOMANYOPERATIONS MAKE_WINED3DHRESULT(2077)
166#define WINED3DERR_CONFLICTINGTEXTUREFILTER MAKE_WINED3DHRESULT(2078)
167#define WINED3DERR_UNSUPPORTEDFACTORVALUE MAKE_WINED3DHRESULT(2079)
168#define WINED3DERR_CONFLICTINGRENDERSTATE MAKE_WINED3DHRESULT(2081)
169#define WINED3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_WINED3DHRESULT(2082)
170#define WINED3DERR_CONFLICTINGTEXTUREPALETTE MAKE_WINED3DHRESULT(2086)
171#define WINED3DERR_DRIVERINTERNALERROR MAKE_WINED3DHRESULT(2087)
172#define WINED3DERR_NOTFOUND MAKE_WINED3DHRESULT(2150)
173#define WINED3DERR_MOREDATA MAKE_WINED3DHRESULT(2151)
174#define WINED3DERR_DEVICELOST MAKE_WINED3DHRESULT(2152)
175#define WINED3DERR_DEVICENOTRESET MAKE_WINED3DHRESULT(2153)
176#define WINED3DERR_NOTAVAILABLE MAKE_WINED3DHRESULT(2154)
177#define WINED3DERR_OUTOFVIDEOMEMORY MAKE_WINED3DHRESULT(380)
178#define WINED3DERR_INVALIDDEVICE MAKE_WINED3DHRESULT(2155)
179#define WINED3DERR_INVALIDCALL MAKE_WINED3DHRESULT(2156)
180#define WINED3DERR_DRIVERINVALIDCALL MAKE_WINED3DHRESULT(2157)
181#define WINED3DERR_WASSTILLDRAWING MAKE_WINED3DHRESULT(540)
182#define WINEDDERR_NOTAOVERLAYSURFACE MAKE_WINED3DHRESULT(580)
183#define WINEDDERR_NOTLOCKED MAKE_WINED3DHRESULT(584)
184#define WINEDDERR_NODC MAKE_WINED3DHRESULT(586)
185#define WINEDDERR_DCALREADYCREATED MAKE_WINED3DHRESULT(620)
186#define WINEDDERR_NOTFLIPPABLE MAKE_WINED3DHRESULT(582)
187#define WINEDDERR_SURFACEBUSY MAKE_WINED3DHRESULT(430)
188#define WINEDDERR_INVALIDRECT MAKE_WINED3DHRESULT(150)
189#define WINEDDERR_NOCLIPLIST MAKE_WINED3DHRESULT(205)
190#define WINEDDERR_OVERLAYNOTVISIBLE MAKE_WINED3DHRESULT(577)
191typedef DWORD WINED3DCOLOR;
192typedef enum _WINED3DLIGHTTYPE {
193 WINED3DLIGHT_POINT = 1,
194 WINED3DLIGHT_SPOT = 2,
195 WINED3DLIGHT_DIRECTIONAL = 3,
196 WINED3DLIGHT_PARALLELPOINT = 4,
197 WINED3DLIGHT_GLSPOT = 5,
198 WINED3DLIGHT_FORCE_DWORD = 0x7fffffff
199} WINED3DLIGHTTYPE;
200typedef enum _WINED3DPRIMITIVETYPE {
201 WINED3DPT_UNDEFINED = 0,
202 WINED3DPT_POINTLIST = 1,
203 WINED3DPT_LINELIST = 2,
204 WINED3DPT_LINESTRIP = 3,
205 WINED3DPT_TRIANGLELIST = 4,
206 WINED3DPT_TRIANGLESTRIP = 5,
207 WINED3DPT_TRIANGLEFAN = 6,
208 WINED3DPT_LINELIST_ADJ = 10,
209 WINED3DPT_LINESTRIP_ADJ = 11,
210 WINED3DPT_TRIANGLELIST_ADJ = 12,
211 WINED3DPT_TRIANGLESTRIP_ADJ = 13,
212 WINED3DPT_FORCE_DWORD = 0x7fffffff
213} WINED3DPRIMITIVETYPE;
214typedef enum _WINED3DDEVTYPE {
215 WINED3DDEVTYPE_HAL = 1,
216 WINED3DDEVTYPE_REF = 2,
217 WINED3DDEVTYPE_SW = 3,
218 WINED3DDEVTYPE_NULLREF = 4,
219 WINED3DDEVTYPE_FORCE_DWORD = 0xffffffff
220} WINED3DDEVTYPE;
221typedef enum _WINED3DDEGREETYPE {
222 WINED3DDEGREE_LINEAR = 1,
223 WINED3DDEGREE_QUADRATIC = 2,
224 WINED3DDEGREE_CUBIC = 3,
225 WINED3DDEGREE_QUINTIC = 5,
226 WINED3DDEGREE_FORCE_DWORD = 0x7fffffff
227} WINED3DDEGREETYPE;
228typedef enum _WINED3DFORMAT {
229 WINED3DFMT_UNKNOWN = 0,
230 WINED3DFMT_B8G8R8_UNORM = 1,
231 WINED3DFMT_B5G5R5X1_UNORM = 2,
232 WINED3DFMT_B4G4R4A4_UNORM = 3,
233 WINED3DFMT_B2G3R3_UNORM = 4,
234 WINED3DFMT_B2G3R3A8_UNORM = 5,
235 WINED3DFMT_B4G4R4X4_UNORM = 6,
236 WINED3DFMT_R8G8B8X8_UNORM = 7,
237 WINED3DFMT_B10G10R10A2_UNORM = 8,
238 WINED3DFMT_P8_UINT_A8_UNORM = 9,
239 WINED3DFMT_P8_UINT = 10,
240 WINED3DFMT_L8_UNORM = 11,
241 WINED3DFMT_L8A8_UNORM = 12,
242 WINED3DFMT_L4A4_UNORM = 13,
243 WINED3DFMT_R5G5_SNORM_L6_UNORM = 14,
244 WINED3DFMT_R8G8_SNORM_L8X8_UNORM = 15,
245 WINED3DFMT_R10G11B11_SNORM = 16,
246 WINED3DFMT_R10G10B10_SNORM_A2_UNORM = 17,
247 WINED3DFMT_D16_LOCKABLE = 18,
248 WINED3DFMT_D32_UNORM = 19,
249 WINED3DFMT_S1_UINT_D15_UNORM = 20,
250 WINED3DFMT_X8D24_UNORM = 21,
251 WINED3DFMT_S4X4_UINT_D24_UNORM = 22,
252 WINED3DFMT_L16_UNORM = 23,
253 WINED3DFMT_S8_UINT_D24_FLOAT = 24,
254 WINED3DFMT_VERTEXDATA = 25,
255 WINED3DFMT_R8G8_SNORM_Cx = 26,
256 WINED3DFMT_R32G32B32A32_TYPELESS = 27,
257 WINED3DFMT_R32G32B32A32_FLOAT = 28,
258 WINED3DFMT_R32G32B32A32_UINT = 29,
259 WINED3DFMT_R32G32B32A32_SINT = 30,
260 WINED3DFMT_R32G32B32_TYPELESS = 31,
261 WINED3DFMT_R32G32B32_FLOAT = 32,
262 WINED3DFMT_R32G32B32_UINT = 33,
263 WINED3DFMT_R32G32B32_SINT = 34,
264 WINED3DFMT_R16G16B16A16_TYPELESS = 35,
265 WINED3DFMT_R16G16B16A16_FLOAT = 36,
266 WINED3DFMT_R16G16B16A16_UNORM = 37,
267 WINED3DFMT_R16G16B16A16_UINT = 38,
268 WINED3DFMT_R16G16B16A16_SNORM = 39,
269 WINED3DFMT_R16G16B16A16_SINT = 40,
270 WINED3DFMT_R32G32_TYPELESS = 41,
271 WINED3DFMT_R32G32_FLOAT = 42,
272 WINED3DFMT_R32G32_UINT = 43,
273 WINED3DFMT_R32G32_SINT = 44,
274 WINED3DFMT_R32G8X24_TYPELESS = 45,
275 WINED3DFMT_D32_FLOAT_S8X24_UINT = 46,
276 WINED3DFMT_R32_FLOAT_X8X24_TYPELESS = 47,
277 WINED3DFMT_X32_TYPELESS_G8X24_UINT = 48,
278 WINED3DFMT_R10G10B10A2_TYPELESS = 49,
279 WINED3DFMT_R10G10B10A2_UNORM = 50,
280 WINED3DFMT_R10G10B10A2_UINT = 51,
281 WINED3DFMT_R10G10B10A2_SNORM = 52,
282 WINED3DFMT_R11G11B10_FLOAT = 53,
283 WINED3DFMT_R8G8B8A8_TYPELESS = 54,
284 WINED3DFMT_R8G8B8A8_UNORM = 55,
285 WINED3DFMT_R8G8B8A8_UNORM_SRGB = 56,
286 WINED3DFMT_R8G8B8A8_UINT = 57,
287 WINED3DFMT_R8G8B8A8_SNORM = 58,
288 WINED3DFMT_R8G8B8A8_SINT = 59,
289 WINED3DFMT_R16G16_TYPELESS = 60,
290 WINED3DFMT_R16G16_FLOAT = 61,
291 WINED3DFMT_R16G16_UNORM = 62,
292 WINED3DFMT_R16G16_UINT = 63,
293 WINED3DFMT_R16G16_SNORM = 64,
294 WINED3DFMT_R16G16_SINT = 65,
295 WINED3DFMT_R32_TYPELESS = 66,
296 WINED3DFMT_D32_FLOAT = 67,
297 WINED3DFMT_R32_FLOAT = 68,
298 WINED3DFMT_R32_UINT = 69,
299 WINED3DFMT_R32_SINT = 70,
300 WINED3DFMT_R24G8_TYPELESS = 71,
301 WINED3DFMT_D24_UNORM_S8_UINT = 72,
302 WINED3DFMT_R24_UNORM_X8_TYPELESS = 73,
303 WINED3DFMT_X24_TYPELESS_G8_UINT = 74,
304 WINED3DFMT_R8G8_TYPELESS = 75,
305 WINED3DFMT_R8G8_UNORM = 76,
306 WINED3DFMT_R8G8_UINT = 77,
307 WINED3DFMT_R8G8_SNORM = 78,
308 WINED3DFMT_R8G8_SINT = 79,
309 WINED3DFMT_R16_TYPELESS = 80,
310 WINED3DFMT_R16_FLOAT = 81,
311 WINED3DFMT_D16_UNORM = 82,
312 WINED3DFMT_R16_UNORM = 83,
313 WINED3DFMT_R16_UINT = 84,
314 WINED3DFMT_R16_SNORM = 85,
315 WINED3DFMT_R16_SINT = 86,
316 WINED3DFMT_R8_TYPELESS = 87,
317 WINED3DFMT_R8_UNORM = 88,
318 WINED3DFMT_R8_UINT = 89,
319 WINED3DFMT_R8_SNORM = 90,
320 WINED3DFMT_R8_SINT = 91,
321 WINED3DFMT_A8_UNORM = 92,
322 WINED3DFMT_R1_UNORM = 93,
323 WINED3DFMT_R9G9B9E5_SHAREDEXP = 94,
324 WINED3DFMT_R8G8_B8G8_UNORM = 95,
325 WINED3DFMT_G8R8_G8B8_UNORM = 96,
326 WINED3DFMT_BC1_TYPELESS = 97,
327 WINED3DFMT_BC1_UNORM = 98,
328 WINED3DFMT_BC1_UNORM_SRGB = 99,
329 WINED3DFMT_BC2_TYPELESS = 100,
330 WINED3DFMT_BC2_UNORM = 101,
331 WINED3DFMT_BC2_UNORM_SRGB = 102,
332 WINED3DFMT_BC3_TYPELESS = 103,
333 WINED3DFMT_BC3_UNORM = 104,
334 WINED3DFMT_BC3_UNORM_SRGB = 105,
335 WINED3DFMT_BC4_TYPELESS = 106,
336 WINED3DFMT_BC4_UNORM = 107,
337 WINED3DFMT_BC4_SNORM = 108,
338 WINED3DFMT_BC5_TYPELESS = 109,
339 WINED3DFMT_BC5_UNORM = 110,
340 WINED3DFMT_BC5_SNORM = 111,
341 WINED3DFMT_B5G6R5_UNORM = 112,
342 WINED3DFMT_B5G5R5A1_UNORM = 113,
343 WINED3DFMT_B8G8R8A8_UNORM = 114,
344 WINED3DFMT_B8G8R8X8_UNORM = 115,
345 WINED3DFMT_UYVY = (((ULONG)(unsigned char)'U' | ((ULONG)(unsigned char)'Y' << 8)) | ((ULONG)(unsigned char)'V' << 16)) | ((ULONG)(unsigned char)'Y' << 24),
346 WINED3DFMT_YUY2 = (((ULONG)(unsigned char)'Y' | ((ULONG)(unsigned char)'U' << 8)) | ((ULONG)(unsigned char)'Y' << 16)) | ((ULONG)(unsigned char)'2' << 24),
347 WINED3DFMT_YV12 = (((ULONG)(unsigned char)'Y' | ((ULONG)(unsigned char)'V' << 8)) | ((ULONG)(unsigned char)'1' << 16)) | ((ULONG)(unsigned char)'2' << 24),
348 WINED3DFMT_DXT1 = (((ULONG)(unsigned char)'D' | ((ULONG)(unsigned char)'X' << 8)) | ((ULONG)(unsigned char)'T' << 16)) | ((ULONG)(unsigned char)'1' << 24),
349 WINED3DFMT_DXT2 = (((ULONG)(unsigned char)'D' | ((ULONG)(unsigned char)'X' << 8)) | ((ULONG)(unsigned char)'T' << 16)) | ((ULONG)(unsigned char)'2' << 24),
350 WINED3DFMT_DXT3 = (((ULONG)(unsigned char)'D' | ((ULONG)(unsigned char)'X' << 8)) | ((ULONG)(unsigned char)'T' << 16)) | ((ULONG)(unsigned char)'3' << 24),
351 WINED3DFMT_DXT4 = (((ULONG)(unsigned char)'D' | ((ULONG)(unsigned char)'X' << 8)) | ((ULONG)(unsigned char)'T' << 16)) | ((ULONG)(unsigned char)'4' << 24),
352 WINED3DFMT_DXT5 = (((ULONG)(unsigned char)'D' | ((ULONG)(unsigned char)'X' << 8)) | ((ULONG)(unsigned char)'T' << 16)) | ((ULONG)(unsigned char)'5' << 24),
353 WINED3DFMT_MULTI2_ARGB8 = (((ULONG)(unsigned char)'M' | ((ULONG)(unsigned char)'E' << 8)) | ((ULONG)(unsigned char)'T' << 16)) | ((ULONG)(unsigned char)'1' << 24),
354 WINED3DFMT_G8R8_G8B8 = (((ULONG)(unsigned char)'G' | ((ULONG)(unsigned char)'R' << 8)) | ((ULONG)(unsigned char)'G' << 16)) | ((ULONG)(unsigned char)'B' << 24),
355 WINED3DFMT_R8G8_B8G8 = (((ULONG)(unsigned char)'R' | ((ULONG)(unsigned char)'G' << 8)) | ((ULONG)(unsigned char)'B' << 16)) | ((ULONG)(unsigned char)'G' << 24),
356 WINED3DFMT_ATI2N = (((ULONG)(unsigned char)'A' | ((ULONG)(unsigned char)'T' << 8)) | ((ULONG)(unsigned char)'I' << 16)) | ((ULONG)(unsigned char)'2' << 24),
357 WINED3DFMT_INST = (((ULONG)(unsigned char)'I' | ((ULONG)(unsigned char)'N' << 8)) | ((ULONG)(unsigned char)'S' << 16)) | ((ULONG)(unsigned char)'T' << 24),
358 WINED3DFMT_NVHU = (((ULONG)(unsigned char)'N' | ((ULONG)(unsigned char)'V' << 8)) | ((ULONG)(unsigned char)'H' << 16)) | ((ULONG)(unsigned char)'U' << 24),
359 WINED3DFMT_NVHS = (((ULONG)(unsigned char)'N' | ((ULONG)(unsigned char)'V' << 8)) | ((ULONG)(unsigned char)'H' << 16)) | ((ULONG)(unsigned char)'S' << 24),
360 WINED3DFMT_FORCE_DWORD = 0xffffffff
361} WINED3DFORMAT;
362typedef enum _WINED3DRENDERSTATETYPE {
363 WINED3DRS_ANTIALIAS = 2,
364 WINED3DRS_TEXTUREPERSPECTIVE = 4,
365 WINED3DRS_WRAPU = 5,
366 WINED3DRS_WRAPV = 6,
367 WINED3DRS_ZENABLE = 7,
368 WINED3DRS_FILLMODE = 8,
369 WINED3DRS_SHADEMODE = 9,
370 WINED3DRS_LINEPATTERN = 10,
371 WINED3DRS_MONOENABLE = 11,
372 WINED3DRS_ROP2 = 12,
373 WINED3DRS_PLANEMASK = 13,
374 WINED3DRS_ZWRITEENABLE = 14,
375 WINED3DRS_ALPHATESTENABLE = 15,
376 WINED3DRS_LASTPIXEL = 16,
377 WINED3DRS_SRCBLEND = 19,
378 WINED3DRS_DESTBLEND = 20,
379 WINED3DRS_CULLMODE = 22,
380 WINED3DRS_ZFUNC = 23,
381 WINED3DRS_ALPHAREF = 24,
382 WINED3DRS_ALPHAFUNC = 25,
383 WINED3DRS_DITHERENABLE = 26,
384 WINED3DRS_ALPHABLENDENABLE = 27,
385 WINED3DRS_FOGENABLE = 28,
386 WINED3DRS_SPECULARENABLE = 29,
387 WINED3DRS_ZVISIBLE = 30,
388 WINED3DRS_SUBPIXEL = 31,
389 WINED3DRS_SUBPIXELX = 32,
390 WINED3DRS_STIPPLEDALPHA = 33,
391 WINED3DRS_FOGCOLOR = 34,
392 WINED3DRS_FOGTABLEMODE = 35,
393 WINED3DRS_FOGSTART = 36,
394 WINED3DRS_FOGEND = 37,
395 WINED3DRS_FOGDENSITY = 38,
396 WINED3DRS_STIPPLEENABLE = 39,
397 WINED3DRS_EDGEANTIALIAS = 40,
398 WINED3DRS_COLORKEYENABLE = 41,
399 WINED3DRS_MIPMAPLODBIAS = 46,
400 WINED3DRS_ZBIAS = 47,
401 WINED3DRS_RANGEFOGENABLE = 48,
402 WINED3DRS_ANISOTROPY = 49,
403 WINED3DRS_FLUSHBATCH = 50,
404 WINED3DRS_TRANSLUCENTSORTINDEPENDENT = 51,
405 WINED3DRS_STENCILENABLE = 52,
406 WINED3DRS_STENCILFAIL = 53,
407 WINED3DRS_STENCILZFAIL = 54,
408 WINED3DRS_STENCILPASS = 55,
409 WINED3DRS_STENCILFUNC = 56,
410 WINED3DRS_STENCILREF = 57,
411 WINED3DRS_STENCILMASK = 58,
412 WINED3DRS_STENCILWRITEMASK = 59,
413 WINED3DRS_TEXTUREFACTOR = 60,
414 WINED3DRS_WRAP0 = 128,
415 WINED3DRS_WRAP1 = 129,
416 WINED3DRS_WRAP2 = 130,
417 WINED3DRS_WRAP3 = 131,
418 WINED3DRS_WRAP4 = 132,
419 WINED3DRS_WRAP5 = 133,
420 WINED3DRS_WRAP6 = 134,
421 WINED3DRS_WRAP7 = 135,
422 WINED3DRS_CLIPPING = 136,
423 WINED3DRS_LIGHTING = 137,
424 WINED3DRS_EXTENTS = 138,
425 WINED3DRS_AMBIENT = 139,
426 WINED3DRS_FOGVERTEXMODE = 140,
427 WINED3DRS_COLORVERTEX = 141,
428 WINED3DRS_LOCALVIEWER = 142,
429 WINED3DRS_NORMALIZENORMALS = 143,
430 WINED3DRS_COLORKEYBLENDENABLE = 144,
431 WINED3DRS_DIFFUSEMATERIALSOURCE = 145,
432 WINED3DRS_SPECULARMATERIALSOURCE = 146,
433 WINED3DRS_AMBIENTMATERIALSOURCE = 147,
434 WINED3DRS_EMISSIVEMATERIALSOURCE = 148,
435 WINED3DRS_VERTEXBLEND = 151,
436 WINED3DRS_CLIPPLANEENABLE = 152,
437 WINED3DRS_SOFTWAREVERTEXPROCESSING = 153,
438 WINED3DRS_POINTSIZE = 154,
439 WINED3DRS_POINTSIZE_MIN = 155,
440 WINED3DRS_POINTSPRITEENABLE = 156,
441 WINED3DRS_POINTSCALEENABLE = 157,
442 WINED3DRS_POINTSCALE_A = 158,
443 WINED3DRS_POINTSCALE_B = 159,
444 WINED3DRS_POINTSCALE_C = 160,
445 WINED3DRS_MULTISAMPLEANTIALIAS = 161,
446 WINED3DRS_MULTISAMPLEMASK = 162,
447 WINED3DRS_PATCHEDGESTYLE = 163,
448 WINED3DRS_PATCHSEGMENTS = 164,
449 WINED3DRS_DEBUGMONITORTOKEN = 165,
450 WINED3DRS_POINTSIZE_MAX = 166,
451 WINED3DRS_INDEXEDVERTEXBLENDENABLE = 167,
452 WINED3DRS_COLORWRITEENABLE = 168,
453 WINED3DRS_TWEENFACTOR = 170,
454 WINED3DRS_BLENDOP = 171,
455 WINED3DRS_POSITIONDEGREE = 172,
456 WINED3DRS_NORMALDEGREE = 173,
457 WINED3DRS_SCISSORTESTENABLE = 174,
458 WINED3DRS_SLOPESCALEDEPTHBIAS = 175,
459 WINED3DRS_ANTIALIASEDLINEENABLE = 176,
460 WINED3DRS_MINTESSELLATIONLEVEL = 178,
461 WINED3DRS_MAXTESSELLATIONLEVEL = 179,
462 WINED3DRS_ADAPTIVETESS_X = 180,
463 WINED3DRS_ADAPTIVETESS_Y = 181,
464 WINED3DRS_ADAPTIVETESS_Z = 182,
465 WINED3DRS_ADAPTIVETESS_W = 183,
466 WINED3DRS_ENABLEADAPTIVETESSELLATION = 184,
467 WINED3DRS_TWOSIDEDSTENCILMODE = 185,
468 WINED3DRS_CCW_STENCILFAIL = 186,
469 WINED3DRS_CCW_STENCILZFAIL = 187,
470 WINED3DRS_CCW_STENCILPASS = 188,
471 WINED3DRS_CCW_STENCILFUNC = 189,
472 WINED3DRS_COLORWRITEENABLE1 = 190,
473 WINED3DRS_COLORWRITEENABLE2 = 191,
474 WINED3DRS_COLORWRITEENABLE3 = 192,
475 WINED3DRS_BLENDFACTOR = 193,
476 WINED3DRS_SRGBWRITEENABLE = 194,
477 WINED3DRS_DEPTHBIAS = 195,
478 WINED3DRS_WRAP8 = 198,
479 WINED3DRS_WRAP9 = 199,
480 WINED3DRS_WRAP10 = 200,
481 WINED3DRS_WRAP11 = 201,
482 WINED3DRS_WRAP12 = 202,
483 WINED3DRS_WRAP13 = 203,
484 WINED3DRS_WRAP14 = 204,
485 WINED3DRS_WRAP15 = 205,
486 WINED3DRS_SEPARATEALPHABLENDENABLE = 206,
487 WINED3DRS_SRCBLENDALPHA = 207,
488 WINED3DRS_DESTBLENDALPHA = 208,
489 WINED3DRS_BLENDOPALPHA = 209,
490 WINED3DRS_FORCE_DWORD = 0x7fffffff
491} WINED3DRENDERSTATETYPE;
492#define WINEHIGHEST_RENDER_STATE (WINED3DRS_BLENDOPALPHA)
493
494typedef enum _WINED3DBLEND {
495 WINED3DBLEND_ZERO = 1,
496 WINED3DBLEND_ONE = 2,
497 WINED3DBLEND_SRCCOLOR = 3,
498 WINED3DBLEND_INVSRCCOLOR = 4,
499 WINED3DBLEND_SRCALPHA = 5,
500 WINED3DBLEND_INVSRCALPHA = 6,
501 WINED3DBLEND_DESTALPHA = 7,
502 WINED3DBLEND_INVDESTALPHA = 8,
503 WINED3DBLEND_DESTCOLOR = 9,
504 WINED3DBLEND_INVDESTCOLOR = 10,
505 WINED3DBLEND_SRCALPHASAT = 11,
506 WINED3DBLEND_BOTHSRCALPHA = 12,
507 WINED3DBLEND_BOTHINVSRCALPHA = 13,
508 WINED3DBLEND_BLENDFACTOR = 14,
509 WINED3DBLEND_INVBLENDFACTOR = 15,
510 WINED3DBLEND_FORCE_DWORD = 0x7fffffff
511} WINED3DBLEND;
512typedef enum _WINED3DBLENDOP {
513 WINED3DBLENDOP_ADD = 1,
514 WINED3DBLENDOP_SUBTRACT = 2,
515 WINED3DBLENDOP_REVSUBTRACT = 3,
516 WINED3DBLENDOP_MIN = 4,
517 WINED3DBLENDOP_MAX = 5,
518 WINED3DBLENDOP_FORCE_DWORD = 0x7fffffff
519} WINED3DBLENDOP;
520typedef enum _WINED3DVERTEXBLENDFLAGS {
521 WINED3DVBF_DISABLE = 0,
522 WINED3DVBF_1WEIGHTS = 1,
523 WINED3DVBF_2WEIGHTS = 2,
524 WINED3DVBF_3WEIGHTS = 3,
525 WINED3DVBF_TWEENING = 255,
526 WINED3DVBF_0WEIGHTS = 256
527} WINED3DVERTEXBLENDFLAGS;
528typedef enum _WINED3DCMPFUNC {
529 WINED3DCMP_NEVER = 1,
530 WINED3DCMP_LESS = 2,
531 WINED3DCMP_EQUAL = 3,
532 WINED3DCMP_LESSEQUAL = 4,
533 WINED3DCMP_GREATER = 5,
534 WINED3DCMP_NOTEQUAL = 6,
535 WINED3DCMP_GREATEREQUAL = 7,
536 WINED3DCMP_ALWAYS = 8,
537 WINED3DCMP_FORCE_DWORD = 0x7fffffff
538} WINED3DCMPFUNC;
539typedef enum _WINED3DZBUFFERTYPE {
540 WINED3DZB_FALSE = 0,
541 WINED3DZB_TRUE = 1,
542 WINED3DZB_USEW = 2,
543 WINED3DZB_FORCE_DWORD = 0x7fffffff
544} WINED3DZBUFFERTYPE;
545typedef enum _WINED3DFOGMODE {
546 WINED3DFOG_NONE = 0,
547 WINED3DFOG_EXP = 1,
548 WINED3DFOG_EXP2 = 2,
549 WINED3DFOG_LINEAR = 3,
550 WINED3DFOG_FORCE_DWORD = 0x7fffffff
551} WINED3DFOGMODE;
552typedef enum _WINED3DSHADEMODE {
553 WINED3DSHADE_FLAT = 1,
554 WINED3DSHADE_GOURAUD = 2,
555 WINED3DSHADE_PHONG = 3,
556 WINED3DSHADE_FORCE_DWORD = 0x7fffffff
557} WINED3DSHADEMODE;
558typedef enum _WINED3DFILLMODE {
559 WINED3DFILL_POINT = 1,
560 WINED3DFILL_WIREFRAME = 2,
561 WINED3DFILL_SOLID = 3,
562 WINED3DFILL_FORCE_DWORD = 0x7fffffff
563} WINED3DFILLMODE;
564typedef enum _WINED3DCULL {
565 WINED3DCULL_NONE = 1,
566 WINED3DCULL_CW = 2,
567 WINED3DCULL_CCW = 3,
568 WINED3DCULL_FORCE_DWORD = 0x7fffffff
569} WINED3DCULL;
570typedef enum _WINED3DSTENCILOP {
571 WINED3DSTENCILOP_KEEP = 1,
572 WINED3DSTENCILOP_ZERO = 2,
573 WINED3DSTENCILOP_REPLACE = 3,
574 WINED3DSTENCILOP_INCRSAT = 4,
575 WINED3DSTENCILOP_DECRSAT = 5,
576 WINED3DSTENCILOP_INVERT = 6,
577 WINED3DSTENCILOP_INCR = 7,
578 WINED3DSTENCILOP_DECR = 8,
579 WINED3DSTENCILOP_FORCE_DWORD = 0x7fffffff
580} WINED3DSTENCILOP;
581typedef enum _WINED3DMATERIALCOLORSOURCE {
582 WINED3DMCS_MATERIAL = 0,
583 WINED3DMCS_COLOR1 = 1,
584 WINED3DMCS_COLOR2 = 2,
585 WINED3DMCS_FORCE_DWORD = 0x7fffffff
586} WINED3DMATERIALCOLORSOURCE;
587typedef enum _WINED3DPATCHEDGESTYLE {
588 WINED3DPATCHEDGE_DISCRETE = 0,
589 WINED3DPATCHEDGE_CONTINUOUS = 1,
590 WINED3DPATCHEDGE_FORCE_DWORD = 0x7fffffff
591} WINED3DPATCHEDGESTYLE;
592typedef enum _WINED3DBACKBUFFER_TYPE {
593 WINED3DBACKBUFFER_TYPE_MONO = 0,
594 WINED3DBACKBUFFER_TYPE_LEFT = 1,
595 WINED3DBACKBUFFER_TYPE_RIGHT = 2,
596 WINED3DBACKBUFFER_TYPE_FORCE_DWORD = 0x7fffffff
597} WINED3DBACKBUFFER_TYPE;
598typedef enum _WINED3DSWAPEFFECT {
599 WINED3DSWAPEFFECT_DISCARD = 1,
600 WINED3DSWAPEFFECT_FLIP = 2,
601 WINED3DSWAPEFFECT_COPY = 3,
602 WINED3DSWAPEFFECT_COPY_VSYNC = 4,
603 WINED3DSWAPEFFECT_FORCE_DWORD = 0xffffffff
604} WINED3DSWAPEFFECT;
605typedef enum _WINED3DSAMPLERSTATETYPE {
606 WINED3DSAMP_ADDRESSU = 1,
607 WINED3DSAMP_ADDRESSV = 2,
608 WINED3DSAMP_ADDRESSW = 3,
609 WINED3DSAMP_BORDERCOLOR = 4,
610 WINED3DSAMP_MAGFILTER = 5,
611 WINED3DSAMP_MINFILTER = 6,
612 WINED3DSAMP_MIPFILTER = 7,
613 WINED3DSAMP_MIPMAPLODBIAS = 8,
614 WINED3DSAMP_MAXMIPLEVEL = 9,
615 WINED3DSAMP_MAXANISOTROPY = 10,
616 WINED3DSAMP_SRGBTEXTURE = 11,
617 WINED3DSAMP_ELEMENTINDEX = 12,
618 WINED3DSAMP_DMAPOFFSET = 13,
619 WINED3DSAMP_FORCE_DWORD = 0x7fffffff
620} WINED3DSAMPLERSTATETYPE;
621#define WINED3D_HIGHEST_SAMPLER_STATE (WINED3DSAMP_DMAPOFFSET)
622
623typedef enum _WINED3DMULTISAMPLE_TYPE {
624 WINED3DMULTISAMPLE_NONE = 0,
625 WINED3DMULTISAMPLE_NONMASKABLE = 1,
626 WINED3DMULTISAMPLE_2_SAMPLES = 2,
627 WINED3DMULTISAMPLE_3_SAMPLES = 3,
628 WINED3DMULTISAMPLE_4_SAMPLES = 4,
629 WINED3DMULTISAMPLE_5_SAMPLES = 5,
630 WINED3DMULTISAMPLE_6_SAMPLES = 6,
631 WINED3DMULTISAMPLE_7_SAMPLES = 7,
632 WINED3DMULTISAMPLE_8_SAMPLES = 8,
633 WINED3DMULTISAMPLE_9_SAMPLES = 9,
634 WINED3DMULTISAMPLE_10_SAMPLES = 10,
635 WINED3DMULTISAMPLE_11_SAMPLES = 11,
636 WINED3DMULTISAMPLE_12_SAMPLES = 12,
637 WINED3DMULTISAMPLE_13_SAMPLES = 13,
638 WINED3DMULTISAMPLE_14_SAMPLES = 14,
639 WINED3DMULTISAMPLE_15_SAMPLES = 15,
640 WINED3DMULTISAMPLE_16_SAMPLES = 16,
641 WINED3DMULTISAMPLE_FORCE_DWORD = 0xffffffff
642} WINED3DMULTISAMPLE_TYPE;
643typedef enum _WINED3DTEXTURESTAGESTATETYPE {
644 WINED3DTSS_COLOROP = 0,
645 WINED3DTSS_COLORARG1 = 1,
646 WINED3DTSS_COLORARG2 = 2,
647 WINED3DTSS_ALPHAOP = 3,
648 WINED3DTSS_ALPHAARG1 = 4,
649 WINED3DTSS_ALPHAARG2 = 5,
650 WINED3DTSS_BUMPENVMAT00 = 6,
651 WINED3DTSS_BUMPENVMAT01 = 7,
652 WINED3DTSS_BUMPENVMAT10 = 8,
653 WINED3DTSS_BUMPENVMAT11 = 9,
654 WINED3DTSS_TEXCOORDINDEX = 10,
655 WINED3DTSS_BUMPENVLSCALE = 11,
656 WINED3DTSS_BUMPENVLOFFSET = 12,
657 WINED3DTSS_TEXTURETRANSFORMFLAGS = 13,
658 WINED3DTSS_COLORARG0 = 14,
659 WINED3DTSS_ALPHAARG0 = 15,
660 WINED3DTSS_RESULTARG = 16,
661 WINED3DTSS_CONSTANT = 17,
662 WINED3DTSS_FORCE_DWORD = 0x7fffffff
663} WINED3DTEXTURESTAGESTATETYPE;
664#define WINED3D_HIGHEST_TEXTURE_STATE (WINED3DTSS_CONSTANT)
665
666typedef enum _WINED3DTEXTURETRANSFORMFLAGS {
667 WINED3DTTFF_DISABLE = 0,
668 WINED3DTTFF_COUNT1 = 1,
669 WINED3DTTFF_COUNT2 = 2,
670 WINED3DTTFF_COUNT3 = 3,
671 WINED3DTTFF_COUNT4 = 4,
672 WINED3DTTFF_PROJECTED = 256,
673 WINED3DTTFF_FORCE_DWORD = 0x7fffffff
674} WINED3DTEXTURETRANSFORMFLAGS;
675typedef enum _WINED3DTEXTUREOP {
676 WINED3DTOP_DISABLE = 1,
677 WINED3DTOP_SELECTARG1 = 2,
678 WINED3DTOP_SELECTARG2 = 3,
679 WINED3DTOP_MODULATE = 4,
680 WINED3DTOP_MODULATE2X = 5,
681 WINED3DTOP_MODULATE4X = 6,
682 WINED3DTOP_ADD = 7,
683 WINED3DTOP_ADDSIGNED = 8,
684 WINED3DTOP_ADDSIGNED2X = 9,
685 WINED3DTOP_SUBTRACT = 10,
686 WINED3DTOP_ADDSMOOTH = 11,
687 WINED3DTOP_BLENDDIFFUSEALPHA = 12,
688 WINED3DTOP_BLENDTEXTUREALPHA = 13,
689 WINED3DTOP_BLENDFACTORALPHA = 14,
690 WINED3DTOP_BLENDTEXTUREALPHAPM = 15,
691 WINED3DTOP_BLENDCURRENTALPHA = 16,
692 WINED3DTOP_PREMODULATE = 17,
693 WINED3DTOP_MODULATEALPHA_ADDCOLOR = 18,
694 WINED3DTOP_MODULATECOLOR_ADDALPHA = 19,
695 WINED3DTOP_MODULATEINVALPHA_ADDCOLOR = 20,
696 WINED3DTOP_MODULATEINVCOLOR_ADDALPHA = 21,
697 WINED3DTOP_BUMPENVMAP = 22,
698 WINED3DTOP_BUMPENVMAPLUMINANCE = 23,
699 WINED3DTOP_DOTPRODUCT3 = 24,
700 WINED3DTOP_MULTIPLYADD = 25,
701 WINED3DTOP_LERP = 26,
702 WINED3DTOP_FORCE_DWORD = 0x7fffffff
703} WINED3DTEXTUREOP;
704typedef enum _WINED3DTEXTUREADDRESS {
705 WINED3DTADDRESS_WRAP = 1,
706 WINED3DTADDRESS_MIRROR = 2,
707 WINED3DTADDRESS_CLAMP = 3,
708 WINED3DTADDRESS_BORDER = 4,
709 WINED3DTADDRESS_MIRRORONCE = 5,
710 WINED3DTADDRESS_FORCE_DWORD = 0x7fffffff
711} WINED3DTEXTUREADDRESS;
712typedef enum _WINED3DTRANSFORMSTATETYPE {
713 WINED3DTS_VIEW = 2,
714 WINED3DTS_PROJECTION = 3,
715 WINED3DTS_TEXTURE0 = 16,
716 WINED3DTS_TEXTURE1 = 17,
717 WINED3DTS_TEXTURE2 = 18,
718 WINED3DTS_TEXTURE3 = 19,
719 WINED3DTS_TEXTURE4 = 20,
720 WINED3DTS_TEXTURE5 = 21,
721 WINED3DTS_TEXTURE6 = 22,
722 WINED3DTS_TEXTURE7 = 23,
723 WINED3DTS_WORLD = 256,
724 WINED3DTS_WORLD1 = 257,
725 WINED3DTS_WORLD2 = 258,
726 WINED3DTS_WORLD3 = 259,
727 WINED3DTS_FORCE_DWORD = 0x7fffffff
728} WINED3DTRANSFORMSTATETYPE;
729#define WINED3DTS_WORLDMATRIX(index) (WINED3DTRANSFORMSTATETYPE)(index + 256)
730typedef enum _WINED3DBASISTYPE {
731 WINED3DBASIS_BEZIER = 0,
732 WINED3DBASIS_BSPLINE = 1,
733 WINED3DBASIS_INTERPOLATE = 2,
734 WINED3DBASIS_FORCE_DWORD = 0x7fffffff
735} WINED3DBASISTYPE;
736typedef enum _WINED3DCUBEMAP_FACES {
737 WINED3DCUBEMAP_FACE_POSITIVE_X = 0,
738 WINED3DCUBEMAP_FACE_NEGATIVE_X = 1,
739 WINED3DCUBEMAP_FACE_POSITIVE_Y = 2,
740 WINED3DCUBEMAP_FACE_NEGATIVE_Y = 3,
741 WINED3DCUBEMAP_FACE_POSITIVE_Z = 4,
742 WINED3DCUBEMAP_FACE_NEGATIVE_Z = 5,
743 WINED3DCUBEMAP_FACE_FORCE_DWORD = 0xffffffff
744} WINED3DCUBEMAP_FACES;
745typedef enum _WINED3DTEXTUREFILTERTYPE {
746 WINED3DTEXF_NONE = 0,
747 WINED3DTEXF_POINT = 1,
748 WINED3DTEXF_LINEAR = 2,
749 WINED3DTEXF_ANISOTROPIC = 3,
750 WINED3DTEXF_FLATCUBIC = 4,
751 WINED3DTEXF_GAUSSIANCUBIC = 5,
752 WINED3DTEXF_PYRAMIDALQUAD = 6,
753 WINED3DTEXF_GAUSSIANQUAD = 7,
754 WINED3DTEXF_FORCE_DWORD = 0x7fffffff
755} WINED3DTEXTUREFILTERTYPE;
756typedef enum _WINED3DRESOURCETYPE {
757 WINED3DRTYPE_SURFACE = 1,
758 WINED3DRTYPE_VOLUME = 2,
759 WINED3DRTYPE_TEXTURE = 3,
760 WINED3DRTYPE_VOLUMETEXTURE = 4,
761 WINED3DRTYPE_CUBETEXTURE = 5,
762 WINED3DRTYPE_BUFFER = 6,
763 WINED3DRTYPE_FORCE_DWORD = 0x7fffffff
764} WINED3DRESOURCETYPE;
765#define WINED3DRTYPECOUNT (WINED3DRTYPE_BUFFER + 1)
766
767typedef enum _WINED3DPOOL {
768 WINED3DPOOL_DEFAULT = 0,
769 WINED3DPOOL_MANAGED = 1,
770 WINED3DPOOL_SYSTEMMEM = 2,
771 WINED3DPOOL_SCRATCH = 3,
772 WINED3DPOOL_FORCE_DWORD = 0x7fffffff
773} WINED3DPOOL;
774typedef enum _WINED3DQUERYTYPE {
775 WINED3DQUERYTYPE_VCACHE = 4,
776 WINED3DQUERYTYPE_RESOURCEMANAGER = 5,
777 WINED3DQUERYTYPE_VERTEXSTATS = 6,
778 WINED3DQUERYTYPE_EVENT = 8,
779 WINED3DQUERYTYPE_OCCLUSION = 9,
780 WINED3DQUERYTYPE_TIMESTAMP = 10,
781 WINED3DQUERYTYPE_TIMESTAMPDISJOINT = 11,
782 WINED3DQUERYTYPE_TIMESTAMPFREQ = 12,
783 WINED3DQUERYTYPE_PIPELINETIMINGS = 13,
784 WINED3DQUERYTYPE_INTERFACETIMINGS = 14,
785 WINED3DQUERYTYPE_VERTEXTIMINGS = 15,
786 WINED3DQUERYTYPE_PIXELTIMINGS = 16,
787 WINED3DQUERYTYPE_BANDWIDTHTIMINGS = 17,
788 WINED3DQUERYTYPE_CACHEUTILIZATION = 18
789} WINED3DQUERYTYPE;
790#define WINED3DISSUE_BEGIN (1 << 1)
791
792#define WINED3DISSUE_END (1 << 0)
793
794#define WINED3DGETDATA_FLUSH (1 << 0)
795
796typedef enum _WINED3DSTATEBLOCKTYPE {
797 WINED3DSBT_INIT = 0,
798 WINED3DSBT_ALL = 1,
799 WINED3DSBT_PIXELSTATE = 2,
800 WINED3DSBT_VERTEXSTATE = 3,
801 WINED3DSBT_RECORDED = 4,
802 WINED3DSBT_FORCE_DWORD = 0xffffffff
803} WINED3DSTATEBLOCKTYPE;
804typedef enum _WINED3DDECLMETHOD {
805 WINED3DDECLMETHOD_DEFAULT = 0,
806 WINED3DDECLMETHOD_PARTIALU = 1,
807 WINED3DDECLMETHOD_PARTIALV = 2,
808 WINED3DDECLMETHOD_CROSSUV = 3,
809 WINED3DDECLMETHOD_UV = 4,
810 WINED3DDECLMETHOD_LOOKUP = 5,
811 WINED3DDECLMETHOD_LOOKUPPRESAMPLED = 6
812} WINED3DDECLMETHOD;
813typedef enum _WINED3DDECLUSAGE {
814 WINED3DDECLUSAGE_POSITION = 0,
815 WINED3DDECLUSAGE_BLENDWEIGHT = 1,
816 WINED3DDECLUSAGE_BLENDINDICES = 2,
817 WINED3DDECLUSAGE_NORMAL = 3,
818 WINED3DDECLUSAGE_PSIZE = 4,
819 WINED3DDECLUSAGE_TEXCOORD = 5,
820 WINED3DDECLUSAGE_TANGENT = 6,
821 WINED3DDECLUSAGE_BINORMAL = 7,
822 WINED3DDECLUSAGE_TESSFACTOR = 8,
823 WINED3DDECLUSAGE_POSITIONT = 9,
824 WINED3DDECLUSAGE_COLOR = 10,
825 WINED3DDECLUSAGE_FOG = 11,
826 WINED3DDECLUSAGE_DEPTH = 12,
827 WINED3DDECLUSAGE_SAMPLE = 13
828} WINED3DDECLUSAGE;
829typedef enum _WINED3DSURFTYPE {
830 SURFACE_UNKNOWN = 0,
831 SURFACE_OPENGL = 1,
832 SURFACE_GDI = 2
833} WINED3DSURFTYPE;
834enum wined3d_sysval_semantic {
835 WINED3D_SV_DEPTH = 0xffffffff,
836 WINED3D_SV_TARGET0 = 0,
837 WINED3D_SV_TARGET1 = 1,
838 WINED3D_SV_TARGET2 = 2,
839 WINED3D_SV_TARGET3 = 3,
840 WINED3D_SV_TARGET4 = 4,
841 WINED3D_SV_TARGET5 = 5,
842 WINED3D_SV_TARGET6 = 6,
843 WINED3D_SV_TARGET7 = 7
844};
845
846#define WINED3DCOLORWRITEENABLE_RED (1 << 0)
847
848#define WINED3DCOLORWRITEENABLE_GREEN (1 << 1)
849
850#define WINED3DCOLORWRITEENABLE_BLUE (1 << 2)
851
852#define WINED3DCOLORWRITEENABLE_ALPHA (1 << 3)
853
854#define WINED3DADAPTER_DEFAULT (0)
855
856#define WINED3DENUM_NO_WHQL_LEVEL (2)
857
858#define WINED3DPRESENT_BACK_BUFFER_MAX (3)
859
860#define WINED3DTSS_TCI_PASSTHRU (0x0)
861
862#define WINED3DTSS_TCI_CAMERASPACENORMAL (0x10000)
863
864#define WINED3DTSS_TCI_CAMERASPACEPOSITION (0x20000)
865
866#define WINED3DTSS_TCI_CAMERASPACEREFLECTIONVECTOR (0x30000)
867
868#define WINED3DTSS_TCI_SPHEREMAP (0x40000)
869
870#define WINED3DTA_SELECTMASK (0xf)
871
872#define WINED3DTA_DIFFUSE (0x0)
873
874#define WINED3DTA_CURRENT (0x1)
875
876#define WINED3DTA_TEXTURE (0x2)
877
878#define WINED3DTA_TFACTOR (0x3)
879
880#define WINED3DTA_SPECULAR (0x4)
881
882#define WINED3DTA_TEMP (0x5)
883
884#define WINED3DTA_CONSTANT (0x6)
885
886#define WINED3DTA_COMPLEMENT (0x10)
887
888#define WINED3DTA_ALPHAREPLICATE (0x20)
889
890#define WINED3DPRESENTFLAG_LOCKABLE_BACKBUFFER (0x1)
891
892#define WINED3DPRESENTFLAG_DISCARD_DEPTHSTENCIL (0x2)
893
894#define WINED3DPRESENTFLAG_DEVICECLIP (0x4)
895
896#define WINED3DPRESENTFLAG_VIDEO (0x10)
897
898#define WINED3DPRESENTFLAG_NOAUTOROTATE (0x20)
899
900#define WINED3DPRESENTFLAG_UNPRUNEDMODE (0x40)
901
902#define WINED3DDP_MAXTEXCOORD (8)
903
904#define WINED3DUSAGE_RENDERTARGET (0x1)
905
906#define WINED3DUSAGE_DEPTHSTENCIL (0x2)
907
908#define WINED3DUSAGE_WRITEONLY (0x8)
909
910#define WINED3DUSAGE_SOFTWAREPROCESSING (0x10)
911
912#define WINED3DUSAGE_DONOTCLIP (0x20)
913
914#define WINED3DUSAGE_POINTS (0x40)
915
916#define WINED3DUSAGE_RTPATCHES (0x80)
917
918#define WINED3DUSAGE_NPATCHES (0x100)
919
920#define WINED3DUSAGE_DYNAMIC (0x200)
921
922#define WINED3DUSAGE_AUTOGENMIPMAP (0x400)
923
924#define WINED3DUSAGE_DMAP (0x4000)
925
926#define WINED3DUSAGE_MASK (0x4fff)
927
928#define WINED3DUSAGE_STATICDECL (0x40000000)
929
930#define WINED3DUSAGE_OVERLAY (0x80000000)
931
932#define WINED3DUSAGE_QUERY_LEGACYBUMPMAP (0x8000)
933
934#define WINED3DUSAGE_QUERY_FILTER (0x20000)
935
936#define WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING (0x80000)
937
938#define WINED3DUSAGE_QUERY_SRGBREAD (0x10000)
939
940#define WINED3DUSAGE_QUERY_SRGBWRITE (0x40000)
941
942#define WINED3DUSAGE_QUERY_VERTEXTEXTURE (0x100000)
943
944#define WINED3DUSAGE_QUERY_WRAPANDMIP (0x200000)
945
946#define WINED3DUSAGE_QUERY_MASK (0x3f8000)
947
948#define WINED3DLOCK_READONLY (0x10)
949
950#define WINED3DLOCK_NOSYSLOCK (0x800)
951
952#define WINED3DLOCK_NOOVERWRITE (0x1000)
953
954#define WINED3DLOCK_DISCARD (0x2000)
955
956#define WINED3DLOCK_DONOTWAIT (0x4000)
957
958#define WINED3DLOCK_NO_DIRTY_UPDATE (0x8000)
959
960#define WINED3DPRESENT_RATE_DEFAULT (0x0)
961
962#define WINED3DPRESENT_INTERVAL_DEFAULT (0x0)
963
964#define WINED3DPRESENT_INTERVAL_ONE (0x1)
965
966#define WINED3DPRESENT_INTERVAL_TWO (0x2)
967
968#define WINED3DPRESENT_INTERVAL_THREE (0x4)
969
970#define WINED3DPRESENT_INTERVAL_FOUR (0x8)
971
972#define WINED3DPRESENT_INTERVAL_IMMEDIATE (0x80000000)
973
974#define WINED3DMAXUSERCLIPPLANES (32)
975
976#define WINED3DCLIPPLANE0 (1 << 0)
977
978#define WINED3DCLIPPLANE1 (1 << 1)
979
980#define WINED3DCLIPPLANE2 (1 << 2)
981
982#define WINED3DCLIPPLANE3 (1 << 3)
983
984#define WINED3DCLIPPLANE4 (1 << 4)
985
986#define WINED3DCLIPPLANE5 (1 << 5)
987
988#define WINED3DFVF_RESERVED0 (0x1)
989
990#define WINED3DFVF_POSITION_MASK (0x400e)
991
992#define WINED3DFVF_XYZ (0x2)
993
994#define WINED3DFVF_XYZRHW (0x4)
995
996#define WINED3DFVF_XYZB1 (0x6)
997
998#define WINED3DFVF_XYZB2 (0x8)
999
1000#define WINED3DFVF_XYZB3 (0xa)
1001
1002#define WINED3DFVF_XYZB4 (0xc)
1003
1004#define WINED3DFVF_XYZB5 (0xe)
1005
1006#define WINED3DFVF_XYZW (0x4002)
1007
1008#define WINED3DFVF_NORMAL (0x10)
1009
1010#define WINED3DFVF_PSIZE (0x20)
1011
1012#define WINED3DFVF_DIFFUSE (0x40)
1013
1014#define WINED3DFVF_SPECULAR (0x80)
1015
1016#define WINED3DFVF_TEXCOUNT_MASK (0xf00)
1017
1018#define WINED3DFVF_TEXCOUNT_SHIFT (8)
1019
1020#define WINED3DFVF_TEX0 (0x0)
1021
1022#define WINED3DFVF_TEX1 (0x100)
1023
1024#define WINED3DFVF_TEX2 (0x200)
1025
1026#define WINED3DFVF_TEX3 (0x300)
1027
1028#define WINED3DFVF_TEX4 (0x400)
1029
1030#define WINED3DFVF_TEX5 (0x500)
1031
1032#define WINED3DFVF_TEX6 (0x600)
1033
1034#define WINED3DFVF_TEX7 (0x700)
1035
1036#define WINED3DFVF_TEX8 (0x800)
1037
1038#define WINED3DFVF_LASTBETA_UBYTE4 (0x1000)
1039
1040#define WINED3DFVF_LASTBETA_D3DCOLOR (0x8000)
1041
1042#define WINED3DFVF_RESERVED2 (0x6000)
1043
1044#define WINED3DFVF_TEXTUREFORMAT1 (3)
1045
1046#define WINED3DFVF_TEXTUREFORMAT2 (0)
1047
1048#define WINED3DFVF_TEXTUREFORMAT3 (1)
1049
1050#define WINED3DFVF_TEXTUREFORMAT4 (2)
1051
1052#define WINED3DFVF_TEXCOORDSIZE1(CoordIndex) (WINED3DFVF_TEXTUREFORMAT1 << (CoordIndex*2 + 16))
1053#define WINED3DFVF_TEXCOORDSIZE2(CoordIndex) (WINED3DFVF_TEXTUREFORMAT2)
1054#define WINED3DFVF_TEXCOORDSIZE3(CoordIndex) (WINED3DFVF_TEXTUREFORMAT3 << (CoordIndex*2 + 16))
1055#define WINED3DFVF_TEXCOORDSIZE4(CoordIndex) (WINED3DFVF_TEXTUREFORMAT4 << (CoordIndex*2 + 16))
1056#define WINED3DCLEAR_TARGET (0x1)
1057
1058#define WINED3DCLEAR_ZBUFFER (0x2)
1059
1060#define WINED3DCLEAR_STENCIL (0x4)
1061
1062#define WINED3DSTREAMSOURCE_INDEXEDDATA (1 << 30)
1063
1064#define WINED3DSTREAMSOURCE_INSTANCEDATA (2 << 30)
1065
1066#define WINED3DSPD_IUNKNOWN (0x1)
1067
1068#define WINED3DCREATE_FPU_PRESERVE (0x2)
1069
1070#define WINED3DCREATE_PUREDEVICE (0x10)
1071
1072#define WINED3DCREATE_SOFTWARE_VERTEXPROCESSING (0x20)
1073
1074#define WINED3DCREATE_HARDWARE_VERTEXPROCESSING (0x40)
1075
1076#define WINED3DCREATE_MIXED_VERTEXPROCESSING (0x80)
1077
1078#define WINED3DCREATE_DISABLE_DRIVER_MANAGEMENT (0x100)
1079
1080#define WINED3DCREATE_ADAPTERGROUP_DEVICE (0x200)
1081
1082#define WINED3DDMAPSAMPLER (0x100)
1083
1084#define WINED3DVERTEXTEXTURESAMPLER0 (WINED3DDMAPSAMPLER + 1)
1085
1086#define WINED3DVERTEXTEXTURESAMPLER1 (WINED3DDMAPSAMPLER + 2)
1087
1088#define WINED3DVERTEXTEXTURESAMPLER2 (WINED3DDMAPSAMPLER + 3)
1089
1090#define WINED3DVERTEXTEXTURESAMPLER3 (WINED3DDMAPSAMPLER + 4)
1091
1092#define WINED3DCAPS3_ALPHA_FULLSCREEN_FLIP_OR_DISCARD (0x20)
1093
1094#define WINED3DCAPS3_LINEAR_TO_SRGB_PRESENTATION (0x80)
1095
1096#define WINED3DCAPS3_COPY_TO_VIDMEM (0x100)
1097
1098#define WINED3DCAPS3_COPY_TO_SYSTEMMEM (0x200)
1099
1100#define WINED3DCAPS3_RESERVED (0x8000001f)
1101
1102#define WINED3DDEVCAPS2_STREAMOFFSET (0x1)
1103
1104#define WINED3DDEVCAPS2_DMAPNPATCH (0x2)
1105
1106#define WINED3DDEVCAPS2_ADAPTIVETESSRTPATCH (0x4)
1107
1108#define WINED3DDEVCAPS2_ADAPTIVETESSNPATCH (0x8)
1109
1110#define WINED3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES (0x10)
1111
1112#define WINED3DDEVCAPS2_PRESAMPLEDDMAPNPATCH (0x20)
1113
1114#define WINED3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET (0x40)
1115
1116#define WINED3DDTCAPS_UBYTE4 (0x1)
1117
1118#define WINED3DDTCAPS_UBYTE4N (0x2)
1119
1120#define WINED3DDTCAPS_SHORT2N (0x4)
1121
1122#define WINED3DDTCAPS_SHORT4N (0x8)
1123
1124#define WINED3DDTCAPS_USHORT2N (0x10)
1125
1126#define WINED3DDTCAPS_USHORT4N (0x20)
1127
1128#define WINED3DDTCAPS_UDEC3 (0x40)
1129
1130#define WINED3DDTCAPS_DEC3N (0x80)
1131
1132#define WINED3DDTCAPS_FLOAT16_2 (0x100)
1133
1134#define WINED3DDTCAPS_FLOAT16_4 (0x200)
1135
1136#define WINED3DFVFCAPS_TEXCOORDCOUNTMASK (0xffff)
1137
1138#define WINED3DFVFCAPS_DONOTSTRIPELEMENTS (0x80000)
1139
1140#define WINED3DFVFCAPS_PSIZE (0x100000)
1141
1142#define WINED3DLINECAPS_TEXTURE (0x1)
1143
1144#define WINED3DLINECAPS_ZTEST (0x2)
1145
1146#define WINED3DLINECAPS_BLEND (0x4)
1147
1148#define WINED3DLINECAPS_ALPHACMP (0x8)
1149
1150#define WINED3DLINECAPS_FOG (0x10)
1151
1152#define WINED3DLINECAPS_ANTIALIAS (0x20)
1153
1154#define WINED3DMAX30SHADERINSTRUCTIONS (32768)
1155
1156#define WINED3DMIN30SHADERINSTRUCTIONS (512)
1157
1158#define WINED3DPBLENDCAPS_ZERO (0x1)
1159
1160#define WINED3DPBLENDCAPS_ONE (0x2)
1161
1162#define WINED3DPBLENDCAPS_SRCCOLOR (0x4)
1163
1164#define WINED3DPBLENDCAPS_INVSRCCOLOR (0x8)
1165
1166#define WINED3DPBLENDCAPS_SRCALPHA (0x10)
1167
1168#define WINED3DPBLENDCAPS_INVSRCALPHA (0x20)
1169
1170#define WINED3DPBLENDCAPS_DESTALPHA (0x40)
1171
1172#define WINED3DPBLENDCAPS_INVDESTALPHA (0x80)
1173
1174#define WINED3DPBLENDCAPS_DESTCOLOR (0x100)
1175
1176#define WINED3DPBLENDCAPS_INVDESTCOLOR (0x200)
1177
1178#define WINED3DPBLENDCAPS_SRCALPHASAT (0x400)
1179
1180#define WINED3DPBLENDCAPS_BOTHSRCALPHA (0x800)
1181
1182#define WINED3DPBLENDCAPS_BOTHINVSRCALPHA (0x1000)
1183
1184#define WINED3DPBLENDCAPS_BLENDFACTOR (0x2000)
1185
1186#define WINED3DPCMPCAPS_NEVER (0x1)
1187
1188#define WINED3DPCMPCAPS_LESS (0x2)
1189
1190#define WINED3DPCMPCAPS_EQUAL (0x4)
1191
1192#define WINED3DPCMPCAPS_LESSEQUAL (0x8)
1193
1194#define WINED3DPCMPCAPS_GREATER (0x10)
1195
1196#define WINED3DPCMPCAPS_NOTEQUAL (0x20)
1197
1198#define WINED3DPCMPCAPS_GREATEREQUAL (0x40)
1199
1200#define WINED3DPCMPCAPS_ALWAYS (0x80)
1201
1202#define WINED3DPMISCCAPS_MASKZ (0x2)
1203
1204#define WINED3DPMISCCAPS_LINEPATTERNREP (0x4)
1205
1206#define WINED3DPMISCCAPS_CULLNONE (0x10)
1207
1208#define WINED3DPMISCCAPS_CULLCW (0x20)
1209
1210#define WINED3DPMISCCAPS_CULLCCW (0x40)
1211
1212#define WINED3DPMISCCAPS_COLORWRITEENABLE (0x80)
1213
1214#define WINED3DPMISCCAPS_CLIPPLANESCALEDPOINTS (0x100)
1215
1216#define WINED3DPMISCCAPS_CLIPTLVERTS (0x200)
1217
1218#define WINED3DPMISCCAPS_TSSARGTEMP (0x400)
1219
1220#define WINED3DPMISCCAPS_BLENDOP (0x800)
1221
1222#define WINED3DPMISCCAPS_NULLREFERENCE (0x1000)
1223
1224#define WINED3DPMISCCAPS_INDEPENDENTWRITEMASKS (0x4000)
1225
1226#define WINED3DPMISCCAPS_PERSTAGECONSTANT (0x8000)
1227
1228#define WINED3DPMISCCAPS_FOGANDSPECULARALPHA (0x10000)
1229
1230#define WINED3DPMISCCAPS_SEPARATEALPHABLEND (0x20000)
1231
1232#define WINED3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS (0x40000)
1233
1234#define WINED3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING (0x80000)
1235
1236#define WINED3DPMISCCAPS_FOGVERTEXCLAMPED (0x100000)
1237
1238#define WINED3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH (24)
1239
1240#define WINED3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH (0)
1241
1242#define WINED3DPS20_MAX_NUMTEMPS (32)
1243
1244#define WINED3DPS20_MIN_NUMTEMPS (12)
1245
1246#define WINED3DPS20_MAX_STATICFLOWCONTROLDEPTH (4)
1247
1248#define WINED3DPS20_MIN_STATICFLOWCONTROLDEPTH (0)
1249
1250#define WINED3DPS20_MAX_NUMINSTRUCTIONSLOTS (512)
1251
1252#define WINED3DPS20_MIN_NUMINSTRUCTIONSLOTS (96)
1253
1254#define WINED3DPS20CAPS_ARBITRARYSWIZZLE (0x1)
1255
1256#define WINED3DPS20CAPS_GRADIENTINSTRUCTIONS (0x2)
1257
1258#define WINED3DPS20CAPS_PREDICATION (0x4)
1259
1260#define WINED3DPS20CAPS_NODEPENDENTREADLIMIT (0x8)
1261
1262#define WINED3DPS20CAPS_NOTEXINSTRUCTIONLIMIT (0x10)
1263
1264#define WINED3DPTADDRESSCAPS_WRAP (0x1)
1265
1266#define WINED3DPTADDRESSCAPS_MIRROR (0x2)
1267
1268#define WINED3DPTADDRESSCAPS_CLAMP (0x4)
1269
1270#define WINED3DPTADDRESSCAPS_BORDER (0x8)
1271
1272#define WINED3DPTADDRESSCAPS_INDEPENDENTUV (0x10)
1273
1274#define WINED3DPTADDRESSCAPS_MIRRORONCE (0x20)
1275
1276#define WINED3DSTENCILCAPS_KEEP (0x1)
1277
1278#define WINED3DSTENCILCAPS_ZERO (0x2)
1279
1280#define WINED3DSTENCILCAPS_REPLACE (0x4)
1281
1282#define WINED3DSTENCILCAPS_INCRSAT (0x8)
1283
1284#define WINED3DSTENCILCAPS_DECRSAT (0x10)
1285
1286#define WINED3DSTENCILCAPS_INVERT (0x20)
1287
1288#define WINED3DSTENCILCAPS_INCR (0x40)
1289
1290#define WINED3DSTENCILCAPS_DECR (0x80)
1291
1292#define WINED3DSTENCILCAPS_TWOSIDED (0x100)
1293
1294#define WINED3DTEXOPCAPS_DISABLE (0x1)
1295
1296#define WINED3DTEXOPCAPS_SELECTARG1 (0x2)
1297
1298#define WINED3DTEXOPCAPS_SELECTARG2 (0x4)
1299
1300#define WINED3DTEXOPCAPS_MODULATE (0x8)
1301
1302#define WINED3DTEXOPCAPS_MODULATE2X (0x10)
1303
1304#define WINED3DTEXOPCAPS_MODULATE4X (0x20)
1305
1306#define WINED3DTEXOPCAPS_ADD (0x40)
1307
1308#define WINED3DTEXOPCAPS_ADDSIGNED (0x80)
1309
1310#define WINED3DTEXOPCAPS_ADDSIGNED2X (0x100)
1311
1312#define WINED3DTEXOPCAPS_SUBTRACT (0x200)
1313
1314#define WINED3DTEXOPCAPS_ADDSMOOTH (0x400)
1315
1316#define WINED3DTEXOPCAPS_BLENDDIFFUSEALPHA (0x800)
1317
1318#define WINED3DTEXOPCAPS_BLENDTEXTUREALPHA (0x1000)
1319
1320#define WINED3DTEXOPCAPS_BLENDFACTORALPHA (0x2000)
1321
1322#define WINED3DTEXOPCAPS_BLENDTEXTUREALPHAPM (0x4000)
1323
1324#define WINED3DTEXOPCAPS_BLENDCURRENTALPHA (0x8000)
1325
1326#define WINED3DTEXOPCAPS_PREMODULATE (0x10000)
1327
1328#define WINED3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR (0x20000)
1329
1330#define WINED3DTEXOPCAPS_MODULATECOLOR_ADDALPHA (0x40000)
1331
1332#define WINED3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR (0x80000)
1333
1334#define WINED3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA (0x100000)
1335
1336#define WINED3DTEXOPCAPS_BUMPENVMAP (0x200000)
1337
1338#define WINED3DTEXOPCAPS_BUMPENVMAPLUMINANCE (0x400000)
1339
1340#define WINED3DTEXOPCAPS_DOTPRODUCT3 (0x800000)
1341
1342#define WINED3DTEXOPCAPS_MULTIPLYADD (0x1000000)
1343
1344#define WINED3DTEXOPCAPS_LERP (0x2000000)
1345
1346#define WINED3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH (24)
1347
1348#define WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH (0)
1349
1350#define WINED3DVS20_MAX_NUMTEMPS (32)
1351
1352#define WINED3DVS20_MIN_NUMTEMPS (12)
1353
1354#define WINED3DVS20_MAX_STATICFLOWCONTROLDEPTH (4)
1355
1356#define WINED3DVS20_MIN_STATICFLOWCONTROLDEPTH (1)
1357
1358#define WINED3DVS20CAPS_PREDICATION (0x1)
1359
1360#define WINED3DCAPS2_NO2DDURING3DSCENE (0x2)
1361
1362#define WINED3DCAPS2_FULLSCREENGAMMA (0x20000)
1363
1364#define WINED3DCAPS2_CANRENDERWINDOWED (0x80000)
1365
1366#define WINED3DCAPS2_CANCALIBRATEGAMMA (0x100000)
1367
1368#define WINED3DCAPS2_RESERVED (0x2000000)
1369
1370#define WINED3DCAPS2_CANMANAGERESOURCE (0x10000000)
1371
1372#define WINED3DCAPS2_DYNAMICTEXTURES (0x20000000)
1373
1374#define WINED3DCAPS2_CANAUTOGENMIPMAP (0x40000000)
1375
1376#define WINED3DPRASTERCAPS_DITHER (0x1)
1377
1378#define WINED3DPRASTERCAPS_ROP2 (0x2)
1379
1380#define WINED3DPRASTERCAPS_XOR (0x4)
1381
1382#define WINED3DPRASTERCAPS_PAT (0x8)
1383
1384#define WINED3DPRASTERCAPS_ZTEST (0x10)
1385
1386#define WINED3DPRASTERCAPS_SUBPIXEL (0x20)
1387
1388#define WINED3DPRASTERCAPS_SUBPIXELX (0x40)
1389
1390#define WINED3DPRASTERCAPS_FOGVERTEX (0x80)
1391
1392#define WINED3DPRASTERCAPS_FOGTABLE (0x100)
1393
1394#define WINED3DPRASTERCAPS_STIPPLE (0x200)
1395
1396#define WINED3DPRASTERCAPS_ANTIALIASSORTDEPENDENT (0x400)
1397
1398#define WINED3DPRASTERCAPS_ANTIALIASSORTINDEPENDENT (0x800)
1399
1400#define WINED3DPRASTERCAPS_ANTIALIASEDGES (0x1000)
1401
1402#define WINED3DPRASTERCAPS_MIPMAPLODBIAS (0x2000)
1403
1404#define WINED3DPRASTERCAPS_ZBIAS (0x4000)
1405
1406#define WINED3DPRASTERCAPS_ZBUFFERLESSHSR (0x8000)
1407
1408#define WINED3DPRASTERCAPS_FOGRANGE (0x10000)
1409
1410#define WINED3DPRASTERCAPS_ANISOTROPY (0x20000)
1411
1412#define WINED3DPRASTERCAPS_WBUFFER (0x40000)
1413
1414#define WINED3DPRASTERCAPS_TRANSLUCENTSORTINDEPENDENT (0x80000)
1415
1416#define WINED3DPRASTERCAPS_WFOG (0x100000)
1417
1418#define WINED3DPRASTERCAPS_ZFOG (0x200000)
1419
1420#define WINED3DPRASTERCAPS_COLORPERSPECTIVE (0x400000)
1421
1422#define WINED3DPRASTERCAPS_SCISSORTEST (0x1000000)
1423
1424#define WINED3DPRASTERCAPS_SLOPESCALEDEPTHBIAS (0x2000000)
1425
1426#define WINED3DPRASTERCAPS_DEPTHBIAS (0x4000000)
1427
1428#define WINED3DPRASTERCAPS_MULTISAMPLE_TOGGLE (0x8000000)
1429
1430#define WINED3DPSHADECAPS_COLORFLATMONO (0x1)
1431
1432#define WINED3DPSHADECAPS_COLORFLATRGB (0x2)
1433
1434#define WINED3DPSHADECAPS_COLORGOURAUDMONO (0x4)
1435
1436#define WINED3DPSHADECAPS_COLORGOURAUDRGB (0x8)
1437
1438#define WINED3DPSHADECAPS_COLORPHONGMONO (0x10)
1439
1440#define WINED3DPSHADECAPS_COLORPHONGRGB (0x20)
1441
1442#define WINED3DPSHADECAPS_SPECULARFLATMONO (0x40)
1443
1444#define WINED3DPSHADECAPS_SPECULARFLATRGB (0x80)
1445
1446#define WINED3DPSHADECAPS_SPECULARGOURAUDMONO (0x100)
1447
1448#define WINED3DPSHADECAPS_SPECULARGOURAUDRGB (0x200)
1449
1450#define WINED3DPSHADECAPS_SPECULARPHONGMONO (0x400)
1451
1452#define WINED3DPSHADECAPS_SPECULARPHONGRGB (0x800)
1453
1454#define WINED3DPSHADECAPS_ALPHAFLATBLEND (0x1000)
1455
1456#define WINED3DPSHADECAPS_ALPHAFLATSTIPPLED (0x2000)
1457
1458#define WINED3DPSHADECAPS_ALPHAGOURAUDBLEND (0x4000)
1459
1460#define WINED3DPSHADECAPS_ALPHAGOURAUDSTIPPLED (0x8000)
1461
1462#define WINED3DPSHADECAPS_ALPHAPHONGBLEND (0x10000)
1463
1464#define WINED3DPSHADECAPS_ALPHAPHONGSTIPPLED (0x20000)
1465
1466#define WINED3DPSHADECAPS_FOGFLAT (0x40000)
1467
1468#define WINED3DPSHADECAPS_FOGGOURAUD (0x80000)
1469
1470#define WINED3DPSHADECAPS_FOGPHONG (0x100000)
1471
1472#define WINED3DPTEXTURECAPS_PERSPECTIVE (0x1)
1473
1474#define WINED3DPTEXTURECAPS_POW2 (0x2)
1475
1476#define WINED3DPTEXTURECAPS_ALPHA (0x4)
1477
1478#define WINED3DPTEXTURECAPS_TRANSPARENCY (0x8)
1479
1480#define WINED3DPTEXTURECAPS_BORDER (0x10)
1481
1482#define WINED3DPTEXTURECAPS_SQUAREONLY (0x20)
1483
1484#define WINED3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE (0x40)
1485
1486#define WINED3DPTEXTURECAPS_ALPHAPALETTE (0x80)
1487
1488#define WINED3DPTEXTURECAPS_NONPOW2CONDITIONAL (0x100)
1489
1490#define WINED3DPTEXTURECAPS_PROJECTED (0x400)
1491
1492#define WINED3DPTEXTURECAPS_CUBEMAP (0x800)
1493
1494#define WINED3DPTEXTURECAPS_COLORKEYBLEND (0x1000)
1495
1496#define WINED3DPTEXTURECAPS_VOLUMEMAP (0x2000)
1497
1498#define WINED3DPTEXTURECAPS_MIPMAP (0x4000)
1499
1500#define WINED3DPTEXTURECAPS_MIPVOLUMEMAP (0x8000)
1501
1502#define WINED3DPTEXTURECAPS_MIPCUBEMAP (0x10000)
1503
1504#define WINED3DPTEXTURECAPS_CUBEMAP_POW2 (0x20000)
1505
1506#define WINED3DPTEXTURECAPS_VOLUMEMAP_POW2 (0x40000)
1507
1508#define WINED3DPTEXTURECAPS_NOPROJECTEDBUMPENV (0x200000)
1509
1510#define WINED3DPTFILTERCAPS_NEAREST (0x1)
1511
1512#define WINED3DPTFILTERCAPS_LINEAR (0x2)
1513
1514#define WINED3DPTFILTERCAPS_MIPNEAREST (0x4)
1515
1516#define WINED3DPTFILTERCAPS_MIPLINEAR (0x8)
1517
1518#define WINED3DPTFILTERCAPS_LINEARMIPNEAREST (0x10)
1519
1520#define WINED3DPTFILTERCAPS_LINEARMIPLINEAR (0x20)
1521
1522#define WINED3DPTFILTERCAPS_MINFPOINT (0x100)
1523
1524#define WINED3DPTFILTERCAPS_MINFLINEAR (0x200)
1525
1526#define WINED3DPTFILTERCAPS_MINFANISOTROPIC (0x400)
1527
1528#define WINED3DPTFILTERCAPS_MIPFPOINT (0x10000)
1529
1530#define WINED3DPTFILTERCAPS_MIPFLINEAR (0x20000)
1531
1532#define WINED3DPTFILTERCAPS_MAGFPOINT (0x1000000)
1533
1534#define WINED3DPTFILTERCAPS_MAGFLINEAR (0x2000000)
1535
1536#define WINED3DPTFILTERCAPS_MAGFANISOTROPIC (0x4000000)
1537
1538#define WINED3DPTFILTERCAPS_MAGFPYRAMIDALQUAD (0x8000000)
1539
1540#define WINED3DPTFILTERCAPS_MAGFGAUSSIANQUAD (0x10000000)
1541
1542#define WINED3DVTXPCAPS_TEXGEN (0x1)
1543
1544#define WINED3DVTXPCAPS_MATERIALSOURCE7 (0x2)
1545
1546#define WINED3DVTXPCAPS_VERTEXFOG (0x4)
1547
1548#define WINED3DVTXPCAPS_DIRECTIONALLIGHTS (0x8)
1549
1550#define WINED3DVTXPCAPS_POSITIONALLIGHTS (0x10)
1551
1552#define WINED3DVTXPCAPS_LOCALVIEWER (0x20)
1553
1554#define WINED3DVTXPCAPS_TWEENING (0x40)
1555
1556#define WINED3DVTXPCAPS_TEXGEN_SPHEREMAP (0x100)
1557
1558#define WINED3DVTXPCAPS_NO_TEXGEN_NONLOCALVIEWER (0x200)
1559
1560#define WINED3DCURSORCAPS_COLOR (0x1)
1561
1562#define WINED3DCURSORCAPS_LOWRES (0x2)
1563
1564#define WINED3DDEVCAPS_FLOATTLVERTEX (0x1)
1565
1566#define WINED3DDEVCAPS_SORTINCREASINGZ (0x2)
1567
1568#define WINED3DDEVCAPS_SORTDECREASINGZ (0x4)
1569
1570#define WINED3DDEVCAPS_SORTEXACT (0x8)
1571
1572#define WINED3DDEVCAPS_EXECUTESYSTEMMEMORY (0x10)
1573
1574#define WINED3DDEVCAPS_EXECUTEVIDEOMEMORY (0x20)
1575
1576#define WINED3DDEVCAPS_TLVERTEXSYSTEMMEMORY (0x40)
1577
1578#define WINED3DDEVCAPS_TLVERTEXVIDEOMEMORY (0x80)
1579
1580#define WINED3DDEVCAPS_TEXTURESYSTEMMEMORY (0x100)
1581
1582#define WINED3DDEVCAPS_TEXTUREVIDEOMEMORY (0x200)
1583
1584#define WINED3DDEVCAPS_DRAWPRIMTLVERTEX (0x400)
1585
1586#define WINED3DDEVCAPS_CANRENDERAFTERFLIP (0x800)
1587
1588#define WINED3DDEVCAPS_TEXTURENONLOCALVIDMEM (0x1000)
1589
1590#define WINED3DDEVCAPS_DRAWPRIMITIVES2 (0x2000)
1591
1592#define WINED3DDEVCAPS_SEPARATETEXTUREMEMORIES (0x4000)
1593
1594#define WINED3DDEVCAPS_DRAWPRIMITIVES2EX (0x8000)
1595
1596#define WINED3DDEVCAPS_HWTRANSFORMANDLIGHT (0x10000)
1597
1598#define WINED3DDEVCAPS_CANBLTSYSTONONLOCAL (0x20000)
1599
1600#define WINED3DDEVCAPS_HWRASTERIZATION (0x80000)
1601
1602#define WINED3DDEVCAPS_PUREDEVICE (0x100000)
1603
1604#define WINED3DDEVCAPS_QUINTICRTPATCHES (0x200000)
1605
1606#define WINED3DDEVCAPS_RTPATCHES (0x400000)
1607
1608#define WINED3DDEVCAPS_RTPATCHHANDLEZERO (0x800000)
1609
1610#define WINED3DDEVCAPS_NPATCHES (0x1000000)
1611
1612#define WINEDDBLTFX_ARITHSTRETCHY (0x1)
1613
1614#define WINEDDBLTFX_MIRRORLEFTRIGHT (0x2)
1615
1616#define WINEDDBLTFX_MIRRORUPDOWN (0x4)
1617
1618#define WINEDDBLTFX_NOTEARING (0x8)
1619
1620#define WINEDDBLTFX_ROTATE180 (0x10)
1621
1622#define WINEDDBLTFX_ROTATE270 (0x20)
1623
1624#define WINEDDBLTFX_ROTATE90 (0x40)
1625
1626#define WINEDDBLTFX_ZBUFFERRANGE (0x80)
1627
1628#define WINEDDBLTFX_ZBUFFERBASEDEST (0x100)
1629
1630#define WINEDDBLT_ALPHADEST (0x1)
1631
1632#define WINEDDBLT_ALPHADESTCONSTOVERRIDE (0x2)
1633
1634#define WINEDDBLT_ALPHADESTNEG (0x4)
1635
1636#define WINEDDBLT_ALPHADESTSURFACEOVERRIDE (0x8)
1637
1638#define WINEDDBLT_ALPHAEDGEBLEND (0x10)
1639
1640#define WINEDDBLT_ALPHASRC (0x20)
1641
1642#define WINEDDBLT_ALPHASRCCONSTOVERRIDE (0x40)
1643
1644#define WINEDDBLT_ALPHASRCNEG (0x80)
1645
1646#define WINEDDBLT_ALPHASRCSURFACEOVERRIDE (0x100)
1647
1648#define WINEDDBLT_ASYNC (0x200)
1649
1650#define WINEDDBLT_COLORFILL (0x400)
1651
1652#define WINEDDBLT_DDFX (0x800)
1653
1654#define WINEDDBLT_DDROPS (0x1000)
1655
1656#define WINEDDBLT_KEYDEST (0x2000)
1657
1658#define WINEDDBLT_KEYDESTOVERRIDE (0x4000)
1659
1660#define WINEDDBLT_KEYSRC (0x8000)
1661
1662#define WINEDDBLT_KEYSRCOVERRIDE (0x10000)
1663
1664#define WINEDDBLT_ROP (0x20000)
1665
1666#define WINEDDBLT_ROTATIONANGLE (0x40000)
1667
1668#define WINEDDBLT_ZBUFFER (0x80000)
1669
1670#define WINEDDBLT_ZBUFFERDESTCONSTOVERRIDE (0x100000)
1671
1672#define WINEDDBLT_ZBUFFERDESTOVERRIDE (0x200000)
1673
1674#define WINEDDBLT_ZBUFFERSRCCONSTOVERRIDE (0x400000)
1675
1676#define WINEDDBLT_ZBUFFERSRCOVERRIDE (0x800000)
1677
1678#define WINEDDBLT_WAIT (0x1000000)
1679
1680#define WINEDDBLT_DEPTHFILL (0x2000000)
1681
1682#define WINEDDBLT_DONOTWAIT (0x8000000)
1683
1684#define WINEDDBLTFAST_NOCOLORKEY (0x0)
1685
1686#define WINEDDBLTFAST_SRCCOLORKEY (0x1)
1687
1688#define WINEDDBLTFAST_DESTCOLORKEY (0x2)
1689
1690#define WINEDDBLTFAST_WAIT (0x10)
1691
1692#define WINEDDBLTFAST_DONOTWAIT (0x20)
1693
1694#define WINEDDSD_CAPS (0x1)
1695
1696#define WINEDDSD_HEIGHT (0x2)
1697
1698#define WINEDDSD_WIDTH (0x4)
1699
1700#define WINEDDSD_PITCH (0x8)
1701
1702#define WINEDDSD_BACKBUFFERCOUNT (0x20)
1703
1704#define WINEDDSD_ZBUFFERBITDEPTH (0x40)
1705
1706#define WINEDDSD_ALPHABITDEPTH (0x80)
1707
1708#define WINEDDSD_LPSURFACE (0x800)
1709
1710#define WINEDDSD_PIXELFORMAT (0x1000)
1711
1712#define WINEDDSD_CKDESTOVERLAY (0x2000)
1713
1714#define WINEDDSD_CKDESTBLT (0x4000)
1715
1716#define WINEDDSD_CKSRCOVERLAY (0x8000)
1717
1718#define WINEDDSD_CKSRCBLT (0x10000)
1719
1720#define WINEDDSD_MIPMAPCOUNT (0x20000)
1721
1722#define WINEDDSD_REFRESHRATE (0x40000)
1723
1724#define WINEDDSD_LINEARSIZE (0x80000)
1725
1726#define WINEDDSD_TEXTURESTAGE (0x100000)
1727
1728#define WINEDDSD_FVF (0x200000)
1729
1730#define WINEDDSD_SRCVBHANDLE (0x400000)
1731
1732#define WINEDDSD_ALL (0x7ff9ee)
1733
1734#define WINEDDCKEY_COLORSPACE (0x1)
1735
1736#define WINEDDCKEY_DESTBLT (0x2)
1737
1738#define WINEDDCKEY_DESTOVERLAY (0x4)
1739
1740#define WINEDDCKEY_SRCBLT (0x8)
1741
1742#define WINEDDCKEY_SRCOVERLAY (0x10)
1743
1744#define WINEDDGBS_CANBLT (0x1)
1745
1746#define WINEDDGBS_ISBLTDONE (0x2)
1747
1748#define WINEDDGFS_CANFLIP (0x1)
1749
1750#define WINEDDGFS_ISFLIPDONE (0x2)
1751
1752#define WINEDDFLIP_WAIT (0x1)
1753
1754#define WINEDDFLIP_EVEN (0x2)
1755
1756#define WINEDDFLIP_ODD (0x4)
1757
1758#define WINEDDFLIP_NOVSYNC (0x8)
1759
1760#define WINEDDFLIP_STEREO (0x10)
1761
1762#define WINEDDFLIP_DONOTWAIT (0x20)
1763
1764#define WINEDDFLIP_INTERVAL2 (0x2000000)
1765
1766#define WINEDDFLIP_INTERVAL3 (0x3000000)
1767
1768#define WINEDDFLIP_INTERVAL4 (0x4000000)
1769
1770#define WINEDDOVER_ALPHADEST (0x1)
1771
1772#define WINEDDOVER_ALPHADESTCONSTOVERRIDE (0x2)
1773
1774#define WINEDDOVER_ALPHADESTNEG (0x4)
1775
1776#define WINEDDOVER_ALPHADESTSURFACEOVERRIDE (0x8)
1777
1778#define WINEDDOVER_ALPHAEDGEBLEND (0x10)
1779
1780#define WINEDDOVER_ALPHASRC (0x20)
1781
1782#define WINEDDOVER_ALPHASRCCONSTOVERRIDE (0x40)
1783
1784#define WINEDDOVER_ALPHASRCNEG (0x80)
1785
1786#define WINEDDOVER_ALPHASRCSURFACEOVERRIDE (0x100)
1787
1788#define WINEDDOVER_HIDE (0x200)
1789
1790#define WINEDDOVER_KEYDEST (0x400)
1791
1792#define WINEDDOVER_KEYDESTOVERRIDE (0x800)
1793
1794#define WINEDDOVER_KEYSRC (0x1000)
1795
1796#define WINEDDOVER_KEYSRCOVERRIDE (0x2000)
1797
1798#define WINEDDOVER_SHOW (0x4000)
1799
1800#define WINEDDOVER_ADDDIRTYRECT (0x8000)
1801
1802#define WINEDDOVER_REFRESHDIRTYRECTS (0x10000)
1803
1804#define WINEDDOVER_REFRESHALL (0x20000)
1805
1806#define WINEDDOVER_DDFX (0x80000)
1807
1808#define WINEDDOVER_AUTOFLIP (0x100000)
1809
1810#define WINEDDOVER_BOB (0x200000)
1811
1812#define WINEDDOVER_OVERRIDEBOBWEAVE (0x400000)
1813
1814#define WINEDDOVER_INTERLEAVED (0x800000)
1815
1816#define WINEDDSCAPS_RESERVED1 (0x1)
1817
1818#define WINEDDSCAPS_ALPHA (0x2)
1819
1820#define WINEDDSCAPS_BACKBUFFER (0x4)
1821
1822#define WINEDDSCAPS_COMPLEX (0x8)
1823
1824#define WINEDDSCAPS_FLIP (0x10)
1825
1826#define WINEDDSCAPS_FRONTBUFFER (0x20)
1827
1828#define WINEDDSCAPS_OFFSCREENPLAIN (0x40)
1829
1830#define WINEDDSCAPS_OVERLAY (0x80)
1831
1832#define WINEDDSCAPS_PALETTE (0x100)
1833
1834#define WINEDDSCAPS_PRIMARYSURFACE (0x200)
1835
1836#define WINEDDSCAPS_PRIMARYSURFACELEFT (0x400)
1837
1838#define WINEDDSCAPS_SYSTEMMEMORY (0x800)
1839
1840#define WINEDDSCAPS_TEXTURE (0x1000)
1841
1842#define WINEDDSCAPS_3DDEVICE (0x2000)
1843
1844#define WINEDDSCAPS_VIDEOMEMORY (0x4000)
1845
1846#define WINEDDSCAPS_VISIBLE (0x8000)
1847
1848#define WINEDDSCAPS_WRITEONLY (0x10000)
1849
1850#define WINEDDSCAPS_ZBUFFER (0x20000)
1851
1852#define WINEDDSCAPS_OWNDC (0x40000)
1853
1854#define WINEDDSCAPS_LIVEVIDEO (0x80000)
1855
1856#define WINEDDSCAPS_HWCODEC (0x100000)
1857
1858#define WINEDDSCAPS_MODEX (0x200000)
1859
1860#define WINEDDSCAPS_MIPMAP (0x400000)
1861
1862#define WINEDDSCAPS_RESERVED2 (0x800000)
1863
1864#define WINEDDSCAPS_ALLOCONLOAD (0x4000000)
1865
1866#define WINEDDSCAPS_VIDEOPORT (0x8000000)
1867
1868#define WINEDDSCAPS_LOCALVIDMEM (0x10000000)
1869
1870#define WINEDDSCAPS_NONLOCALVIDMEM (0x20000000)
1871
1872#define WINEDDSCAPS_STANDARDVGAMODE (0x40000000)
1873
1874#define WINEDDSCAPS_OPTIMIZED (0x80000000)
1875
1876#define WINEDDCKEYCAPS_DESTBLT (0x1)
1877
1878#define WINEDDCKEYCAPS_DESTBLTCLRSPACE (0x2)
1879
1880#define WINEDDCKEYCAPS_DESTBLTCLRSPACEYUV (0x4)
1881
1882#define WINEDDCKEYCAPS_DESTBLTYUV (0x8)
1883
1884#define WINEDDCKEYCAPS_DESTOVERLAY (0x10)
1885
1886#define WINEDDCKEYCAPS_DESTOVERLAYCLRSPACE (0x20)
1887
1888#define WINEDDCKEYCAPS_DESTOVERLAYCLRSPACEYUV (0x40)
1889
1890#define WINEDDCKEYCAPS_DESTOVERLAYONEACTIVE (0x80)
1891
1892#define WINEDDCKEYCAPS_DESTOVERLAYYUV (0x100)
1893
1894#define WINEDDCKEYCAPS_SRCBLT (0x200)
1895
1896#define WINEDDCKEYCAPS_SRCBLTCLRSPACE (0x400)
1897
1898#define WINEDDCKEYCAPS_SRCBLTCLRSPACEYUV (0x800)
1899
1900#define WINEDDCKEYCAPS_SRCBLTYUV (0x1000)
1901
1902#define WINEDDCKEYCAPS_SRCOVERLAY (0x2000)
1903
1904#define WINEDDCKEYCAPS_SRCOVERLAYCLRSPACE (0x4000)
1905
1906#define WINEDDCKEYCAPS_SRCOVERLAYCLRSPACEYUV (0x8000)
1907
1908#define WINEDDCKEYCAPS_SRCOVERLAYONEACTIVE (0x10000)
1909
1910#define WINEDDCKEYCAPS_SRCOVERLAYYUV (0x20000)
1911
1912#define WINEDDCKEYCAPS_NOCOSTOVERLAY (0x40000)
1913
1914#define WINEDDFXCAPS_BLTALPHA (0x1)
1915
1916#define WINEDDFXCAPS_OVERLAYALPHA (0x4)
1917
1918#define WINEDDFXCAPS_BLTARITHSTRETCHYN (0x10)
1919
1920#define WINEDDFXCAPS_BLTARITHSTRETCHY (0x20)
1921
1922#define WINEDDFXCAPS_BLTMIRRORLEFTRIGHT (0x40)
1923
1924#define WINEDDFXCAPS_BLTMIRRORUPDOWN (0x80)
1925
1926#define WINEDDFXCAPS_BLTROTATION (0x100)
1927
1928#define WINEDDFXCAPS_BLTROTATION90 (0x200)
1929
1930#define WINEDDFXCAPS_BLTSHRINKX (0x400)
1931
1932#define WINEDDFXCAPS_BLTSHRINKXN (0x800)
1933
1934#define WINEDDFXCAPS_BLTSHRINKY (0x1000)
1935
1936#define WINEDDFXCAPS_BLTSHRINKYN (0x2000)
1937
1938#define WINEDDFXCAPS_BLTSTRETCHX (0x4000)
1939
1940#define WINEDDFXCAPS_BLTSTRETCHXN (0x8000)
1941
1942#define WINEDDFXCAPS_BLTSTRETCHY (0x10000)
1943
1944#define WINEDDFXCAPS_BLTSTRETCHYN (0x20000)
1945
1946#define WINEDDFXCAPS_OVERLAYARITHSTRETCHY (0x40000)
1947
1948#define WINEDDFXCAPS_OVERLAYARITHSTRETCHYN (0x8)
1949
1950#define WINEDDFXCAPS_OVERLAYSHRINKX (0x80000)
1951
1952#define WINEDDFXCAPS_OVERLAYSHRINKXN (0x100000)
1953
1954#define WINEDDFXCAPS_OVERLAYSHRINKY (0x200000)
1955
1956#define WINEDDFXCAPS_OVERLAYSHRINKYN (0x400000)
1957
1958#define WINEDDFXCAPS_OVERLAYSTRETCHX (0x800000)
1959
1960#define WINEDDFXCAPS_OVERLAYSTRETCHXN (0x1000000)
1961
1962#define WINEDDFXCAPS_OVERLAYSTRETCHY (0x2000000)
1963
1964#define WINEDDFXCAPS_OVERLAYSTRETCHYN (0x4000000)
1965
1966#define WINEDDFXCAPS_OVERLAYMIRRORLEFTRIGHT (0x8000000)
1967
1968#define WINEDDFXCAPS_OVERLAYMIRRORUPDOWN (0x10000000)
1969
1970#define WINEDDCAPS_3D (0x1)
1971
1972#define WINEDDCAPS_ALIGNBOUNDARYDEST (0x2)
1973
1974#define WINEDDCAPS_ALIGNSIZEDEST (0x4)
1975
1976#define WINEDDCAPS_ALIGNBOUNDARYSRC (0x8)
1977
1978#define WINEDDCAPS_ALIGNSIZESRC (0x10)
1979
1980#define WINEDDCAPS_ALIGNSTRIDE (0x20)
1981
1982#define WINEDDCAPS_BLT (0x40)
1983
1984#define WINEDDCAPS_BLTQUEUE (0x80)
1985
1986#define WINEDDCAPS_BLTFOURCC (0x100)
1987
1988#define WINEDDCAPS_BLTSTRETCH (0x200)
1989
1990#define WINEDDCAPS_GDI (0x400)
1991
1992#define WINEDDCAPS_OVERLAY (0x800)
1993
1994#define WINEDDCAPS_OVERLAYCANTCLIP (0x1000)
1995
1996#define WINEDDCAPS_OVERLAYFOURCC (0x2000)
1997
1998#define WINEDDCAPS_OVERLAYSTRETCH (0x4000)
1999
2000#define WINEDDCAPS_PALETTE (0x8000)
2001
2002#define WINEDDCAPS_PALETTEVSYNC (0x10000)
2003
2004#define WINEDDCAPS_READSCANLINE (0x20000)
2005
2006#define WINEDDCAPS_STEREOVIEW (0x40000)
2007
2008#define WINEDDCAPS_VBI (0x80000)
2009
2010#define WINEDDCAPS_ZBLTS (0x100000)
2011
2012#define WINEDDCAPS_ZOVERLAYS (0x200000)
2013
2014#define WINEDDCAPS_COLORKEY (0x400000)
2015
2016#define WINEDDCAPS_ALPHA (0x800000)
2017
2018#define WINEDDCAPS_COLORKEYHWASSIST (0x1000000)
2019
2020#define WINEDDCAPS_NOHARDWARE (0x2000000)
2021
2022#define WINEDDCAPS_BLTCOLORFILL (0x4000000)
2023
2024#define WINEDDCAPS_BANKSWITCHED (0x8000000)
2025
2026#define WINEDDCAPS_BLTDEPTHFILL (0x10000000)
2027
2028#define WINEDDCAPS_CANCLIP (0x20000000)
2029
2030#define WINEDDCAPS_CANCLIPSTRETCHED (0x40000000)
2031
2032#define WINEDDCAPS_CANBLTSYSMEM (0x80000000)
2033
2034#define WINEDDCAPS2_CERTIFIED (0x1)
2035
2036#define WINEDDCAPS2_NO2DDURING3DSCENE (0x2)
2037
2038#define WINEDDCAPS2_VIDEOPORT (0x4)
2039
2040#define WINEDDCAPS2_AUTOFLIPOVERLAY (0x8)
2041
2042#define WINEDDCAPS2_CANBOBINTERLEAVED (0x10)
2043
2044#define WINEDDCAPS2_CANBOBNONINTERLEAVED (0x20)
2045
2046#define WINEDDCAPS2_COLORCONTROLOVERLAY (0x40)
2047
2048#define WINEDDCAPS2_COLORCONTROLPRIMARY (0x80)
2049
2050#define WINEDDCAPS2_CANDROPZ16BIT (0x100)
2051
2052#define WINEDDCAPS2_NONLOCALVIDMEM (0x200)
2053
2054#define WINEDDCAPS2_NONLOCALVIDMEMCAPS (0x400)
2055
2056#define WINEDDCAPS2_NOPAGELOCKREQUIRED (0x800)
2057
2058#define WINEDDCAPS2_WIDESURFACES (0x1000)
2059
2060#define WINEDDCAPS2_CANFLIPODDEVEN (0x2000)
2061
2062#define WINEDDCAPS2_CANBOBHARDWARE (0x4000)
2063
2064#define WINEDDCAPS2_COPYFOURCC (0x8000)
2065
2066#define WINEDDCAPS2_PRIMARYGAMMA (0x20000)
2067
2068#define WINEDDCAPS2_CANRENDERWINDOWED (0x80000)
2069
2070#define WINEDDCAPS2_CANCALIBRATEGAMMA (0x100000)
2071
2072#define WINEDDCAPS2_FLIPINTERVAL (0x200000)
2073
2074#define WINEDDCAPS2_FLIPNOVSYNC (0x400000)
2075
2076#define WINEDDCAPS2_CANMANAGETEXTURE (0x800000)
2077
2078#define WINEDDCAPS2_TEXMANINNONLOCALVIDMEM (0x1000000)
2079
2080#define WINEDDCAPS2_STEREO (0x2000000)
2081
2082#define WINEDDCAPS2_SYSTONONLOCAL_AS_SYSTOLOCAL (0x4000000)
2083
2084#define WINEDDPCAPS_4BIT (0x1)
2085
2086#define WINEDDPCAPS_8BITENTRIES (0x2)
2087
2088#define WINEDDPCAPS_8BIT (0x4)
2089
2090#define WINEDDPCAPS_INITIALIZE (0x8)
2091
2092#define WINEDDPCAPS_PRIMARYSURFACE (0x10)
2093
2094#define WINEDDPCAPS_PRIMARYSURFACELEFT (0x20)
2095
2096#define WINEDDPCAPS_ALLOW256 (0x40)
2097
2098#define WINEDDPCAPS_VSYNC (0x80)
2099
2100#define WINEDDPCAPS_1BIT (0x100)
2101
2102#define WINEDDPCAPS_2BIT (0x200)
2103
2104#define WINEDDPCAPS_ALPHA (0x400)
2105
2106typedef struct _WINED3DDISPLAYMODE {
2107 UINT Width;
2108 UINT Height;
2109 UINT RefreshRate;
2110 WINED3DFORMAT Format;
2111} WINED3DDISPLAYMODE;
2112typedef struct _WINED3DCOLORVALUE {
2113 float r;
2114 float g;
2115 float b;
2116 float a;
2117} WINED3DCOLORVALUE;
2118typedef struct _WINED3DVECTOR {
2119 float x;
2120 float y;
2121 float z;
2122} WINED3DVECTOR;
2123typedef struct _WINED3DMATRIX {
2124 union {
2125 struct {
2126 float _11;
2127 float _12;
2128 float _13;
2129 float _14;
2130 float _21;
2131 float _22;
2132 float _23;
2133 float _24;
2134 float _31;
2135 float _32;
2136 float _33;
2137 float _34;
2138 float _41;
2139 float _42;
2140 float _43;
2141 float _44;
2142 } DUMMYSTRUCTNAME;
2143 float m[4][4];
2144 } DUMMYUNIONNAME;
2145} WINED3DMATRIX;
2146typedef struct _WINED3DRECT {
2147 LONG x1;
2148 LONG y1;
2149 LONG x2;
2150 LONG y2;
2151} WINED3DRECT;
2152typedef struct _WINED3DLIGHT {
2153 WINED3DLIGHTTYPE Type;
2154 WINED3DCOLORVALUE Diffuse;
2155 WINED3DCOLORVALUE Specular;
2156 WINED3DCOLORVALUE Ambient;
2157 WINED3DVECTOR Position;
2158 WINED3DVECTOR Direction;
2159 float Range;
2160 float Falloff;
2161 float Attenuation0;
2162 float Attenuation1;
2163 float Attenuation2;
2164 float Theta;
2165 float Phi;
2166} WINED3DLIGHT;
2167typedef struct _WINED3DMATERIAL {
2168 WINED3DCOLORVALUE Diffuse;
2169 WINED3DCOLORVALUE Ambient;
2170 WINED3DCOLORVALUE Specular;
2171 WINED3DCOLORVALUE Emissive;
2172 float Power;
2173} WINED3DMATERIAL;
2174typedef struct _WINED3DVIEWPORT {
2175 DWORD X;
2176 DWORD Y;
2177 DWORD Width;
2178 DWORD Height;
2179 float MinZ;
2180 float MaxZ;
2181} WINED3DVIEWPORT;
2182typedef struct _WINED3DGAMMARAMP {
2183 WORD red[256];
2184 WORD green[256];
2185 WORD blue[256];
2186} WINED3DGAMMARAMP;
2187typedef struct _WINED3DLINEPATTERN {
2188 WORD wRepeatFactor;
2189 WORD wLinePattern;
2190} WINED3DLINEPATTERN;
2191typedef struct _WINEDD3DRECTPATCH_INFO {
2192 UINT StartVertexOffsetWidth;
2193 UINT StartVertexOffsetHeight;
2194 UINT Width;
2195 UINT Height;
2196 UINT Stride;
2197 WINED3DBASISTYPE Basis;
2198 WINED3DDEGREETYPE Degree;
2199} WINED3DRECTPATCH_INFO;
2200typedef struct _WINED3DTRIPATCH_INFO {
2201 UINT StartVertexOffset;
2202 UINT NumVertices;
2203 WINED3DBASISTYPE Basis;
2204 WINED3DDEGREETYPE Degree;
2205} WINED3DTRIPATCH_INFO;
2206typedef struct _WINED3DADAPTER_IDENTIFIER {
2207 char *driver;
2208 UINT driver_size;
2209 char *description;
2210 UINT description_size;
2211 char *device_name;
2212 UINT device_name_size;
2213 LARGE_INTEGER driver_version;
2214 DWORD vendor_id;
2215 DWORD device_id;
2216 DWORD subsystem_id;
2217 DWORD revision;
2218 GUID device_identifier;
2219 DWORD whql_level;
2220 LUID adapter_luid;
2221 SIZE_T video_memory;
2222} WINED3DADAPTER_IDENTIFIER;
2223typedef struct _WINED3DPRESENT_PARAMETERS {
2224 UINT BackBufferWidth;
2225 UINT BackBufferHeight;
2226 WINED3DFORMAT BackBufferFormat;
2227 UINT BackBufferCount;
2228 WINED3DMULTISAMPLE_TYPE MultiSampleType;
2229 DWORD MultiSampleQuality;
2230 WINED3DSWAPEFFECT SwapEffect;
2231 HWND hDeviceWindow;
2232 BOOL Windowed;
2233 BOOL EnableAutoDepthStencil;
2234 WINED3DFORMAT AutoDepthStencilFormat;
2235 DWORD Flags;
2236 UINT FullScreen_RefreshRateInHz;
2237 UINT PresentationInterval;
2238 BOOL AutoRestoreDisplayMode;
2239} WINED3DPRESENT_PARAMETERS;
2240typedef struct _WINED3DSURFACE_DESC {
2241 WINED3DFORMAT format;
2242 WINED3DRESOURCETYPE resource_type;
2243 DWORD usage;
2244 WINED3DPOOL pool;
2245 UINT size;
2246 WINED3DMULTISAMPLE_TYPE multisample_type;
2247 DWORD multisample_quality;
2248 UINT width;
2249 UINT height;
2250} WINED3DSURFACE_DESC;
2251typedef struct _WINED3DVOLUME_DESC {
2252 WINED3DFORMAT Format;
2253 WINED3DRESOURCETYPE Type;
2254 DWORD Usage;
2255 WINED3DPOOL Pool;
2256 UINT Size;
2257 UINT Width;
2258 UINT Height;
2259 UINT Depth;
2260} WINED3DVOLUME_DESC;
2261typedef struct _WINED3DCLIPSTATUS {
2262 DWORD ClipUnion;
2263 DWORD ClipIntersection;
2264} WINED3DCLIPSTATUS;
2265typedef struct _WINED3DVERTEXELEMENT {
2266 WINED3DFORMAT format;
2267 WORD input_slot;
2268 WORD offset;
2269 UINT output_slot;
2270 BYTE method;
2271 BYTE usage;
2272 BYTE usage_idx;
2273} WINED3DVERTEXELEMENT;
2274typedef struct _WINED3DDEVICE_CREATION_PARAMETERS {
2275 UINT AdapterOrdinal;
2276 WINED3DDEVTYPE DeviceType;
2277 HWND hFocusWindow;
2278 DWORD BehaviorFlags;
2279} WINED3DDEVICE_CREATION_PARAMETERS;
2280typedef struct _WINED3DDEVINFO_BANDWIDTHTIMINGS {
2281 float MaxBandwidthUtilized;
2282 float FrontEndUploadMemoryUtilizedPercent;
2283 float VertexRateUtilizedPercent;
2284 float TriangleSetupRateUtilizedPercent;
2285 float FillRateUtilizedPercent;
2286} WINED3DDEVINFO_BANDWIDTHTIMINGS;
2287typedef struct _WINED3DDEVINFO_CACHEUTILIZATION {
2288 float TextureCacheHitRate;
2289 float PostTransformVertexCacheHitRate;
2290} WINED3DDEVINFO_CACHEUTILIZATION;
2291typedef struct _WINED3DDEVINFO_INTERFACETIMINGS {
2292 float WaitingForGPUToUseApplicationResourceTimePercent;
2293 float WaitingForGPUToAcceptMoreCommandsTimePercent;
2294 float WaitingForGPUToStayWithinLatencyTimePercent;
2295 float WaitingForGPUExclusiveResourceTimePercent;
2296 float WaitingForGPUOtherTimePercent;
2297} WINED3DDEVINFO_INTERFACETIMINGS;
2298typedef struct _WINED3DDEVINFO_PIPELINETIMINGS {
2299 float VertexProcessingTimePercent;
2300 float PixelProcessingTimePercent;
2301 float OtherGPUProcessingTimePercent;
2302 float GPUIdleTimePercent;
2303} WINED3DDEVINFO_PIPELINETIMINGS;
2304typedef struct _WINED3DDEVINFO_STAGETIMINGS {
2305 float MemoryProcessingPercent;
2306 float ComputationProcessingPercent;
2307} WINED3DDEVINFO_STAGETIMINGS;
2308typedef struct _WINED3DRASTER_STATUS {
2309 BOOL InVBlank;
2310 UINT ScanLine;
2311} WINED3DRASTER_STATUS;
2312typedef struct WINED3DRESOURCESTATS {
2313 BOOL bThrashing;
2314 DWORD ApproxBytesDownloaded;
2315 DWORD NumEvicts;
2316 DWORD NumVidCreates;
2317 DWORD LastPri;
2318 DWORD NumUsed;
2319 DWORD NumUsedInVidMem;
2320 DWORD WorkingSet;
2321 DWORD WorkingSetBytes;
2322 DWORD TotalManaged;
2323 DWORD TotalBytes;
2324} WINED3DRESOURCESTATS;
2325typedef struct _WINED3DDEVINFO_RESOURCEMANAGER {
2326 WINED3DRESOURCESTATS stats[7];
2327} WINED3DDEVINFO_RESOURCEMANAGER;
2328typedef struct _WINED3DDEVINFO_VERTEXSTATS {
2329 DWORD NumRenderedTriangles;
2330 DWORD NumExtraClippingTriangles;
2331} WINED3DDEVINFO_VERTEXSTATS;
2332typedef struct _WINED3DLOCKED_RECT {
2333 INT Pitch;
2334 void *pBits;
2335} WINED3DLOCKED_RECT;
2336typedef struct _WINED3DLOCKED_BOX {
2337 INT RowPitch;
2338 INT SlicePitch;
2339 void *pBits;
2340} WINED3DLOCKED_BOX;
2341typedef struct _WINED3DBOX {
2342 UINT Left;
2343 UINT Top;
2344 UINT Right;
2345 UINT Bottom;
2346 UINT Front;
2347 UINT Back;
2348} WINED3DBOX;
2349typedef struct WINED3DDEVINFO_VCACHE {
2350 DWORD Pattern;
2351 DWORD OptMethod;
2352 DWORD CacheSize;
2353 DWORD MagicNumber;
2354} WINED3DDEVINFO_VCACHE;
2355typedef struct _WINED3DBUFFER_DESC {
2356 WINED3DRESOURCETYPE Type;
2357 DWORD Usage;
2358 WINED3DPOOL Pool;
2359 UINT Size;
2360} WINED3DBUFFER_DESC;
2361typedef struct WineDirect3DStridedData {
2362 WINED3DFORMAT format;
2363 const BYTE *lpData;
2364 DWORD dwStride;
2365} WineDirect3DStridedData;
2366typedef struct WineDirect3DVertexStridedData {
2367 WineDirect3DStridedData position;
2368 WineDirect3DStridedData normal;
2369 WineDirect3DStridedData diffuse;
2370 WineDirect3DStridedData specular;
2371 WineDirect3DStridedData texCoords[8];
2372 BOOL position_transformed;
2373} WineDirect3DVertexStridedData;
2374typedef struct _WINED3DVSHADERCAPS2_0 {
2375 DWORD Caps;
2376 INT DynamicFlowControlDepth;
2377 INT NumTemps;
2378 INT StaticFlowControlDepth;
2379} WINED3DVSHADERCAPS2_0;
2380typedef struct _WINED3DPSHADERCAPS2_0 {
2381 DWORD Caps;
2382 INT DynamicFlowControlDepth;
2383 INT NumTemps;
2384 INT StaticFlowControlDepth;
2385 INT NumInstructionSlots;
2386} WINED3DPSHADERCAPS2_0;
2387typedef struct _WINEDDCAPS {
2388 DWORD Caps;
2389 DWORD Caps2;
2390 DWORD CKeyCaps;
2391 DWORD FXCaps;
2392 DWORD FXAlphaCaps;
2393 DWORD PalCaps;
2394 DWORD SVCaps;
2395 DWORD SVBCaps;
2396 DWORD SVBCKeyCaps;
2397 DWORD SVBFXCaps;
2398 DWORD VSBCaps;
2399 DWORD VSBCKeyCaps;
2400 DWORD VSBFXCaps;
2401 DWORD SSBCaps;
2402 DWORD SSBCKeyCaps;
2403 DWORD SSBFXCaps;
2404 DWORD ddsCaps;
2405 DWORD StrideAlign;
2406} WINEDDCAPS;
2407typedef struct _WINED3DCAPS {
2408 WINED3DDEVTYPE DeviceType;
2409 UINT AdapterOrdinal;
2410 DWORD Caps;
2411 DWORD Caps2;
2412 DWORD Caps3;
2413 DWORD PresentationIntervals;
2414 DWORD CursorCaps;
2415 DWORD DevCaps;
2416 DWORD PrimitiveMiscCaps;
2417 DWORD RasterCaps;
2418 DWORD ZCmpCaps;
2419 DWORD SrcBlendCaps;
2420 DWORD DestBlendCaps;
2421 DWORD AlphaCmpCaps;
2422 DWORD ShadeCaps;
2423 DWORD TextureCaps;
2424 DWORD TextureFilterCaps;
2425 DWORD CubeTextureFilterCaps;
2426 DWORD VolumeTextureFilterCaps;
2427 DWORD TextureAddressCaps;
2428 DWORD VolumeTextureAddressCaps;
2429 DWORD LineCaps;
2430 DWORD MaxTextureWidth;
2431 DWORD MaxTextureHeight;
2432 DWORD MaxVolumeExtent;
2433 DWORD MaxTextureRepeat;
2434 DWORD MaxTextureAspectRatio;
2435 DWORD MaxAnisotropy;
2436 float MaxVertexW;
2437 float GuardBandLeft;
2438 float GuardBandTop;
2439 float GuardBandRight;
2440 float GuardBandBottom;
2441 float ExtentsAdjust;
2442 DWORD StencilCaps;
2443 DWORD FVFCaps;
2444 DWORD TextureOpCaps;
2445 DWORD MaxTextureBlendStages;
2446 DWORD MaxSimultaneousTextures;
2447 DWORD VertexProcessingCaps;
2448 DWORD MaxActiveLights;
2449 DWORD MaxUserClipPlanes;
2450 DWORD MaxVertexBlendMatrices;
2451 DWORD MaxVertexBlendMatrixIndex;
2452 float MaxPointSize;
2453 DWORD MaxPrimitiveCount;
2454 DWORD MaxVertexIndex;
2455 DWORD MaxStreams;
2456 DWORD MaxStreamStride;
2457 DWORD VertexShaderVersion;
2458 DWORD MaxVertexShaderConst;
2459 DWORD PixelShaderVersion;
2460 float PixelShader1xMaxValue;
2461 DWORD DevCaps2;
2462 float MaxNpatchTessellationLevel;
2463 DWORD Reserved5;
2464 UINT MasterAdapterOrdinal;
2465 UINT AdapterOrdinalInGroup;
2466 UINT NumberOfAdaptersInGroup;
2467 DWORD DeclTypes;
2468 DWORD NumSimultaneousRTs;
2469 DWORD StretchRectFilterCaps;
2470 WINED3DVSHADERCAPS2_0 VS20Caps;
2471 WINED3DPSHADERCAPS2_0 PS20Caps;
2472 DWORD VertexTextureFilterCaps;
2473 DWORD MaxVShaderInstructionsExecuted;
2474 DWORD MaxPShaderInstructionsExecuted;
2475 DWORD MaxVertexShader30InstructionSlots;
2476 DWORD MaxPixelShader30InstructionSlots;
2477 DWORD Reserved2;
2478 DWORD Reserved3;
2479 WINEDDCAPS DirectDrawCaps;
2480} WINED3DCAPS;
2481typedef struct _WINEDDCOLORKEY {
2482 DWORD dwColorSpaceLowValue;
2483 DWORD dwColorSpaceHighValue;
2484} WINEDDCOLORKEY;
2485typedef struct _WINEDDCOLORKEY *LPWINEDDCOLORKEY;
2486typedef struct _WINEDDBLTFX {
2487 DWORD dwSize;
2488 DWORD dwDDFX;
2489 DWORD dwROP;
2490 DWORD dwDDROP;
2491 DWORD dwRotationAngle;
2492 DWORD dwZBufferOpCode;
2493 DWORD dwZBufferLow;
2494 DWORD dwZBufferHigh;
2495 DWORD dwZBufferBaseDest;
2496 DWORD dwZDestConstBitDepth;
2497 union {
2498 DWORD dwZDestConst;
2499 struct IWineD3DSurface *lpDDSZBufferDest;
2500 } DUMMYUNIONNAME1;
2501 DWORD dwZSrcConstBitDepth;
2502 union {
2503 DWORD dwZSrcConst;
2504 struct IWineD3DSurface *lpDDSZBufferSrc;
2505 } DUMMYUNIONNAME2;
2506 DWORD dwAlphaEdgeBlendBitDepth;
2507 DWORD dwAlphaEdgeBlend;
2508 DWORD dwReserved;
2509 DWORD dwAlphaDestConstBitDepth;
2510 union {
2511 DWORD dwAlphaDestConst;
2512 struct IWineD3DSurface *lpDDSAlphaDest;
2513 } DUMMYUNIONNAME3;
2514 DWORD dwAlphaSrcConstBitDepth;
2515 union {
2516 DWORD dwAlphaSrcConst;
2517 struct IWineD3DSurface *lpDDSAlphaSrc;
2518 } DUMMYUNIONNAME4;
2519 union {
2520 DWORD dwFillColor;
2521 DWORD dwFillDepth;
2522 DWORD dwFillPixel;
2523 struct IWineD3DSurface *lpDDSPattern;
2524 } DUMMYUNIONNAME5;
2525 WINEDDCOLORKEY ddckDestColorkey;
2526 WINEDDCOLORKEY ddckSrcColorkey;
2527} WINEDDBLTFX;
2528typedef struct _WINEDDBLTFX *LPWINEDDBLTFX;
2529typedef struct _WINEDDOVERLAYFX {
2530 DWORD dwSize;
2531 DWORD dwAlphaEdgeBlendBitDepth;
2532 DWORD dwAlphaEdgeBlend;
2533 DWORD dwReserved;
2534 DWORD dwAlphaDestConstBitDepth;
2535 union {
2536 DWORD dwAlphaDestConst;
2537 struct IWineD3DSurface *lpDDSAlphaDest;
2538 } DUMMYUNIONNAME1;
2539 DWORD dwAlphaSrcConstBitDepth;
2540 union {
2541 DWORD dwAlphaSrcConst;
2542 struct IWineD3DSurface *lpDDSAlphaSrc;
2543 } DUMMYUNIONNAME2;
2544 WINEDDCOLORKEY dckDestColorkey;
2545 WINEDDCOLORKEY dckSrcColorkey;
2546 DWORD dwDDFX;
2547 DWORD dwFlags;
2548} WINEDDOVERLAYFX;
2549struct wined3d_buffer_desc {
2550 UINT byte_width;
2551 DWORD usage;
2552 UINT bind_flags;
2553 UINT cpu_access_flags;
2554 UINT misc_flags;
2555};
2556
2557struct wined3d_shader_signature_element {
2558 const char *semantic_name;
2559 UINT semantic_idx;
2560 enum wined3d_sysval_semantic sysval_semantic;
2561 DWORD component_type;
2562 UINT register_idx;
2563 DWORD mask;
2564};
2565
2566struct wined3d_shader_signature {
2567 UINT element_count;
2568 struct wined3d_shader_signature_element *elements;
2569 char *string_data;
2570};
2571
2572struct wined3d_parent_ops {
2573 void (STDMETHODCALLTYPE *wined3d_object_destroyed)(void *parent);
2574};
2575
2576#ifndef __IWineD3DResource_FWD_DEFINED__
2577#define __IWineD3DResource_FWD_DEFINED__
2578typedef interface IWineD3DResource IWineD3DResource;
2579#endif
2580
2581#ifndef __IWineD3DSurface_FWD_DEFINED__
2582#define __IWineD3DSurface_FWD_DEFINED__
2583typedef interface IWineD3DSurface IWineD3DSurface;
2584#endif
2585
2586#ifndef __IWineD3DVolume_FWD_DEFINED__
2587#define __IWineD3DVolume_FWD_DEFINED__
2588typedef interface IWineD3DVolume IWineD3DVolume;
2589#endif
2590
2591#ifndef __IWineD3DSwapChain_FWD_DEFINED__
2592#define __IWineD3DSwapChain_FWD_DEFINED__
2593typedef interface IWineD3DSwapChain IWineD3DSwapChain;
2594#endif
2595
2596#ifndef __IWineD3DDevice_FWD_DEFINED__
2597#define __IWineD3DDevice_FWD_DEFINED__
2598typedef interface IWineD3DDevice IWineD3DDevice;
2599#endif
2600
2601/*****************************************************************************
2602 * IWineD3DDeviceParent interface
2603 */
2604#ifndef __IWineD3DDeviceParent_INTERFACE_DEFINED__
2605#define __IWineD3DDeviceParent_INTERFACE_DEFINED__
2606
2607DEFINE_GUID(IID_IWineD3DDeviceParent, 0xaeb62dfc, 0xbdcb, 0x4f02, 0x95,0x19, 0x1e,0xee,0xa0,0x0c,0x15,0xcd);
2608#if defined(__cplusplus) && !defined(CINTERFACE)
2609interface IWineD3DDeviceParent : public IUnknown
2610{
2611 virtual void STDMETHODCALLTYPE WineD3DDeviceCreated(
2612 IWineD3DDevice *device) = 0;
2613
2614 virtual HRESULT STDMETHODCALLTYPE CreateSurface(
2615 IUnknown *superior,
2616 UINT width,
2617 UINT height,
2618 WINED3DFORMAT format,
2619 DWORD usage,
2620 WINED3DPOOL pool,
2621 UINT level,
2622 WINED3DCUBEMAP_FACES face,
2623 IWineD3DSurface **surface) = 0;
2624
2625 virtual HRESULT STDMETHODCALLTYPE CreateRenderTarget(
2626 IUnknown *superior,
2627 UINT width,
2628 UINT height,
2629 WINED3DFORMAT format,
2630 WINED3DMULTISAMPLE_TYPE multisample_type,
2631 DWORD multisample_quality,
2632 BOOL lockable,
2633 IWineD3DSurface **surface) = 0;
2634
2635 virtual HRESULT STDMETHODCALLTYPE CreateDepthStencilSurface(
2636 IUnknown *superior,
2637 UINT width,
2638 UINT height,
2639 WINED3DFORMAT format,
2640 WINED3DMULTISAMPLE_TYPE multisample_type,
2641 DWORD multisample_quality,
2642 BOOL discard,
2643 IWineD3DSurface **surface) = 0;
2644
2645 virtual HRESULT STDMETHODCALLTYPE CreateVolume(
2646 IUnknown *superior,
2647 UINT width,
2648 UINT height,
2649 UINT depth,
2650 WINED3DFORMAT format,
2651 WINED3DPOOL pool,
2652 DWORD usage,
2653 IWineD3DVolume **volume) = 0;
2654
2655 virtual HRESULT STDMETHODCALLTYPE CreateSwapChain(
2656 WINED3DPRESENT_PARAMETERS *present_parameters,
2657 IWineD3DSwapChain **swapchain) = 0;
2658
2659};
2660#else
2661typedef struct IWineD3DDeviceParentVtbl {
2662 BEGIN_INTERFACE
2663
2664 /*** IUnknown methods ***/
2665 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
2666 IWineD3DDeviceParent* This,
2667 REFIID riid,
2668 void **ppvObject);
2669
2670 ULONG (STDMETHODCALLTYPE *AddRef)(
2671 IWineD3DDeviceParent* This);
2672
2673 ULONG (STDMETHODCALLTYPE *Release)(
2674 IWineD3DDeviceParent* This);
2675
2676 /*** IWineD3DDeviceParent methods ***/
2677 void (STDMETHODCALLTYPE *WineD3DDeviceCreated)(
2678 IWineD3DDeviceParent* This,
2679 IWineD3DDevice *device);
2680
2681 HRESULT (STDMETHODCALLTYPE *CreateSurface)(
2682 IWineD3DDeviceParent* This,
2683 IUnknown *superior,
2684 UINT width,
2685 UINT height,
2686 WINED3DFORMAT format,
2687 DWORD usage,
2688 WINED3DPOOL pool,
2689 UINT level,
2690 WINED3DCUBEMAP_FACES face,
2691 IWineD3DSurface **surface
2692#ifdef VBOX_WITH_WDDM
2693 , HANDLE *shared_handle
2694 , void *pvClientMem
2695#endif
2696 );
2697
2698 HRESULT (STDMETHODCALLTYPE *CreateRenderTarget)(
2699 IWineD3DDeviceParent* This,
2700 IUnknown *superior,
2701 UINT width,
2702 UINT height,
2703 WINED3DFORMAT format,
2704 WINED3DMULTISAMPLE_TYPE multisample_type,
2705 DWORD multisample_quality,
2706 BOOL lockable,
2707 IWineD3DSurface **surface);
2708
2709 HRESULT (STDMETHODCALLTYPE *CreateDepthStencilSurface)(
2710 IWineD3DDeviceParent* This,
2711 IUnknown *superior,
2712 UINT width,
2713 UINT height,
2714 WINED3DFORMAT format,
2715 WINED3DMULTISAMPLE_TYPE multisample_type,
2716 DWORD multisample_quality,
2717 BOOL discard,
2718 IWineD3DSurface **surface);
2719
2720 HRESULT (STDMETHODCALLTYPE *CreateVolume)(
2721 IWineD3DDeviceParent* This,
2722 IUnknown *superior,
2723 UINT width,
2724 UINT height,
2725 UINT depth,
2726 WINED3DFORMAT format,
2727 WINED3DPOOL pool,
2728 DWORD usage,
2729 IWineD3DVolume **volume);
2730
2731 HRESULT (STDMETHODCALLTYPE *CreateSwapChain)(
2732 IWineD3DDeviceParent* This,
2733 WINED3DPRESENT_PARAMETERS *present_parameters,
2734 IWineD3DSwapChain **swapchain);
2735
2736 END_INTERFACE
2737} IWineD3DDeviceParentVtbl;
2738interface IWineD3DDeviceParent {
2739 CONST_VTBL IWineD3DDeviceParentVtbl* lpVtbl;
2740};
2741
2742#ifdef COBJMACROS
2743/*** IUnknown methods ***/
2744#define IWineD3DDeviceParent_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
2745#define IWineD3DDeviceParent_AddRef(This) (This)->lpVtbl->AddRef(This)
2746#define IWineD3DDeviceParent_Release(This) (This)->lpVtbl->Release(This)
2747/*** IWineD3DDeviceParent methods ***/
2748#define IWineD3DDeviceParent_WineD3DDeviceCreated(This,device) (This)->lpVtbl->WineD3DDeviceCreated(This,device)
2749#ifdef VBOX_WITH_WDDM
2750#define IWineD3DDeviceParent_CreateSurface(This,superior,width,height,format,usage,pool,level,face,surface,shared_handle,pvClientMem) (This)->lpVtbl->CreateSurface(This,superior,width,height,format,usage,pool,level,face,surface,shared_handle,pvClientMem)
2751#else
2752#define IWineD3DDeviceParent_CreateSurface(This,superior,width,height,format,usage,pool,level,face,surface) (This)->lpVtbl->CreateSurface(This,superior,width,height,format,usage,pool,level,face,surface)
2753#endif
2754#define IWineD3DDeviceParent_CreateRenderTarget(This,superior,width,height,format,multisample_type,multisample_quality,lockable,surface) (This)->lpVtbl->CreateRenderTarget(This,superior,width,height,format,multisample_type,multisample_quality,lockable,surface)
2755#define IWineD3DDeviceParent_CreateDepthStencilSurface(This,superior,width,height,format,multisample_type,multisample_quality,discard,surface) (This)->lpVtbl->CreateDepthStencilSurface(This,superior,width,height,format,multisample_type,multisample_quality,discard,surface)
2756#define IWineD3DDeviceParent_CreateVolume(This,superior,width,height,depth,format,pool,usage,volume) (This)->lpVtbl->CreateVolume(This,superior,width,height,depth,format,pool,usage,volume)
2757#define IWineD3DDeviceParent_CreateSwapChain(This,present_parameters,swapchain) (This)->lpVtbl->CreateSwapChain(This,present_parameters,swapchain)
2758#endif
2759
2760#endif
2761
2762void STDMETHODCALLTYPE IWineD3DDeviceParent_WineD3DDeviceCreated_Proxy(
2763 IWineD3DDeviceParent* This,
2764 IWineD3DDevice *device);
2765void __RPC_STUB IWineD3DDeviceParent_WineD3DDeviceCreated_Stub(
2766 IRpcStubBuffer* This,
2767 IRpcChannelBuffer* pRpcChannelBuffer,
2768 PRPC_MESSAGE pRpcMessage,
2769 DWORD* pdwStubPhase);
2770HRESULT STDMETHODCALLTYPE IWineD3DDeviceParent_CreateSurface_Proxy(
2771 IWineD3DDeviceParent* This,
2772 IUnknown *superior,
2773 UINT width,
2774 UINT height,
2775 WINED3DFORMAT format,
2776 DWORD usage,
2777 WINED3DPOOL pool,
2778 UINT level,
2779 WINED3DCUBEMAP_FACES face,
2780 IWineD3DSurface **surface);
2781void __RPC_STUB IWineD3DDeviceParent_CreateSurface_Stub(
2782 IRpcStubBuffer* This,
2783 IRpcChannelBuffer* pRpcChannelBuffer,
2784 PRPC_MESSAGE pRpcMessage,
2785 DWORD* pdwStubPhase);
2786HRESULT STDMETHODCALLTYPE IWineD3DDeviceParent_CreateRenderTarget_Proxy(
2787 IWineD3DDeviceParent* This,
2788 IUnknown *superior,
2789 UINT width,
2790 UINT height,
2791 WINED3DFORMAT format,
2792 WINED3DMULTISAMPLE_TYPE multisample_type,
2793 DWORD multisample_quality,
2794 BOOL lockable,
2795 IWineD3DSurface **surface);
2796void __RPC_STUB IWineD3DDeviceParent_CreateRenderTarget_Stub(
2797 IRpcStubBuffer* This,
2798 IRpcChannelBuffer* pRpcChannelBuffer,
2799 PRPC_MESSAGE pRpcMessage,
2800 DWORD* pdwStubPhase);
2801HRESULT STDMETHODCALLTYPE IWineD3DDeviceParent_CreateDepthStencilSurface_Proxy(
2802 IWineD3DDeviceParent* This,
2803 IUnknown *superior,
2804 UINT width,
2805 UINT height,
2806 WINED3DFORMAT format,
2807 WINED3DMULTISAMPLE_TYPE multisample_type,
2808 DWORD multisample_quality,
2809 BOOL discard,
2810 IWineD3DSurface **surface);
2811void __RPC_STUB IWineD3DDeviceParent_CreateDepthStencilSurface_Stub(
2812 IRpcStubBuffer* This,
2813 IRpcChannelBuffer* pRpcChannelBuffer,
2814 PRPC_MESSAGE pRpcMessage,
2815 DWORD* pdwStubPhase);
2816HRESULT STDMETHODCALLTYPE IWineD3DDeviceParent_CreateVolume_Proxy(
2817 IWineD3DDeviceParent* This,
2818 IUnknown *superior,
2819 UINT width,
2820 UINT height,
2821 UINT depth,
2822 WINED3DFORMAT format,
2823 WINED3DPOOL pool,
2824 DWORD usage,
2825 IWineD3DVolume **volume);
2826void __RPC_STUB IWineD3DDeviceParent_CreateVolume_Stub(
2827 IRpcStubBuffer* This,
2828 IRpcChannelBuffer* pRpcChannelBuffer,
2829 PRPC_MESSAGE pRpcMessage,
2830 DWORD* pdwStubPhase);
2831HRESULT STDMETHODCALLTYPE IWineD3DDeviceParent_CreateSwapChain_Proxy(
2832 IWineD3DDeviceParent* This,
2833 WINED3DPRESENT_PARAMETERS *present_parameters,
2834 IWineD3DSwapChain **swapchain);
2835void __RPC_STUB IWineD3DDeviceParent_CreateSwapChain_Stub(
2836 IRpcStubBuffer* This,
2837 IRpcChannelBuffer* pRpcChannelBuffer,
2838 PRPC_MESSAGE pRpcMessage,
2839 DWORD* pdwStubPhase);
2840
2841#endif /* __IWineD3DDeviceParent_INTERFACE_DEFINED__ */
2842
2843typedef ULONG (STDMETHODCALLTYPE *D3DCB_DESTROYSWAPCHAINFN)(IWineD3DSwapChain *pSwapChain);
2844typedef HRESULT (STDMETHODCALLTYPE *D3DCB_ENUMRESOURCES)(IWineD3DResource *resource,void *pData);
2845/*****************************************************************************
2846 * IWineD3DBase interface
2847 */
2848#ifndef __IWineD3DBase_INTERFACE_DEFINED__
2849#define __IWineD3DBase_INTERFACE_DEFINED__
2850
2851DEFINE_GUID(IID_IWineD3DBase, 0x46799311, 0x8e0e, 0x40ce, 0xb2,0xec, 0xdd,0xb9,0x9f,0x18,0xfc,0xb4);
2852#if defined(__cplusplus) && !defined(CINTERFACE)
2853interface IWineD3DBase : public IUnknown
2854{
2855 virtual HRESULT STDMETHODCALLTYPE GetParent(
2856 IUnknown **parent) = 0;
2857
2858};
2859#else
2860typedef struct IWineD3DBaseVtbl {
2861 BEGIN_INTERFACE
2862
2863 /*** IUnknown methods ***/
2864 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
2865 IWineD3DBase* This,
2866 REFIID riid,
2867 void **ppvObject);
2868
2869 ULONG (STDMETHODCALLTYPE *AddRef)(
2870 IWineD3DBase* This);
2871
2872 ULONG (STDMETHODCALLTYPE *Release)(
2873 IWineD3DBase* This);
2874
2875 /*** IWineD3DBase methods ***/
2876 HRESULT (STDMETHODCALLTYPE *GetParent)(
2877 IWineD3DBase* This,
2878 IUnknown **parent);
2879
2880 END_INTERFACE
2881} IWineD3DBaseVtbl;
2882interface IWineD3DBase {
2883 CONST_VTBL IWineD3DBaseVtbl* lpVtbl;
2884};
2885
2886#ifdef COBJMACROS
2887/*** IUnknown methods ***/
2888#define IWineD3DBase_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
2889#define IWineD3DBase_AddRef(This) (This)->lpVtbl->AddRef(This)
2890#define IWineD3DBase_Release(This) (This)->lpVtbl->Release(This)
2891/*** IWineD3DBase methods ***/
2892#define IWineD3DBase_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
2893#endif
2894
2895#endif
2896
2897HRESULT STDMETHODCALLTYPE IWineD3DBase_GetParent_Proxy(
2898 IWineD3DBase* This,
2899 IUnknown **parent);
2900void __RPC_STUB IWineD3DBase_GetParent_Stub(
2901 IRpcStubBuffer* This,
2902 IRpcChannelBuffer* pRpcChannelBuffer,
2903 PRPC_MESSAGE pRpcMessage,
2904 DWORD* pdwStubPhase);
2905
2906#endif /* __IWineD3DBase_INTERFACE_DEFINED__ */
2907
2908/*****************************************************************************
2909 * IWineD3D interface
2910 */
2911#ifndef __IWineD3D_INTERFACE_DEFINED__
2912#define __IWineD3D_INTERFACE_DEFINED__
2913
2914DEFINE_GUID(IID_IWineD3D, 0x108f9c44, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
2915#if defined(__cplusplus) && !defined(CINTERFACE)
2916interface IWineD3D : public IWineD3DBase
2917{
2918 virtual UINT STDMETHODCALLTYPE GetAdapterCount(
2919 ) = 0;
2920
2921 virtual HRESULT STDMETHODCALLTYPE RegisterSoftwareDevice(
2922 void *pInitializeFunction) = 0;
2923
2924 virtual HMONITOR STDMETHODCALLTYPE GetAdapterMonitor(
2925 UINT adapter_idx) = 0;
2926
2927 virtual UINT STDMETHODCALLTYPE GetAdapterModeCount(
2928 UINT adapter_idx,
2929 WINED3DFORMAT format) = 0;
2930
2931 virtual HRESULT STDMETHODCALLTYPE EnumAdapterModes(
2932 UINT adapter_idx,
2933 WINED3DFORMAT format,
2934 UINT mode_idx,
2935 WINED3DDISPLAYMODE *mode) = 0;
2936
2937 virtual HRESULT STDMETHODCALLTYPE GetAdapterDisplayMode(
2938 UINT adapter_idx,
2939 WINED3DDISPLAYMODE *mode) = 0;
2940
2941 virtual HRESULT STDMETHODCALLTYPE GetAdapterIdentifier(
2942 UINT adapter_idx,
2943 DWORD flags,
2944 WINED3DADAPTER_IDENTIFIER *identifier) = 0;
2945
2946 virtual HRESULT STDMETHODCALLTYPE CheckDeviceMultiSampleType(
2947 UINT adapter_idx,
2948 WINED3DDEVTYPE device_type,
2949 WINED3DFORMAT surface_format,
2950 BOOL windowed,
2951 WINED3DMULTISAMPLE_TYPE multisample_type,
2952 DWORD *quality_levels) = 0;
2953
2954 virtual HRESULT STDMETHODCALLTYPE CheckDepthStencilMatch(
2955 UINT adapter_idx,
2956 WINED3DDEVTYPE device_type,
2957 WINED3DFORMAT adapter_format,
2958 WINED3DFORMAT render_target_format,
2959 WINED3DFORMAT depth_stencil_format) = 0;
2960
2961 virtual HRESULT STDMETHODCALLTYPE CheckDeviceType(
2962 UINT adapter_idx,
2963 WINED3DDEVTYPE device_type,
2964 WINED3DFORMAT display_format,
2965 WINED3DFORMAT backbuffer_format,
2966 BOOL windowed) = 0;
2967
2968 virtual HRESULT STDMETHODCALLTYPE CheckDeviceFormat(
2969 UINT adaper_idx,
2970 WINED3DDEVTYPE device_type,
2971 WINED3DFORMAT adapter_format,
2972 DWORD usage,
2973 WINED3DRESOURCETYPE resource_type,
2974 WINED3DFORMAT check_format,
2975 WINED3DSURFTYPE surface_type) = 0;
2976
2977 virtual HRESULT STDMETHODCALLTYPE CheckDeviceFormatConversion(
2978 UINT adapter_idx,
2979 WINED3DDEVTYPE device_type,
2980 WINED3DFORMAT source_format,
2981 WINED3DFORMAT target_format) = 0;
2982
2983 virtual HRESULT STDMETHODCALLTYPE GetDeviceCaps(
2984 UINT adapter_idx,
2985 WINED3DDEVTYPE device_type,
2986 WINED3DCAPS *caps) = 0;
2987
2988 virtual HRESULT STDMETHODCALLTYPE CreateDevice(
2989 UINT adapter_idx,
2990 WINED3DDEVTYPE device_type,
2991 HWND focus_window,
2992 DWORD behaviour_flags,
2993 IUnknown *parent,
2994 IWineD3DDeviceParent *device_parent,
2995 IWineD3DDevice **device) = 0;
2996
2997};
2998#else
2999typedef struct IWineD3DVtbl {
3000 BEGIN_INTERFACE
3001
3002 /*** IUnknown methods ***/
3003 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
3004 IWineD3D* This,
3005 REFIID riid,
3006 void **ppvObject);
3007
3008 ULONG (STDMETHODCALLTYPE *AddRef)(
3009 IWineD3D* This);
3010
3011 ULONG (STDMETHODCALLTYPE *Release)(
3012 IWineD3D* This);
3013
3014 /*** IWineD3DBase methods ***/
3015 HRESULT (STDMETHODCALLTYPE *GetParent)(
3016 IWineD3D* This,
3017 IUnknown **parent);
3018
3019 /*** IWineD3D methods ***/
3020 UINT (STDMETHODCALLTYPE *GetAdapterCount)(
3021 IWineD3D* This);
3022
3023 HRESULT (STDMETHODCALLTYPE *RegisterSoftwareDevice)(
3024 IWineD3D* This,
3025 void *pInitializeFunction);
3026
3027 HMONITOR (STDMETHODCALLTYPE *GetAdapterMonitor)(
3028 IWineD3D* This,
3029 UINT adapter_idx);
3030
3031 UINT (STDMETHODCALLTYPE *GetAdapterModeCount)(
3032 IWineD3D* This,
3033 UINT adapter_idx,
3034 WINED3DFORMAT format);
3035
3036 HRESULT (STDMETHODCALLTYPE *EnumAdapterModes)(
3037 IWineD3D* This,
3038 UINT adapter_idx,
3039 WINED3DFORMAT format,
3040 UINT mode_idx,
3041 WINED3DDISPLAYMODE *mode);
3042
3043 HRESULT (STDMETHODCALLTYPE *GetAdapterDisplayMode)(
3044 IWineD3D* This,
3045 UINT adapter_idx,
3046 WINED3DDISPLAYMODE *mode);
3047
3048 HRESULT (STDMETHODCALLTYPE *GetAdapterIdentifier)(
3049 IWineD3D* This,
3050 UINT adapter_idx,
3051 DWORD flags,
3052 WINED3DADAPTER_IDENTIFIER *identifier);
3053
3054 HRESULT (STDMETHODCALLTYPE *CheckDeviceMultiSampleType)(
3055 IWineD3D* This,
3056 UINT adapter_idx,
3057 WINED3DDEVTYPE device_type,
3058 WINED3DFORMAT surface_format,
3059 BOOL windowed,
3060 WINED3DMULTISAMPLE_TYPE multisample_type,
3061 DWORD *quality_levels);
3062
3063 HRESULT (STDMETHODCALLTYPE *CheckDepthStencilMatch)(
3064 IWineD3D* This,
3065 UINT adapter_idx,
3066 WINED3DDEVTYPE device_type,
3067 WINED3DFORMAT adapter_format,
3068 WINED3DFORMAT render_target_format,
3069 WINED3DFORMAT depth_stencil_format);
3070
3071 HRESULT (STDMETHODCALLTYPE *CheckDeviceType)(
3072 IWineD3D* This,
3073 UINT adapter_idx,
3074 WINED3DDEVTYPE device_type,
3075 WINED3DFORMAT display_format,
3076 WINED3DFORMAT backbuffer_format,
3077 BOOL windowed);
3078
3079 HRESULT (STDMETHODCALLTYPE *CheckDeviceFormat)(
3080 IWineD3D* This,
3081 UINT adaper_idx,
3082 WINED3DDEVTYPE device_type,
3083 WINED3DFORMAT adapter_format,
3084 DWORD usage,
3085 WINED3DRESOURCETYPE resource_type,
3086 WINED3DFORMAT check_format,
3087 WINED3DSURFTYPE surface_type);
3088
3089 HRESULT (STDMETHODCALLTYPE *CheckDeviceFormatConversion)(
3090 IWineD3D* This,
3091 UINT adapter_idx,
3092 WINED3DDEVTYPE device_type,
3093 WINED3DFORMAT source_format,
3094 WINED3DFORMAT target_format);
3095
3096 HRESULT (STDMETHODCALLTYPE *GetDeviceCaps)(
3097 IWineD3D* This,
3098 UINT adapter_idx,
3099 WINED3DDEVTYPE device_type,
3100 WINED3DCAPS *caps);
3101
3102 HRESULT (STDMETHODCALLTYPE *CreateDevice)(
3103 IWineD3D* This,
3104 UINT adapter_idx,
3105 WINED3DDEVTYPE device_type,
3106 HWND focus_window,
3107 DWORD behaviour_flags,
3108 IUnknown *parent,
3109 IWineD3DDeviceParent *device_parent,
3110 IWineD3DDevice **device);
3111
3112 END_INTERFACE
3113} IWineD3DVtbl;
3114interface IWineD3D {
3115 CONST_VTBL IWineD3DVtbl* lpVtbl;
3116};
3117
3118#ifdef COBJMACROS
3119/*** IUnknown methods ***/
3120#define IWineD3D_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
3121#define IWineD3D_AddRef(This) (This)->lpVtbl->AddRef(This)
3122#define IWineD3D_Release(This) (This)->lpVtbl->Release(This)
3123/*** IWineD3DBase methods ***/
3124#define IWineD3D_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
3125/*** IWineD3D methods ***/
3126#define IWineD3D_GetAdapterCount(This) (This)->lpVtbl->GetAdapterCount(This)
3127#define IWineD3D_RegisterSoftwareDevice(This,pInitializeFunction) (This)->lpVtbl->RegisterSoftwareDevice(This,pInitializeFunction)
3128#define IWineD3D_GetAdapterMonitor(This,adapter_idx) (This)->lpVtbl->GetAdapterMonitor(This,adapter_idx)
3129#define IWineD3D_GetAdapterModeCount(This,adapter_idx,format) (This)->lpVtbl->GetAdapterModeCount(This,adapter_idx,format)
3130#define IWineD3D_EnumAdapterModes(This,adapter_idx,format,mode_idx,mode) (This)->lpVtbl->EnumAdapterModes(This,adapter_idx,format,mode_idx,mode)
3131#define IWineD3D_GetAdapterDisplayMode(This,adapter_idx,mode) (This)->lpVtbl->GetAdapterDisplayMode(This,adapter_idx,mode)
3132#define IWineD3D_GetAdapterIdentifier(This,adapter_idx,flags,identifier) (This)->lpVtbl->GetAdapterIdentifier(This,adapter_idx,flags,identifier)
3133#define IWineD3D_CheckDeviceMultiSampleType(This,adapter_idx,device_type,surface_format,windowed,multisample_type,quality_levels) (This)->lpVtbl->CheckDeviceMultiSampleType(This,adapter_idx,device_type,surface_format,windowed,multisample_type,quality_levels)
3134#define IWineD3D_CheckDepthStencilMatch(This,adapter_idx,device_type,adapter_format,render_target_format,depth_stencil_format) (This)->lpVtbl->CheckDepthStencilMatch(This,adapter_idx,device_type,adapter_format,render_target_format,depth_stencil_format)
3135#define IWineD3D_CheckDeviceType(This,adapter_idx,device_type,display_format,backbuffer_format,windowed) (This)->lpVtbl->CheckDeviceType(This,adapter_idx,device_type,display_format,backbuffer_format,windowed)
3136#define IWineD3D_CheckDeviceFormat(This,adaper_idx,device_type,adapter_format,usage,resource_type,check_format,surface_type) (This)->lpVtbl->CheckDeviceFormat(This,adaper_idx,device_type,adapter_format,usage,resource_type,check_format,surface_type)
3137#define IWineD3D_CheckDeviceFormatConversion(This,adapter_idx,device_type,source_format,target_format) (This)->lpVtbl->CheckDeviceFormatConversion(This,adapter_idx,device_type,source_format,target_format)
3138#define IWineD3D_GetDeviceCaps(This,adapter_idx,device_type,caps) (This)->lpVtbl->GetDeviceCaps(This,adapter_idx,device_type,caps)
3139#define IWineD3D_CreateDevice(This,adapter_idx,device_type,focus_window,behaviour_flags,parent,device_parent,device) (This)->lpVtbl->CreateDevice(This,adapter_idx,device_type,focus_window,behaviour_flags,parent,device_parent,device)
3140#endif
3141
3142#endif
3143
3144UINT STDMETHODCALLTYPE IWineD3D_GetAdapterCount_Proxy(
3145 IWineD3D* This);
3146void __RPC_STUB IWineD3D_GetAdapterCount_Stub(
3147 IRpcStubBuffer* This,
3148 IRpcChannelBuffer* pRpcChannelBuffer,
3149 PRPC_MESSAGE pRpcMessage,
3150 DWORD* pdwStubPhase);
3151HRESULT STDMETHODCALLTYPE IWineD3D_RegisterSoftwareDevice_Proxy(
3152 IWineD3D* This,
3153 void *pInitializeFunction);
3154void __RPC_STUB IWineD3D_RegisterSoftwareDevice_Stub(
3155 IRpcStubBuffer* This,
3156 IRpcChannelBuffer* pRpcChannelBuffer,
3157 PRPC_MESSAGE pRpcMessage,
3158 DWORD* pdwStubPhase);
3159HMONITOR STDMETHODCALLTYPE IWineD3D_GetAdapterMonitor_Proxy(
3160 IWineD3D* This,
3161 UINT adapter_idx);
3162void __RPC_STUB IWineD3D_GetAdapterMonitor_Stub(
3163 IRpcStubBuffer* This,
3164 IRpcChannelBuffer* pRpcChannelBuffer,
3165 PRPC_MESSAGE pRpcMessage,
3166 DWORD* pdwStubPhase);
3167UINT STDMETHODCALLTYPE IWineD3D_GetAdapterModeCount_Proxy(
3168 IWineD3D* This,
3169 UINT adapter_idx,
3170 WINED3DFORMAT format);
3171void __RPC_STUB IWineD3D_GetAdapterModeCount_Stub(
3172 IRpcStubBuffer* This,
3173 IRpcChannelBuffer* pRpcChannelBuffer,
3174 PRPC_MESSAGE pRpcMessage,
3175 DWORD* pdwStubPhase);
3176HRESULT STDMETHODCALLTYPE IWineD3D_EnumAdapterModes_Proxy(
3177 IWineD3D* This,
3178 UINT adapter_idx,
3179 WINED3DFORMAT format,
3180 UINT mode_idx,
3181 WINED3DDISPLAYMODE *mode);
3182void __RPC_STUB IWineD3D_EnumAdapterModes_Stub(
3183 IRpcStubBuffer* This,
3184 IRpcChannelBuffer* pRpcChannelBuffer,
3185 PRPC_MESSAGE pRpcMessage,
3186 DWORD* pdwStubPhase);
3187HRESULT STDMETHODCALLTYPE IWineD3D_GetAdapterDisplayMode_Proxy(
3188 IWineD3D* This,
3189 UINT adapter_idx,
3190 WINED3DDISPLAYMODE *mode);
3191void __RPC_STUB IWineD3D_GetAdapterDisplayMode_Stub(
3192 IRpcStubBuffer* This,
3193 IRpcChannelBuffer* pRpcChannelBuffer,
3194 PRPC_MESSAGE pRpcMessage,
3195 DWORD* pdwStubPhase);
3196HRESULT STDMETHODCALLTYPE IWineD3D_GetAdapterIdentifier_Proxy(
3197 IWineD3D* This,
3198 UINT adapter_idx,
3199 DWORD flags,
3200 WINED3DADAPTER_IDENTIFIER *identifier);
3201void __RPC_STUB IWineD3D_GetAdapterIdentifier_Stub(
3202 IRpcStubBuffer* This,
3203 IRpcChannelBuffer* pRpcChannelBuffer,
3204 PRPC_MESSAGE pRpcMessage,
3205 DWORD* pdwStubPhase);
3206HRESULT STDMETHODCALLTYPE IWineD3D_CheckDeviceMultiSampleType_Proxy(
3207 IWineD3D* This,
3208 UINT adapter_idx,
3209 WINED3DDEVTYPE device_type,
3210 WINED3DFORMAT surface_format,
3211 BOOL windowed,
3212 WINED3DMULTISAMPLE_TYPE multisample_type,
3213 DWORD *quality_levels);
3214void __RPC_STUB IWineD3D_CheckDeviceMultiSampleType_Stub(
3215 IRpcStubBuffer* This,
3216 IRpcChannelBuffer* pRpcChannelBuffer,
3217 PRPC_MESSAGE pRpcMessage,
3218 DWORD* pdwStubPhase);
3219HRESULT STDMETHODCALLTYPE IWineD3D_CheckDepthStencilMatch_Proxy(
3220 IWineD3D* This,
3221 UINT adapter_idx,
3222 WINED3DDEVTYPE device_type,
3223 WINED3DFORMAT adapter_format,
3224 WINED3DFORMAT render_target_format,
3225 WINED3DFORMAT depth_stencil_format);
3226void __RPC_STUB IWineD3D_CheckDepthStencilMatch_Stub(
3227 IRpcStubBuffer* This,
3228 IRpcChannelBuffer* pRpcChannelBuffer,
3229 PRPC_MESSAGE pRpcMessage,
3230 DWORD* pdwStubPhase);
3231HRESULT STDMETHODCALLTYPE IWineD3D_CheckDeviceType_Proxy(
3232 IWineD3D* This,
3233 UINT adapter_idx,
3234 WINED3DDEVTYPE device_type,
3235 WINED3DFORMAT display_format,
3236 WINED3DFORMAT backbuffer_format,
3237 BOOL windowed);
3238void __RPC_STUB IWineD3D_CheckDeviceType_Stub(
3239 IRpcStubBuffer* This,
3240 IRpcChannelBuffer* pRpcChannelBuffer,
3241 PRPC_MESSAGE pRpcMessage,
3242 DWORD* pdwStubPhase);
3243HRESULT STDMETHODCALLTYPE IWineD3D_CheckDeviceFormat_Proxy(
3244 IWineD3D* This,
3245 UINT adaper_idx,
3246 WINED3DDEVTYPE device_type,
3247 WINED3DFORMAT adapter_format,
3248 DWORD usage,
3249 WINED3DRESOURCETYPE resource_type,
3250 WINED3DFORMAT check_format,
3251 WINED3DSURFTYPE surface_type);
3252void __RPC_STUB IWineD3D_CheckDeviceFormat_Stub(
3253 IRpcStubBuffer* This,
3254 IRpcChannelBuffer* pRpcChannelBuffer,
3255 PRPC_MESSAGE pRpcMessage,
3256 DWORD* pdwStubPhase);
3257HRESULT STDMETHODCALLTYPE IWineD3D_CheckDeviceFormatConversion_Proxy(
3258 IWineD3D* This,
3259 UINT adapter_idx,
3260 WINED3DDEVTYPE device_type,
3261 WINED3DFORMAT source_format,
3262 WINED3DFORMAT target_format);
3263void __RPC_STUB IWineD3D_CheckDeviceFormatConversion_Stub(
3264 IRpcStubBuffer* This,
3265 IRpcChannelBuffer* pRpcChannelBuffer,
3266 PRPC_MESSAGE pRpcMessage,
3267 DWORD* pdwStubPhase);
3268HRESULT STDMETHODCALLTYPE IWineD3D_GetDeviceCaps_Proxy(
3269 IWineD3D* This,
3270 UINT adapter_idx,
3271 WINED3DDEVTYPE device_type,
3272 WINED3DCAPS *caps);
3273void __RPC_STUB IWineD3D_GetDeviceCaps_Stub(
3274 IRpcStubBuffer* This,
3275 IRpcChannelBuffer* pRpcChannelBuffer,
3276 PRPC_MESSAGE pRpcMessage,
3277 DWORD* pdwStubPhase);
3278HRESULT STDMETHODCALLTYPE IWineD3D_CreateDevice_Proxy(
3279 IWineD3D* This,
3280 UINT adapter_idx,
3281 WINED3DDEVTYPE device_type,
3282 HWND focus_window,
3283 DWORD behaviour_flags,
3284 IUnknown *parent,
3285 IWineD3DDeviceParent *device_parent,
3286 IWineD3DDevice **device);
3287void __RPC_STUB IWineD3D_CreateDevice_Stub(
3288 IRpcStubBuffer* This,
3289 IRpcChannelBuffer* pRpcChannelBuffer,
3290 PRPC_MESSAGE pRpcMessage,
3291 DWORD* pdwStubPhase);
3292
3293#endif /* __IWineD3D_INTERFACE_DEFINED__ */
3294
3295/*****************************************************************************
3296 * IWineD3DResource interface
3297 */
3298#ifndef __IWineD3DResource_INTERFACE_DEFINED__
3299#define __IWineD3DResource_INTERFACE_DEFINED__
3300
3301DEFINE_GUID(IID_IWineD3DResource, 0x1f3bfb34, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
3302#if defined(__cplusplus) && !defined(CINTERFACE)
3303interface IWineD3DResource : public IWineD3DBase
3304{
3305 virtual HRESULT STDMETHODCALLTYPE SetPrivateData(
3306 REFGUID guid,
3307 const void *data,
3308 DWORD data_size,
3309 DWORD flags) = 0;
3310
3311 virtual HRESULT STDMETHODCALLTYPE GetPrivateData(
3312 REFGUID guid,
3313 void *data,
3314 DWORD *data_size) = 0;
3315
3316 virtual HRESULT STDMETHODCALLTYPE FreePrivateData(
3317 REFGUID guid) = 0;
3318
3319 virtual DWORD STDMETHODCALLTYPE SetPriority(
3320 DWORD new_priority) = 0;
3321
3322 virtual DWORD STDMETHODCALLTYPE GetPriority(
3323 ) = 0;
3324
3325 virtual void STDMETHODCALLTYPE PreLoad(
3326 ) = 0;
3327
3328 virtual void STDMETHODCALLTYPE UnLoad(
3329 ) = 0;
3330
3331 virtual WINED3DRESOURCETYPE STDMETHODCALLTYPE GetType(
3332 ) = 0;
3333
3334};
3335#else
3336typedef struct IWineD3DResourceVtbl {
3337 BEGIN_INTERFACE
3338
3339 /*** IUnknown methods ***/
3340 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
3341 IWineD3DResource* This,
3342 REFIID riid,
3343 void **ppvObject);
3344
3345 ULONG (STDMETHODCALLTYPE *AddRef)(
3346 IWineD3DResource* This);
3347
3348 ULONG (STDMETHODCALLTYPE *Release)(
3349 IWineD3DResource* This);
3350
3351 /*** IWineD3DBase methods ***/
3352 HRESULT (STDMETHODCALLTYPE *GetParent)(
3353 IWineD3DResource* This,
3354 IUnknown **parent);
3355
3356 /*** IWineD3DResource methods ***/
3357 HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
3358 IWineD3DResource* This,
3359 REFGUID guid,
3360 const void *data,
3361 DWORD data_size,
3362 DWORD flags);
3363
3364 HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
3365 IWineD3DResource* This,
3366 REFGUID guid,
3367 void *data,
3368 DWORD *data_size);
3369
3370 HRESULT (STDMETHODCALLTYPE *FreePrivateData)(
3371 IWineD3DResource* This,
3372 REFGUID guid);
3373
3374 DWORD (STDMETHODCALLTYPE *SetPriority)(
3375 IWineD3DResource* This,
3376 DWORD new_priority);
3377
3378 DWORD (STDMETHODCALLTYPE *GetPriority)(
3379 IWineD3DResource* This);
3380
3381 void (STDMETHODCALLTYPE *PreLoad)(
3382 IWineD3DResource* This);
3383
3384 void (STDMETHODCALLTYPE *UnLoad)(
3385 IWineD3DResource* This);
3386
3387 WINED3DRESOURCETYPE (STDMETHODCALLTYPE *GetType)(
3388 IWineD3DResource* This);
3389
3390 END_INTERFACE
3391} IWineD3DResourceVtbl;
3392interface IWineD3DResource {
3393 CONST_VTBL IWineD3DResourceVtbl* lpVtbl;
3394};
3395
3396#ifdef COBJMACROS
3397/*** IUnknown methods ***/
3398#define IWineD3DResource_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
3399#define IWineD3DResource_AddRef(This) (This)->lpVtbl->AddRef(This)
3400#define IWineD3DResource_Release(This) (This)->lpVtbl->Release(This)
3401/*** IWineD3DBase methods ***/
3402#define IWineD3DResource_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
3403/*** IWineD3DResource methods ***/
3404#define IWineD3DResource_SetPrivateData(This,guid,data,data_size,flags) (This)->lpVtbl->SetPrivateData(This,guid,data,data_size,flags)
3405#define IWineD3DResource_GetPrivateData(This,guid,data,data_size) (This)->lpVtbl->GetPrivateData(This,guid,data,data_size)
3406#define IWineD3DResource_FreePrivateData(This,guid) (This)->lpVtbl->FreePrivateData(This,guid)
3407#define IWineD3DResource_SetPriority(This,new_priority) (This)->lpVtbl->SetPriority(This,new_priority)
3408#define IWineD3DResource_GetPriority(This) (This)->lpVtbl->GetPriority(This)
3409#define IWineD3DResource_PreLoad(This) (This)->lpVtbl->PreLoad(This)
3410#define IWineD3DResource_UnLoad(This) (This)->lpVtbl->UnLoad(This)
3411#define IWineD3DResource_GetType(This) (This)->lpVtbl->GetType(This)
3412#endif
3413
3414#endif
3415
3416HRESULT STDMETHODCALLTYPE IWineD3DResource_SetPrivateData_Proxy(
3417 IWineD3DResource* This,
3418 REFGUID guid,
3419 const void *data,
3420 DWORD data_size,
3421 DWORD flags);
3422void __RPC_STUB IWineD3DResource_SetPrivateData_Stub(
3423 IRpcStubBuffer* This,
3424 IRpcChannelBuffer* pRpcChannelBuffer,
3425 PRPC_MESSAGE pRpcMessage,
3426 DWORD* pdwStubPhase);
3427HRESULT STDMETHODCALLTYPE IWineD3DResource_GetPrivateData_Proxy(
3428 IWineD3DResource* This,
3429 REFGUID guid,
3430 void *data,
3431 DWORD *data_size);
3432void __RPC_STUB IWineD3DResource_GetPrivateData_Stub(
3433 IRpcStubBuffer* This,
3434 IRpcChannelBuffer* pRpcChannelBuffer,
3435 PRPC_MESSAGE pRpcMessage,
3436 DWORD* pdwStubPhase);
3437HRESULT STDMETHODCALLTYPE IWineD3DResource_FreePrivateData_Proxy(
3438 IWineD3DResource* This,
3439 REFGUID guid);
3440void __RPC_STUB IWineD3DResource_FreePrivateData_Stub(
3441 IRpcStubBuffer* This,
3442 IRpcChannelBuffer* pRpcChannelBuffer,
3443 PRPC_MESSAGE pRpcMessage,
3444 DWORD* pdwStubPhase);
3445DWORD STDMETHODCALLTYPE IWineD3DResource_SetPriority_Proxy(
3446 IWineD3DResource* This,
3447 DWORD new_priority);
3448void __RPC_STUB IWineD3DResource_SetPriority_Stub(
3449 IRpcStubBuffer* This,
3450 IRpcChannelBuffer* pRpcChannelBuffer,
3451 PRPC_MESSAGE pRpcMessage,
3452 DWORD* pdwStubPhase);
3453DWORD STDMETHODCALLTYPE IWineD3DResource_GetPriority_Proxy(
3454 IWineD3DResource* This);
3455void __RPC_STUB IWineD3DResource_GetPriority_Stub(
3456 IRpcStubBuffer* This,
3457 IRpcChannelBuffer* pRpcChannelBuffer,
3458 PRPC_MESSAGE pRpcMessage,
3459 DWORD* pdwStubPhase);
3460void STDMETHODCALLTYPE IWineD3DResource_PreLoad_Proxy(
3461 IWineD3DResource* This);
3462void __RPC_STUB IWineD3DResource_PreLoad_Stub(
3463 IRpcStubBuffer* This,
3464 IRpcChannelBuffer* pRpcChannelBuffer,
3465 PRPC_MESSAGE pRpcMessage,
3466 DWORD* pdwStubPhase);
3467void STDMETHODCALLTYPE IWineD3DResource_UnLoad_Proxy(
3468 IWineD3DResource* This);
3469void __RPC_STUB IWineD3DResource_UnLoad_Stub(
3470 IRpcStubBuffer* This,
3471 IRpcChannelBuffer* pRpcChannelBuffer,
3472 PRPC_MESSAGE pRpcMessage,
3473 DWORD* pdwStubPhase);
3474WINED3DRESOURCETYPE STDMETHODCALLTYPE IWineD3DResource_GetType_Proxy(
3475 IWineD3DResource* This);
3476void __RPC_STUB IWineD3DResource_GetType_Stub(
3477 IRpcStubBuffer* This,
3478 IRpcChannelBuffer* pRpcChannelBuffer,
3479 PRPC_MESSAGE pRpcMessage,
3480 DWORD* pdwStubPhase);
3481
3482#endif /* __IWineD3DResource_INTERFACE_DEFINED__ */
3483
3484/*****************************************************************************
3485 * IWineD3DRendertargetView interface
3486 */
3487#ifndef __IWineD3DRendertargetView_INTERFACE_DEFINED__
3488#define __IWineD3DRendertargetView_INTERFACE_DEFINED__
3489
3490DEFINE_GUID(IID_IWineD3DRendertargetView, 0xf7d8abf4, 0xfb93, 0x43e4, 0x9c,0x96, 0x46,0x18,0xcf,0x9b,0x3c,0xbc);
3491#if defined(__cplusplus) && !defined(CINTERFACE)
3492interface IWineD3DRendertargetView : public IWineD3DBase
3493{
3494 virtual HRESULT STDMETHODCALLTYPE GetResource(
3495 IWineD3DResource **resource) = 0;
3496
3497};
3498#else
3499typedef struct IWineD3DRendertargetViewVtbl {
3500 BEGIN_INTERFACE
3501
3502 /*** IUnknown methods ***/
3503 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
3504 IWineD3DRendertargetView* This,
3505 REFIID riid,
3506 void **ppvObject);
3507
3508 ULONG (STDMETHODCALLTYPE *AddRef)(
3509 IWineD3DRendertargetView* This);
3510
3511 ULONG (STDMETHODCALLTYPE *Release)(
3512 IWineD3DRendertargetView* This);
3513
3514 /*** IWineD3DBase methods ***/
3515 HRESULT (STDMETHODCALLTYPE *GetParent)(
3516 IWineD3DRendertargetView* This,
3517 IUnknown **parent);
3518
3519 /*** IWineD3DRendertargetView methods ***/
3520 HRESULT (STDMETHODCALLTYPE *GetResource)(
3521 IWineD3DRendertargetView* This,
3522 IWineD3DResource **resource);
3523
3524 END_INTERFACE
3525} IWineD3DRendertargetViewVtbl;
3526interface IWineD3DRendertargetView {
3527 CONST_VTBL IWineD3DRendertargetViewVtbl* lpVtbl;
3528};
3529
3530#ifdef COBJMACROS
3531/*** IUnknown methods ***/
3532#define IWineD3DRendertargetView_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
3533#define IWineD3DRendertargetView_AddRef(This) (This)->lpVtbl->AddRef(This)
3534#define IWineD3DRendertargetView_Release(This) (This)->lpVtbl->Release(This)
3535/*** IWineD3DBase methods ***/
3536#define IWineD3DRendertargetView_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
3537/*** IWineD3DRendertargetView methods ***/
3538#define IWineD3DRendertargetView_GetResource(This,resource) (This)->lpVtbl->GetResource(This,resource)
3539#endif
3540
3541#endif
3542
3543HRESULT STDMETHODCALLTYPE IWineD3DRendertargetView_GetResource_Proxy(
3544 IWineD3DRendertargetView* This,
3545 IWineD3DResource **resource);
3546void __RPC_STUB IWineD3DRendertargetView_GetResource_Stub(
3547 IRpcStubBuffer* This,
3548 IRpcChannelBuffer* pRpcChannelBuffer,
3549 PRPC_MESSAGE pRpcMessage,
3550 DWORD* pdwStubPhase);
3551
3552#endif /* __IWineD3DRendertargetView_INTERFACE_DEFINED__ */
3553
3554/*****************************************************************************
3555 * IWineD3DPalette interface
3556 */
3557#ifndef __IWineD3DPalette_INTERFACE_DEFINED__
3558#define __IWineD3DPalette_INTERFACE_DEFINED__
3559
3560DEFINE_GUID(IID_IWineD3DPalette, 0xf756720c, 0x32b9, 0x4439, 0xb5,0xa3, 0x1d,0x6c,0x97,0x03,0x7d,0x9e);
3561#if defined(__cplusplus) && !defined(CINTERFACE)
3562interface IWineD3DPalette : public IWineD3DBase
3563{
3564 virtual HRESULT STDMETHODCALLTYPE GetEntries(
3565 DWORD flags,
3566 DWORD start,
3567 DWORD count,
3568 PALETTEENTRY *entries) = 0;
3569
3570 virtual HRESULT STDMETHODCALLTYPE GetCaps(
3571 DWORD *caps) = 0;
3572
3573 virtual HRESULT STDMETHODCALLTYPE SetEntries(
3574 DWORD flags,
3575 DWORD start,
3576 DWORD count,
3577 const PALETTEENTRY *entries) = 0;
3578
3579};
3580#else
3581typedef struct IWineD3DPaletteVtbl {
3582 BEGIN_INTERFACE
3583
3584 /*** IUnknown methods ***/
3585 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
3586 IWineD3DPalette* This,
3587 REFIID riid,
3588 void **ppvObject);
3589
3590 ULONG (STDMETHODCALLTYPE *AddRef)(
3591 IWineD3DPalette* This);
3592
3593 ULONG (STDMETHODCALLTYPE *Release)(
3594 IWineD3DPalette* This);
3595
3596 /*** IWineD3DBase methods ***/
3597 HRESULT (STDMETHODCALLTYPE *GetParent)(
3598 IWineD3DPalette* This,
3599 IUnknown **parent);
3600
3601 /*** IWineD3DPalette methods ***/
3602 HRESULT (STDMETHODCALLTYPE *GetEntries)(
3603 IWineD3DPalette* This,
3604 DWORD flags,
3605 DWORD start,
3606 DWORD count,
3607 PALETTEENTRY *entries);
3608
3609 HRESULT (STDMETHODCALLTYPE *GetCaps)(
3610 IWineD3DPalette* This,
3611 DWORD *caps);
3612
3613 HRESULT (STDMETHODCALLTYPE *SetEntries)(
3614 IWineD3DPalette* This,
3615 DWORD flags,
3616 DWORD start,
3617 DWORD count,
3618 const PALETTEENTRY *entries);
3619
3620 END_INTERFACE
3621} IWineD3DPaletteVtbl;
3622interface IWineD3DPalette {
3623 CONST_VTBL IWineD3DPaletteVtbl* lpVtbl;
3624};
3625
3626#ifdef COBJMACROS
3627/*** IUnknown methods ***/
3628#define IWineD3DPalette_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
3629#define IWineD3DPalette_AddRef(This) (This)->lpVtbl->AddRef(This)
3630#define IWineD3DPalette_Release(This) (This)->lpVtbl->Release(This)
3631/*** IWineD3DBase methods ***/
3632#define IWineD3DPalette_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
3633/*** IWineD3DPalette methods ***/
3634#define IWineD3DPalette_GetEntries(This,flags,start,count,entries) (This)->lpVtbl->GetEntries(This,flags,start,count,entries)
3635#define IWineD3DPalette_GetCaps(This,caps) (This)->lpVtbl->GetCaps(This,caps)
3636#define IWineD3DPalette_SetEntries(This,flags,start,count,entries) (This)->lpVtbl->SetEntries(This,flags,start,count,entries)
3637#endif
3638
3639#endif
3640
3641HRESULT STDMETHODCALLTYPE IWineD3DPalette_GetEntries_Proxy(
3642 IWineD3DPalette* This,
3643 DWORD flags,
3644 DWORD start,
3645 DWORD count,
3646 PALETTEENTRY *entries);
3647void __RPC_STUB IWineD3DPalette_GetEntries_Stub(
3648 IRpcStubBuffer* This,
3649 IRpcChannelBuffer* pRpcChannelBuffer,
3650 PRPC_MESSAGE pRpcMessage,
3651 DWORD* pdwStubPhase);
3652HRESULT STDMETHODCALLTYPE IWineD3DPalette_GetCaps_Proxy(
3653 IWineD3DPalette* This,
3654 DWORD *caps);
3655void __RPC_STUB IWineD3DPalette_GetCaps_Stub(
3656 IRpcStubBuffer* This,
3657 IRpcChannelBuffer* pRpcChannelBuffer,
3658 PRPC_MESSAGE pRpcMessage,
3659 DWORD* pdwStubPhase);
3660HRESULT STDMETHODCALLTYPE IWineD3DPalette_SetEntries_Proxy(
3661 IWineD3DPalette* This,
3662 DWORD flags,
3663 DWORD start,
3664 DWORD count,
3665 const PALETTEENTRY *entries);
3666void __RPC_STUB IWineD3DPalette_SetEntries_Stub(
3667 IRpcStubBuffer* This,
3668 IRpcChannelBuffer* pRpcChannelBuffer,
3669 PRPC_MESSAGE pRpcMessage,
3670 DWORD* pdwStubPhase);
3671
3672#endif /* __IWineD3DPalette_INTERFACE_DEFINED__ */
3673
3674/*****************************************************************************
3675 * IWineD3DClipper interface
3676 */
3677#ifndef __IWineD3DClipper_INTERFACE_DEFINED__
3678#define __IWineD3DClipper_INTERFACE_DEFINED__
3679
3680DEFINE_GUID(IID_IWineD3DClipper, 0x8f2bceb1, 0xd338, 0x488c, 0xab,0x7f, 0x0e,0xc9,0x80,0xbf,0x5d,0x2d);
3681#if defined(__cplusplus) && !defined(CINTERFACE)
3682interface IWineD3DClipper : public IWineD3DBase
3683{
3684 virtual HRESULT STDMETHODCALLTYPE GetClipList(
3685 const RECT *rect,
3686 RGNDATA *clip_list,
3687 DWORD *clip_list_size) = 0;
3688
3689 virtual HRESULT STDMETHODCALLTYPE GetHWnd(
3690 HWND *hwnd) = 0;
3691
3692 virtual HRESULT STDMETHODCALLTYPE IsClipListChanged(
3693 BOOL *changed) = 0;
3694
3695 virtual HRESULT STDMETHODCALLTYPE SetClipList(
3696 const RGNDATA *clip_list,
3697 DWORD flags) = 0;
3698
3699 virtual HRESULT STDMETHODCALLTYPE SetHWnd(
3700 DWORD flags,
3701 HWND hwnd) = 0;
3702
3703};
3704#else
3705typedef struct IWineD3DClipperVtbl {
3706 BEGIN_INTERFACE
3707
3708 /*** IUnknown methods ***/
3709 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
3710 IWineD3DClipper* This,
3711 REFIID riid,
3712 void **ppvObject);
3713
3714 ULONG (STDMETHODCALLTYPE *AddRef)(
3715 IWineD3DClipper* This);
3716
3717 ULONG (STDMETHODCALLTYPE *Release)(
3718 IWineD3DClipper* This);
3719
3720 /*** IWineD3DBase methods ***/
3721 HRESULT (STDMETHODCALLTYPE *GetParent)(
3722 IWineD3DClipper* This,
3723 IUnknown **parent);
3724
3725 /*** IWineD3DClipper methods ***/
3726 HRESULT (STDMETHODCALLTYPE *GetClipList)(
3727 IWineD3DClipper* This,
3728 const RECT *rect,
3729 RGNDATA *clip_list,
3730 DWORD *clip_list_size);
3731
3732 HRESULT (STDMETHODCALLTYPE *GetHWnd)(
3733 IWineD3DClipper* This,
3734 HWND *hwnd);
3735
3736 HRESULT (STDMETHODCALLTYPE *IsClipListChanged)(
3737 IWineD3DClipper* This,
3738 BOOL *changed);
3739
3740 HRESULT (STDMETHODCALLTYPE *SetClipList)(
3741 IWineD3DClipper* This,
3742 const RGNDATA *clip_list,
3743 DWORD flags);
3744
3745 HRESULT (STDMETHODCALLTYPE *SetHWnd)(
3746 IWineD3DClipper* This,
3747 DWORD flags,
3748 HWND hwnd);
3749
3750 END_INTERFACE
3751} IWineD3DClipperVtbl;
3752interface IWineD3DClipper {
3753 CONST_VTBL IWineD3DClipperVtbl* lpVtbl;
3754};
3755
3756#ifdef COBJMACROS
3757/*** IUnknown methods ***/
3758#define IWineD3DClipper_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
3759#define IWineD3DClipper_AddRef(This) (This)->lpVtbl->AddRef(This)
3760#define IWineD3DClipper_Release(This) (This)->lpVtbl->Release(This)
3761/*** IWineD3DBase methods ***/
3762#define IWineD3DClipper_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
3763/*** IWineD3DClipper methods ***/
3764#define IWineD3DClipper_GetClipList(This,rect,clip_list,clip_list_size) (This)->lpVtbl->GetClipList(This,rect,clip_list,clip_list_size)
3765#define IWineD3DClipper_GetHWnd(This,hwnd) (This)->lpVtbl->GetHWnd(This,hwnd)
3766#define IWineD3DClipper_IsClipListChanged(This,changed) (This)->lpVtbl->IsClipListChanged(This,changed)
3767#define IWineD3DClipper_SetClipList(This,clip_list,flags) (This)->lpVtbl->SetClipList(This,clip_list,flags)
3768#define IWineD3DClipper_SetHWnd(This,flags,hwnd) (This)->lpVtbl->SetHWnd(This,flags,hwnd)
3769#endif
3770
3771#endif
3772
3773HRESULT STDMETHODCALLTYPE IWineD3DClipper_GetClipList_Proxy(
3774 IWineD3DClipper* This,
3775 const RECT *rect,
3776 RGNDATA *clip_list,
3777 DWORD *clip_list_size);
3778void __RPC_STUB IWineD3DClipper_GetClipList_Stub(
3779 IRpcStubBuffer* This,
3780 IRpcChannelBuffer* pRpcChannelBuffer,
3781 PRPC_MESSAGE pRpcMessage,
3782 DWORD* pdwStubPhase);
3783HRESULT STDMETHODCALLTYPE IWineD3DClipper_GetHWnd_Proxy(
3784 IWineD3DClipper* This,
3785 HWND *hwnd);
3786void __RPC_STUB IWineD3DClipper_GetHWnd_Stub(
3787 IRpcStubBuffer* This,
3788 IRpcChannelBuffer* pRpcChannelBuffer,
3789 PRPC_MESSAGE pRpcMessage,
3790 DWORD* pdwStubPhase);
3791HRESULT STDMETHODCALLTYPE IWineD3DClipper_IsClipListChanged_Proxy(
3792 IWineD3DClipper* This,
3793 BOOL *changed);
3794void __RPC_STUB IWineD3DClipper_IsClipListChanged_Stub(
3795 IRpcStubBuffer* This,
3796 IRpcChannelBuffer* pRpcChannelBuffer,
3797 PRPC_MESSAGE pRpcMessage,
3798 DWORD* pdwStubPhase);
3799HRESULT STDMETHODCALLTYPE IWineD3DClipper_SetClipList_Proxy(
3800 IWineD3DClipper* This,
3801 const RGNDATA *clip_list,
3802 DWORD flags);
3803void __RPC_STUB IWineD3DClipper_SetClipList_Stub(
3804 IRpcStubBuffer* This,
3805 IRpcChannelBuffer* pRpcChannelBuffer,
3806 PRPC_MESSAGE pRpcMessage,
3807 DWORD* pdwStubPhase);
3808HRESULT STDMETHODCALLTYPE IWineD3DClipper_SetHWnd_Proxy(
3809 IWineD3DClipper* This,
3810 DWORD flags,
3811 HWND hwnd);
3812void __RPC_STUB IWineD3DClipper_SetHWnd_Stub(
3813 IRpcStubBuffer* This,
3814 IRpcChannelBuffer* pRpcChannelBuffer,
3815 PRPC_MESSAGE pRpcMessage,
3816 DWORD* pdwStubPhase);
3817
3818#endif /* __IWineD3DClipper_INTERFACE_DEFINED__ */
3819
3820/*****************************************************************************
3821 * IWineD3DSurface interface
3822 */
3823#ifndef __IWineD3DSurface_INTERFACE_DEFINED__
3824#define __IWineD3DSurface_INTERFACE_DEFINED__
3825
3826DEFINE_GUID(IID_IWineD3DSurface, 0x37cd5526, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
3827#if defined(__cplusplus) && !defined(CINTERFACE)
3828interface IWineD3DSurface : public IWineD3DResource
3829{
3830 virtual HRESULT STDMETHODCALLTYPE GetContainer(
3831 REFIID riid,
3832 void **container) = 0;
3833
3834 virtual HRESULT STDMETHODCALLTYPE GetDesc(
3835 WINED3DSURFACE_DESC *desc) = 0;
3836
3837 virtual HRESULT STDMETHODCALLTYPE LockRect(
3838 WINED3DLOCKED_RECT *locked_rect,
3839 const RECT *rect,
3840 DWORD flags) = 0;
3841
3842 virtual HRESULT STDMETHODCALLTYPE UnlockRect(
3843 ) = 0;
3844
3845 virtual HRESULT STDMETHODCALLTYPE GetDC(
3846 HDC *dc) = 0;
3847
3848 virtual HRESULT STDMETHODCALLTYPE ReleaseDC(
3849 HDC dc) = 0;
3850
3851 virtual HRESULT STDMETHODCALLTYPE Flip(
3852 IWineD3DSurface *override,
3853 DWORD flags) = 0;
3854
3855 virtual HRESULT STDMETHODCALLTYPE Blt(
3856 const RECT *dst_rect,
3857 IWineD3DSurface *src_surface,
3858 const RECT *src_rect,
3859 DWORD flags,
3860 const WINEDDBLTFX *blt_fx,
3861 WINED3DTEXTUREFILTERTYPE filter) = 0;
3862
3863 virtual HRESULT STDMETHODCALLTYPE GetBltStatus(
3864 DWORD flags) = 0;
3865
3866 virtual HRESULT STDMETHODCALLTYPE GetFlipStatus(
3867 DWORD flags) = 0;
3868
3869 virtual HRESULT STDMETHODCALLTYPE IsLost(
3870 ) = 0;
3871
3872 virtual HRESULT STDMETHODCALLTYPE Restore(
3873 ) = 0;
3874
3875 virtual HRESULT STDMETHODCALLTYPE BltFast(
3876 DWORD dst_x,
3877 DWORD dst_y,
3878 IWineD3DSurface *src_surface,
3879 const RECT *src_rect,
3880 DWORD trans) = 0;
3881
3882 virtual HRESULT STDMETHODCALLTYPE GetPalette(
3883 IWineD3DPalette **palette) = 0;
3884
3885 virtual HRESULT STDMETHODCALLTYPE SetPalette(
3886 IWineD3DPalette *palette) = 0;
3887
3888 virtual HRESULT STDMETHODCALLTYPE RealizePalette(
3889 ) = 0;
3890
3891 virtual HRESULT STDMETHODCALLTYPE SetColorKey(
3892 DWORD flags,
3893 const WINEDDCOLORKEY *color_key) = 0;
3894
3895 virtual DWORD STDMETHODCALLTYPE GetPitch(
3896 ) = 0;
3897
3898 virtual HRESULT STDMETHODCALLTYPE SetMem(
3899 void *mem) = 0;
3900
3901 virtual HRESULT STDMETHODCALLTYPE SetOverlayPosition(
3902 LONG x,
3903 LONG y) = 0;
3904
3905 virtual HRESULT STDMETHODCALLTYPE GetOverlayPosition(
3906 LONG *x,
3907 LONG *y) = 0;
3908
3909 virtual HRESULT STDMETHODCALLTYPE UpdateOverlayZOrder(
3910 DWORD flags,
3911 IWineD3DSurface *ref) = 0;
3912
3913 virtual HRESULT STDMETHODCALLTYPE UpdateOverlay(
3914 const RECT *src_rect,
3915 IWineD3DSurface *dst_surface,
3916 const RECT *dst_rect,
3917 DWORD flags,
3918 const WINEDDOVERLAYFX *fx) = 0;
3919
3920 virtual HRESULT STDMETHODCALLTYPE SetClipper(
3921 IWineD3DClipper *clipper) = 0;
3922
3923 virtual HRESULT STDMETHODCALLTYPE GetClipper(
3924 IWineD3DClipper **clipper) = 0;
3925
3926 virtual HRESULT STDMETHODCALLTYPE LoadTexture(
3927 BOOL srgb_mode) = 0;
3928
3929 virtual void STDMETHODCALLTYPE BindTexture(
3930 BOOL srgb) = 0;
3931
3932 virtual HRESULT STDMETHODCALLTYPE SaveSnapshot(
3933 const char *filename) = 0;
3934
3935 virtual HRESULT STDMETHODCALLTYPE SetContainer(
3936 IWineD3DBase *container) = 0;
3937
3938 virtual const void * STDMETHODCALLTYPE GetData(
3939 ) = 0;
3940
3941 virtual HRESULT STDMETHODCALLTYPE SetFormat(
3942 WINED3DFORMAT format) = 0;
3943
3944 virtual HRESULT STDMETHODCALLTYPE PrivateSetup(
3945 ) = 0;
3946
3947 virtual void STDMETHODCALLTYPE ModifyLocation(
3948 DWORD location,
3949 BOOL persistent) = 0;
3950
3951 virtual HRESULT STDMETHODCALLTYPE LoadLocation(
3952 DWORD location,
3953 const RECT *rect) = 0;
3954
3955 virtual WINED3DSURFTYPE STDMETHODCALLTYPE GetImplType(
3956 ) = 0;
3957
3958 virtual HRESULT STDMETHODCALLTYPE DrawOverlay(
3959 ) = 0;
3960
3961};
3962#else
3963typedef struct IWineD3DSurfaceVtbl {
3964 BEGIN_INTERFACE
3965
3966 /*** IUnknown methods ***/
3967 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
3968 IWineD3DSurface* This,
3969 REFIID riid,
3970 void **ppvObject);
3971
3972 ULONG (STDMETHODCALLTYPE *AddRef)(
3973 IWineD3DSurface* This);
3974
3975 ULONG (STDMETHODCALLTYPE *Release)(
3976 IWineD3DSurface* This);
3977
3978 /*** IWineD3DBase methods ***/
3979 HRESULT (STDMETHODCALLTYPE *GetParent)(
3980 IWineD3DSurface* This,
3981 IUnknown **parent);
3982
3983 /*** IWineD3DResource methods ***/
3984 HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
3985 IWineD3DSurface* This,
3986 REFGUID guid,
3987 const void *data,
3988 DWORD data_size,
3989 DWORD flags);
3990
3991 HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
3992 IWineD3DSurface* This,
3993 REFGUID guid,
3994 void *data,
3995 DWORD *data_size);
3996
3997 HRESULT (STDMETHODCALLTYPE *FreePrivateData)(
3998 IWineD3DSurface* This,
3999 REFGUID guid);
4000
4001 DWORD (STDMETHODCALLTYPE *SetPriority)(
4002 IWineD3DSurface* This,
4003 DWORD new_priority);
4004
4005 DWORD (STDMETHODCALLTYPE *GetPriority)(
4006 IWineD3DSurface* This);
4007
4008 void (STDMETHODCALLTYPE *PreLoad)(
4009 IWineD3DSurface* This);
4010
4011 void (STDMETHODCALLTYPE *UnLoad)(
4012 IWineD3DSurface* This);
4013
4014 WINED3DRESOURCETYPE (STDMETHODCALLTYPE *GetType)(
4015 IWineD3DSurface* This);
4016
4017 /*** IWineD3DSurface methods ***/
4018 HRESULT (STDMETHODCALLTYPE *GetContainer)(
4019 IWineD3DSurface* This,
4020 REFIID riid,
4021 void **container);
4022
4023 HRESULT (STDMETHODCALLTYPE *GetDesc)(
4024 IWineD3DSurface* This,
4025 WINED3DSURFACE_DESC *desc);
4026
4027 HRESULT (STDMETHODCALLTYPE *LockRect)(
4028 IWineD3DSurface* This,
4029 WINED3DLOCKED_RECT *locked_rect,
4030 const RECT *rect,
4031 DWORD flags);
4032
4033 HRESULT (STDMETHODCALLTYPE *UnlockRect)(
4034 IWineD3DSurface* This);
4035
4036 HRESULT (STDMETHODCALLTYPE *GetDC)(
4037 IWineD3DSurface* This,
4038 HDC *dc);
4039
4040 HRESULT (STDMETHODCALLTYPE *ReleaseDC)(
4041 IWineD3DSurface* This,
4042 HDC dc);
4043
4044 HRESULT (STDMETHODCALLTYPE *Flip)(
4045 IWineD3DSurface* This,
4046 IWineD3DSurface *override,
4047 DWORD flags);
4048
4049 HRESULT (STDMETHODCALLTYPE *Blt)(
4050 IWineD3DSurface* This,
4051 const RECT *dst_rect,
4052 IWineD3DSurface *src_surface,
4053 const RECT *src_rect,
4054 DWORD flags,
4055 const WINEDDBLTFX *blt_fx,
4056 WINED3DTEXTUREFILTERTYPE filter);
4057
4058 HRESULT (STDMETHODCALLTYPE *GetBltStatus)(
4059 IWineD3DSurface* This,
4060 DWORD flags);
4061
4062 HRESULT (STDMETHODCALLTYPE *GetFlipStatus)(
4063 IWineD3DSurface* This,
4064 DWORD flags);
4065
4066 HRESULT (STDMETHODCALLTYPE *IsLost)(
4067 IWineD3DSurface* This);
4068
4069 HRESULT (STDMETHODCALLTYPE *Restore)(
4070 IWineD3DSurface* This);
4071
4072 HRESULT (STDMETHODCALLTYPE *BltFast)(
4073 IWineD3DSurface* This,
4074 DWORD dst_x,
4075 DWORD dst_y,
4076 IWineD3DSurface *src_surface,
4077 const RECT *src_rect,
4078 DWORD trans);
4079
4080 HRESULT (STDMETHODCALLTYPE *GetPalette)(
4081 IWineD3DSurface* This,
4082 IWineD3DPalette **palette);
4083
4084 HRESULT (STDMETHODCALLTYPE *SetPalette)(
4085 IWineD3DSurface* This,
4086 IWineD3DPalette *palette);
4087
4088 HRESULT (STDMETHODCALLTYPE *RealizePalette)(
4089 IWineD3DSurface* This);
4090
4091 HRESULT (STDMETHODCALLTYPE *SetColorKey)(
4092 IWineD3DSurface* This,
4093 DWORD flags,
4094 const WINEDDCOLORKEY *color_key);
4095
4096 DWORD (STDMETHODCALLTYPE *GetPitch)(
4097 IWineD3DSurface* This);
4098
4099 HRESULT (STDMETHODCALLTYPE *SetMem)(
4100 IWineD3DSurface* This,
4101 void *mem);
4102
4103 HRESULT (STDMETHODCALLTYPE *SetOverlayPosition)(
4104 IWineD3DSurface* This,
4105 LONG x,
4106 LONG y);
4107
4108 HRESULT (STDMETHODCALLTYPE *GetOverlayPosition)(
4109 IWineD3DSurface* This,
4110 LONG *x,
4111 LONG *y);
4112
4113 HRESULT (STDMETHODCALLTYPE *UpdateOverlayZOrder)(
4114 IWineD3DSurface* This,
4115 DWORD flags,
4116 IWineD3DSurface *ref);
4117
4118 HRESULT (STDMETHODCALLTYPE *UpdateOverlay)(
4119 IWineD3DSurface* This,
4120 const RECT *src_rect,
4121 IWineD3DSurface *dst_surface,
4122 const RECT *dst_rect,
4123 DWORD flags,
4124 const WINEDDOVERLAYFX *fx);
4125
4126 HRESULT (STDMETHODCALLTYPE *SetClipper)(
4127 IWineD3DSurface* This,
4128 IWineD3DClipper *clipper);
4129
4130 HRESULT (STDMETHODCALLTYPE *GetClipper)(
4131 IWineD3DSurface* This,
4132 IWineD3DClipper **clipper);
4133
4134 HRESULT (STDMETHODCALLTYPE *LoadTexture)(
4135 IWineD3DSurface* This,
4136 BOOL srgb_mode);
4137
4138 void (STDMETHODCALLTYPE *BindTexture)(
4139 IWineD3DSurface* This,
4140 BOOL srgb);
4141
4142 HRESULT (STDMETHODCALLTYPE *SaveSnapshot)(
4143 IWineD3DSurface* This,
4144 const char *filename);
4145
4146 HRESULT (STDMETHODCALLTYPE *SetContainer)(
4147 IWineD3DSurface* This,
4148 IWineD3DBase *container);
4149
4150 const void * (STDMETHODCALLTYPE *GetData)(
4151 IWineD3DSurface* This);
4152
4153 HRESULT (STDMETHODCALLTYPE *SetFormat)(
4154 IWineD3DSurface* This,
4155 WINED3DFORMAT format);
4156
4157 HRESULT (STDMETHODCALLTYPE *PrivateSetup)(
4158 IWineD3DSurface* This);
4159
4160 void (STDMETHODCALLTYPE *ModifyLocation)(
4161 IWineD3DSurface* This,
4162 DWORD location,
4163 BOOL persistent);
4164
4165 HRESULT (STDMETHODCALLTYPE *LoadLocation)(
4166 IWineD3DSurface* This,
4167 DWORD location,
4168 const RECT *rect);
4169
4170 WINED3DSURFTYPE (STDMETHODCALLTYPE *GetImplType)(
4171 IWineD3DSurface* This);
4172
4173 HRESULT (STDMETHODCALLTYPE *DrawOverlay)(
4174 IWineD3DSurface* This);
4175
4176 END_INTERFACE
4177} IWineD3DSurfaceVtbl;
4178interface IWineD3DSurface {
4179 CONST_VTBL IWineD3DSurfaceVtbl* lpVtbl;
4180};
4181
4182#ifdef COBJMACROS
4183/*** IUnknown methods ***/
4184#define IWineD3DSurface_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
4185#define IWineD3DSurface_AddRef(This) (This)->lpVtbl->AddRef(This)
4186#define IWineD3DSurface_Release(This) (This)->lpVtbl->Release(This)
4187/*** IWineD3DBase methods ***/
4188#define IWineD3DSurface_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
4189/*** IWineD3DResource methods ***/
4190#define IWineD3DSurface_SetPrivateData(This,guid,data,data_size,flags) (This)->lpVtbl->SetPrivateData(This,guid,data,data_size,flags)
4191#define IWineD3DSurface_GetPrivateData(This,guid,data,data_size) (This)->lpVtbl->GetPrivateData(This,guid,data,data_size)
4192#define IWineD3DSurface_FreePrivateData(This,guid) (This)->lpVtbl->FreePrivateData(This,guid)
4193#define IWineD3DSurface_SetPriority(This,new_priority) (This)->lpVtbl->SetPriority(This,new_priority)
4194#define IWineD3DSurface_GetPriority(This) (This)->lpVtbl->GetPriority(This)
4195#define IWineD3DSurface_PreLoad(This) (This)->lpVtbl->PreLoad(This)
4196#define IWineD3DSurface_UnLoad(This) (This)->lpVtbl->UnLoad(This)
4197#define IWineD3DSurface_GetType(This) (This)->lpVtbl->GetType(This)
4198/*** IWineD3DSurface methods ***/
4199#define IWineD3DSurface_GetContainer(This,riid,container) (This)->lpVtbl->GetContainer(This,riid,container)
4200#define IWineD3DSurface_GetDesc(This,desc) (This)->lpVtbl->GetDesc(This,desc)
4201#define IWineD3DSurface_LockRect(This,locked_rect,rect,flags) (This)->lpVtbl->LockRect(This,locked_rect,rect,flags)
4202#define IWineD3DSurface_UnlockRect(This) (This)->lpVtbl->UnlockRect(This)
4203#define IWineD3DSurface_GetDC(This,dc) (This)->lpVtbl->GetDC(This,dc)
4204#define IWineD3DSurface_ReleaseDC(This,dc) (This)->lpVtbl->ReleaseDC(This,dc)
4205#define IWineD3DSurface_Flip(This,override,flags) (This)->lpVtbl->Flip(This,override,flags)
4206#define IWineD3DSurface_Blt(This,dst_rect,src_surface,src_rect,flags,blt_fx,filter) (This)->lpVtbl->Blt(This,dst_rect,src_surface,src_rect,flags,blt_fx,filter)
4207#define IWineD3DSurface_GetBltStatus(This,flags) (This)->lpVtbl->GetBltStatus(This,flags)
4208#define IWineD3DSurface_GetFlipStatus(This,flags) (This)->lpVtbl->GetFlipStatus(This,flags)
4209#define IWineD3DSurface_IsLost(This) (This)->lpVtbl->IsLost(This)
4210#define IWineD3DSurface_Restore(This) (This)->lpVtbl->Restore(This)
4211#define IWineD3DSurface_BltFast(This,dst_x,dst_y,src_surface,src_rect,trans) (This)->lpVtbl->BltFast(This,dst_x,dst_y,src_surface,src_rect,trans)
4212#define IWineD3DSurface_GetPalette(This,palette) (This)->lpVtbl->GetPalette(This,palette)
4213#define IWineD3DSurface_SetPalette(This,palette) (This)->lpVtbl->SetPalette(This,palette)
4214#define IWineD3DSurface_RealizePalette(This) (This)->lpVtbl->RealizePalette(This)
4215#define IWineD3DSurface_SetColorKey(This,flags,color_key) (This)->lpVtbl->SetColorKey(This,flags,color_key)
4216#define IWineD3DSurface_GetPitch(This) (This)->lpVtbl->GetPitch(This)
4217#define IWineD3DSurface_SetMem(This,mem) (This)->lpVtbl->SetMem(This,mem)
4218#define IWineD3DSurface_SetOverlayPosition(This,x,y) (This)->lpVtbl->SetOverlayPosition(This,x,y)
4219#define IWineD3DSurface_GetOverlayPosition(This,x,y) (This)->lpVtbl->GetOverlayPosition(This,x,y)
4220#define IWineD3DSurface_UpdateOverlayZOrder(This,flags,ref) (This)->lpVtbl->UpdateOverlayZOrder(This,flags,ref)
4221#define IWineD3DSurface_UpdateOverlay(This,src_rect,dst_surface,dst_rect,flags,fx) (This)->lpVtbl->UpdateOverlay(This,src_rect,dst_surface,dst_rect,flags,fx)
4222#define IWineD3DSurface_SetClipper(This,clipper) (This)->lpVtbl->SetClipper(This,clipper)
4223#define IWineD3DSurface_GetClipper(This,clipper) (This)->lpVtbl->GetClipper(This,clipper)
4224#define IWineD3DSurface_LoadTexture(This,srgb_mode) (This)->lpVtbl->LoadTexture(This,srgb_mode)
4225#define IWineD3DSurface_BindTexture(This,srgb) (This)->lpVtbl->BindTexture(This,srgb)
4226#define IWineD3DSurface_SaveSnapshot(This,filename) (This)->lpVtbl->SaveSnapshot(This,filename)
4227#define IWineD3DSurface_SetContainer(This,container) (This)->lpVtbl->SetContainer(This,container)
4228#define IWineD3DSurface_GetData(This) (This)->lpVtbl->GetData(This)
4229#define IWineD3DSurface_SetFormat(This,format) (This)->lpVtbl->SetFormat(This,format)
4230#define IWineD3DSurface_PrivateSetup(This) (This)->lpVtbl->PrivateSetup(This)
4231#define IWineD3DSurface_ModifyLocation(This,location,persistent) (This)->lpVtbl->ModifyLocation(This,location,persistent)
4232#define IWineD3DSurface_LoadLocation(This,location,rect) (This)->lpVtbl->LoadLocation(This,location,rect)
4233#define IWineD3DSurface_GetImplType(This) (This)->lpVtbl->GetImplType(This)
4234#define IWineD3DSurface_DrawOverlay(This) (This)->lpVtbl->DrawOverlay(This)
4235#endif
4236
4237#endif
4238
4239HRESULT STDMETHODCALLTYPE IWineD3DSurface_GetContainer_Proxy(
4240 IWineD3DSurface* This,
4241 REFIID riid,
4242 void **container);
4243void __RPC_STUB IWineD3DSurface_GetContainer_Stub(
4244 IRpcStubBuffer* This,
4245 IRpcChannelBuffer* pRpcChannelBuffer,
4246 PRPC_MESSAGE pRpcMessage,
4247 DWORD* pdwStubPhase);
4248HRESULT STDMETHODCALLTYPE IWineD3DSurface_GetDesc_Proxy(
4249 IWineD3DSurface* This,
4250 WINED3DSURFACE_DESC *desc);
4251void __RPC_STUB IWineD3DSurface_GetDesc_Stub(
4252 IRpcStubBuffer* This,
4253 IRpcChannelBuffer* pRpcChannelBuffer,
4254 PRPC_MESSAGE pRpcMessage,
4255 DWORD* pdwStubPhase);
4256HRESULT STDMETHODCALLTYPE IWineD3DSurface_LockRect_Proxy(
4257 IWineD3DSurface* This,
4258 WINED3DLOCKED_RECT *locked_rect,
4259 const RECT *rect,
4260 DWORD flags);
4261void __RPC_STUB IWineD3DSurface_LockRect_Stub(
4262 IRpcStubBuffer* This,
4263 IRpcChannelBuffer* pRpcChannelBuffer,
4264 PRPC_MESSAGE pRpcMessage,
4265 DWORD* pdwStubPhase);
4266HRESULT STDMETHODCALLTYPE IWineD3DSurface_UnlockRect_Proxy(
4267 IWineD3DSurface* This);
4268void __RPC_STUB IWineD3DSurface_UnlockRect_Stub(
4269 IRpcStubBuffer* This,
4270 IRpcChannelBuffer* pRpcChannelBuffer,
4271 PRPC_MESSAGE pRpcMessage,
4272 DWORD* pdwStubPhase);
4273HRESULT STDMETHODCALLTYPE IWineD3DSurface_GetDC_Proxy(
4274 IWineD3DSurface* This,
4275 HDC *dc);
4276void __RPC_STUB IWineD3DSurface_GetDC_Stub(
4277 IRpcStubBuffer* This,
4278 IRpcChannelBuffer* pRpcChannelBuffer,
4279 PRPC_MESSAGE pRpcMessage,
4280 DWORD* pdwStubPhase);
4281HRESULT STDMETHODCALLTYPE IWineD3DSurface_ReleaseDC_Proxy(
4282 IWineD3DSurface* This,
4283 HDC dc);
4284void __RPC_STUB IWineD3DSurface_ReleaseDC_Stub(
4285 IRpcStubBuffer* This,
4286 IRpcChannelBuffer* pRpcChannelBuffer,
4287 PRPC_MESSAGE pRpcMessage,
4288 DWORD* pdwStubPhase);
4289HRESULT STDMETHODCALLTYPE IWineD3DSurface_Flip_Proxy(
4290 IWineD3DSurface* This,
4291 IWineD3DSurface *override,
4292 DWORD flags);
4293void __RPC_STUB IWineD3DSurface_Flip_Stub(
4294 IRpcStubBuffer* This,
4295 IRpcChannelBuffer* pRpcChannelBuffer,
4296 PRPC_MESSAGE pRpcMessage,
4297 DWORD* pdwStubPhase);
4298HRESULT STDMETHODCALLTYPE IWineD3DSurface_Blt_Proxy(
4299 IWineD3DSurface* This,
4300 const RECT *dst_rect,
4301 IWineD3DSurface *src_surface,
4302 const RECT *src_rect,
4303 DWORD flags,
4304 const WINEDDBLTFX *blt_fx,
4305 WINED3DTEXTUREFILTERTYPE filter);
4306void __RPC_STUB IWineD3DSurface_Blt_Stub(
4307 IRpcStubBuffer* This,
4308 IRpcChannelBuffer* pRpcChannelBuffer,
4309 PRPC_MESSAGE pRpcMessage,
4310 DWORD* pdwStubPhase);
4311HRESULT STDMETHODCALLTYPE IWineD3DSurface_GetBltStatus_Proxy(
4312 IWineD3DSurface* This,
4313 DWORD flags);
4314void __RPC_STUB IWineD3DSurface_GetBltStatus_Stub(
4315 IRpcStubBuffer* This,
4316 IRpcChannelBuffer* pRpcChannelBuffer,
4317 PRPC_MESSAGE pRpcMessage,
4318 DWORD* pdwStubPhase);
4319HRESULT STDMETHODCALLTYPE IWineD3DSurface_GetFlipStatus_Proxy(
4320 IWineD3DSurface* This,
4321 DWORD flags);
4322void __RPC_STUB IWineD3DSurface_GetFlipStatus_Stub(
4323 IRpcStubBuffer* This,
4324 IRpcChannelBuffer* pRpcChannelBuffer,
4325 PRPC_MESSAGE pRpcMessage,
4326 DWORD* pdwStubPhase);
4327HRESULT STDMETHODCALLTYPE IWineD3DSurface_IsLost_Proxy(
4328 IWineD3DSurface* This);
4329void __RPC_STUB IWineD3DSurface_IsLost_Stub(
4330 IRpcStubBuffer* This,
4331 IRpcChannelBuffer* pRpcChannelBuffer,
4332 PRPC_MESSAGE pRpcMessage,
4333 DWORD* pdwStubPhase);
4334HRESULT STDMETHODCALLTYPE IWineD3DSurface_Restore_Proxy(
4335 IWineD3DSurface* This);
4336void __RPC_STUB IWineD3DSurface_Restore_Stub(
4337 IRpcStubBuffer* This,
4338 IRpcChannelBuffer* pRpcChannelBuffer,
4339 PRPC_MESSAGE pRpcMessage,
4340 DWORD* pdwStubPhase);
4341HRESULT STDMETHODCALLTYPE IWineD3DSurface_BltFast_Proxy(
4342 IWineD3DSurface* This,
4343 DWORD dst_x,
4344 DWORD dst_y,
4345 IWineD3DSurface *src_surface,
4346 const RECT *src_rect,
4347 DWORD trans);
4348void __RPC_STUB IWineD3DSurface_BltFast_Stub(
4349 IRpcStubBuffer* This,
4350 IRpcChannelBuffer* pRpcChannelBuffer,
4351 PRPC_MESSAGE pRpcMessage,
4352 DWORD* pdwStubPhase);
4353HRESULT STDMETHODCALLTYPE IWineD3DSurface_GetPalette_Proxy(
4354 IWineD3DSurface* This,
4355 IWineD3DPalette **palette);
4356void __RPC_STUB IWineD3DSurface_GetPalette_Stub(
4357 IRpcStubBuffer* This,
4358 IRpcChannelBuffer* pRpcChannelBuffer,
4359 PRPC_MESSAGE pRpcMessage,
4360 DWORD* pdwStubPhase);
4361HRESULT STDMETHODCALLTYPE IWineD3DSurface_SetPalette_Proxy(
4362 IWineD3DSurface* This,
4363 IWineD3DPalette *palette);
4364void __RPC_STUB IWineD3DSurface_SetPalette_Stub(
4365 IRpcStubBuffer* This,
4366 IRpcChannelBuffer* pRpcChannelBuffer,
4367 PRPC_MESSAGE pRpcMessage,
4368 DWORD* pdwStubPhase);
4369HRESULT STDMETHODCALLTYPE IWineD3DSurface_RealizePalette_Proxy(
4370 IWineD3DSurface* This);
4371void __RPC_STUB IWineD3DSurface_RealizePalette_Stub(
4372 IRpcStubBuffer* This,
4373 IRpcChannelBuffer* pRpcChannelBuffer,
4374 PRPC_MESSAGE pRpcMessage,
4375 DWORD* pdwStubPhase);
4376HRESULT STDMETHODCALLTYPE IWineD3DSurface_SetColorKey_Proxy(
4377 IWineD3DSurface* This,
4378 DWORD flags,
4379 const WINEDDCOLORKEY *color_key);
4380void __RPC_STUB IWineD3DSurface_SetColorKey_Stub(
4381 IRpcStubBuffer* This,
4382 IRpcChannelBuffer* pRpcChannelBuffer,
4383 PRPC_MESSAGE pRpcMessage,
4384 DWORD* pdwStubPhase);
4385DWORD STDMETHODCALLTYPE IWineD3DSurface_GetPitch_Proxy(
4386 IWineD3DSurface* This);
4387void __RPC_STUB IWineD3DSurface_GetPitch_Stub(
4388 IRpcStubBuffer* This,
4389 IRpcChannelBuffer* pRpcChannelBuffer,
4390 PRPC_MESSAGE pRpcMessage,
4391 DWORD* pdwStubPhase);
4392HRESULT STDMETHODCALLTYPE IWineD3DSurface_SetMem_Proxy(
4393 IWineD3DSurface* This,
4394 void *mem);
4395void __RPC_STUB IWineD3DSurface_SetMem_Stub(
4396 IRpcStubBuffer* This,
4397 IRpcChannelBuffer* pRpcChannelBuffer,
4398 PRPC_MESSAGE pRpcMessage,
4399 DWORD* pdwStubPhase);
4400HRESULT STDMETHODCALLTYPE IWineD3DSurface_SetOverlayPosition_Proxy(
4401 IWineD3DSurface* This,
4402 LONG x,
4403 LONG y);
4404void __RPC_STUB IWineD3DSurface_SetOverlayPosition_Stub(
4405 IRpcStubBuffer* This,
4406 IRpcChannelBuffer* pRpcChannelBuffer,
4407 PRPC_MESSAGE pRpcMessage,
4408 DWORD* pdwStubPhase);
4409HRESULT STDMETHODCALLTYPE IWineD3DSurface_GetOverlayPosition_Proxy(
4410 IWineD3DSurface* This,
4411 LONG *x,
4412 LONG *y);
4413void __RPC_STUB IWineD3DSurface_GetOverlayPosition_Stub(
4414 IRpcStubBuffer* This,
4415 IRpcChannelBuffer* pRpcChannelBuffer,
4416 PRPC_MESSAGE pRpcMessage,
4417 DWORD* pdwStubPhase);
4418HRESULT STDMETHODCALLTYPE IWineD3DSurface_UpdateOverlayZOrder_Proxy(
4419 IWineD3DSurface* This,
4420 DWORD flags,
4421 IWineD3DSurface *ref);
4422void __RPC_STUB IWineD3DSurface_UpdateOverlayZOrder_Stub(
4423 IRpcStubBuffer* This,
4424 IRpcChannelBuffer* pRpcChannelBuffer,
4425 PRPC_MESSAGE pRpcMessage,
4426 DWORD* pdwStubPhase);
4427HRESULT STDMETHODCALLTYPE IWineD3DSurface_UpdateOverlay_Proxy(
4428 IWineD3DSurface* This,
4429 const RECT *src_rect,
4430 IWineD3DSurface *dst_surface,
4431 const RECT *dst_rect,
4432 DWORD flags,
4433 const WINEDDOVERLAYFX *fx);
4434void __RPC_STUB IWineD3DSurface_UpdateOverlay_Stub(
4435 IRpcStubBuffer* This,
4436 IRpcChannelBuffer* pRpcChannelBuffer,
4437 PRPC_MESSAGE pRpcMessage,
4438 DWORD* pdwStubPhase);
4439HRESULT STDMETHODCALLTYPE IWineD3DSurface_SetClipper_Proxy(
4440 IWineD3DSurface* This,
4441 IWineD3DClipper *clipper);
4442void __RPC_STUB IWineD3DSurface_SetClipper_Stub(
4443 IRpcStubBuffer* This,
4444 IRpcChannelBuffer* pRpcChannelBuffer,
4445 PRPC_MESSAGE pRpcMessage,
4446 DWORD* pdwStubPhase);
4447HRESULT STDMETHODCALLTYPE IWineD3DSurface_GetClipper_Proxy(
4448 IWineD3DSurface* This,
4449 IWineD3DClipper **clipper);
4450void __RPC_STUB IWineD3DSurface_GetClipper_Stub(
4451 IRpcStubBuffer* This,
4452 IRpcChannelBuffer* pRpcChannelBuffer,
4453 PRPC_MESSAGE pRpcMessage,
4454 DWORD* pdwStubPhase);
4455HRESULT STDMETHODCALLTYPE IWineD3DSurface_LoadTexture_Proxy(
4456 IWineD3DSurface* This,
4457 BOOL srgb_mode);
4458void __RPC_STUB IWineD3DSurface_LoadTexture_Stub(
4459 IRpcStubBuffer* This,
4460 IRpcChannelBuffer* pRpcChannelBuffer,
4461 PRPC_MESSAGE pRpcMessage,
4462 DWORD* pdwStubPhase);
4463void STDMETHODCALLTYPE IWineD3DSurface_BindTexture_Proxy(
4464 IWineD3DSurface* This,
4465 BOOL srgb);
4466void __RPC_STUB IWineD3DSurface_BindTexture_Stub(
4467 IRpcStubBuffer* This,
4468 IRpcChannelBuffer* pRpcChannelBuffer,
4469 PRPC_MESSAGE pRpcMessage,
4470 DWORD* pdwStubPhase);
4471HRESULT STDMETHODCALLTYPE IWineD3DSurface_SaveSnapshot_Proxy(
4472 IWineD3DSurface* This,
4473 const char *filename);
4474void __RPC_STUB IWineD3DSurface_SaveSnapshot_Stub(
4475 IRpcStubBuffer* This,
4476 IRpcChannelBuffer* pRpcChannelBuffer,
4477 PRPC_MESSAGE pRpcMessage,
4478 DWORD* pdwStubPhase);
4479HRESULT STDMETHODCALLTYPE IWineD3DSurface_SetContainer_Proxy(
4480 IWineD3DSurface* This,
4481 IWineD3DBase *container);
4482void __RPC_STUB IWineD3DSurface_SetContainer_Stub(
4483 IRpcStubBuffer* This,
4484 IRpcChannelBuffer* pRpcChannelBuffer,
4485 PRPC_MESSAGE pRpcMessage,
4486 DWORD* pdwStubPhase);
4487const void * STDMETHODCALLTYPE IWineD3DSurface_GetData_Proxy(
4488 IWineD3DSurface* This);
4489void __RPC_STUB IWineD3DSurface_GetData_Stub(
4490 IRpcStubBuffer* This,
4491 IRpcChannelBuffer* pRpcChannelBuffer,
4492 PRPC_MESSAGE pRpcMessage,
4493 DWORD* pdwStubPhase);
4494HRESULT STDMETHODCALLTYPE IWineD3DSurface_SetFormat_Proxy(
4495 IWineD3DSurface* This,
4496 WINED3DFORMAT format);
4497void __RPC_STUB IWineD3DSurface_SetFormat_Stub(
4498 IRpcStubBuffer* This,
4499 IRpcChannelBuffer* pRpcChannelBuffer,
4500 PRPC_MESSAGE pRpcMessage,
4501 DWORD* pdwStubPhase);
4502HRESULT STDMETHODCALLTYPE IWineD3DSurface_PrivateSetup_Proxy(
4503 IWineD3DSurface* This);
4504void __RPC_STUB IWineD3DSurface_PrivateSetup_Stub(
4505 IRpcStubBuffer* This,
4506 IRpcChannelBuffer* pRpcChannelBuffer,
4507 PRPC_MESSAGE pRpcMessage,
4508 DWORD* pdwStubPhase);
4509void STDMETHODCALLTYPE IWineD3DSurface_ModifyLocation_Proxy(
4510 IWineD3DSurface* This,
4511 DWORD location,
4512 BOOL persistent);
4513void __RPC_STUB IWineD3DSurface_ModifyLocation_Stub(
4514 IRpcStubBuffer* This,
4515 IRpcChannelBuffer* pRpcChannelBuffer,
4516 PRPC_MESSAGE pRpcMessage,
4517 DWORD* pdwStubPhase);
4518HRESULT STDMETHODCALLTYPE IWineD3DSurface_LoadLocation_Proxy(
4519 IWineD3DSurface* This,
4520 DWORD location,
4521 const RECT *rect);
4522void __RPC_STUB IWineD3DSurface_LoadLocation_Stub(
4523 IRpcStubBuffer* This,
4524 IRpcChannelBuffer* pRpcChannelBuffer,
4525 PRPC_MESSAGE pRpcMessage,
4526 DWORD* pdwStubPhase);
4527WINED3DSURFTYPE STDMETHODCALLTYPE IWineD3DSurface_GetImplType_Proxy(
4528 IWineD3DSurface* This);
4529void __RPC_STUB IWineD3DSurface_GetImplType_Stub(
4530 IRpcStubBuffer* This,
4531 IRpcChannelBuffer* pRpcChannelBuffer,
4532 PRPC_MESSAGE pRpcMessage,
4533 DWORD* pdwStubPhase);
4534HRESULT STDMETHODCALLTYPE IWineD3DSurface_DrawOverlay_Proxy(
4535 IWineD3DSurface* This);
4536void __RPC_STUB IWineD3DSurface_DrawOverlay_Stub(
4537 IRpcStubBuffer* This,
4538 IRpcChannelBuffer* pRpcChannelBuffer,
4539 PRPC_MESSAGE pRpcMessage,
4540 DWORD* pdwStubPhase);
4541
4542#endif /* __IWineD3DSurface_INTERFACE_DEFINED__ */
4543
4544/*****************************************************************************
4545 * IWineD3DVolume interface
4546 */
4547#ifndef __IWineD3DVolume_INTERFACE_DEFINED__
4548#define __IWineD3DVolume_INTERFACE_DEFINED__
4549
4550DEFINE_GUID(IID_IWineD3DVolume, 0x24769ed8, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
4551#if defined(__cplusplus) && !defined(CINTERFACE)
4552interface IWineD3DVolume : public IWineD3DResource
4553{
4554 virtual HRESULT STDMETHODCALLTYPE GetContainer(
4555 REFIID riid,
4556 void **container) = 0;
4557
4558 virtual HRESULT STDMETHODCALLTYPE GetDesc(
4559 WINED3DVOLUME_DESC *desc) = 0;
4560
4561 virtual HRESULT STDMETHODCALLTYPE LockBox(
4562 WINED3DLOCKED_BOX *locked_box,
4563 const WINED3DBOX *box,
4564 DWORD flags) = 0;
4565
4566 virtual HRESULT STDMETHODCALLTYPE UnlockBox(
4567 ) = 0;
4568
4569 virtual HRESULT STDMETHODCALLTYPE LoadTexture(
4570 int gl_level,
4571 BOOL srgb_mode) = 0;
4572
4573 virtual HRESULT STDMETHODCALLTYPE SetContainer(
4574 IWineD3DBase *container) = 0;
4575
4576};
4577#else
4578typedef struct IWineD3DVolumeVtbl {
4579 BEGIN_INTERFACE
4580
4581 /*** IUnknown methods ***/
4582 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
4583 IWineD3DVolume* This,
4584 REFIID riid,
4585 void **ppvObject);
4586
4587 ULONG (STDMETHODCALLTYPE *AddRef)(
4588 IWineD3DVolume* This);
4589
4590 ULONG (STDMETHODCALLTYPE *Release)(
4591 IWineD3DVolume* This);
4592
4593 /*** IWineD3DBase methods ***/
4594 HRESULT (STDMETHODCALLTYPE *GetParent)(
4595 IWineD3DVolume* This,
4596 IUnknown **parent);
4597
4598 /*** IWineD3DResource methods ***/
4599 HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
4600 IWineD3DVolume* This,
4601 REFGUID guid,
4602 const void *data,
4603 DWORD data_size,
4604 DWORD flags);
4605
4606 HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
4607 IWineD3DVolume* This,
4608 REFGUID guid,
4609 void *data,
4610 DWORD *data_size);
4611
4612 HRESULT (STDMETHODCALLTYPE *FreePrivateData)(
4613 IWineD3DVolume* This,
4614 REFGUID guid);
4615
4616 DWORD (STDMETHODCALLTYPE *SetPriority)(
4617 IWineD3DVolume* This,
4618 DWORD new_priority);
4619
4620 DWORD (STDMETHODCALLTYPE *GetPriority)(
4621 IWineD3DVolume* This);
4622
4623 void (STDMETHODCALLTYPE *PreLoad)(
4624 IWineD3DVolume* This);
4625
4626 void (STDMETHODCALLTYPE *UnLoad)(
4627 IWineD3DVolume* This);
4628
4629 WINED3DRESOURCETYPE (STDMETHODCALLTYPE *GetType)(
4630 IWineD3DVolume* This);
4631
4632 /*** IWineD3DVolume methods ***/
4633 HRESULT (STDMETHODCALLTYPE *GetContainer)(
4634 IWineD3DVolume* This,
4635 REFIID riid,
4636 void **container);
4637
4638 HRESULT (STDMETHODCALLTYPE *GetDesc)(
4639 IWineD3DVolume* This,
4640 WINED3DVOLUME_DESC *desc);
4641
4642 HRESULT (STDMETHODCALLTYPE *LockBox)(
4643 IWineD3DVolume* This,
4644 WINED3DLOCKED_BOX *locked_box,
4645 const WINED3DBOX *box,
4646 DWORD flags);
4647
4648 HRESULT (STDMETHODCALLTYPE *UnlockBox)(
4649 IWineD3DVolume* This);
4650
4651 HRESULT (STDMETHODCALLTYPE *LoadTexture)(
4652 IWineD3DVolume* This,
4653 int gl_level,
4654 BOOL srgb_mode);
4655
4656 HRESULT (STDMETHODCALLTYPE *SetContainer)(
4657 IWineD3DVolume* This,
4658 IWineD3DBase *container);
4659
4660 END_INTERFACE
4661} IWineD3DVolumeVtbl;
4662interface IWineD3DVolume {
4663 CONST_VTBL IWineD3DVolumeVtbl* lpVtbl;
4664};
4665
4666#ifdef COBJMACROS
4667/*** IUnknown methods ***/
4668#define IWineD3DVolume_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
4669#define IWineD3DVolume_AddRef(This) (This)->lpVtbl->AddRef(This)
4670#define IWineD3DVolume_Release(This) (This)->lpVtbl->Release(This)
4671/*** IWineD3DBase methods ***/
4672#define IWineD3DVolume_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
4673/*** IWineD3DResource methods ***/
4674#define IWineD3DVolume_SetPrivateData(This,guid,data,data_size,flags) (This)->lpVtbl->SetPrivateData(This,guid,data,data_size,flags)
4675#define IWineD3DVolume_GetPrivateData(This,guid,data,data_size) (This)->lpVtbl->GetPrivateData(This,guid,data,data_size)
4676#define IWineD3DVolume_FreePrivateData(This,guid) (This)->lpVtbl->FreePrivateData(This,guid)
4677#define IWineD3DVolume_SetPriority(This,new_priority) (This)->lpVtbl->SetPriority(This,new_priority)
4678#define IWineD3DVolume_GetPriority(This) (This)->lpVtbl->GetPriority(This)
4679#define IWineD3DVolume_PreLoad(This) (This)->lpVtbl->PreLoad(This)
4680#define IWineD3DVolume_UnLoad(This) (This)->lpVtbl->UnLoad(This)
4681#define IWineD3DVolume_GetType(This) (This)->lpVtbl->GetType(This)
4682/*** IWineD3DVolume methods ***/
4683#define IWineD3DVolume_GetContainer(This,riid,container) (This)->lpVtbl->GetContainer(This,riid,container)
4684#define IWineD3DVolume_GetDesc(This,desc) (This)->lpVtbl->GetDesc(This,desc)
4685#define IWineD3DVolume_LockBox(This,locked_box,box,flags) (This)->lpVtbl->LockBox(This,locked_box,box,flags)
4686#define IWineD3DVolume_UnlockBox(This) (This)->lpVtbl->UnlockBox(This)
4687#define IWineD3DVolume_LoadTexture(This,gl_level,srgb_mode) (This)->lpVtbl->LoadTexture(This,gl_level,srgb_mode)
4688#define IWineD3DVolume_SetContainer(This,container) (This)->lpVtbl->SetContainer(This,container)
4689#endif
4690
4691#endif
4692
4693HRESULT STDMETHODCALLTYPE IWineD3DVolume_GetContainer_Proxy(
4694 IWineD3DVolume* This,
4695 REFIID riid,
4696 void **container);
4697void __RPC_STUB IWineD3DVolume_GetContainer_Stub(
4698 IRpcStubBuffer* This,
4699 IRpcChannelBuffer* pRpcChannelBuffer,
4700 PRPC_MESSAGE pRpcMessage,
4701 DWORD* pdwStubPhase);
4702HRESULT STDMETHODCALLTYPE IWineD3DVolume_GetDesc_Proxy(
4703 IWineD3DVolume* This,
4704 WINED3DVOLUME_DESC *desc);
4705void __RPC_STUB IWineD3DVolume_GetDesc_Stub(
4706 IRpcStubBuffer* This,
4707 IRpcChannelBuffer* pRpcChannelBuffer,
4708 PRPC_MESSAGE pRpcMessage,
4709 DWORD* pdwStubPhase);
4710HRESULT STDMETHODCALLTYPE IWineD3DVolume_LockBox_Proxy(
4711 IWineD3DVolume* This,
4712 WINED3DLOCKED_BOX *locked_box,
4713 const WINED3DBOX *box,
4714 DWORD flags);
4715void __RPC_STUB IWineD3DVolume_LockBox_Stub(
4716 IRpcStubBuffer* This,
4717 IRpcChannelBuffer* pRpcChannelBuffer,
4718 PRPC_MESSAGE pRpcMessage,
4719 DWORD* pdwStubPhase);
4720HRESULT STDMETHODCALLTYPE IWineD3DVolume_UnlockBox_Proxy(
4721 IWineD3DVolume* This);
4722void __RPC_STUB IWineD3DVolume_UnlockBox_Stub(
4723 IRpcStubBuffer* This,
4724 IRpcChannelBuffer* pRpcChannelBuffer,
4725 PRPC_MESSAGE pRpcMessage,
4726 DWORD* pdwStubPhase);
4727HRESULT STDMETHODCALLTYPE IWineD3DVolume_LoadTexture_Proxy(
4728 IWineD3DVolume* This,
4729 int gl_level,
4730 BOOL srgb_mode);
4731void __RPC_STUB IWineD3DVolume_LoadTexture_Stub(
4732 IRpcStubBuffer* This,
4733 IRpcChannelBuffer* pRpcChannelBuffer,
4734 PRPC_MESSAGE pRpcMessage,
4735 DWORD* pdwStubPhase);
4736HRESULT STDMETHODCALLTYPE IWineD3DVolume_SetContainer_Proxy(
4737 IWineD3DVolume* This,
4738 IWineD3DBase *container);
4739void __RPC_STUB IWineD3DVolume_SetContainer_Stub(
4740 IRpcStubBuffer* This,
4741 IRpcChannelBuffer* pRpcChannelBuffer,
4742 PRPC_MESSAGE pRpcMessage,
4743 DWORD* pdwStubPhase);
4744
4745#endif /* __IWineD3DVolume_INTERFACE_DEFINED__ */
4746
4747/*****************************************************************************
4748 * IWineD3DBaseTexture interface
4749 */
4750#ifndef __IWineD3DBaseTexture_INTERFACE_DEFINED__
4751#define __IWineD3DBaseTexture_INTERFACE_DEFINED__
4752
4753DEFINE_GUID(IID_IWineD3DBaseTexture, 0x3c2aebf6, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
4754#if defined(__cplusplus) && !defined(CINTERFACE)
4755interface IWineD3DBaseTexture : public IWineD3DResource
4756{
4757 virtual DWORD STDMETHODCALLTYPE SetLOD(
4758 DWORD new_lod) = 0;
4759
4760 virtual DWORD STDMETHODCALLTYPE GetLOD(
4761 ) = 0;
4762
4763 virtual DWORD STDMETHODCALLTYPE GetLevelCount(
4764 ) = 0;
4765
4766 virtual HRESULT STDMETHODCALLTYPE SetAutoGenFilterType(
4767 WINED3DTEXTUREFILTERTYPE filter_type) = 0;
4768
4769 virtual WINED3DTEXTUREFILTERTYPE STDMETHODCALLTYPE GetAutoGenFilterType(
4770 ) = 0;
4771
4772 virtual void STDMETHODCALLTYPE GenerateMipSubLevels(
4773 ) = 0;
4774
4775 virtual BOOL STDMETHODCALLTYPE SetDirty(
4776 BOOL dirty) = 0;
4777
4778 virtual BOOL STDMETHODCALLTYPE GetDirty(
4779 ) = 0;
4780
4781 virtual HRESULT STDMETHODCALLTYPE BindTexture(
4782 BOOL srgb) = 0;
4783
4784 virtual UINT STDMETHODCALLTYPE GetTextureDimensions(
4785 ) = 0;
4786
4787 virtual BOOL STDMETHODCALLTYPE IsCondNP2(
4788 ) = 0;
4789
4790};
4791#else
4792typedef struct IWineD3DBaseTextureVtbl {
4793 BEGIN_INTERFACE
4794
4795 /*** IUnknown methods ***/
4796 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
4797 IWineD3DBaseTexture* This,
4798 REFIID riid,
4799 void **ppvObject);
4800
4801 ULONG (STDMETHODCALLTYPE *AddRef)(
4802 IWineD3DBaseTexture* This);
4803
4804 ULONG (STDMETHODCALLTYPE *Release)(
4805 IWineD3DBaseTexture* This);
4806
4807 /*** IWineD3DBase methods ***/
4808 HRESULT (STDMETHODCALLTYPE *GetParent)(
4809 IWineD3DBaseTexture* This,
4810 IUnknown **parent);
4811
4812 /*** IWineD3DResource methods ***/
4813 HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
4814 IWineD3DBaseTexture* This,
4815 REFGUID guid,
4816 const void *data,
4817 DWORD data_size,
4818 DWORD flags);
4819
4820 HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
4821 IWineD3DBaseTexture* This,
4822 REFGUID guid,
4823 void *data,
4824 DWORD *data_size);
4825
4826 HRESULT (STDMETHODCALLTYPE *FreePrivateData)(
4827 IWineD3DBaseTexture* This,
4828 REFGUID guid);
4829
4830 DWORD (STDMETHODCALLTYPE *SetPriority)(
4831 IWineD3DBaseTexture* This,
4832 DWORD new_priority);
4833
4834 DWORD (STDMETHODCALLTYPE *GetPriority)(
4835 IWineD3DBaseTexture* This);
4836
4837 void (STDMETHODCALLTYPE *PreLoad)(
4838 IWineD3DBaseTexture* This);
4839
4840 void (STDMETHODCALLTYPE *UnLoad)(
4841 IWineD3DBaseTexture* This);
4842
4843 WINED3DRESOURCETYPE (STDMETHODCALLTYPE *GetType)(
4844 IWineD3DBaseTexture* This);
4845
4846 /*** IWineD3DBaseTexture methods ***/
4847 DWORD (STDMETHODCALLTYPE *SetLOD)(
4848 IWineD3DBaseTexture* This,
4849 DWORD new_lod);
4850
4851 DWORD (STDMETHODCALLTYPE *GetLOD)(
4852 IWineD3DBaseTexture* This);
4853
4854 DWORD (STDMETHODCALLTYPE *GetLevelCount)(
4855 IWineD3DBaseTexture* This);
4856
4857 HRESULT (STDMETHODCALLTYPE *SetAutoGenFilterType)(
4858 IWineD3DBaseTexture* This,
4859 WINED3DTEXTUREFILTERTYPE filter_type);
4860
4861 WINED3DTEXTUREFILTERTYPE (STDMETHODCALLTYPE *GetAutoGenFilterType)(
4862 IWineD3DBaseTexture* This);
4863
4864 void (STDMETHODCALLTYPE *GenerateMipSubLevels)(
4865 IWineD3DBaseTexture* This);
4866
4867 BOOL (STDMETHODCALLTYPE *SetDirty)(
4868 IWineD3DBaseTexture* This,
4869 BOOL dirty);
4870
4871 BOOL (STDMETHODCALLTYPE *GetDirty)(
4872 IWineD3DBaseTexture* This);
4873
4874 HRESULT (STDMETHODCALLTYPE *BindTexture)(
4875 IWineD3DBaseTexture* This,
4876 BOOL srgb);
4877
4878 UINT (STDMETHODCALLTYPE *GetTextureDimensions)(
4879 IWineD3DBaseTexture* This);
4880
4881 BOOL (STDMETHODCALLTYPE *IsCondNP2)(
4882 IWineD3DBaseTexture* This);
4883
4884 END_INTERFACE
4885} IWineD3DBaseTextureVtbl;
4886interface IWineD3DBaseTexture {
4887 CONST_VTBL IWineD3DBaseTextureVtbl* lpVtbl;
4888};
4889
4890#ifdef COBJMACROS
4891/*** IUnknown methods ***/
4892#define IWineD3DBaseTexture_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
4893#define IWineD3DBaseTexture_AddRef(This) (This)->lpVtbl->AddRef(This)
4894#define IWineD3DBaseTexture_Release(This) (This)->lpVtbl->Release(This)
4895/*** IWineD3DBase methods ***/
4896#define IWineD3DBaseTexture_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
4897/*** IWineD3DResource methods ***/
4898#define IWineD3DBaseTexture_SetPrivateData(This,guid,data,data_size,flags) (This)->lpVtbl->SetPrivateData(This,guid,data,data_size,flags)
4899#define IWineD3DBaseTexture_GetPrivateData(This,guid,data,data_size) (This)->lpVtbl->GetPrivateData(This,guid,data,data_size)
4900#define IWineD3DBaseTexture_FreePrivateData(This,guid) (This)->lpVtbl->FreePrivateData(This,guid)
4901#define IWineD3DBaseTexture_SetPriority(This,new_priority) (This)->lpVtbl->SetPriority(This,new_priority)
4902#define IWineD3DBaseTexture_GetPriority(This) (This)->lpVtbl->GetPriority(This)
4903#define IWineD3DBaseTexture_PreLoad(This) (This)->lpVtbl->PreLoad(This)
4904#define IWineD3DBaseTexture_UnLoad(This) (This)->lpVtbl->UnLoad(This)
4905#define IWineD3DBaseTexture_GetType(This) (This)->lpVtbl->GetType(This)
4906/*** IWineD3DBaseTexture methods ***/
4907#define IWineD3DBaseTexture_SetLOD(This,new_lod) (This)->lpVtbl->SetLOD(This,new_lod)
4908#define IWineD3DBaseTexture_GetLOD(This) (This)->lpVtbl->GetLOD(This)
4909#define IWineD3DBaseTexture_GetLevelCount(This) (This)->lpVtbl->GetLevelCount(This)
4910#define IWineD3DBaseTexture_SetAutoGenFilterType(This,filter_type) (This)->lpVtbl->SetAutoGenFilterType(This,filter_type)
4911#define IWineD3DBaseTexture_GetAutoGenFilterType(This) (This)->lpVtbl->GetAutoGenFilterType(This)
4912#define IWineD3DBaseTexture_GenerateMipSubLevels(This) (This)->lpVtbl->GenerateMipSubLevels(This)
4913#define IWineD3DBaseTexture_SetDirty(This,dirty) (This)->lpVtbl->SetDirty(This,dirty)
4914#define IWineD3DBaseTexture_GetDirty(This) (This)->lpVtbl->GetDirty(This)
4915#define IWineD3DBaseTexture_BindTexture(This,srgb) (This)->lpVtbl->BindTexture(This,srgb)
4916#define IWineD3DBaseTexture_GetTextureDimensions(This) (This)->lpVtbl->GetTextureDimensions(This)
4917#define IWineD3DBaseTexture_IsCondNP2(This) (This)->lpVtbl->IsCondNP2(This)
4918#endif
4919
4920#endif
4921
4922DWORD STDMETHODCALLTYPE IWineD3DBaseTexture_SetLOD_Proxy(
4923 IWineD3DBaseTexture* This,
4924 DWORD new_lod);
4925void __RPC_STUB IWineD3DBaseTexture_SetLOD_Stub(
4926 IRpcStubBuffer* This,
4927 IRpcChannelBuffer* pRpcChannelBuffer,
4928 PRPC_MESSAGE pRpcMessage,
4929 DWORD* pdwStubPhase);
4930DWORD STDMETHODCALLTYPE IWineD3DBaseTexture_GetLOD_Proxy(
4931 IWineD3DBaseTexture* This);
4932void __RPC_STUB IWineD3DBaseTexture_GetLOD_Stub(
4933 IRpcStubBuffer* This,
4934 IRpcChannelBuffer* pRpcChannelBuffer,
4935 PRPC_MESSAGE pRpcMessage,
4936 DWORD* pdwStubPhase);
4937DWORD STDMETHODCALLTYPE IWineD3DBaseTexture_GetLevelCount_Proxy(
4938 IWineD3DBaseTexture* This);
4939void __RPC_STUB IWineD3DBaseTexture_GetLevelCount_Stub(
4940 IRpcStubBuffer* This,
4941 IRpcChannelBuffer* pRpcChannelBuffer,
4942 PRPC_MESSAGE pRpcMessage,
4943 DWORD* pdwStubPhase);
4944HRESULT STDMETHODCALLTYPE IWineD3DBaseTexture_SetAutoGenFilterType_Proxy(
4945 IWineD3DBaseTexture* This,
4946 WINED3DTEXTUREFILTERTYPE filter_type);
4947void __RPC_STUB IWineD3DBaseTexture_SetAutoGenFilterType_Stub(
4948 IRpcStubBuffer* This,
4949 IRpcChannelBuffer* pRpcChannelBuffer,
4950 PRPC_MESSAGE pRpcMessage,
4951 DWORD* pdwStubPhase);
4952WINED3DTEXTUREFILTERTYPE STDMETHODCALLTYPE IWineD3DBaseTexture_GetAutoGenFilterType_Proxy(
4953 IWineD3DBaseTexture* This);
4954void __RPC_STUB IWineD3DBaseTexture_GetAutoGenFilterType_Stub(
4955 IRpcStubBuffer* This,
4956 IRpcChannelBuffer* pRpcChannelBuffer,
4957 PRPC_MESSAGE pRpcMessage,
4958 DWORD* pdwStubPhase);
4959void STDMETHODCALLTYPE IWineD3DBaseTexture_GenerateMipSubLevels_Proxy(
4960 IWineD3DBaseTexture* This);
4961void __RPC_STUB IWineD3DBaseTexture_GenerateMipSubLevels_Stub(
4962 IRpcStubBuffer* This,
4963 IRpcChannelBuffer* pRpcChannelBuffer,
4964 PRPC_MESSAGE pRpcMessage,
4965 DWORD* pdwStubPhase);
4966BOOL STDMETHODCALLTYPE IWineD3DBaseTexture_SetDirty_Proxy(
4967 IWineD3DBaseTexture* This,
4968 BOOL dirty);
4969void __RPC_STUB IWineD3DBaseTexture_SetDirty_Stub(
4970 IRpcStubBuffer* This,
4971 IRpcChannelBuffer* pRpcChannelBuffer,
4972 PRPC_MESSAGE pRpcMessage,
4973 DWORD* pdwStubPhase);
4974BOOL STDMETHODCALLTYPE IWineD3DBaseTexture_GetDirty_Proxy(
4975 IWineD3DBaseTexture* This);
4976void __RPC_STUB IWineD3DBaseTexture_GetDirty_Stub(
4977 IRpcStubBuffer* This,
4978 IRpcChannelBuffer* pRpcChannelBuffer,
4979 PRPC_MESSAGE pRpcMessage,
4980 DWORD* pdwStubPhase);
4981HRESULT STDMETHODCALLTYPE IWineD3DBaseTexture_BindTexture_Proxy(
4982 IWineD3DBaseTexture* This,
4983 BOOL srgb);
4984void __RPC_STUB IWineD3DBaseTexture_BindTexture_Stub(
4985 IRpcStubBuffer* This,
4986 IRpcChannelBuffer* pRpcChannelBuffer,
4987 PRPC_MESSAGE pRpcMessage,
4988 DWORD* pdwStubPhase);
4989UINT STDMETHODCALLTYPE IWineD3DBaseTexture_GetTextureDimensions_Proxy(
4990 IWineD3DBaseTexture* This);
4991void __RPC_STUB IWineD3DBaseTexture_GetTextureDimensions_Stub(
4992 IRpcStubBuffer* This,
4993 IRpcChannelBuffer* pRpcChannelBuffer,
4994 PRPC_MESSAGE pRpcMessage,
4995 DWORD* pdwStubPhase);
4996BOOL STDMETHODCALLTYPE IWineD3DBaseTexture_IsCondNP2_Proxy(
4997 IWineD3DBaseTexture* This);
4998void __RPC_STUB IWineD3DBaseTexture_IsCondNP2_Stub(
4999 IRpcStubBuffer* This,
5000 IRpcChannelBuffer* pRpcChannelBuffer,
5001 PRPC_MESSAGE pRpcMessage,
5002 DWORD* pdwStubPhase);
5003
5004#endif /* __IWineD3DBaseTexture_INTERFACE_DEFINED__ */
5005
5006/*****************************************************************************
5007 * IWineD3DTexture interface
5008 */
5009#ifndef __IWineD3DTexture_INTERFACE_DEFINED__
5010#define __IWineD3DTexture_INTERFACE_DEFINED__
5011
5012DEFINE_GUID(IID_IWineD3DTexture, 0x3e72cc1c, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
5013#if defined(__cplusplus) && !defined(CINTERFACE)
5014interface IWineD3DTexture : public IWineD3DBaseTexture
5015{
5016 virtual HRESULT STDMETHODCALLTYPE GetLevelDesc(
5017 UINT level,
5018 WINED3DSURFACE_DESC *desc) = 0;
5019
5020 virtual HRESULT STDMETHODCALLTYPE GetSurfaceLevel(
5021 UINT level,
5022 IWineD3DSurface **surface) = 0;
5023
5024 virtual HRESULT STDMETHODCALLTYPE LockRect(
5025 UINT level,
5026 WINED3DLOCKED_RECT *locked_rect,
5027 const RECT *rect,
5028 DWORD flags) = 0;
5029
5030 virtual HRESULT STDMETHODCALLTYPE UnlockRect(
5031 UINT level) = 0;
5032
5033 virtual HRESULT STDMETHODCALLTYPE AddDirtyRect(
5034 const RECT *dirty_rect) = 0;
5035
5036};
5037#else
5038typedef struct IWineD3DTextureVtbl {
5039 BEGIN_INTERFACE
5040
5041 /*** IUnknown methods ***/
5042 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
5043 IWineD3DTexture* This,
5044 REFIID riid,
5045 void **ppvObject);
5046
5047 ULONG (STDMETHODCALLTYPE *AddRef)(
5048 IWineD3DTexture* This);
5049
5050 ULONG (STDMETHODCALLTYPE *Release)(
5051 IWineD3DTexture* This);
5052
5053 /*** IWineD3DBase methods ***/
5054 HRESULT (STDMETHODCALLTYPE *GetParent)(
5055 IWineD3DTexture* This,
5056 IUnknown **parent);
5057
5058 /*** IWineD3DResource methods ***/
5059 HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
5060 IWineD3DTexture* This,
5061 REFGUID guid,
5062 const void *data,
5063 DWORD data_size,
5064 DWORD flags);
5065
5066 HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
5067 IWineD3DTexture* This,
5068 REFGUID guid,
5069 void *data,
5070 DWORD *data_size);
5071
5072 HRESULT (STDMETHODCALLTYPE *FreePrivateData)(
5073 IWineD3DTexture* This,
5074 REFGUID guid);
5075
5076 DWORD (STDMETHODCALLTYPE *SetPriority)(
5077 IWineD3DTexture* This,
5078 DWORD new_priority);
5079
5080 DWORD (STDMETHODCALLTYPE *GetPriority)(
5081 IWineD3DTexture* This);
5082
5083 void (STDMETHODCALLTYPE *PreLoad)(
5084 IWineD3DTexture* This);
5085
5086 void (STDMETHODCALLTYPE *UnLoad)(
5087 IWineD3DTexture* This);
5088
5089 WINED3DRESOURCETYPE (STDMETHODCALLTYPE *GetType)(
5090 IWineD3DTexture* This);
5091
5092 /*** IWineD3DBaseTexture methods ***/
5093 DWORD (STDMETHODCALLTYPE *SetLOD)(
5094 IWineD3DTexture* This,
5095 DWORD new_lod);
5096
5097 DWORD (STDMETHODCALLTYPE *GetLOD)(
5098 IWineD3DTexture* This);
5099
5100 DWORD (STDMETHODCALLTYPE *GetLevelCount)(
5101 IWineD3DTexture* This);
5102
5103 HRESULT (STDMETHODCALLTYPE *SetAutoGenFilterType)(
5104 IWineD3DTexture* This,
5105 WINED3DTEXTUREFILTERTYPE filter_type);
5106
5107 WINED3DTEXTUREFILTERTYPE (STDMETHODCALLTYPE *GetAutoGenFilterType)(
5108 IWineD3DTexture* This);
5109
5110 void (STDMETHODCALLTYPE *GenerateMipSubLevels)(
5111 IWineD3DTexture* This);
5112
5113 BOOL (STDMETHODCALLTYPE *SetDirty)(
5114 IWineD3DTexture* This,
5115 BOOL dirty);
5116
5117 BOOL (STDMETHODCALLTYPE *GetDirty)(
5118 IWineD3DTexture* This);
5119
5120 HRESULT (STDMETHODCALLTYPE *BindTexture)(
5121 IWineD3DTexture* This,
5122 BOOL srgb);
5123
5124 UINT (STDMETHODCALLTYPE *GetTextureDimensions)(
5125 IWineD3DTexture* This);
5126
5127 BOOL (STDMETHODCALLTYPE *IsCondNP2)(
5128 IWineD3DTexture* This);
5129
5130 /*** IWineD3DTexture methods ***/
5131 HRESULT (STDMETHODCALLTYPE *GetLevelDesc)(
5132 IWineD3DTexture* This,
5133 UINT level,
5134 WINED3DSURFACE_DESC *desc);
5135
5136 HRESULT (STDMETHODCALLTYPE *GetSurfaceLevel)(
5137 IWineD3DTexture* This,
5138 UINT level,
5139 IWineD3DSurface **surface);
5140
5141 HRESULT (STDMETHODCALLTYPE *LockRect)(
5142 IWineD3DTexture* This,
5143 UINT level,
5144 WINED3DLOCKED_RECT *locked_rect,
5145 const RECT *rect,
5146 DWORD flags);
5147
5148 HRESULT (STDMETHODCALLTYPE *UnlockRect)(
5149 IWineD3DTexture* This,
5150 UINT level);
5151
5152 HRESULT (STDMETHODCALLTYPE *AddDirtyRect)(
5153 IWineD3DTexture* This,
5154 const RECT *dirty_rect);
5155
5156 END_INTERFACE
5157} IWineD3DTextureVtbl;
5158interface IWineD3DTexture {
5159 CONST_VTBL IWineD3DTextureVtbl* lpVtbl;
5160};
5161
5162#ifdef COBJMACROS
5163/*** IUnknown methods ***/
5164#define IWineD3DTexture_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
5165#define IWineD3DTexture_AddRef(This) (This)->lpVtbl->AddRef(This)
5166#define IWineD3DTexture_Release(This) (This)->lpVtbl->Release(This)
5167/*** IWineD3DBase methods ***/
5168#define IWineD3DTexture_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
5169/*** IWineD3DResource methods ***/
5170#define IWineD3DTexture_SetPrivateData(This,guid,data,data_size,flags) (This)->lpVtbl->SetPrivateData(This,guid,data,data_size,flags)
5171#define IWineD3DTexture_GetPrivateData(This,guid,data,data_size) (This)->lpVtbl->GetPrivateData(This,guid,data,data_size)
5172#define IWineD3DTexture_FreePrivateData(This,guid) (This)->lpVtbl->FreePrivateData(This,guid)
5173#define IWineD3DTexture_SetPriority(This,new_priority) (This)->lpVtbl->SetPriority(This,new_priority)
5174#define IWineD3DTexture_GetPriority(This) (This)->lpVtbl->GetPriority(This)
5175#define IWineD3DTexture_PreLoad(This) (This)->lpVtbl->PreLoad(This)
5176#define IWineD3DTexture_UnLoad(This) (This)->lpVtbl->UnLoad(This)
5177#define IWineD3DTexture_GetType(This) (This)->lpVtbl->GetType(This)
5178/*** IWineD3DBaseTexture methods ***/
5179#define IWineD3DTexture_SetLOD(This,new_lod) (This)->lpVtbl->SetLOD(This,new_lod)
5180#define IWineD3DTexture_GetLOD(This) (This)->lpVtbl->GetLOD(This)
5181#define IWineD3DTexture_GetLevelCount(This) (This)->lpVtbl->GetLevelCount(This)
5182#define IWineD3DTexture_SetAutoGenFilterType(This,filter_type) (This)->lpVtbl->SetAutoGenFilterType(This,filter_type)
5183#define IWineD3DTexture_GetAutoGenFilterType(This) (This)->lpVtbl->GetAutoGenFilterType(This)
5184#define IWineD3DTexture_GenerateMipSubLevels(This) (This)->lpVtbl->GenerateMipSubLevels(This)
5185#define IWineD3DTexture_SetDirty(This,dirty) (This)->lpVtbl->SetDirty(This,dirty)
5186#define IWineD3DTexture_GetDirty(This) (This)->lpVtbl->GetDirty(This)
5187#define IWineD3DTexture_BindTexture(This,srgb) (This)->lpVtbl->BindTexture(This,srgb)
5188#define IWineD3DTexture_GetTextureDimensions(This) (This)->lpVtbl->GetTextureDimensions(This)
5189#define IWineD3DTexture_IsCondNP2(This) (This)->lpVtbl->IsCondNP2(This)
5190/*** IWineD3DTexture methods ***/
5191#define IWineD3DTexture_GetLevelDesc(This,level,desc) (This)->lpVtbl->GetLevelDesc(This,level,desc)
5192#define IWineD3DTexture_GetSurfaceLevel(This,level,surface) (This)->lpVtbl->GetSurfaceLevel(This,level,surface)
5193#define IWineD3DTexture_LockRect(This,level,locked_rect,rect,flags) (This)->lpVtbl->LockRect(This,level,locked_rect,rect,flags)
5194#define IWineD3DTexture_UnlockRect(This,level) (This)->lpVtbl->UnlockRect(This,level)
5195#define IWineD3DTexture_AddDirtyRect(This,dirty_rect) (This)->lpVtbl->AddDirtyRect(This,dirty_rect)
5196#endif
5197
5198#endif
5199
5200HRESULT STDMETHODCALLTYPE IWineD3DTexture_GetLevelDesc_Proxy(
5201 IWineD3DTexture* This,
5202 UINT level,
5203 WINED3DSURFACE_DESC *desc);
5204void __RPC_STUB IWineD3DTexture_GetLevelDesc_Stub(
5205 IRpcStubBuffer* This,
5206 IRpcChannelBuffer* pRpcChannelBuffer,
5207 PRPC_MESSAGE pRpcMessage,
5208 DWORD* pdwStubPhase);
5209HRESULT STDMETHODCALLTYPE IWineD3DTexture_GetSurfaceLevel_Proxy(
5210 IWineD3DTexture* This,
5211 UINT level,
5212 IWineD3DSurface **surface);
5213void __RPC_STUB IWineD3DTexture_GetSurfaceLevel_Stub(
5214 IRpcStubBuffer* This,
5215 IRpcChannelBuffer* pRpcChannelBuffer,
5216 PRPC_MESSAGE pRpcMessage,
5217 DWORD* pdwStubPhase);
5218HRESULT STDMETHODCALLTYPE IWineD3DTexture_LockRect_Proxy(
5219 IWineD3DTexture* This,
5220 UINT level,
5221 WINED3DLOCKED_RECT *locked_rect,
5222 const RECT *rect,
5223 DWORD flags);
5224void __RPC_STUB IWineD3DTexture_LockRect_Stub(
5225 IRpcStubBuffer* This,
5226 IRpcChannelBuffer* pRpcChannelBuffer,
5227 PRPC_MESSAGE pRpcMessage,
5228 DWORD* pdwStubPhase);
5229HRESULT STDMETHODCALLTYPE IWineD3DTexture_UnlockRect_Proxy(
5230 IWineD3DTexture* This,
5231 UINT level);
5232void __RPC_STUB IWineD3DTexture_UnlockRect_Stub(
5233 IRpcStubBuffer* This,
5234 IRpcChannelBuffer* pRpcChannelBuffer,
5235 PRPC_MESSAGE pRpcMessage,
5236 DWORD* pdwStubPhase);
5237HRESULT STDMETHODCALLTYPE IWineD3DTexture_AddDirtyRect_Proxy(
5238 IWineD3DTexture* This,
5239 const RECT *dirty_rect);
5240void __RPC_STUB IWineD3DTexture_AddDirtyRect_Stub(
5241 IRpcStubBuffer* This,
5242 IRpcChannelBuffer* pRpcChannelBuffer,
5243 PRPC_MESSAGE pRpcMessage,
5244 DWORD* pdwStubPhase);
5245
5246#endif /* __IWineD3DTexture_INTERFACE_DEFINED__ */
5247
5248/*****************************************************************************
5249 * IWineD3DCubeTexture interface
5250 */
5251#ifndef __IWineD3DCubeTexture_INTERFACE_DEFINED__
5252#define __IWineD3DCubeTexture_INTERFACE_DEFINED__
5253
5254DEFINE_GUID(IID_IWineD3DCubeTexture, 0x41752900, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
5255#if defined(__cplusplus) && !defined(CINTERFACE)
5256interface IWineD3DCubeTexture : public IWineD3DBaseTexture
5257{
5258 virtual HRESULT STDMETHODCALLTYPE GetLevelDesc(
5259 UINT level,
5260 WINED3DSURFACE_DESC *desc) = 0;
5261
5262 virtual HRESULT STDMETHODCALLTYPE GetCubeMapSurface(
5263 WINED3DCUBEMAP_FACES face,
5264 UINT level,
5265 IWineD3DSurface **surface) = 0;
5266
5267 virtual HRESULT STDMETHODCALLTYPE LockRect(
5268 WINED3DCUBEMAP_FACES face,
5269 UINT level,
5270 WINED3DLOCKED_RECT *locked_rect,
5271 const RECT *rect,
5272 DWORD flags) = 0;
5273
5274 virtual HRESULT STDMETHODCALLTYPE UnlockRect(
5275 WINED3DCUBEMAP_FACES face,
5276 UINT level) = 0;
5277
5278 virtual HRESULT STDMETHODCALLTYPE AddDirtyRect(
5279 WINED3DCUBEMAP_FACES face,
5280 const RECT *dirty_rect) = 0;
5281
5282};
5283#else
5284typedef struct IWineD3DCubeTextureVtbl {
5285 BEGIN_INTERFACE
5286
5287 /*** IUnknown methods ***/
5288 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
5289 IWineD3DCubeTexture* This,
5290 REFIID riid,
5291 void **ppvObject);
5292
5293 ULONG (STDMETHODCALLTYPE *AddRef)(
5294 IWineD3DCubeTexture* This);
5295
5296 ULONG (STDMETHODCALLTYPE *Release)(
5297 IWineD3DCubeTexture* This);
5298
5299 /*** IWineD3DBase methods ***/
5300 HRESULT (STDMETHODCALLTYPE *GetParent)(
5301 IWineD3DCubeTexture* This,
5302 IUnknown **parent);
5303
5304 /*** IWineD3DResource methods ***/
5305 HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
5306 IWineD3DCubeTexture* This,
5307 REFGUID guid,
5308 const void *data,
5309 DWORD data_size,
5310 DWORD flags);
5311
5312 HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
5313 IWineD3DCubeTexture* This,
5314 REFGUID guid,
5315 void *data,
5316 DWORD *data_size);
5317
5318 HRESULT (STDMETHODCALLTYPE *FreePrivateData)(
5319 IWineD3DCubeTexture* This,
5320 REFGUID guid);
5321
5322 DWORD (STDMETHODCALLTYPE *SetPriority)(
5323 IWineD3DCubeTexture* This,
5324 DWORD new_priority);
5325
5326 DWORD (STDMETHODCALLTYPE *GetPriority)(
5327 IWineD3DCubeTexture* This);
5328
5329 void (STDMETHODCALLTYPE *PreLoad)(
5330 IWineD3DCubeTexture* This);
5331
5332 void (STDMETHODCALLTYPE *UnLoad)(
5333 IWineD3DCubeTexture* This);
5334
5335 WINED3DRESOURCETYPE (STDMETHODCALLTYPE *GetType)(
5336 IWineD3DCubeTexture* This);
5337
5338 /*** IWineD3DBaseTexture methods ***/
5339 DWORD (STDMETHODCALLTYPE *SetLOD)(
5340 IWineD3DCubeTexture* This,
5341 DWORD new_lod);
5342
5343 DWORD (STDMETHODCALLTYPE *GetLOD)(
5344 IWineD3DCubeTexture* This);
5345
5346 DWORD (STDMETHODCALLTYPE *GetLevelCount)(
5347 IWineD3DCubeTexture* This);
5348
5349 HRESULT (STDMETHODCALLTYPE *SetAutoGenFilterType)(
5350 IWineD3DCubeTexture* This,
5351 WINED3DTEXTUREFILTERTYPE filter_type);
5352
5353 WINED3DTEXTUREFILTERTYPE (STDMETHODCALLTYPE *GetAutoGenFilterType)(
5354 IWineD3DCubeTexture* This);
5355
5356 void (STDMETHODCALLTYPE *GenerateMipSubLevels)(
5357 IWineD3DCubeTexture* This);
5358
5359 BOOL (STDMETHODCALLTYPE *SetDirty)(
5360 IWineD3DCubeTexture* This,
5361 BOOL dirty);
5362
5363 BOOL (STDMETHODCALLTYPE *GetDirty)(
5364 IWineD3DCubeTexture* This);
5365
5366 HRESULT (STDMETHODCALLTYPE *BindTexture)(
5367 IWineD3DCubeTexture* This,
5368 BOOL srgb);
5369
5370 UINT (STDMETHODCALLTYPE *GetTextureDimensions)(
5371 IWineD3DCubeTexture* This);
5372
5373 BOOL (STDMETHODCALLTYPE *IsCondNP2)(
5374 IWineD3DCubeTexture* This);
5375
5376 /*** IWineD3DCubeTexture methods ***/
5377 HRESULT (STDMETHODCALLTYPE *GetLevelDesc)(
5378 IWineD3DCubeTexture* This,
5379 UINT level,
5380 WINED3DSURFACE_DESC *desc);
5381
5382 HRESULT (STDMETHODCALLTYPE *GetCubeMapSurface)(
5383 IWineD3DCubeTexture* This,
5384 WINED3DCUBEMAP_FACES face,
5385 UINT level,
5386 IWineD3DSurface **surface);
5387
5388 HRESULT (STDMETHODCALLTYPE *LockRect)(
5389 IWineD3DCubeTexture* This,
5390 WINED3DCUBEMAP_FACES face,
5391 UINT level,
5392 WINED3DLOCKED_RECT *locked_rect,
5393 const RECT *rect,
5394 DWORD flags);
5395
5396 HRESULT (STDMETHODCALLTYPE *UnlockRect)(
5397 IWineD3DCubeTexture* This,
5398 WINED3DCUBEMAP_FACES face,
5399 UINT level);
5400
5401 HRESULT (STDMETHODCALLTYPE *AddDirtyRect)(
5402 IWineD3DCubeTexture* This,
5403 WINED3DCUBEMAP_FACES face,
5404 const RECT *dirty_rect);
5405
5406 END_INTERFACE
5407} IWineD3DCubeTextureVtbl;
5408interface IWineD3DCubeTexture {
5409 CONST_VTBL IWineD3DCubeTextureVtbl* lpVtbl;
5410};
5411
5412#ifdef COBJMACROS
5413/*** IUnknown methods ***/
5414#define IWineD3DCubeTexture_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
5415#define IWineD3DCubeTexture_AddRef(This) (This)->lpVtbl->AddRef(This)
5416#define IWineD3DCubeTexture_Release(This) (This)->lpVtbl->Release(This)
5417/*** IWineD3DBase methods ***/
5418#define IWineD3DCubeTexture_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
5419/*** IWineD3DResource methods ***/
5420#define IWineD3DCubeTexture_SetPrivateData(This,guid,data,data_size,flags) (This)->lpVtbl->SetPrivateData(This,guid,data,data_size,flags)
5421#define IWineD3DCubeTexture_GetPrivateData(This,guid,data,data_size) (This)->lpVtbl->GetPrivateData(This,guid,data,data_size)
5422#define IWineD3DCubeTexture_FreePrivateData(This,guid) (This)->lpVtbl->FreePrivateData(This,guid)
5423#define IWineD3DCubeTexture_SetPriority(This,new_priority) (This)->lpVtbl->SetPriority(This,new_priority)
5424#define IWineD3DCubeTexture_GetPriority(This) (This)->lpVtbl->GetPriority(This)
5425#define IWineD3DCubeTexture_PreLoad(This) (This)->lpVtbl->PreLoad(This)
5426#define IWineD3DCubeTexture_UnLoad(This) (This)->lpVtbl->UnLoad(This)
5427#define IWineD3DCubeTexture_GetType(This) (This)->lpVtbl->GetType(This)
5428/*** IWineD3DBaseTexture methods ***/
5429#define IWineD3DCubeTexture_SetLOD(This,new_lod) (This)->lpVtbl->SetLOD(This,new_lod)
5430#define IWineD3DCubeTexture_GetLOD(This) (This)->lpVtbl->GetLOD(This)
5431#define IWineD3DCubeTexture_GetLevelCount(This) (This)->lpVtbl->GetLevelCount(This)
5432#define IWineD3DCubeTexture_SetAutoGenFilterType(This,filter_type) (This)->lpVtbl->SetAutoGenFilterType(This,filter_type)
5433#define IWineD3DCubeTexture_GetAutoGenFilterType(This) (This)->lpVtbl->GetAutoGenFilterType(This)
5434#define IWineD3DCubeTexture_GenerateMipSubLevels(This) (This)->lpVtbl->GenerateMipSubLevels(This)
5435#define IWineD3DCubeTexture_SetDirty(This,dirty) (This)->lpVtbl->SetDirty(This,dirty)
5436#define IWineD3DCubeTexture_GetDirty(This) (This)->lpVtbl->GetDirty(This)
5437#define IWineD3DCubeTexture_BindTexture(This,srgb) (This)->lpVtbl->BindTexture(This,srgb)
5438#define IWineD3DCubeTexture_GetTextureDimensions(This) (This)->lpVtbl->GetTextureDimensions(This)
5439#define IWineD3DCubeTexture_IsCondNP2(This) (This)->lpVtbl->IsCondNP2(This)
5440/*** IWineD3DCubeTexture methods ***/
5441#define IWineD3DCubeTexture_GetLevelDesc(This,level,desc) (This)->lpVtbl->GetLevelDesc(This,level,desc)
5442#define IWineD3DCubeTexture_GetCubeMapSurface(This,face,level,surface) (This)->lpVtbl->GetCubeMapSurface(This,face,level,surface)
5443#define IWineD3DCubeTexture_LockRect(This,face,level,locked_rect,rect,flags) (This)->lpVtbl->LockRect(This,face,level,locked_rect,rect,flags)
5444#define IWineD3DCubeTexture_UnlockRect(This,face,level) (This)->lpVtbl->UnlockRect(This,face,level)
5445#define IWineD3DCubeTexture_AddDirtyRect(This,face,dirty_rect) (This)->lpVtbl->AddDirtyRect(This,face,dirty_rect)
5446#endif
5447
5448#endif
5449
5450HRESULT STDMETHODCALLTYPE IWineD3DCubeTexture_GetLevelDesc_Proxy(
5451 IWineD3DCubeTexture* This,
5452 UINT level,
5453 WINED3DSURFACE_DESC *desc);
5454void __RPC_STUB IWineD3DCubeTexture_GetLevelDesc_Stub(
5455 IRpcStubBuffer* This,
5456 IRpcChannelBuffer* pRpcChannelBuffer,
5457 PRPC_MESSAGE pRpcMessage,
5458 DWORD* pdwStubPhase);
5459HRESULT STDMETHODCALLTYPE IWineD3DCubeTexture_GetCubeMapSurface_Proxy(
5460 IWineD3DCubeTexture* This,
5461 WINED3DCUBEMAP_FACES face,
5462 UINT level,
5463 IWineD3DSurface **surface);
5464void __RPC_STUB IWineD3DCubeTexture_GetCubeMapSurface_Stub(
5465 IRpcStubBuffer* This,
5466 IRpcChannelBuffer* pRpcChannelBuffer,
5467 PRPC_MESSAGE pRpcMessage,
5468 DWORD* pdwStubPhase);
5469HRESULT STDMETHODCALLTYPE IWineD3DCubeTexture_LockRect_Proxy(
5470 IWineD3DCubeTexture* This,
5471 WINED3DCUBEMAP_FACES face,
5472 UINT level,
5473 WINED3DLOCKED_RECT *locked_rect,
5474 const RECT *rect,
5475 DWORD flags);
5476void __RPC_STUB IWineD3DCubeTexture_LockRect_Stub(
5477 IRpcStubBuffer* This,
5478 IRpcChannelBuffer* pRpcChannelBuffer,
5479 PRPC_MESSAGE pRpcMessage,
5480 DWORD* pdwStubPhase);
5481HRESULT STDMETHODCALLTYPE IWineD3DCubeTexture_UnlockRect_Proxy(
5482 IWineD3DCubeTexture* This,
5483 WINED3DCUBEMAP_FACES face,
5484 UINT level);
5485void __RPC_STUB IWineD3DCubeTexture_UnlockRect_Stub(
5486 IRpcStubBuffer* This,
5487 IRpcChannelBuffer* pRpcChannelBuffer,
5488 PRPC_MESSAGE pRpcMessage,
5489 DWORD* pdwStubPhase);
5490HRESULT STDMETHODCALLTYPE IWineD3DCubeTexture_AddDirtyRect_Proxy(
5491 IWineD3DCubeTexture* This,
5492 WINED3DCUBEMAP_FACES face,
5493 const RECT *dirty_rect);
5494void __RPC_STUB IWineD3DCubeTexture_AddDirtyRect_Stub(
5495 IRpcStubBuffer* This,
5496 IRpcChannelBuffer* pRpcChannelBuffer,
5497 PRPC_MESSAGE pRpcMessage,
5498 DWORD* pdwStubPhase);
5499
5500#endif /* __IWineD3DCubeTexture_INTERFACE_DEFINED__ */
5501
5502/*****************************************************************************
5503 * IWineD3DVolumeTexture interface
5504 */
5505#ifndef __IWineD3DVolumeTexture_INTERFACE_DEFINED__
5506#define __IWineD3DVolumeTexture_INTERFACE_DEFINED__
5507
5508DEFINE_GUID(IID_IWineD3DVolumeTexture, 0x7b39470c, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
5509#if defined(__cplusplus) && !defined(CINTERFACE)
5510interface IWineD3DVolumeTexture : public IWineD3DBaseTexture
5511{
5512 virtual HRESULT STDMETHODCALLTYPE GetLevelDesc(
5513 UINT level,
5514 WINED3DVOLUME_DESC *desc) = 0;
5515
5516 virtual HRESULT STDMETHODCALLTYPE GetVolumeLevel(
5517 UINT level,
5518 IWineD3DVolume **volume) = 0;
5519
5520 virtual HRESULT STDMETHODCALLTYPE LockBox(
5521 UINT level,
5522 WINED3DLOCKED_BOX *locked_box,
5523 const WINED3DBOX *box,
5524 DWORD flags) = 0;
5525
5526 virtual HRESULT STDMETHODCALLTYPE UnlockBox(
5527 UINT level) = 0;
5528
5529 virtual HRESULT STDMETHODCALLTYPE AddDirtyBox(
5530 const WINED3DBOX *dirty_box) = 0;
5531
5532};
5533#else
5534typedef struct IWineD3DVolumeTextureVtbl {
5535 BEGIN_INTERFACE
5536
5537 /*** IUnknown methods ***/
5538 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
5539 IWineD3DVolumeTexture* This,
5540 REFIID riid,
5541 void **ppvObject);
5542
5543 ULONG (STDMETHODCALLTYPE *AddRef)(
5544 IWineD3DVolumeTexture* This);
5545
5546 ULONG (STDMETHODCALLTYPE *Release)(
5547 IWineD3DVolumeTexture* This);
5548
5549 /*** IWineD3DBase methods ***/
5550 HRESULT (STDMETHODCALLTYPE *GetParent)(
5551 IWineD3DVolumeTexture* This,
5552 IUnknown **parent);
5553
5554 /*** IWineD3DResource methods ***/
5555 HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
5556 IWineD3DVolumeTexture* This,
5557 REFGUID guid,
5558 const void *data,
5559 DWORD data_size,
5560 DWORD flags);
5561
5562 HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
5563 IWineD3DVolumeTexture* This,
5564 REFGUID guid,
5565 void *data,
5566 DWORD *data_size);
5567
5568 HRESULT (STDMETHODCALLTYPE *FreePrivateData)(
5569 IWineD3DVolumeTexture* This,
5570 REFGUID guid);
5571
5572 DWORD (STDMETHODCALLTYPE *SetPriority)(
5573 IWineD3DVolumeTexture* This,
5574 DWORD new_priority);
5575
5576 DWORD (STDMETHODCALLTYPE *GetPriority)(
5577 IWineD3DVolumeTexture* This);
5578
5579 void (STDMETHODCALLTYPE *PreLoad)(
5580 IWineD3DVolumeTexture* This);
5581
5582 void (STDMETHODCALLTYPE *UnLoad)(
5583 IWineD3DVolumeTexture* This);
5584
5585 WINED3DRESOURCETYPE (STDMETHODCALLTYPE *GetType)(
5586 IWineD3DVolumeTexture* This);
5587
5588 /*** IWineD3DBaseTexture methods ***/
5589 DWORD (STDMETHODCALLTYPE *SetLOD)(
5590 IWineD3DVolumeTexture* This,
5591 DWORD new_lod);
5592
5593 DWORD (STDMETHODCALLTYPE *GetLOD)(
5594 IWineD3DVolumeTexture* This);
5595
5596 DWORD (STDMETHODCALLTYPE *GetLevelCount)(
5597 IWineD3DVolumeTexture* This);
5598
5599 HRESULT (STDMETHODCALLTYPE *SetAutoGenFilterType)(
5600 IWineD3DVolumeTexture* This,
5601 WINED3DTEXTUREFILTERTYPE filter_type);
5602
5603 WINED3DTEXTUREFILTERTYPE (STDMETHODCALLTYPE *GetAutoGenFilterType)(
5604 IWineD3DVolumeTexture* This);
5605
5606 void (STDMETHODCALLTYPE *GenerateMipSubLevels)(
5607 IWineD3DVolumeTexture* This);
5608
5609 BOOL (STDMETHODCALLTYPE *SetDirty)(
5610 IWineD3DVolumeTexture* This,
5611 BOOL dirty);
5612
5613 BOOL (STDMETHODCALLTYPE *GetDirty)(
5614 IWineD3DVolumeTexture* This);
5615
5616 HRESULT (STDMETHODCALLTYPE *BindTexture)(
5617 IWineD3DVolumeTexture* This,
5618 BOOL srgb);
5619
5620 UINT (STDMETHODCALLTYPE *GetTextureDimensions)(
5621 IWineD3DVolumeTexture* This);
5622
5623 BOOL (STDMETHODCALLTYPE *IsCondNP2)(
5624 IWineD3DVolumeTexture* This);
5625
5626 /*** IWineD3DVolumeTexture methods ***/
5627 HRESULT (STDMETHODCALLTYPE *GetLevelDesc)(
5628 IWineD3DVolumeTexture* This,
5629 UINT level,
5630 WINED3DVOLUME_DESC *desc);
5631
5632 HRESULT (STDMETHODCALLTYPE *GetVolumeLevel)(
5633 IWineD3DVolumeTexture* This,
5634 UINT level,
5635 IWineD3DVolume **volume);
5636
5637 HRESULT (STDMETHODCALLTYPE *LockBox)(
5638 IWineD3DVolumeTexture* This,
5639 UINT level,
5640 WINED3DLOCKED_BOX *locked_box,
5641 const WINED3DBOX *box,
5642 DWORD flags);
5643
5644 HRESULT (STDMETHODCALLTYPE *UnlockBox)(
5645 IWineD3DVolumeTexture* This,
5646 UINT level);
5647
5648 HRESULT (STDMETHODCALLTYPE *AddDirtyBox)(
5649 IWineD3DVolumeTexture* This,
5650 const WINED3DBOX *dirty_box);
5651
5652 END_INTERFACE
5653} IWineD3DVolumeTextureVtbl;
5654interface IWineD3DVolumeTexture {
5655 CONST_VTBL IWineD3DVolumeTextureVtbl* lpVtbl;
5656};
5657
5658#ifdef COBJMACROS
5659/*** IUnknown methods ***/
5660#define IWineD3DVolumeTexture_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
5661#define IWineD3DVolumeTexture_AddRef(This) (This)->lpVtbl->AddRef(This)
5662#define IWineD3DVolumeTexture_Release(This) (This)->lpVtbl->Release(This)
5663/*** IWineD3DBase methods ***/
5664#define IWineD3DVolumeTexture_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
5665/*** IWineD3DResource methods ***/
5666#define IWineD3DVolumeTexture_SetPrivateData(This,guid,data,data_size,flags) (This)->lpVtbl->SetPrivateData(This,guid,data,data_size,flags)
5667#define IWineD3DVolumeTexture_GetPrivateData(This,guid,data,data_size) (This)->lpVtbl->GetPrivateData(This,guid,data,data_size)
5668#define IWineD3DVolumeTexture_FreePrivateData(This,guid) (This)->lpVtbl->FreePrivateData(This,guid)
5669#define IWineD3DVolumeTexture_SetPriority(This,new_priority) (This)->lpVtbl->SetPriority(This,new_priority)
5670#define IWineD3DVolumeTexture_GetPriority(This) (This)->lpVtbl->GetPriority(This)
5671#define IWineD3DVolumeTexture_PreLoad(This) (This)->lpVtbl->PreLoad(This)
5672#define IWineD3DVolumeTexture_UnLoad(This) (This)->lpVtbl->UnLoad(This)
5673#define IWineD3DVolumeTexture_GetType(This) (This)->lpVtbl->GetType(This)
5674/*** IWineD3DBaseTexture methods ***/
5675#define IWineD3DVolumeTexture_SetLOD(This,new_lod) (This)->lpVtbl->SetLOD(This,new_lod)
5676#define IWineD3DVolumeTexture_GetLOD(This) (This)->lpVtbl->GetLOD(This)
5677#define IWineD3DVolumeTexture_GetLevelCount(This) (This)->lpVtbl->GetLevelCount(This)
5678#define IWineD3DVolumeTexture_SetAutoGenFilterType(This,filter_type) (This)->lpVtbl->SetAutoGenFilterType(This,filter_type)
5679#define IWineD3DVolumeTexture_GetAutoGenFilterType(This) (This)->lpVtbl->GetAutoGenFilterType(This)
5680#define IWineD3DVolumeTexture_GenerateMipSubLevels(This) (This)->lpVtbl->GenerateMipSubLevels(This)
5681#define IWineD3DVolumeTexture_SetDirty(This,dirty) (This)->lpVtbl->SetDirty(This,dirty)
5682#define IWineD3DVolumeTexture_GetDirty(This) (This)->lpVtbl->GetDirty(This)
5683#define IWineD3DVolumeTexture_BindTexture(This,srgb) (This)->lpVtbl->BindTexture(This,srgb)
5684#define IWineD3DVolumeTexture_GetTextureDimensions(This) (This)->lpVtbl->GetTextureDimensions(This)
5685#define IWineD3DVolumeTexture_IsCondNP2(This) (This)->lpVtbl->IsCondNP2(This)
5686/*** IWineD3DVolumeTexture methods ***/
5687#define IWineD3DVolumeTexture_GetLevelDesc(This,level,desc) (This)->lpVtbl->GetLevelDesc(This,level,desc)
5688#define IWineD3DVolumeTexture_GetVolumeLevel(This,level,volume) (This)->lpVtbl->GetVolumeLevel(This,level,volume)
5689#define IWineD3DVolumeTexture_LockBox(This,level,locked_box,box,flags) (This)->lpVtbl->LockBox(This,level,locked_box,box,flags)
5690#define IWineD3DVolumeTexture_UnlockBox(This,level) (This)->lpVtbl->UnlockBox(This,level)
5691#define IWineD3DVolumeTexture_AddDirtyBox(This,dirty_box) (This)->lpVtbl->AddDirtyBox(This,dirty_box)
5692#endif
5693
5694#endif
5695
5696HRESULT STDMETHODCALLTYPE IWineD3DVolumeTexture_GetLevelDesc_Proxy(
5697 IWineD3DVolumeTexture* This,
5698 UINT level,
5699 WINED3DVOLUME_DESC *desc);
5700void __RPC_STUB IWineD3DVolumeTexture_GetLevelDesc_Stub(
5701 IRpcStubBuffer* This,
5702 IRpcChannelBuffer* pRpcChannelBuffer,
5703 PRPC_MESSAGE pRpcMessage,
5704 DWORD* pdwStubPhase);
5705HRESULT STDMETHODCALLTYPE IWineD3DVolumeTexture_GetVolumeLevel_Proxy(
5706 IWineD3DVolumeTexture* This,
5707 UINT level,
5708 IWineD3DVolume **volume);
5709void __RPC_STUB IWineD3DVolumeTexture_GetVolumeLevel_Stub(
5710 IRpcStubBuffer* This,
5711 IRpcChannelBuffer* pRpcChannelBuffer,
5712 PRPC_MESSAGE pRpcMessage,
5713 DWORD* pdwStubPhase);
5714HRESULT STDMETHODCALLTYPE IWineD3DVolumeTexture_LockBox_Proxy(
5715 IWineD3DVolumeTexture* This,
5716 UINT level,
5717 WINED3DLOCKED_BOX *locked_box,
5718 const WINED3DBOX *box,
5719 DWORD flags);
5720void __RPC_STUB IWineD3DVolumeTexture_LockBox_Stub(
5721 IRpcStubBuffer* This,
5722 IRpcChannelBuffer* pRpcChannelBuffer,
5723 PRPC_MESSAGE pRpcMessage,
5724 DWORD* pdwStubPhase);
5725HRESULT STDMETHODCALLTYPE IWineD3DVolumeTexture_UnlockBox_Proxy(
5726 IWineD3DVolumeTexture* This,
5727 UINT level);
5728void __RPC_STUB IWineD3DVolumeTexture_UnlockBox_Stub(
5729 IRpcStubBuffer* This,
5730 IRpcChannelBuffer* pRpcChannelBuffer,
5731 PRPC_MESSAGE pRpcMessage,
5732 DWORD* pdwStubPhase);
5733HRESULT STDMETHODCALLTYPE IWineD3DVolumeTexture_AddDirtyBox_Proxy(
5734 IWineD3DVolumeTexture* This,
5735 const WINED3DBOX *dirty_box);
5736void __RPC_STUB IWineD3DVolumeTexture_AddDirtyBox_Stub(
5737 IRpcStubBuffer* This,
5738 IRpcChannelBuffer* pRpcChannelBuffer,
5739 PRPC_MESSAGE pRpcMessage,
5740 DWORD* pdwStubPhase);
5741
5742#endif /* __IWineD3DVolumeTexture_INTERFACE_DEFINED__ */
5743
5744/*****************************************************************************
5745 * IWineD3DVertexDeclaration interface
5746 */
5747#ifndef __IWineD3DVertexDeclaration_INTERFACE_DEFINED__
5748#define __IWineD3DVertexDeclaration_INTERFACE_DEFINED__
5749
5750DEFINE_GUID(IID_IWineD3DVertexDeclaration, 0x7cd55be6, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
5751#if defined(__cplusplus) && !defined(CINTERFACE)
5752interface IWineD3DVertexDeclaration : public IWineD3DBase
5753{
5754};
5755#else
5756typedef struct IWineD3DVertexDeclarationVtbl {
5757 BEGIN_INTERFACE
5758
5759 /*** IUnknown methods ***/
5760 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
5761 IWineD3DVertexDeclaration* This,
5762 REFIID riid,
5763 void **ppvObject);
5764
5765 ULONG (STDMETHODCALLTYPE *AddRef)(
5766 IWineD3DVertexDeclaration* This);
5767
5768 ULONG (STDMETHODCALLTYPE *Release)(
5769 IWineD3DVertexDeclaration* This);
5770
5771 /*** IWineD3DBase methods ***/
5772 HRESULT (STDMETHODCALLTYPE *GetParent)(
5773 IWineD3DVertexDeclaration* This,
5774 IUnknown **parent);
5775
5776 END_INTERFACE
5777} IWineD3DVertexDeclarationVtbl;
5778interface IWineD3DVertexDeclaration {
5779 CONST_VTBL IWineD3DVertexDeclarationVtbl* lpVtbl;
5780};
5781
5782#ifdef COBJMACROS
5783/*** IUnknown methods ***/
5784#define IWineD3DVertexDeclaration_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
5785#define IWineD3DVertexDeclaration_AddRef(This) (This)->lpVtbl->AddRef(This)
5786#define IWineD3DVertexDeclaration_Release(This) (This)->lpVtbl->Release(This)
5787/*** IWineD3DBase methods ***/
5788#define IWineD3DVertexDeclaration_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
5789#endif
5790
5791#endif
5792
5793
5794#endif /* __IWineD3DVertexDeclaration_INTERFACE_DEFINED__ */
5795
5796/*****************************************************************************
5797 * IWineD3DStateBlock interface
5798 */
5799#ifndef __IWineD3DStateBlock_INTERFACE_DEFINED__
5800#define __IWineD3DStateBlock_INTERFACE_DEFINED__
5801
5802DEFINE_GUID(IID_IWineD3DStateBlock, 0x83b073ce, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
5803#if defined(__cplusplus) && !defined(CINTERFACE)
5804interface IWineD3DStateBlock : public IUnknown
5805{
5806 virtual HRESULT STDMETHODCALLTYPE Capture(
5807 ) = 0;
5808
5809 virtual HRESULT STDMETHODCALLTYPE Apply(
5810 ) = 0;
5811
5812 virtual HRESULT STDMETHODCALLTYPE InitStartupStateBlock(
5813 ) = 0;
5814
5815};
5816#else
5817typedef struct IWineD3DStateBlockVtbl {
5818 BEGIN_INTERFACE
5819
5820 /*** IUnknown methods ***/
5821 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
5822 IWineD3DStateBlock* This,
5823 REFIID riid,
5824 void **ppvObject);
5825
5826 ULONG (STDMETHODCALLTYPE *AddRef)(
5827 IWineD3DStateBlock* This);
5828
5829 ULONG (STDMETHODCALLTYPE *Release)(
5830 IWineD3DStateBlock* This);
5831
5832 /*** IWineD3DStateBlock methods ***/
5833 HRESULT (STDMETHODCALLTYPE *Capture)(
5834 IWineD3DStateBlock* This);
5835
5836 HRESULT (STDMETHODCALLTYPE *Apply)(
5837 IWineD3DStateBlock* This);
5838
5839 HRESULT (STDMETHODCALLTYPE *InitStartupStateBlock)(
5840 IWineD3DStateBlock* This);
5841
5842 END_INTERFACE
5843} IWineD3DStateBlockVtbl;
5844interface IWineD3DStateBlock {
5845 CONST_VTBL IWineD3DStateBlockVtbl* lpVtbl;
5846};
5847
5848#ifdef COBJMACROS
5849/*** IUnknown methods ***/
5850#define IWineD3DStateBlock_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
5851#define IWineD3DStateBlock_AddRef(This) (This)->lpVtbl->AddRef(This)
5852#define IWineD3DStateBlock_Release(This) (This)->lpVtbl->Release(This)
5853/*** IWineD3DStateBlock methods ***/
5854#define IWineD3DStateBlock_Capture(This) (This)->lpVtbl->Capture(This)
5855#define IWineD3DStateBlock_Apply(This) (This)->lpVtbl->Apply(This)
5856#define IWineD3DStateBlock_InitStartupStateBlock(This) (This)->lpVtbl->InitStartupStateBlock(This)
5857#endif
5858
5859#endif
5860
5861HRESULT STDMETHODCALLTYPE IWineD3DStateBlock_Capture_Proxy(
5862 IWineD3DStateBlock* This);
5863void __RPC_STUB IWineD3DStateBlock_Capture_Stub(
5864 IRpcStubBuffer* This,
5865 IRpcChannelBuffer* pRpcChannelBuffer,
5866 PRPC_MESSAGE pRpcMessage,
5867 DWORD* pdwStubPhase);
5868HRESULT STDMETHODCALLTYPE IWineD3DStateBlock_Apply_Proxy(
5869 IWineD3DStateBlock* This);
5870void __RPC_STUB IWineD3DStateBlock_Apply_Stub(
5871 IRpcStubBuffer* This,
5872 IRpcChannelBuffer* pRpcChannelBuffer,
5873 PRPC_MESSAGE pRpcMessage,
5874 DWORD* pdwStubPhase);
5875HRESULT STDMETHODCALLTYPE IWineD3DStateBlock_InitStartupStateBlock_Proxy(
5876 IWineD3DStateBlock* This);
5877void __RPC_STUB IWineD3DStateBlock_InitStartupStateBlock_Stub(
5878 IRpcStubBuffer* This,
5879 IRpcChannelBuffer* pRpcChannelBuffer,
5880 PRPC_MESSAGE pRpcMessage,
5881 DWORD* pdwStubPhase);
5882
5883#endif /* __IWineD3DStateBlock_INTERFACE_DEFINED__ */
5884
5885/*****************************************************************************
5886 * IWineD3DQuery interface
5887 */
5888#ifndef __IWineD3DQuery_INTERFACE_DEFINED__
5889#define __IWineD3DQuery_INTERFACE_DEFINED__
5890
5891DEFINE_GUID(IID_IWineD3DQuery, 0x905ddbac, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
5892#if defined(__cplusplus) && !defined(CINTERFACE)
5893interface IWineD3DQuery : public IWineD3DBase
5894{
5895 virtual HRESULT STDMETHODCALLTYPE GetData(
5896 void *data,
5897 DWORD data_size,
5898 DWORD flags) = 0;
5899
5900 virtual DWORD STDMETHODCALLTYPE GetDataSize(
5901 ) = 0;
5902
5903 virtual WINED3DQUERYTYPE STDMETHODCALLTYPE GetType(
5904 ) = 0;
5905
5906 virtual HRESULT STDMETHODCALLTYPE Issue(
5907 DWORD flags) = 0;
5908
5909};
5910#else
5911typedef struct IWineD3DQueryVtbl {
5912 BEGIN_INTERFACE
5913
5914 /*** IUnknown methods ***/
5915 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
5916 IWineD3DQuery* This,
5917 REFIID riid,
5918 void **ppvObject);
5919
5920 ULONG (STDMETHODCALLTYPE *AddRef)(
5921 IWineD3DQuery* This);
5922
5923 ULONG (STDMETHODCALLTYPE *Release)(
5924 IWineD3DQuery* This);
5925
5926 /*** IWineD3DBase methods ***/
5927 HRESULT (STDMETHODCALLTYPE *GetParent)(
5928 IWineD3DQuery* This,
5929 IUnknown **parent);
5930
5931 /*** IWineD3DQuery methods ***/
5932 HRESULT (STDMETHODCALLTYPE *GetData)(
5933 IWineD3DQuery* This,
5934 void *data,
5935 DWORD data_size,
5936 DWORD flags);
5937
5938 DWORD (STDMETHODCALLTYPE *GetDataSize)(
5939 IWineD3DQuery* This);
5940
5941 WINED3DQUERYTYPE (STDMETHODCALLTYPE *GetType)(
5942 IWineD3DQuery* This);
5943
5944 HRESULT (STDMETHODCALLTYPE *Issue)(
5945 IWineD3DQuery* This,
5946 DWORD flags);
5947
5948 END_INTERFACE
5949} IWineD3DQueryVtbl;
5950interface IWineD3DQuery {
5951 CONST_VTBL IWineD3DQueryVtbl* lpVtbl;
5952};
5953
5954#ifdef COBJMACROS
5955/*** IUnknown methods ***/
5956#define IWineD3DQuery_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
5957#define IWineD3DQuery_AddRef(This) (This)->lpVtbl->AddRef(This)
5958#define IWineD3DQuery_Release(This) (This)->lpVtbl->Release(This)
5959/*** IWineD3DBase methods ***/
5960#define IWineD3DQuery_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
5961/*** IWineD3DQuery methods ***/
5962#define IWineD3DQuery_GetData(This,data,data_size,flags) (This)->lpVtbl->GetData(This,data,data_size,flags)
5963#define IWineD3DQuery_GetDataSize(This) (This)->lpVtbl->GetDataSize(This)
5964#define IWineD3DQuery_GetType(This) (This)->lpVtbl->GetType(This)
5965#define IWineD3DQuery_Issue(This,flags) (This)->lpVtbl->Issue(This,flags)
5966#endif
5967
5968#endif
5969
5970HRESULT STDMETHODCALLTYPE IWineD3DQuery_GetData_Proxy(
5971 IWineD3DQuery* This,
5972 void *data,
5973 DWORD data_size,
5974 DWORD flags);
5975void __RPC_STUB IWineD3DQuery_GetData_Stub(
5976 IRpcStubBuffer* This,
5977 IRpcChannelBuffer* pRpcChannelBuffer,
5978 PRPC_MESSAGE pRpcMessage,
5979 DWORD* pdwStubPhase);
5980DWORD STDMETHODCALLTYPE IWineD3DQuery_GetDataSize_Proxy(
5981 IWineD3DQuery* This);
5982void __RPC_STUB IWineD3DQuery_GetDataSize_Stub(
5983 IRpcStubBuffer* This,
5984 IRpcChannelBuffer* pRpcChannelBuffer,
5985 PRPC_MESSAGE pRpcMessage,
5986 DWORD* pdwStubPhase);
5987WINED3DQUERYTYPE STDMETHODCALLTYPE IWineD3DQuery_GetType_Proxy(
5988 IWineD3DQuery* This);
5989void __RPC_STUB IWineD3DQuery_GetType_Stub(
5990 IRpcStubBuffer* This,
5991 IRpcChannelBuffer* pRpcChannelBuffer,
5992 PRPC_MESSAGE pRpcMessage,
5993 DWORD* pdwStubPhase);
5994HRESULT STDMETHODCALLTYPE IWineD3DQuery_Issue_Proxy(
5995 IWineD3DQuery* This,
5996 DWORD flags);
5997void __RPC_STUB IWineD3DQuery_Issue_Stub(
5998 IRpcStubBuffer* This,
5999 IRpcChannelBuffer* pRpcChannelBuffer,
6000 PRPC_MESSAGE pRpcMessage,
6001 DWORD* pdwStubPhase);
6002
6003#endif /* __IWineD3DQuery_INTERFACE_DEFINED__ */
6004
6005/*****************************************************************************
6006 * IWineD3DSwapChain interface
6007 */
6008#ifndef __IWineD3DSwapChain_INTERFACE_DEFINED__
6009#define __IWineD3DSwapChain_INTERFACE_DEFINED__
6010
6011DEFINE_GUID(IID_IWineD3DSwapChain, 0x34d01b10, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
6012#if defined(__cplusplus) && !defined(CINTERFACE)
6013interface IWineD3DSwapChain : public IWineD3DBase
6014{
6015 virtual void STDMETHODCALLTYPE Destroy(
6016 ) = 0;
6017
6018 virtual HRESULT STDMETHODCALLTYPE GetDevice(
6019 IWineD3DDevice **device) = 0;
6020
6021 virtual HRESULT STDMETHODCALLTYPE Present(
6022 const RECT *src_rect,
6023 const RECT *dst_rect,
6024 HWND dst_window_override,
6025 const RGNDATA *dirty_region,
6026 DWORD flags) = 0;
6027
6028 virtual HRESULT STDMETHODCALLTYPE SetDestWindowOverride(
6029 HWND window) = 0;
6030
6031 virtual HRESULT STDMETHODCALLTYPE GetFrontBufferData(
6032 IWineD3DSurface *dst_surface) = 0;
6033
6034 virtual HRESULT STDMETHODCALLTYPE GetBackBuffer(
6035 UINT backbuffer_idx,
6036 WINED3DBACKBUFFER_TYPE backbuffer_type,
6037 IWineD3DSurface **backbuffer) = 0;
6038
6039 virtual HRESULT STDMETHODCALLTYPE GetRasterStatus(
6040 WINED3DRASTER_STATUS *raster_status) = 0;
6041
6042 virtual HRESULT STDMETHODCALLTYPE GetDisplayMode(
6043 WINED3DDISPLAYMODE *mode) = 0;
6044
6045 virtual HRESULT STDMETHODCALLTYPE GetPresentParameters(
6046 WINED3DPRESENT_PARAMETERS *present_parameters) = 0;
6047
6048 virtual HRESULT STDMETHODCALLTYPE SetGammaRamp(
6049 DWORD flags,
6050 const WINED3DGAMMARAMP *ramp) = 0;
6051
6052 virtual HRESULT STDMETHODCALLTYPE GetGammaRamp(
6053 WINED3DGAMMARAMP *ramp) = 0;
6054
6055};
6056#else
6057typedef struct IWineD3DSwapChainVtbl {
6058 BEGIN_INTERFACE
6059
6060 /*** IUnknown methods ***/
6061 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
6062 IWineD3DSwapChain* This,
6063 REFIID riid,
6064 void **ppvObject);
6065
6066 ULONG (STDMETHODCALLTYPE *AddRef)(
6067 IWineD3DSwapChain* This);
6068
6069 ULONG (STDMETHODCALLTYPE *Release)(
6070 IWineD3DSwapChain* This);
6071
6072 /*** IWineD3DBase methods ***/
6073 HRESULT (STDMETHODCALLTYPE *GetParent)(
6074 IWineD3DSwapChain* This,
6075 IUnknown **parent);
6076
6077 /*** IWineD3DSwapChain methods ***/
6078 void (STDMETHODCALLTYPE *Destroy)(
6079 IWineD3DSwapChain* This);
6080
6081 HRESULT (STDMETHODCALLTYPE *GetDevice)(
6082 IWineD3DSwapChain* This,
6083 IWineD3DDevice **device);
6084
6085 HRESULT (STDMETHODCALLTYPE *Present)(
6086 IWineD3DSwapChain* This,
6087 const RECT *src_rect,
6088 const RECT *dst_rect,
6089 HWND dst_window_override,
6090 const RGNDATA *dirty_region,
6091 DWORD flags);
6092
6093 HRESULT (STDMETHODCALLTYPE *SetDestWindowOverride)(
6094 IWineD3DSwapChain* This,
6095 HWND window);
6096
6097 HRESULT (STDMETHODCALLTYPE *GetFrontBufferData)(
6098 IWineD3DSwapChain* This,
6099 IWineD3DSurface *dst_surface);
6100
6101 HRESULT (STDMETHODCALLTYPE *GetBackBuffer)(
6102 IWineD3DSwapChain* This,
6103 UINT backbuffer_idx,
6104 WINED3DBACKBUFFER_TYPE backbuffer_type,
6105 IWineD3DSurface **backbuffer);
6106
6107 HRESULT (STDMETHODCALLTYPE *GetRasterStatus)(
6108 IWineD3DSwapChain* This,
6109 WINED3DRASTER_STATUS *raster_status);
6110
6111 HRESULT (STDMETHODCALLTYPE *GetDisplayMode)(
6112 IWineD3DSwapChain* This,
6113 WINED3DDISPLAYMODE *mode);
6114
6115 HRESULT (STDMETHODCALLTYPE *GetPresentParameters)(
6116 IWineD3DSwapChain* This,
6117 WINED3DPRESENT_PARAMETERS *present_parameters);
6118
6119 HRESULT (STDMETHODCALLTYPE *SetGammaRamp)(
6120 IWineD3DSwapChain* This,
6121 DWORD flags,
6122 const WINED3DGAMMARAMP *ramp);
6123
6124 HRESULT (STDMETHODCALLTYPE *GetGammaRamp)(
6125 IWineD3DSwapChain* This,
6126 WINED3DGAMMARAMP *ramp);
6127
6128#ifdef VBOX_WITH_WDDM
6129 HRESULT (STDMETHODCALLTYPE *Flush)(
6130 IWineD3DSwapChain* This);
6131#endif
6132 END_INTERFACE
6133} IWineD3DSwapChainVtbl;
6134interface IWineD3DSwapChain {
6135 CONST_VTBL IWineD3DSwapChainVtbl* lpVtbl;
6136};
6137
6138#ifdef COBJMACROS
6139/*** IUnknown methods ***/
6140#define IWineD3DSwapChain_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
6141#define IWineD3DSwapChain_AddRef(This) (This)->lpVtbl->AddRef(This)
6142#define IWineD3DSwapChain_Release(This) (This)->lpVtbl->Release(This)
6143/*** IWineD3DBase methods ***/
6144#define IWineD3DSwapChain_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
6145/*** IWineD3DSwapChain methods ***/
6146#define IWineD3DSwapChain_Destroy(This) (This)->lpVtbl->Destroy(This)
6147#define IWineD3DSwapChain_GetDevice(This,device) (This)->lpVtbl->GetDevice(This,device)
6148#define IWineD3DSwapChain_Present(This,src_rect,dst_rect,dst_window_override,dirty_region,flags) (This)->lpVtbl->Present(This,src_rect,dst_rect,dst_window_override,dirty_region,flags)
6149#define IWineD3DSwapChain_SetDestWindowOverride(This,window) (This)->lpVtbl->SetDestWindowOverride(This,window)
6150#define IWineD3DSwapChain_GetFrontBufferData(This,dst_surface) (This)->lpVtbl->GetFrontBufferData(This,dst_surface)
6151#define IWineD3DSwapChain_GetBackBuffer(This,backbuffer_idx,backbuffer_type,backbuffer) (This)->lpVtbl->GetBackBuffer(This,backbuffer_idx,backbuffer_type,backbuffer)
6152#define IWineD3DSwapChain_GetRasterStatus(This,raster_status) (This)->lpVtbl->GetRasterStatus(This,raster_status)
6153#define IWineD3DSwapChain_GetDisplayMode(This,mode) (This)->lpVtbl->GetDisplayMode(This,mode)
6154#define IWineD3DSwapChain_GetPresentParameters(This,present_parameters) (This)->lpVtbl->GetPresentParameters(This,present_parameters)
6155#define IWineD3DSwapChain_SetGammaRamp(This,flags,ramp) (This)->lpVtbl->SetGammaRamp(This,flags,ramp)
6156#define IWineD3DSwapChain_GetGammaRamp(This,ramp) (This)->lpVtbl->GetGammaRamp(This,ramp)
6157#ifdef VBOX_WITH_WDDM
6158#define IWineD3DSwapChain_Flush(This) (This)->lpVtbl->Flush(This)
6159#endif
6160#endif
6161
6162#endif
6163
6164void STDMETHODCALLTYPE IWineD3DSwapChain_Destroy_Proxy(
6165 IWineD3DSwapChain* This);
6166void __RPC_STUB IWineD3DSwapChain_Destroy_Stub(
6167 IRpcStubBuffer* This,
6168 IRpcChannelBuffer* pRpcChannelBuffer,
6169 PRPC_MESSAGE pRpcMessage,
6170 DWORD* pdwStubPhase);
6171HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_GetDevice_Proxy(
6172 IWineD3DSwapChain* This,
6173 IWineD3DDevice **device);
6174void __RPC_STUB IWineD3DSwapChain_GetDevice_Stub(
6175 IRpcStubBuffer* This,
6176 IRpcChannelBuffer* pRpcChannelBuffer,
6177 PRPC_MESSAGE pRpcMessage,
6178 DWORD* pdwStubPhase);
6179HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_Present_Proxy(
6180 IWineD3DSwapChain* This,
6181 const RECT *src_rect,
6182 const RECT *dst_rect,
6183 HWND dst_window_override,
6184 const RGNDATA *dirty_region,
6185 DWORD flags);
6186void __RPC_STUB IWineD3DSwapChain_Present_Stub(
6187 IRpcStubBuffer* This,
6188 IRpcChannelBuffer* pRpcChannelBuffer,
6189 PRPC_MESSAGE pRpcMessage,
6190 DWORD* pdwStubPhase);
6191HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_SetDestWindowOverride_Proxy(
6192 IWineD3DSwapChain* This,
6193 HWND window);
6194void __RPC_STUB IWineD3DSwapChain_SetDestWindowOverride_Stub(
6195 IRpcStubBuffer* This,
6196 IRpcChannelBuffer* pRpcChannelBuffer,
6197 PRPC_MESSAGE pRpcMessage,
6198 DWORD* pdwStubPhase);
6199HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_GetFrontBufferData_Proxy(
6200 IWineD3DSwapChain* This,
6201 IWineD3DSurface *dst_surface);
6202void __RPC_STUB IWineD3DSwapChain_GetFrontBufferData_Stub(
6203 IRpcStubBuffer* This,
6204 IRpcChannelBuffer* pRpcChannelBuffer,
6205 PRPC_MESSAGE pRpcMessage,
6206 DWORD* pdwStubPhase);
6207HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_GetBackBuffer_Proxy(
6208 IWineD3DSwapChain* This,
6209 UINT backbuffer_idx,
6210 WINED3DBACKBUFFER_TYPE backbuffer_type,
6211 IWineD3DSurface **backbuffer);
6212void __RPC_STUB IWineD3DSwapChain_GetBackBuffer_Stub(
6213 IRpcStubBuffer* This,
6214 IRpcChannelBuffer* pRpcChannelBuffer,
6215 PRPC_MESSAGE pRpcMessage,
6216 DWORD* pdwStubPhase);
6217HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_GetRasterStatus_Proxy(
6218 IWineD3DSwapChain* This,
6219 WINED3DRASTER_STATUS *raster_status);
6220void __RPC_STUB IWineD3DSwapChain_GetRasterStatus_Stub(
6221 IRpcStubBuffer* This,
6222 IRpcChannelBuffer* pRpcChannelBuffer,
6223 PRPC_MESSAGE pRpcMessage,
6224 DWORD* pdwStubPhase);
6225HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_GetDisplayMode_Proxy(
6226 IWineD3DSwapChain* This,
6227 WINED3DDISPLAYMODE *mode);
6228void __RPC_STUB IWineD3DSwapChain_GetDisplayMode_Stub(
6229 IRpcStubBuffer* This,
6230 IRpcChannelBuffer* pRpcChannelBuffer,
6231 PRPC_MESSAGE pRpcMessage,
6232 DWORD* pdwStubPhase);
6233HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_GetPresentParameters_Proxy(
6234 IWineD3DSwapChain* This,
6235 WINED3DPRESENT_PARAMETERS *present_parameters);
6236void __RPC_STUB IWineD3DSwapChain_GetPresentParameters_Stub(
6237 IRpcStubBuffer* This,
6238 IRpcChannelBuffer* pRpcChannelBuffer,
6239 PRPC_MESSAGE pRpcMessage,
6240 DWORD* pdwStubPhase);
6241HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_SetGammaRamp_Proxy(
6242 IWineD3DSwapChain* This,
6243 DWORD flags,
6244 const WINED3DGAMMARAMP *ramp);
6245void __RPC_STUB IWineD3DSwapChain_SetGammaRamp_Stub(
6246 IRpcStubBuffer* This,
6247 IRpcChannelBuffer* pRpcChannelBuffer,
6248 PRPC_MESSAGE pRpcMessage,
6249 DWORD* pdwStubPhase);
6250HRESULT STDMETHODCALLTYPE IWineD3DSwapChain_GetGammaRamp_Proxy(
6251 IWineD3DSwapChain* This,
6252 WINED3DGAMMARAMP *ramp);
6253void __RPC_STUB IWineD3DSwapChain_GetGammaRamp_Stub(
6254 IRpcStubBuffer* This,
6255 IRpcChannelBuffer* pRpcChannelBuffer,
6256 PRPC_MESSAGE pRpcMessage,
6257 DWORD* pdwStubPhase);
6258
6259#endif /* __IWineD3DSwapChain_INTERFACE_DEFINED__ */
6260
6261/*****************************************************************************
6262 * IWineD3DBuffer interface
6263 */
6264#ifndef __IWineD3DBuffer_INTERFACE_DEFINED__
6265#define __IWineD3DBuffer_INTERFACE_DEFINED__
6266
6267DEFINE_GUID(IID_IWineD3DBuffer, 0xb3f028e8, 0x1a40, 0x4ab3, 0x92,0x92, 0x5b,0xf6,0xcf,0xd8,0x02,0x09);
6268#if defined(__cplusplus) && !defined(CINTERFACE)
6269interface IWineD3DBuffer : public IWineD3DResource
6270{
6271 virtual HRESULT STDMETHODCALLTYPE Map(
6272 UINT offset,
6273 UINT size,
6274 BYTE **data,
6275 DWORD flags) = 0;
6276
6277 virtual HRESULT STDMETHODCALLTYPE Unmap(
6278 ) = 0;
6279
6280 virtual HRESULT STDMETHODCALLTYPE GetDesc(
6281 WINED3DBUFFER_DESC *desc) = 0;
6282
6283};
6284#else
6285typedef struct IWineD3DBufferVtbl {
6286 BEGIN_INTERFACE
6287
6288 /*** IUnknown methods ***/
6289 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
6290 IWineD3DBuffer* This,
6291 REFIID riid,
6292 void **ppvObject);
6293
6294 ULONG (STDMETHODCALLTYPE *AddRef)(
6295 IWineD3DBuffer* This);
6296
6297 ULONG (STDMETHODCALLTYPE *Release)(
6298 IWineD3DBuffer* This);
6299
6300 /*** IWineD3DBase methods ***/
6301 HRESULT (STDMETHODCALLTYPE *GetParent)(
6302 IWineD3DBuffer* This,
6303 IUnknown **parent);
6304
6305 /*** IWineD3DResource methods ***/
6306 HRESULT (STDMETHODCALLTYPE *SetPrivateData)(
6307 IWineD3DBuffer* This,
6308 REFGUID guid,
6309 const void *data,
6310 DWORD data_size,
6311 DWORD flags);
6312
6313 HRESULT (STDMETHODCALLTYPE *GetPrivateData)(
6314 IWineD3DBuffer* This,
6315 REFGUID guid,
6316 void *data,
6317 DWORD *data_size);
6318
6319 HRESULT (STDMETHODCALLTYPE *FreePrivateData)(
6320 IWineD3DBuffer* This,
6321 REFGUID guid);
6322
6323 DWORD (STDMETHODCALLTYPE *SetPriority)(
6324 IWineD3DBuffer* This,
6325 DWORD new_priority);
6326
6327 DWORD (STDMETHODCALLTYPE *GetPriority)(
6328 IWineD3DBuffer* This);
6329
6330 void (STDMETHODCALLTYPE *PreLoad)(
6331 IWineD3DBuffer* This);
6332
6333 void (STDMETHODCALLTYPE *UnLoad)(
6334 IWineD3DBuffer* This);
6335
6336 WINED3DRESOURCETYPE (STDMETHODCALLTYPE *GetType)(
6337 IWineD3DBuffer* This);
6338
6339 /*** IWineD3DBuffer methods ***/
6340 HRESULT (STDMETHODCALLTYPE *Map)(
6341 IWineD3DBuffer* This,
6342 UINT offset,
6343 UINT size,
6344 BYTE **data,
6345 DWORD flags);
6346
6347 HRESULT (STDMETHODCALLTYPE *Unmap)(
6348 IWineD3DBuffer* This);
6349
6350 HRESULT (STDMETHODCALLTYPE *GetDesc)(
6351 IWineD3DBuffer* This,
6352 WINED3DBUFFER_DESC *desc);
6353
6354 END_INTERFACE
6355} IWineD3DBufferVtbl;
6356interface IWineD3DBuffer {
6357 CONST_VTBL IWineD3DBufferVtbl* lpVtbl;
6358};
6359
6360#ifdef COBJMACROS
6361/*** IUnknown methods ***/
6362#define IWineD3DBuffer_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
6363#define IWineD3DBuffer_AddRef(This) (This)->lpVtbl->AddRef(This)
6364#define IWineD3DBuffer_Release(This) (This)->lpVtbl->Release(This)
6365/*** IWineD3DBase methods ***/
6366#define IWineD3DBuffer_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
6367/*** IWineD3DResource methods ***/
6368#define IWineD3DBuffer_SetPrivateData(This,guid,data,data_size,flags) (This)->lpVtbl->SetPrivateData(This,guid,data,data_size,flags)
6369#define IWineD3DBuffer_GetPrivateData(This,guid,data,data_size) (This)->lpVtbl->GetPrivateData(This,guid,data,data_size)
6370#define IWineD3DBuffer_FreePrivateData(This,guid) (This)->lpVtbl->FreePrivateData(This,guid)
6371#define IWineD3DBuffer_SetPriority(This,new_priority) (This)->lpVtbl->SetPriority(This,new_priority)
6372#define IWineD3DBuffer_GetPriority(This) (This)->lpVtbl->GetPriority(This)
6373#define IWineD3DBuffer_PreLoad(This) (This)->lpVtbl->PreLoad(This)
6374#define IWineD3DBuffer_UnLoad(This) (This)->lpVtbl->UnLoad(This)
6375#define IWineD3DBuffer_GetType(This) (This)->lpVtbl->GetType(This)
6376/*** IWineD3DBuffer methods ***/
6377#define IWineD3DBuffer_Map(This,offset,size,data,flags) (This)->lpVtbl->Map(This,offset,size,data,flags)
6378#define IWineD3DBuffer_Unmap(This) (This)->lpVtbl->Unmap(This)
6379#define IWineD3DBuffer_GetDesc(This,desc) (This)->lpVtbl->GetDesc(This,desc)
6380#endif
6381
6382#endif
6383
6384HRESULT STDMETHODCALLTYPE IWineD3DBuffer_Map_Proxy(
6385 IWineD3DBuffer* This,
6386 UINT offset,
6387 UINT size,
6388 BYTE **data,
6389 DWORD flags);
6390void __RPC_STUB IWineD3DBuffer_Map_Stub(
6391 IRpcStubBuffer* This,
6392 IRpcChannelBuffer* pRpcChannelBuffer,
6393 PRPC_MESSAGE pRpcMessage,
6394 DWORD* pdwStubPhase);
6395HRESULT STDMETHODCALLTYPE IWineD3DBuffer_Unmap_Proxy(
6396 IWineD3DBuffer* This);
6397void __RPC_STUB IWineD3DBuffer_Unmap_Stub(
6398 IRpcStubBuffer* This,
6399 IRpcChannelBuffer* pRpcChannelBuffer,
6400 PRPC_MESSAGE pRpcMessage,
6401 DWORD* pdwStubPhase);
6402HRESULT STDMETHODCALLTYPE IWineD3DBuffer_GetDesc_Proxy(
6403 IWineD3DBuffer* This,
6404 WINED3DBUFFER_DESC *desc);
6405void __RPC_STUB IWineD3DBuffer_GetDesc_Stub(
6406 IRpcStubBuffer* This,
6407 IRpcChannelBuffer* pRpcChannelBuffer,
6408 PRPC_MESSAGE pRpcMessage,
6409 DWORD* pdwStubPhase);
6410
6411#endif /* __IWineD3DBuffer_INTERFACE_DEFINED__ */
6412
6413/*****************************************************************************
6414 * IWineD3DBaseShader interface
6415 */
6416#ifndef __IWineD3DBaseShader_INTERFACE_DEFINED__
6417#define __IWineD3DBaseShader_INTERFACE_DEFINED__
6418
6419DEFINE_GUID(IID_IWineD3DBaseShader, 0xeac93065, 0xa4df, 0x446f, 0x86,0xa1, 0x9e,0xf2,0xbc,0xa4,0x0a,0x3c);
6420#if defined(__cplusplus) && !defined(CINTERFACE)
6421interface IWineD3DBaseShader : public IWineD3DBase
6422{
6423 virtual HRESULT STDMETHODCALLTYPE GetFunction(
6424 void *data,
6425 UINT *data_size) = 0;
6426
6427};
6428#else
6429typedef struct IWineD3DBaseShaderVtbl {
6430 BEGIN_INTERFACE
6431
6432 /*** IUnknown methods ***/
6433 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
6434 IWineD3DBaseShader* This,
6435 REFIID riid,
6436 void **ppvObject);
6437
6438 ULONG (STDMETHODCALLTYPE *AddRef)(
6439 IWineD3DBaseShader* This);
6440
6441 ULONG (STDMETHODCALLTYPE *Release)(
6442 IWineD3DBaseShader* This);
6443
6444 /*** IWineD3DBase methods ***/
6445 HRESULT (STDMETHODCALLTYPE *GetParent)(
6446 IWineD3DBaseShader* This,
6447 IUnknown **parent);
6448
6449 /*** IWineD3DBaseShader methods ***/
6450 HRESULT (STDMETHODCALLTYPE *GetFunction)(
6451 IWineD3DBaseShader* This,
6452 void *data,
6453 UINT *data_size);
6454
6455 END_INTERFACE
6456} IWineD3DBaseShaderVtbl;
6457interface IWineD3DBaseShader {
6458 CONST_VTBL IWineD3DBaseShaderVtbl* lpVtbl;
6459};
6460
6461#ifdef COBJMACROS
6462/*** IUnknown methods ***/
6463#define IWineD3DBaseShader_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
6464#define IWineD3DBaseShader_AddRef(This) (This)->lpVtbl->AddRef(This)
6465#define IWineD3DBaseShader_Release(This) (This)->lpVtbl->Release(This)
6466/*** IWineD3DBase methods ***/
6467#define IWineD3DBaseShader_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
6468/*** IWineD3DBaseShader methods ***/
6469#define IWineD3DBaseShader_GetFunction(This,data,data_size) (This)->lpVtbl->GetFunction(This,data,data_size)
6470#endif
6471
6472#endif
6473
6474HRESULT STDMETHODCALLTYPE IWineD3DBaseShader_GetFunction_Proxy(
6475 IWineD3DBaseShader* This,
6476 void *data,
6477 UINT *data_size);
6478void __RPC_STUB IWineD3DBaseShader_GetFunction_Stub(
6479 IRpcStubBuffer* This,
6480 IRpcChannelBuffer* pRpcChannelBuffer,
6481 PRPC_MESSAGE pRpcMessage,
6482 DWORD* pdwStubPhase);
6483
6484#endif /* __IWineD3DBaseShader_INTERFACE_DEFINED__ */
6485
6486/*****************************************************************************
6487 * IWineD3DVertexShader interface
6488 */
6489#ifndef __IWineD3DVertexShader_INTERFACE_DEFINED__
6490#define __IWineD3DVertexShader_INTERFACE_DEFINED__
6491
6492DEFINE_GUID(IID_IWineD3DVertexShader, 0x7f7a2b60, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
6493#if defined(__cplusplus) && !defined(CINTERFACE)
6494interface IWineD3DVertexShader : public IWineD3DBaseShader
6495{
6496 virtual HRESULT STDMETHODCALLTYPE SetLocalConstantsF(
6497 UINT start_idx,
6498 const float *src_data,
6499 UINT vector4f_count) = 0;
6500
6501};
6502#else
6503typedef struct IWineD3DVertexShaderVtbl {
6504 BEGIN_INTERFACE
6505
6506 /*** IUnknown methods ***/
6507 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
6508 IWineD3DVertexShader* This,
6509 REFIID riid,
6510 void **ppvObject);
6511
6512 ULONG (STDMETHODCALLTYPE *AddRef)(
6513 IWineD3DVertexShader* This);
6514
6515 ULONG (STDMETHODCALLTYPE *Release)(
6516 IWineD3DVertexShader* This);
6517
6518 /*** IWineD3DBase methods ***/
6519 HRESULT (STDMETHODCALLTYPE *GetParent)(
6520 IWineD3DVertexShader* This,
6521 IUnknown **parent);
6522
6523 /*** IWineD3DBaseShader methods ***/
6524 HRESULT (STDMETHODCALLTYPE *GetFunction)(
6525 IWineD3DVertexShader* This,
6526 void *data,
6527 UINT *data_size);
6528
6529 /*** IWineD3DVertexShader methods ***/
6530 HRESULT (STDMETHODCALLTYPE *SetLocalConstantsF)(
6531 IWineD3DVertexShader* This,
6532 UINT start_idx,
6533 const float *src_data,
6534 UINT vector4f_count);
6535
6536 END_INTERFACE
6537} IWineD3DVertexShaderVtbl;
6538interface IWineD3DVertexShader {
6539 CONST_VTBL IWineD3DVertexShaderVtbl* lpVtbl;
6540};
6541
6542#ifdef COBJMACROS
6543/*** IUnknown methods ***/
6544#define IWineD3DVertexShader_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
6545#define IWineD3DVertexShader_AddRef(This) (This)->lpVtbl->AddRef(This)
6546#define IWineD3DVertexShader_Release(This) (This)->lpVtbl->Release(This)
6547/*** IWineD3DBase methods ***/
6548#define IWineD3DVertexShader_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
6549/*** IWineD3DBaseShader methods ***/
6550#define IWineD3DVertexShader_GetFunction(This,data,data_size) (This)->lpVtbl->GetFunction(This,data,data_size)
6551/*** IWineD3DVertexShader methods ***/
6552#define IWineD3DVertexShader_SetLocalConstantsF(This,start_idx,src_data,vector4f_count) (This)->lpVtbl->SetLocalConstantsF(This,start_idx,src_data,vector4f_count)
6553#endif
6554
6555#endif
6556
6557HRESULT STDMETHODCALLTYPE IWineD3DVertexShader_SetLocalConstantsF_Proxy(
6558 IWineD3DVertexShader* This,
6559 UINT start_idx,
6560 const float *src_data,
6561 UINT vector4f_count);
6562void __RPC_STUB IWineD3DVertexShader_SetLocalConstantsF_Stub(
6563 IRpcStubBuffer* This,
6564 IRpcChannelBuffer* pRpcChannelBuffer,
6565 PRPC_MESSAGE pRpcMessage,
6566 DWORD* pdwStubPhase);
6567
6568#endif /* __IWineD3DVertexShader_INTERFACE_DEFINED__ */
6569
6570/*****************************************************************************
6571 * IWineD3DGeometryShader interface
6572 */
6573#ifndef __IWineD3DGeometryShader_INTERFACE_DEFINED__
6574#define __IWineD3DGeometryShader_INTERFACE_DEFINED__
6575
6576DEFINE_GUID(IID_IWineD3DGeometryShader, 0x8276c113, 0x388b, 0x49d1, 0xad,0x8b, 0xc9,0xdd,0x8b,0xcb,0xab,0xcd);
6577#if defined(__cplusplus) && !defined(CINTERFACE)
6578interface IWineD3DGeometryShader : public IWineD3DBaseShader
6579{
6580};
6581#else
6582typedef struct IWineD3DGeometryShaderVtbl {
6583 BEGIN_INTERFACE
6584
6585 /*** IUnknown methods ***/
6586 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
6587 IWineD3DGeometryShader* This,
6588 REFIID riid,
6589 void **ppvObject);
6590
6591 ULONG (STDMETHODCALLTYPE *AddRef)(
6592 IWineD3DGeometryShader* This);
6593
6594 ULONG (STDMETHODCALLTYPE *Release)(
6595 IWineD3DGeometryShader* This);
6596
6597 /*** IWineD3DBase methods ***/
6598 HRESULT (STDMETHODCALLTYPE *GetParent)(
6599 IWineD3DGeometryShader* This,
6600 IUnknown **parent);
6601
6602 /*** IWineD3DBaseShader methods ***/
6603 HRESULT (STDMETHODCALLTYPE *GetFunction)(
6604 IWineD3DGeometryShader* This,
6605 void *data,
6606 UINT *data_size);
6607
6608 END_INTERFACE
6609} IWineD3DGeometryShaderVtbl;
6610interface IWineD3DGeometryShader {
6611 CONST_VTBL IWineD3DGeometryShaderVtbl* lpVtbl;
6612};
6613
6614#ifdef COBJMACROS
6615/*** IUnknown methods ***/
6616#define IWineD3DGeometryShader_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
6617#define IWineD3DGeometryShader_AddRef(This) (This)->lpVtbl->AddRef(This)
6618#define IWineD3DGeometryShader_Release(This) (This)->lpVtbl->Release(This)
6619/*** IWineD3DBase methods ***/
6620#define IWineD3DGeometryShader_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
6621/*** IWineD3DBaseShader methods ***/
6622#define IWineD3DGeometryShader_GetFunction(This,data,data_size) (This)->lpVtbl->GetFunction(This,data,data_size)
6623#endif
6624
6625#endif
6626
6627
6628#endif /* __IWineD3DGeometryShader_INTERFACE_DEFINED__ */
6629
6630/*****************************************************************************
6631 * IWineD3DPixelShader interface
6632 */
6633#ifndef __IWineD3DPixelShader_INTERFACE_DEFINED__
6634#define __IWineD3DPixelShader_INTERFACE_DEFINED__
6635
6636DEFINE_GUID(IID_IWineD3DPixelShader, 0x818503da, 0x6f30, 0x11d9, 0xc6,0x87, 0x00,0x04,0x61,0x42,0xc1,0x4f);
6637#if defined(__cplusplus) && !defined(CINTERFACE)
6638interface IWineD3DPixelShader : public IWineD3DBaseShader
6639{
6640};
6641#else
6642typedef struct IWineD3DPixelShaderVtbl {
6643 BEGIN_INTERFACE
6644
6645 /*** IUnknown methods ***/
6646 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
6647 IWineD3DPixelShader* This,
6648 REFIID riid,
6649 void **ppvObject);
6650
6651 ULONG (STDMETHODCALLTYPE *AddRef)(
6652 IWineD3DPixelShader* This);
6653
6654 ULONG (STDMETHODCALLTYPE *Release)(
6655 IWineD3DPixelShader* This);
6656
6657 /*** IWineD3DBase methods ***/
6658 HRESULT (STDMETHODCALLTYPE *GetParent)(
6659 IWineD3DPixelShader* This,
6660 IUnknown **parent);
6661
6662 /*** IWineD3DBaseShader methods ***/
6663 HRESULT (STDMETHODCALLTYPE *GetFunction)(
6664 IWineD3DPixelShader* This,
6665 void *data,
6666 UINT *data_size);
6667
6668 END_INTERFACE
6669} IWineD3DPixelShaderVtbl;
6670interface IWineD3DPixelShader {
6671 CONST_VTBL IWineD3DPixelShaderVtbl* lpVtbl;
6672};
6673
6674#ifdef COBJMACROS
6675/*** IUnknown methods ***/
6676#define IWineD3DPixelShader_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
6677#define IWineD3DPixelShader_AddRef(This) (This)->lpVtbl->AddRef(This)
6678#define IWineD3DPixelShader_Release(This) (This)->lpVtbl->Release(This)
6679/*** IWineD3DBase methods ***/
6680#define IWineD3DPixelShader_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
6681/*** IWineD3DBaseShader methods ***/
6682#define IWineD3DPixelShader_GetFunction(This,data,data_size) (This)->lpVtbl->GetFunction(This,data,data_size)
6683#endif
6684
6685#endif
6686
6687
6688#endif /* __IWineD3DPixelShader_INTERFACE_DEFINED__ */
6689
6690/*****************************************************************************
6691 * IWineD3DDevice interface
6692 */
6693#ifndef __IWineD3DDevice_INTERFACE_DEFINED__
6694#define __IWineD3DDevice_INTERFACE_DEFINED__
6695
6696DEFINE_GUID(IID_IWineD3DDevice, 0x6d10a2ce, 0x09d0, 0x4a53, 0xa4,0x27, 0x11,0x38,0x8f,0x9f,0x8c,0xa5);
6697#if defined(__cplusplus) && !defined(CINTERFACE)
6698interface IWineD3DDevice : public IWineD3DBase
6699{
6700 virtual HRESULT STDMETHODCALLTYPE CreateBuffer(
6701 struct wined3d_buffer_desc *desc,
6702 const void *data,
6703 IUnknown *parent,
6704 const struct wined3d_parent_ops *parent_ops,
6705 IWineD3DBuffer **buffer) = 0;
6706
6707 virtual HRESULT STDMETHODCALLTYPE CreateVertexBuffer(
6708 UINT length,
6709 DWORD usage,
6710 WINED3DPOOL pool,
6711 IWineD3DBuffer **vertex_buffer,
6712 IUnknown *parent,
6713 const struct wined3d_parent_ops *parent_ops) = 0;
6714
6715 virtual HRESULT STDMETHODCALLTYPE CreateIndexBuffer(
6716 UINT length,
6717 DWORD usage,
6718 WINED3DPOOL pool,
6719 IWineD3DBuffer **index_buffer,
6720 IUnknown *parent,
6721 const struct wined3d_parent_ops *parent_ops) = 0;
6722
6723 virtual HRESULT STDMETHODCALLTYPE CreateStateBlock(
6724 WINED3DSTATEBLOCKTYPE type,
6725 IWineD3DStateBlock **stateblock,
6726 IUnknown *parent) = 0;
6727
6728 virtual HRESULT STDMETHODCALLTYPE CreateSurface(
6729 UINT width,
6730 UINT height,
6731 WINED3DFORMAT format,
6732 BOOL lockable,
6733 BOOL discard,
6734 UINT level,
6735 IWineD3DSurface **surface,
6736 DWORD usage,
6737 WINED3DPOOL pool,
6738 WINED3DMULTISAMPLE_TYPE multisample_type,
6739 DWORD multisample_quality,
6740 WINED3DSURFTYPE surface_type,
6741 IUnknown *parent,
6742 const struct wined3d_parent_ops *parent_ops) = 0;
6743
6744 virtual HRESULT STDMETHODCALLTYPE CreateRendertargetView(
6745 IWineD3DResource *resource,
6746 IUnknown *parent,
6747 IWineD3DRendertargetView **rendertarget_view) = 0;
6748
6749 virtual HRESULT STDMETHODCALLTYPE CreateTexture(
6750 UINT width,
6751 UINT height,
6752 UINT levels,
6753 DWORD usage,
6754 WINED3DFORMAT format,
6755 WINED3DPOOL pool,
6756 IWineD3DTexture **texture,
6757 IUnknown *parent,
6758 const struct wined3d_parent_ops *parent_ops) = 0;
6759
6760 virtual HRESULT STDMETHODCALLTYPE CreateVolumeTexture(
6761 UINT width,
6762 UINT height,
6763 UINT depth,
6764 UINT levels,
6765 DWORD usage,
6766 WINED3DFORMAT format,
6767 WINED3DPOOL pool,
6768 IWineD3DVolumeTexture **texture,
6769 IUnknown *parent,
6770 const struct wined3d_parent_ops *parent_ops) = 0;
6771
6772 virtual HRESULT STDMETHODCALLTYPE CreateVolume(
6773 UINT width,
6774 UINT height,
6775 UINT depth,
6776 DWORD usage,
6777 WINED3DFORMAT format,
6778 WINED3DPOOL pool,
6779 IWineD3DVolume **volume,
6780 IUnknown *parent,
6781 const struct wined3d_parent_ops *parent_ops) = 0;
6782
6783 virtual HRESULT STDMETHODCALLTYPE CreateCubeTexture(
6784 UINT edge_length,
6785 UINT levels,
6786 DWORD usage,
6787 WINED3DFORMAT format,
6788 WINED3DPOOL pool,
6789 IWineD3DCubeTexture **texture,
6790 IUnknown *parent,
6791 const struct wined3d_parent_ops *parent_ops) = 0;
6792
6793 virtual HRESULT STDMETHODCALLTYPE CreateQuery(
6794 WINED3DQUERYTYPE type,
6795 IWineD3DQuery **query,
6796 IUnknown *parent) = 0;
6797
6798 virtual HRESULT STDMETHODCALLTYPE CreateSwapChain(
6799 WINED3DPRESENT_PARAMETERS *present_parameters,
6800 IWineD3DSwapChain **swapchain,
6801 IUnknown *parent,
6802 WINED3DSURFTYPE surface_type) = 0;
6803
6804 virtual HRESULT STDMETHODCALLTYPE CreateVertexDeclaration(
6805 IWineD3DVertexDeclaration **declaration,
6806 IUnknown *parent,
6807 const struct wined3d_parent_ops *parent_ops,
6808 const WINED3DVERTEXELEMENT *elements,
6809 UINT element_count) = 0;
6810
6811 virtual HRESULT STDMETHODCALLTYPE CreateVertexDeclarationFromFVF(
6812 IWineD3DVertexDeclaration **declaration,
6813 IUnknown *parent,
6814 const struct wined3d_parent_ops *parent_ops,
6815 DWORD fvf) = 0;
6816
6817 virtual HRESULT STDMETHODCALLTYPE CreateVertexShader(
6818 const DWORD *function,
6819 const struct wined3d_shader_signature *output_signature,
6820 IWineD3DVertexShader **shader,
6821 IUnknown *parent,
6822 const struct wined3d_parent_ops *parent_ops) = 0;
6823
6824 virtual HRESULT STDMETHODCALLTYPE CreateGeometryShader(
6825 const DWORD *byte_code,
6826 const struct wined3d_shader_signature *output_signature,
6827 IWineD3DGeometryShader **shader,
6828 IUnknown *parent,
6829 const struct wined3d_parent_ops *parent_ops) = 0;
6830
6831 virtual HRESULT STDMETHODCALLTYPE CreatePixelShader(
6832 const DWORD *function,
6833 const struct wined3d_shader_signature *output_signature,
6834 IWineD3DPixelShader **shader,
6835 IUnknown *parent,
6836 const struct wined3d_parent_ops *parent_ops) = 0;
6837
6838 virtual HRESULT STDMETHODCALLTYPE CreatePalette(
6839 DWORD flags,
6840 const PALETTEENTRY *palette_entry,
6841 IWineD3DPalette **palette,
6842 IUnknown *parent) = 0;
6843
6844 virtual HRESULT STDMETHODCALLTYPE Init3D(
6845 WINED3DPRESENT_PARAMETERS *present_parameters) = 0;
6846
6847 virtual HRESULT STDMETHODCALLTYPE InitGDI(
6848 WINED3DPRESENT_PARAMETERS *present_parameters) = 0;
6849
6850 virtual HRESULT STDMETHODCALLTYPE Uninit3D(
6851 ULONG (STDMETHODCALLTYPE * destroy_swapchain_callback)(IWineD3DSwapChain *pSwapChain)) = 0;
6852
6853 virtual HRESULT STDMETHODCALLTYPE UninitGDI(
6854 ULONG (STDMETHODCALLTYPE * destroy_swapchain_callback)(IWineD3DSwapChain *pSwapChain)) = 0;
6855
6856 virtual void STDMETHODCALLTYPE SetMultithreaded(
6857 ) = 0;
6858
6859 virtual HRESULT STDMETHODCALLTYPE EvictManagedResources(
6860 ) = 0;
6861
6862 virtual UINT STDMETHODCALLTYPE GetAvailableTextureMem(
6863 ) = 0;
6864
6865 virtual HRESULT STDMETHODCALLTYPE GetBackBuffer(
6866 UINT swapchain_idx,
6867 UINT backbuffer_idx,
6868 WINED3DBACKBUFFER_TYPE backbuffer_type,
6869 IWineD3DSurface **backbuffer) = 0;
6870
6871 virtual HRESULT STDMETHODCALLTYPE GetCreationParameters(
6872 WINED3DDEVICE_CREATION_PARAMETERS *creation_parameters) = 0;
6873
6874 virtual HRESULT STDMETHODCALLTYPE GetDeviceCaps(
6875 WINED3DCAPS *caps) = 0;
6876
6877 virtual HRESULT STDMETHODCALLTYPE GetDirect3D(
6878 IWineD3D **d3d) = 0;
6879
6880 virtual HRESULT STDMETHODCALLTYPE GetDisplayMode(
6881 UINT swapchain_idx,
6882 WINED3DDISPLAYMODE *mode) = 0;
6883
6884 virtual HRESULT STDMETHODCALLTYPE SetDisplayMode(
6885 UINT swapchain_idx,
6886 const WINED3DDISPLAYMODE *mode) = 0;
6887
6888 virtual UINT STDMETHODCALLTYPE GetNumberOfSwapChains(
6889 ) = 0;
6890
6891 virtual HRESULT STDMETHODCALLTYPE GetRasterStatus(
6892 UINT swapchain_idx,
6893 WINED3DRASTER_STATUS *raster_status) = 0;
6894
6895 virtual HRESULT STDMETHODCALLTYPE GetSwapChain(
6896 UINT swapchain_idx,
6897 IWineD3DSwapChain **swapchain) = 0;
6898
6899 virtual HRESULT STDMETHODCALLTYPE Reset(
6900 WINED3DPRESENT_PARAMETERS *present_parameters) = 0;
6901
6902 virtual HRESULT STDMETHODCALLTYPE SetDialogBoxMode(
6903 BOOL enable_dialogs) = 0;
6904
6905 virtual HRESULT STDMETHODCALLTYPE SetCursorProperties(
6906 UINT x_hotspot,
6907 UINT y_hotspot,
6908 IWineD3DSurface *cursor_surface) = 0;
6909
6910 virtual void STDMETHODCALLTYPE SetCursorPosition(
6911 int x_screen_space,
6912 int y_screen_space,
6913 DWORD flags) = 0;
6914
6915 virtual BOOL STDMETHODCALLTYPE ShowCursor(
6916 BOOL show) = 0;
6917
6918 virtual HRESULT STDMETHODCALLTYPE SetClipPlane(
6919 DWORD plane_idx,
6920 const float *plane) = 0;
6921
6922 virtual HRESULT STDMETHODCALLTYPE GetClipPlane(
6923 DWORD plane_idx,
6924 float *plane) = 0;
6925
6926 virtual HRESULT STDMETHODCALLTYPE SetClipStatus(
6927 const WINED3DCLIPSTATUS *clip_status) = 0;
6928
6929 virtual HRESULT STDMETHODCALLTYPE GetClipStatus(
6930 WINED3DCLIPSTATUS *clip_status) = 0;
6931
6932 virtual HRESULT STDMETHODCALLTYPE SetCurrentTexturePalette(
6933 UINT palette_number) = 0;
6934
6935 virtual HRESULT STDMETHODCALLTYPE GetCurrentTexturePalette(
6936 UINT *palette_number) = 0;
6937
6938 virtual HRESULT STDMETHODCALLTYPE SetDepthStencilSurface(
6939 IWineD3DSurface *depth_stencil) = 0;
6940
6941 virtual HRESULT STDMETHODCALLTYPE GetDepthStencilSurface(
6942 IWineD3DSurface **depth_stencil) = 0;
6943
6944 virtual void STDMETHODCALLTYPE SetGammaRamp(
6945 UINT swapchain_idx,
6946 DWORD flags,
6947 const WINED3DGAMMARAMP *ramp) = 0;
6948
6949 virtual void STDMETHODCALLTYPE GetGammaRamp(
6950 UINT swapchain_idx,
6951 WINED3DGAMMARAMP *ramp) = 0;
6952
6953 virtual HRESULT STDMETHODCALLTYPE SetIndexBuffer(
6954 IWineD3DBuffer *index_buffer,
6955 WINED3DFORMAT format) = 0;
6956
6957 virtual HRESULT STDMETHODCALLTYPE GetIndexBuffer(
6958 IWineD3DBuffer **index_buffer) = 0;
6959
6960 virtual HRESULT STDMETHODCALLTYPE SetBaseVertexIndex(
6961 INT base_index) = 0;
6962
6963 virtual HRESULT STDMETHODCALLTYPE GetBaseVertexIndex(
6964 INT *base_index) = 0;
6965
6966 virtual HRESULT STDMETHODCALLTYPE SetLight(
6967 DWORD light_idx,
6968 const WINED3DLIGHT *light) = 0;
6969
6970 virtual HRESULT STDMETHODCALLTYPE GetLight(
6971 DWORD light_idx,
6972 WINED3DLIGHT *light) = 0;
6973
6974 virtual HRESULT STDMETHODCALLTYPE SetLightEnable(
6975 DWORD light_idx,
6976 BOOL enable) = 0;
6977
6978 virtual HRESULT STDMETHODCALLTYPE GetLightEnable(
6979 DWORD light_idx,
6980 BOOL *enable) = 0;
6981
6982 virtual HRESULT STDMETHODCALLTYPE SetMaterial(
6983 const WINED3DMATERIAL *material) = 0;
6984
6985 virtual HRESULT STDMETHODCALLTYPE GetMaterial(
6986 WINED3DMATERIAL *material) = 0;
6987
6988 virtual HRESULT STDMETHODCALLTYPE SetNPatchMode(
6989 float segments) = 0;
6990
6991 virtual float STDMETHODCALLTYPE GetNPatchMode(
6992 ) = 0;
6993
6994 virtual HRESULT STDMETHODCALLTYPE SetPaletteEntries(
6995 UINT palette_number,
6996 const PALETTEENTRY *entries) = 0;
6997
6998 virtual HRESULT STDMETHODCALLTYPE GetPaletteEntries(
6999 UINT palette_number,
7000 PALETTEENTRY *entries) = 0;
7001
7002 virtual HRESULT STDMETHODCALLTYPE SetPixelShader(
7003 IWineD3DPixelShader *shader) = 0;
7004
7005 virtual HRESULT STDMETHODCALLTYPE GetPixelShader(
7006 IWineD3DPixelShader **shader) = 0;
7007
7008 virtual HRESULT STDMETHODCALLTYPE SetPixelShaderConstantB(
7009 UINT start_register,
7010 const BOOL *constants,
7011 UINT bool_count) = 0;
7012
7013 virtual HRESULT STDMETHODCALLTYPE GetPixelShaderConstantB(
7014 UINT start_register,
7015 BOOL *constants,
7016 UINT bool_count) = 0;
7017
7018 virtual HRESULT STDMETHODCALLTYPE SetPixelShaderConstantI(
7019 UINT start_register,
7020 const int *constants,
7021 UINT vector4i_count) = 0;
7022
7023 virtual HRESULT STDMETHODCALLTYPE GetPixelShaderConstantI(
7024 UINT start_register,
7025 int *constants,
7026 UINT vector4i_count) = 0;
7027
7028 virtual HRESULT STDMETHODCALLTYPE SetPixelShaderConstantF(
7029 UINT start_register,
7030 const float *constants,
7031 UINT vector4f_count) = 0;
7032
7033 virtual HRESULT STDMETHODCALLTYPE GetPixelShaderConstantF(
7034 UINT start_register,
7035 float *constants,
7036 UINT vector4f_count) = 0;
7037
7038 virtual HRESULT STDMETHODCALLTYPE SetRenderState(
7039 WINED3DRENDERSTATETYPE state,
7040 DWORD value) = 0;
7041
7042 virtual HRESULT STDMETHODCALLTYPE GetRenderState(
7043 WINED3DRENDERSTATETYPE state,
7044 DWORD *value) = 0;
7045
7046 virtual HRESULT STDMETHODCALLTYPE SetRenderTarget(
7047 DWORD render_target_idx,
7048 IWineD3DSurface *render_target,
7049 BOOL set_viewport) = 0;
7050
7051 virtual HRESULT STDMETHODCALLTYPE GetRenderTarget(
7052 DWORD render_target_idx,
7053 IWineD3DSurface **render_target) = 0;
7054
7055 virtual HRESULT STDMETHODCALLTYPE SetFrontBackBuffers(
7056 IWineD3DSurface *front,
7057 IWineD3DSurface *back) = 0;
7058
7059 virtual HRESULT STDMETHODCALLTYPE SetSamplerState(
7060 DWORD sampler_idx,
7061 WINED3DSAMPLERSTATETYPE state,
7062 DWORD value) = 0;
7063
7064 virtual HRESULT STDMETHODCALLTYPE GetSamplerState(
7065 DWORD sampler_idx,
7066 WINED3DSAMPLERSTATETYPE state,
7067 DWORD *value) = 0;
7068
7069 virtual HRESULT STDMETHODCALLTYPE SetScissorRect(
7070 const RECT *rect) = 0;
7071
7072 virtual HRESULT STDMETHODCALLTYPE GetScissorRect(
7073 RECT *rect) = 0;
7074
7075 virtual HRESULT STDMETHODCALLTYPE SetSoftwareVertexProcessing(
7076 BOOL software) = 0;
7077
7078 virtual BOOL STDMETHODCALLTYPE GetSoftwareVertexProcessing(
7079 ) = 0;
7080
7081 virtual HRESULT STDMETHODCALLTYPE SetStreamSource(
7082 UINT stream_idx,
7083 IWineD3DBuffer *buffer,
7084 UINT offset,
7085 UINT stride) = 0;
7086
7087 virtual HRESULT STDMETHODCALLTYPE GetStreamSource(
7088 UINT stream_idx,
7089 IWineD3DBuffer **buffer,
7090 UINT *offset,
7091 UINT *stride) = 0;
7092
7093 virtual HRESULT STDMETHODCALLTYPE SetStreamSourceFreq(
7094 UINT stream_idx,
7095 UINT divider) = 0;
7096
7097 virtual HRESULT STDMETHODCALLTYPE GetStreamSourceFreq(
7098 UINT stream_idx,
7099 UINT *divider) = 0;
7100
7101 virtual HRESULT STDMETHODCALLTYPE SetTexture(
7102 DWORD stage,
7103 IWineD3DBaseTexture *texture) = 0;
7104
7105 virtual HRESULT STDMETHODCALLTYPE GetTexture(
7106 DWORD stage,
7107 IWineD3DBaseTexture **texture) = 0;
7108
7109 virtual HRESULT STDMETHODCALLTYPE SetTextureStageState(
7110 DWORD stage,
7111 WINED3DTEXTURESTAGESTATETYPE state,
7112 DWORD value) = 0;
7113
7114 virtual HRESULT STDMETHODCALLTYPE GetTextureStageState(
7115 DWORD stage,
7116 WINED3DTEXTURESTAGESTATETYPE state,
7117 DWORD *value) = 0;
7118
7119 virtual HRESULT STDMETHODCALLTYPE SetTransform(
7120 WINED3DTRANSFORMSTATETYPE state,
7121 const WINED3DMATRIX *matrix) = 0;
7122
7123 virtual HRESULT STDMETHODCALLTYPE GetTransform(
7124 WINED3DTRANSFORMSTATETYPE state,
7125 WINED3DMATRIX *matrix) = 0;
7126
7127 virtual HRESULT STDMETHODCALLTYPE SetVertexDeclaration(
7128 IWineD3DVertexDeclaration *declaration) = 0;
7129
7130 virtual HRESULT STDMETHODCALLTYPE GetVertexDeclaration(
7131 IWineD3DVertexDeclaration **declaration) = 0;
7132
7133 virtual HRESULT STDMETHODCALLTYPE SetVertexShader(
7134 IWineD3DVertexShader *shader) = 0;
7135
7136 virtual HRESULT STDMETHODCALLTYPE GetVertexShader(
7137 IWineD3DVertexShader **shader) = 0;
7138
7139 virtual HRESULT STDMETHODCALLTYPE SetVertexShaderConstantB(
7140 UINT start_register,
7141 const BOOL *constants,
7142 UINT bool_count) = 0;
7143
7144 virtual HRESULT STDMETHODCALLTYPE GetVertexShaderConstantB(
7145 UINT start_register,
7146 BOOL *constants,
7147 UINT bool_count) = 0;
7148
7149 virtual HRESULT STDMETHODCALLTYPE SetVertexShaderConstantI(
7150 UINT start_register,
7151 const int *constants,
7152 UINT vector4i_count) = 0;
7153
7154 virtual HRESULT STDMETHODCALLTYPE GetVertexShaderConstantI(
7155 UINT start_register,
7156 int *constants,
7157 UINT vector4i_count) = 0;
7158
7159 virtual HRESULT STDMETHODCALLTYPE SetVertexShaderConstantF(
7160 UINT start_register,
7161 const float *constants,
7162 UINT vector4f_count) = 0;
7163
7164 virtual HRESULT STDMETHODCALLTYPE GetVertexShaderConstantF(
7165 UINT start_register,
7166 float *constants,
7167 UINT vector4f_count) = 0;
7168
7169 virtual HRESULT STDMETHODCALLTYPE SetViewport(
7170 const WINED3DVIEWPORT *viewport) = 0;
7171
7172 virtual HRESULT STDMETHODCALLTYPE GetViewport(
7173 WINED3DVIEWPORT *viewport) = 0;
7174
7175 virtual HRESULT STDMETHODCALLTYPE MultiplyTransform(
7176 WINED3DTRANSFORMSTATETYPE state,
7177 const WINED3DMATRIX *matrix) = 0;
7178
7179 virtual HRESULT STDMETHODCALLTYPE ValidateDevice(
7180 DWORD *num_passes) = 0;
7181
7182 virtual HRESULT STDMETHODCALLTYPE ProcessVertices(
7183 UINT src_start_idx,
7184 UINT dst_idx,
7185 UINT vertex_count,
7186 IWineD3DBuffer *dest_buffer,
7187 IWineD3DVertexDeclaration *declaration,
7188 DWORD flags,
7189 DWORD DestFVF) = 0;
7190
7191 virtual HRESULT STDMETHODCALLTYPE BeginStateBlock(
7192 ) = 0;
7193
7194 virtual HRESULT STDMETHODCALLTYPE EndStateBlock(
7195 IWineD3DStateBlock **stateblock) = 0;
7196
7197 virtual HRESULT STDMETHODCALLTYPE BeginScene(
7198 ) = 0;
7199
7200 virtual HRESULT STDMETHODCALLTYPE EndScene(
7201 ) = 0;
7202
7203 virtual HRESULT STDMETHODCALLTYPE Present(
7204 const RECT *src_rect,
7205 const RECT *dst_rect,
7206 HWND dst_window_override,
7207 const RGNDATA *dirty_region) = 0;
7208
7209 virtual HRESULT STDMETHODCALLTYPE Clear(
7210 DWORD rect_count,
7211 const WINED3DRECT *rects,
7212 DWORD flags,
7213 WINED3DCOLOR color,
7214 float z,
7215 DWORD stencil) = 0;
7216
7217 virtual void STDMETHODCALLTYPE ClearRendertargetView(
7218 IWineD3DRendertargetView *rendertarget_view,
7219 const float color[4]) = 0;
7220
7221 virtual void STDMETHODCALLTYPE SetPrimitiveType(
7222 WINED3DPRIMITIVETYPE primitive_topology) = 0;
7223
7224 virtual void STDMETHODCALLTYPE GetPrimitiveType(
7225 WINED3DPRIMITIVETYPE *primitive_topology) = 0;
7226
7227 virtual HRESULT STDMETHODCALLTYPE DrawPrimitive(
7228 UINT start_vertex,
7229 UINT vertex_count) = 0;
7230
7231 virtual HRESULT STDMETHODCALLTYPE DrawIndexedPrimitive(
7232 UINT start_idx,
7233 UINT index_count) = 0;
7234
7235 virtual HRESULT STDMETHODCALLTYPE DrawPrimitiveUP(
7236 UINT vertex_count,
7237 const void *stream_data,
7238 UINT stream_stride) = 0;
7239
7240 virtual HRESULT STDMETHODCALLTYPE DrawIndexedPrimitiveUP(
7241 UINT index_count,
7242 const void *index_data,
7243 WINED3DFORMAT index_data_format,
7244 const void *stream_data,
7245 UINT stream_stride) = 0;
7246
7247 virtual HRESULT STDMETHODCALLTYPE DrawPrimitiveStrided(
7248 UINT vertex_count,
7249 const WineDirect3DVertexStridedData *strided_data) = 0;
7250
7251 virtual HRESULT STDMETHODCALLTYPE DrawIndexedPrimitiveStrided(
7252 UINT index_count,
7253 const WineDirect3DVertexStridedData *strided_data,
7254 UINT vertex_count,
7255 const void *index_data,
7256 WINED3DFORMAT index_data_format) = 0;
7257
7258 virtual HRESULT STDMETHODCALLTYPE DrawRectPatch(
7259 UINT handle,
7260 const float *num_segs,
7261 const WINED3DRECTPATCH_INFO *rect_patch_info) = 0;
7262
7263 virtual HRESULT STDMETHODCALLTYPE DrawTriPatch(
7264 UINT handle,
7265 const float *num_segs,
7266 const WINED3DTRIPATCH_INFO *tri_patch_info) = 0;
7267
7268 virtual HRESULT STDMETHODCALLTYPE DeletePatch(
7269 UINT handle) = 0;
7270
7271 virtual HRESULT STDMETHODCALLTYPE ColorFill(
7272 IWineD3DSurface *surface,
7273 const WINED3DRECT *rect,
7274 WINED3DCOLOR color) = 0;
7275
7276 virtual HRESULT STDMETHODCALLTYPE UpdateTexture(
7277 IWineD3DBaseTexture *src_texture,
7278 IWineD3DBaseTexture *dst_texture) = 0;
7279
7280 virtual HRESULT STDMETHODCALLTYPE UpdateSurface(
7281 IWineD3DSurface *src_surface,
7282 const RECT *src_rect,
7283 IWineD3DSurface *dst_surface,
7284 const POINT *dst_point) = 0;
7285
7286 virtual HRESULT STDMETHODCALLTYPE GetFrontBufferData(
7287 UINT swapchain_idx,
7288 IWineD3DSurface *dst_surface) = 0;
7289
7290 virtual HRESULT STDMETHODCALLTYPE EnumResources(
7291 HRESULT (STDMETHODCALLTYPE * callback)(IWineD3DResource *resource,void *pData),
7292 void *data) = 0;
7293
7294 virtual HRESULT STDMETHODCALLTYPE GetSurfaceFromDC(
7295 HDC dc,
7296 IWineD3DSurface **surface) = 0;
7297
7298 virtual HRESULT STDMETHODCALLTYPE AcquireFocusWindow(
7299 HWND window) = 0;
7300
7301 virtual void STDMETHODCALLTYPE ReleaseFocusWindow(
7302 ) = 0;
7303
7304#ifdef VBOX_WITH_WDDM
7305 virtual HRESULT STDMETHODCALLTYPE Flush(
7306 ) = 0;
7307
7308 virtual HRESULT STDMETHODCALLTYPE AddSwapChain(
7309 IWineD3DSwapChain *swapchain) = 0;
7310
7311 virtual HRESULT STDMETHODCALLTYPE RemoveSwapChain(
7312 IWineD3DSwapChain *swapchain) = 0;
7313#endif
7314};
7315#else
7316typedef struct IWineD3DDeviceVtbl {
7317 BEGIN_INTERFACE
7318
7319 /*** IUnknown methods ***/
7320 HRESULT (STDMETHODCALLTYPE *QueryInterface)(
7321 IWineD3DDevice* This,
7322 REFIID riid,
7323 void **ppvObject);
7324
7325 ULONG (STDMETHODCALLTYPE *AddRef)(
7326 IWineD3DDevice* This);
7327
7328 ULONG (STDMETHODCALLTYPE *Release)(
7329 IWineD3DDevice* This);
7330
7331 /*** IWineD3DBase methods ***/
7332 HRESULT (STDMETHODCALLTYPE *GetParent)(
7333 IWineD3DDevice* This,
7334 IUnknown **parent);
7335
7336 /*** IWineD3DDevice methods ***/
7337 HRESULT (STDMETHODCALLTYPE *CreateBuffer)(
7338 IWineD3DDevice* This,
7339 struct wined3d_buffer_desc *desc,
7340 const void *data,
7341 IUnknown *parent,
7342 const struct wined3d_parent_ops *parent_ops,
7343 IWineD3DBuffer **buffer);
7344
7345 HRESULT (STDMETHODCALLTYPE *CreateVertexBuffer)(
7346 IWineD3DDevice* This,
7347 UINT length,
7348 DWORD usage,
7349 WINED3DPOOL pool,
7350 IWineD3DBuffer **vertex_buffer,
7351 IUnknown *parent,
7352 const struct wined3d_parent_ops *parent_ops);
7353
7354 HRESULT (STDMETHODCALLTYPE *CreateIndexBuffer)(
7355 IWineD3DDevice* This,
7356 UINT length,
7357 DWORD usage,
7358 WINED3DPOOL pool,
7359 IWineD3DBuffer **index_buffer,
7360 IUnknown *parent,
7361 const struct wined3d_parent_ops *parent_ops);
7362
7363 HRESULT (STDMETHODCALLTYPE *CreateStateBlock)(
7364 IWineD3DDevice* This,
7365 WINED3DSTATEBLOCKTYPE type,
7366 IWineD3DStateBlock **stateblock,
7367 IUnknown *parent);
7368
7369 HRESULT (STDMETHODCALLTYPE *CreateSurface)(
7370 IWineD3DDevice* This,
7371 UINT width,
7372 UINT height,
7373 WINED3DFORMAT format,
7374 BOOL lockable,
7375 BOOL discard,
7376 UINT level,
7377 IWineD3DSurface **surface,
7378 DWORD usage,
7379 WINED3DPOOL pool,
7380 WINED3DMULTISAMPLE_TYPE multisample_type,
7381 DWORD multisample_quality,
7382 WINED3DSURFTYPE surface_type,
7383 IUnknown *parent,
7384 const struct wined3d_parent_ops *parent_ops
7385#ifdef VBOX_WITH_WDDM
7386 , HANDLE *shared_handle
7387 , void *pvClientMem
7388#endif
7389 );
7390
7391 HRESULT (STDMETHODCALLTYPE *CreateRendertargetView)(
7392 IWineD3DDevice* This,
7393 IWineD3DResource *resource,
7394 IUnknown *parent,
7395 IWineD3DRendertargetView **rendertarget_view);
7396
7397 HRESULT (STDMETHODCALLTYPE *CreateTexture)(
7398 IWineD3DDevice* This,
7399 UINT width,
7400 UINT height,
7401 UINT levels,
7402 DWORD usage,
7403 WINED3DFORMAT format,
7404 WINED3DPOOL pool,
7405 IWineD3DTexture **texture,
7406 IUnknown *parent,
7407 const struct wined3d_parent_ops *parent_ops
7408#ifdef VBOX_WITH_WDDM
7409 , HANDLE *shared_handle
7410 , void *pvClientMem
7411#endif
7412 );
7413
7414 HRESULT (STDMETHODCALLTYPE *CreateVolumeTexture)(
7415 IWineD3DDevice* This,
7416 UINT width,
7417 UINT height,
7418 UINT depth,
7419 UINT levels,
7420 DWORD usage,
7421 WINED3DFORMAT format,
7422 WINED3DPOOL pool,
7423 IWineD3DVolumeTexture **texture,
7424 IUnknown *parent,
7425 const struct wined3d_parent_ops *parent_ops);
7426
7427 HRESULT (STDMETHODCALLTYPE *CreateVolume)(
7428 IWineD3DDevice* This,
7429 UINT width,
7430 UINT height,
7431 UINT depth,
7432 DWORD usage,
7433 WINED3DFORMAT format,
7434 WINED3DPOOL pool,
7435 IWineD3DVolume **volume,
7436 IUnknown *parent,
7437 const struct wined3d_parent_ops *parent_ops);
7438
7439 HRESULT (STDMETHODCALLTYPE *CreateCubeTexture)(
7440 IWineD3DDevice* This,
7441 UINT edge_length,
7442 UINT levels,
7443 DWORD usage,
7444 WINED3DFORMAT format,
7445 WINED3DPOOL pool,
7446 IWineD3DCubeTexture **texture,
7447 IUnknown *parent,
7448 const struct wined3d_parent_ops *parent_ops);
7449
7450 HRESULT (STDMETHODCALLTYPE *CreateQuery)(
7451 IWineD3DDevice* This,
7452 WINED3DQUERYTYPE type,
7453 IWineD3DQuery **query,
7454 IUnknown *parent);
7455
7456 HRESULT (STDMETHODCALLTYPE *CreateSwapChain)(
7457 IWineD3DDevice* This,
7458 WINED3DPRESENT_PARAMETERS *present_parameters,
7459 IWineD3DSwapChain **swapchain,
7460 IUnknown *parent,
7461 WINED3DSURFTYPE surface_type);
7462
7463 HRESULT (STDMETHODCALLTYPE *CreateVertexDeclaration)(
7464 IWineD3DDevice* This,
7465 IWineD3DVertexDeclaration **declaration,
7466 IUnknown *parent,
7467 const struct wined3d_parent_ops *parent_ops,
7468 const WINED3DVERTEXELEMENT *elements,
7469 UINT element_count);
7470
7471 HRESULT (STDMETHODCALLTYPE *CreateVertexDeclarationFromFVF)(
7472 IWineD3DDevice* This,
7473 IWineD3DVertexDeclaration **declaration,
7474 IUnknown *parent,
7475 const struct wined3d_parent_ops *parent_ops,
7476 DWORD fvf);
7477
7478 HRESULT (STDMETHODCALLTYPE *CreateVertexShader)(
7479 IWineD3DDevice* This,
7480 const DWORD *function,
7481 const struct wined3d_shader_signature *output_signature,
7482 IWineD3DVertexShader **shader,
7483 IUnknown *parent,
7484 const struct wined3d_parent_ops *parent_ops);
7485
7486 HRESULT (STDMETHODCALLTYPE *CreateGeometryShader)(
7487 IWineD3DDevice* This,
7488 const DWORD *byte_code,
7489 const struct wined3d_shader_signature *output_signature,
7490 IWineD3DGeometryShader **shader,
7491 IUnknown *parent,
7492 const struct wined3d_parent_ops *parent_ops);
7493
7494 HRESULT (STDMETHODCALLTYPE *CreatePixelShader)(
7495 IWineD3DDevice* This,
7496 const DWORD *function,
7497 const struct wined3d_shader_signature *output_signature,
7498 IWineD3DPixelShader **shader,
7499 IUnknown *parent,
7500 const struct wined3d_parent_ops *parent_ops);
7501
7502 HRESULT (STDMETHODCALLTYPE *CreatePalette)(
7503 IWineD3DDevice* This,
7504 DWORD flags,
7505 const PALETTEENTRY *palette_entry,
7506 IWineD3DPalette **palette,
7507 IUnknown *parent);
7508
7509 HRESULT (STDMETHODCALLTYPE *Init3D)(
7510 IWineD3DDevice* This,
7511 WINED3DPRESENT_PARAMETERS *present_parameters);
7512
7513 HRESULT (STDMETHODCALLTYPE *InitGDI)(
7514 IWineD3DDevice* This,
7515 WINED3DPRESENT_PARAMETERS *present_parameters);
7516
7517 HRESULT (STDMETHODCALLTYPE *Uninit3D)(
7518 IWineD3DDevice* This,
7519 ULONG (STDMETHODCALLTYPE * destroy_swapchain_callback)(IWineD3DSwapChain *pSwapChain));
7520
7521 HRESULT (STDMETHODCALLTYPE *UninitGDI)(
7522 IWineD3DDevice* This,
7523 ULONG (STDMETHODCALLTYPE * destroy_swapchain_callback)(IWineD3DSwapChain *pSwapChain));
7524
7525 void (STDMETHODCALLTYPE *SetMultithreaded)(
7526 IWineD3DDevice* This);
7527
7528 HRESULT (STDMETHODCALLTYPE *EvictManagedResources)(
7529 IWineD3DDevice* This);
7530
7531 UINT (STDMETHODCALLTYPE *GetAvailableTextureMem)(
7532 IWineD3DDevice* This);
7533
7534 HRESULT (STDMETHODCALLTYPE *GetBackBuffer)(
7535 IWineD3DDevice* This,
7536 UINT swapchain_idx,
7537 UINT backbuffer_idx,
7538 WINED3DBACKBUFFER_TYPE backbuffer_type,
7539 IWineD3DSurface **backbuffer);
7540
7541 HRESULT (STDMETHODCALLTYPE *GetCreationParameters)(
7542 IWineD3DDevice* This,
7543 WINED3DDEVICE_CREATION_PARAMETERS *creation_parameters);
7544
7545 HRESULT (STDMETHODCALLTYPE *GetDeviceCaps)(
7546 IWineD3DDevice* This,
7547 WINED3DCAPS *caps);
7548
7549 HRESULT (STDMETHODCALLTYPE *GetDirect3D)(
7550 IWineD3DDevice* This,
7551 IWineD3D **d3d);
7552
7553 HRESULT (STDMETHODCALLTYPE *GetDisplayMode)(
7554 IWineD3DDevice* This,
7555 UINT swapchain_idx,
7556 WINED3DDISPLAYMODE *mode);
7557
7558 HRESULT (STDMETHODCALLTYPE *SetDisplayMode)(
7559 IWineD3DDevice* This,
7560 UINT swapchain_idx,
7561 const WINED3DDISPLAYMODE *mode);
7562
7563 UINT (STDMETHODCALLTYPE *GetNumberOfSwapChains)(
7564 IWineD3DDevice* This);
7565
7566 HRESULT (STDMETHODCALLTYPE *GetRasterStatus)(
7567 IWineD3DDevice* This,
7568 UINT swapchain_idx,
7569 WINED3DRASTER_STATUS *raster_status);
7570
7571 HRESULT (STDMETHODCALLTYPE *GetSwapChain)(
7572 IWineD3DDevice* This,
7573 UINT swapchain_idx,
7574 IWineD3DSwapChain **swapchain);
7575
7576 HRESULT (STDMETHODCALLTYPE *Reset)(
7577 IWineD3DDevice* This,
7578 WINED3DPRESENT_PARAMETERS *present_parameters);
7579
7580 HRESULT (STDMETHODCALLTYPE *SetDialogBoxMode)(
7581 IWineD3DDevice* This,
7582 BOOL enable_dialogs);
7583
7584 HRESULT (STDMETHODCALLTYPE *SetCursorProperties)(
7585 IWineD3DDevice* This,
7586 UINT x_hotspot,
7587 UINT y_hotspot,
7588 IWineD3DSurface *cursor_surface);
7589
7590 void (STDMETHODCALLTYPE *SetCursorPosition)(
7591 IWineD3DDevice* This,
7592 int x_screen_space,
7593 int y_screen_space,
7594 DWORD flags);
7595
7596 BOOL (STDMETHODCALLTYPE *ShowCursor)(
7597 IWineD3DDevice* This,
7598 BOOL show);
7599
7600 HRESULT (STDMETHODCALLTYPE *SetClipPlane)(
7601 IWineD3DDevice* This,
7602 DWORD plane_idx,
7603 const float *plane);
7604
7605 HRESULT (STDMETHODCALLTYPE *GetClipPlane)(
7606 IWineD3DDevice* This,
7607 DWORD plane_idx,
7608 float *plane);
7609
7610 HRESULT (STDMETHODCALLTYPE *SetClipStatus)(
7611 IWineD3DDevice* This,
7612 const WINED3DCLIPSTATUS *clip_status);
7613
7614 HRESULT (STDMETHODCALLTYPE *GetClipStatus)(
7615 IWineD3DDevice* This,
7616 WINED3DCLIPSTATUS *clip_status);
7617
7618 HRESULT (STDMETHODCALLTYPE *SetCurrentTexturePalette)(
7619 IWineD3DDevice* This,
7620 UINT palette_number);
7621
7622 HRESULT (STDMETHODCALLTYPE *GetCurrentTexturePalette)(
7623 IWineD3DDevice* This,
7624 UINT *palette_number);
7625
7626 HRESULT (STDMETHODCALLTYPE *SetDepthStencilSurface)(
7627 IWineD3DDevice* This,
7628 IWineD3DSurface *depth_stencil);
7629
7630 HRESULT (STDMETHODCALLTYPE *GetDepthStencilSurface)(
7631 IWineD3DDevice* This,
7632 IWineD3DSurface **depth_stencil);
7633
7634 void (STDMETHODCALLTYPE *SetGammaRamp)(
7635 IWineD3DDevice* This,
7636 UINT swapchain_idx,
7637 DWORD flags,
7638 const WINED3DGAMMARAMP *ramp);
7639
7640 void (STDMETHODCALLTYPE *GetGammaRamp)(
7641 IWineD3DDevice* This,
7642 UINT swapchain_idx,
7643 WINED3DGAMMARAMP *ramp);
7644
7645 HRESULT (STDMETHODCALLTYPE *SetIndexBuffer)(
7646 IWineD3DDevice* This,
7647 IWineD3DBuffer *index_buffer,
7648 WINED3DFORMAT format);
7649
7650 HRESULT (STDMETHODCALLTYPE *GetIndexBuffer)(
7651 IWineD3DDevice* This,
7652 IWineD3DBuffer **index_buffer);
7653
7654 HRESULT (STDMETHODCALLTYPE *SetBaseVertexIndex)(
7655 IWineD3DDevice* This,
7656 INT base_index);
7657
7658 HRESULT (STDMETHODCALLTYPE *GetBaseVertexIndex)(
7659 IWineD3DDevice* This,
7660 INT *base_index);
7661
7662 HRESULT (STDMETHODCALLTYPE *SetLight)(
7663 IWineD3DDevice* This,
7664 DWORD light_idx,
7665 const WINED3DLIGHT *light);
7666
7667 HRESULT (STDMETHODCALLTYPE *GetLight)(
7668 IWineD3DDevice* This,
7669 DWORD light_idx,
7670 WINED3DLIGHT *light);
7671
7672 HRESULT (STDMETHODCALLTYPE *SetLightEnable)(
7673 IWineD3DDevice* This,
7674 DWORD light_idx,
7675 BOOL enable);
7676
7677 HRESULT (STDMETHODCALLTYPE *GetLightEnable)(
7678 IWineD3DDevice* This,
7679 DWORD light_idx,
7680 BOOL *enable);
7681
7682 HRESULT (STDMETHODCALLTYPE *SetMaterial)(
7683 IWineD3DDevice* This,
7684 const WINED3DMATERIAL *material);
7685
7686 HRESULT (STDMETHODCALLTYPE *GetMaterial)(
7687 IWineD3DDevice* This,
7688 WINED3DMATERIAL *material);
7689
7690 HRESULT (STDMETHODCALLTYPE *SetNPatchMode)(
7691 IWineD3DDevice* This,
7692 float segments);
7693
7694 float (STDMETHODCALLTYPE *GetNPatchMode)(
7695 IWineD3DDevice* This);
7696
7697 HRESULT (STDMETHODCALLTYPE *SetPaletteEntries)(
7698 IWineD3DDevice* This,
7699 UINT palette_number,
7700 const PALETTEENTRY *entries);
7701
7702 HRESULT (STDMETHODCALLTYPE *GetPaletteEntries)(
7703 IWineD3DDevice* This,
7704 UINT palette_number,
7705 PALETTEENTRY *entries);
7706
7707 HRESULT (STDMETHODCALLTYPE *SetPixelShader)(
7708 IWineD3DDevice* This,
7709 IWineD3DPixelShader *shader);
7710
7711 HRESULT (STDMETHODCALLTYPE *GetPixelShader)(
7712 IWineD3DDevice* This,
7713 IWineD3DPixelShader **shader);
7714
7715 HRESULT (STDMETHODCALLTYPE *SetPixelShaderConstantB)(
7716 IWineD3DDevice* This,
7717 UINT start_register,
7718 const BOOL *constants,
7719 UINT bool_count);
7720
7721 HRESULT (STDMETHODCALLTYPE *GetPixelShaderConstantB)(
7722 IWineD3DDevice* This,
7723 UINT start_register,
7724 BOOL *constants,
7725 UINT bool_count);
7726
7727 HRESULT (STDMETHODCALLTYPE *SetPixelShaderConstantI)(
7728 IWineD3DDevice* This,
7729 UINT start_register,
7730 const int *constants,
7731 UINT vector4i_count);
7732
7733 HRESULT (STDMETHODCALLTYPE *GetPixelShaderConstantI)(
7734 IWineD3DDevice* This,
7735 UINT start_register,
7736 int *constants,
7737 UINT vector4i_count);
7738
7739 HRESULT (STDMETHODCALLTYPE *SetPixelShaderConstantF)(
7740 IWineD3DDevice* This,
7741 UINT start_register,
7742 const float *constants,
7743 UINT vector4f_count);
7744
7745 HRESULT (STDMETHODCALLTYPE *GetPixelShaderConstantF)(
7746 IWineD3DDevice* This,
7747 UINT start_register,
7748 float *constants,
7749 UINT vector4f_count);
7750
7751 HRESULT (STDMETHODCALLTYPE *SetRenderState)(
7752 IWineD3DDevice* This,
7753 WINED3DRENDERSTATETYPE state,
7754 DWORD value);
7755
7756 HRESULT (STDMETHODCALLTYPE *GetRenderState)(
7757 IWineD3DDevice* This,
7758 WINED3DRENDERSTATETYPE state,
7759 DWORD *value);
7760
7761 HRESULT (STDMETHODCALLTYPE *SetRenderTarget)(
7762 IWineD3DDevice* This,
7763 DWORD render_target_idx,
7764 IWineD3DSurface *render_target,
7765 BOOL set_viewport);
7766
7767 HRESULT (STDMETHODCALLTYPE *GetRenderTarget)(
7768 IWineD3DDevice* This,
7769 DWORD render_target_idx,
7770 IWineD3DSurface **render_target);
7771
7772 HRESULT (STDMETHODCALLTYPE *SetFrontBackBuffers)(
7773 IWineD3DDevice* This,
7774 IWineD3DSurface *front,
7775 IWineD3DSurface *back);
7776
7777 HRESULT (STDMETHODCALLTYPE *SetSamplerState)(
7778 IWineD3DDevice* This,
7779 DWORD sampler_idx,
7780 WINED3DSAMPLERSTATETYPE state,
7781 DWORD value);
7782
7783 HRESULT (STDMETHODCALLTYPE *GetSamplerState)(
7784 IWineD3DDevice* This,
7785 DWORD sampler_idx,
7786 WINED3DSAMPLERSTATETYPE state,
7787 DWORD *value);
7788
7789 HRESULT (STDMETHODCALLTYPE *SetScissorRect)(
7790 IWineD3DDevice* This,
7791 const RECT *rect);
7792
7793 HRESULT (STDMETHODCALLTYPE *GetScissorRect)(
7794 IWineD3DDevice* This,
7795 RECT *rect);
7796
7797 HRESULT (STDMETHODCALLTYPE *SetSoftwareVertexProcessing)(
7798 IWineD3DDevice* This,
7799 BOOL software);
7800
7801 BOOL (STDMETHODCALLTYPE *GetSoftwareVertexProcessing)(
7802 IWineD3DDevice* This);
7803
7804 HRESULT (STDMETHODCALLTYPE *SetStreamSource)(
7805 IWineD3DDevice* This,
7806 UINT stream_idx,
7807 IWineD3DBuffer *buffer,
7808 UINT offset,
7809 UINT stride);
7810
7811 HRESULT (STDMETHODCALLTYPE *GetStreamSource)(
7812 IWineD3DDevice* This,
7813 UINT stream_idx,
7814 IWineD3DBuffer **buffer,
7815 UINT *offset,
7816 UINT *stride);
7817
7818 HRESULT (STDMETHODCALLTYPE *SetStreamSourceFreq)(
7819 IWineD3DDevice* This,
7820 UINT stream_idx,
7821 UINT divider);
7822
7823 HRESULT (STDMETHODCALLTYPE *GetStreamSourceFreq)(
7824 IWineD3DDevice* This,
7825 UINT stream_idx,
7826 UINT *divider);
7827
7828 HRESULT (STDMETHODCALLTYPE *SetTexture)(
7829 IWineD3DDevice* This,
7830 DWORD stage,
7831 IWineD3DBaseTexture *texture);
7832
7833 HRESULT (STDMETHODCALLTYPE *GetTexture)(
7834 IWineD3DDevice* This,
7835 DWORD stage,
7836 IWineD3DBaseTexture **texture);
7837
7838 HRESULT (STDMETHODCALLTYPE *SetTextureStageState)(
7839 IWineD3DDevice* This,
7840 DWORD stage,
7841 WINED3DTEXTURESTAGESTATETYPE state,
7842 DWORD value);
7843
7844 HRESULT (STDMETHODCALLTYPE *GetTextureStageState)(
7845 IWineD3DDevice* This,
7846 DWORD stage,
7847 WINED3DTEXTURESTAGESTATETYPE state,
7848 DWORD *value);
7849
7850 HRESULT (STDMETHODCALLTYPE *SetTransform)(
7851 IWineD3DDevice* This,
7852 WINED3DTRANSFORMSTATETYPE state,
7853 const WINED3DMATRIX *matrix);
7854
7855 HRESULT (STDMETHODCALLTYPE *GetTransform)(
7856 IWineD3DDevice* This,
7857 WINED3DTRANSFORMSTATETYPE state,
7858 WINED3DMATRIX *matrix);
7859
7860 HRESULT (STDMETHODCALLTYPE *SetVertexDeclaration)(
7861 IWineD3DDevice* This,
7862 IWineD3DVertexDeclaration *declaration);
7863
7864 HRESULT (STDMETHODCALLTYPE *GetVertexDeclaration)(
7865 IWineD3DDevice* This,
7866 IWineD3DVertexDeclaration **declaration);
7867
7868 HRESULT (STDMETHODCALLTYPE *SetVertexShader)(
7869 IWineD3DDevice* This,
7870 IWineD3DVertexShader *shader);
7871
7872 HRESULT (STDMETHODCALLTYPE *GetVertexShader)(
7873 IWineD3DDevice* This,
7874 IWineD3DVertexShader **shader);
7875
7876 HRESULT (STDMETHODCALLTYPE *SetVertexShaderConstantB)(
7877 IWineD3DDevice* This,
7878 UINT start_register,
7879 const BOOL *constants,
7880 UINT bool_count);
7881
7882 HRESULT (STDMETHODCALLTYPE *GetVertexShaderConstantB)(
7883 IWineD3DDevice* This,
7884 UINT start_register,
7885 BOOL *constants,
7886 UINT bool_count);
7887
7888 HRESULT (STDMETHODCALLTYPE *SetVertexShaderConstantI)(
7889 IWineD3DDevice* This,
7890 UINT start_register,
7891 const int *constants,
7892 UINT vector4i_count);
7893
7894 HRESULT (STDMETHODCALLTYPE *GetVertexShaderConstantI)(
7895 IWineD3DDevice* This,
7896 UINT start_register,
7897 int *constants,
7898 UINT vector4i_count);
7899
7900 HRESULT (STDMETHODCALLTYPE *SetVertexShaderConstantF)(
7901 IWineD3DDevice* This,
7902 UINT start_register,
7903 const float *constants,
7904 UINT vector4f_count);
7905
7906 HRESULT (STDMETHODCALLTYPE *GetVertexShaderConstantF)(
7907 IWineD3DDevice* This,
7908 UINT start_register,
7909 float *constants,
7910 UINT vector4f_count);
7911
7912 HRESULT (STDMETHODCALLTYPE *SetViewport)(
7913 IWineD3DDevice* This,
7914 const WINED3DVIEWPORT *viewport);
7915
7916 HRESULT (STDMETHODCALLTYPE *GetViewport)(
7917 IWineD3DDevice* This,
7918 WINED3DVIEWPORT *viewport);
7919
7920 HRESULT (STDMETHODCALLTYPE *MultiplyTransform)(
7921 IWineD3DDevice* This,
7922 WINED3DTRANSFORMSTATETYPE state,
7923 const WINED3DMATRIX *matrix);
7924
7925 HRESULT (STDMETHODCALLTYPE *ValidateDevice)(
7926 IWineD3DDevice* This,
7927 DWORD *num_passes);
7928
7929 HRESULT (STDMETHODCALLTYPE *ProcessVertices)(
7930 IWineD3DDevice* This,
7931 UINT src_start_idx,
7932 UINT dst_idx,
7933 UINT vertex_count,
7934 IWineD3DBuffer *dest_buffer,
7935 IWineD3DVertexDeclaration *declaration,
7936 DWORD flags,
7937 DWORD DestFVF);
7938
7939 HRESULT (STDMETHODCALLTYPE *BeginStateBlock)(
7940 IWineD3DDevice* This);
7941
7942 HRESULT (STDMETHODCALLTYPE *EndStateBlock)(
7943 IWineD3DDevice* This,
7944 IWineD3DStateBlock **stateblock);
7945
7946 HRESULT (STDMETHODCALLTYPE *BeginScene)(
7947 IWineD3DDevice* This);
7948
7949 HRESULT (STDMETHODCALLTYPE *EndScene)(
7950 IWineD3DDevice* This);
7951
7952 HRESULT (STDMETHODCALLTYPE *Present)(
7953 IWineD3DDevice* This,
7954 const RECT *src_rect,
7955 const RECT *dst_rect,
7956 HWND dst_window_override,
7957 const RGNDATA *dirty_region);
7958
7959 HRESULT (STDMETHODCALLTYPE *Clear)(
7960 IWineD3DDevice* This,
7961 DWORD rect_count,
7962 const WINED3DRECT *rects,
7963 DWORD flags,
7964 WINED3DCOLOR color,
7965 float z,
7966 DWORD stencil);
7967
7968 void (STDMETHODCALLTYPE *ClearRendertargetView)(
7969 IWineD3DDevice* This,
7970 IWineD3DRendertargetView *rendertarget_view,
7971 const float color[4]);
7972
7973 void (STDMETHODCALLTYPE *SetPrimitiveType)(
7974 IWineD3DDevice* This,
7975 WINED3DPRIMITIVETYPE primitive_topology);
7976
7977 void (STDMETHODCALLTYPE *GetPrimitiveType)(
7978 IWineD3DDevice* This,
7979 WINED3DPRIMITIVETYPE *primitive_topology);
7980
7981 HRESULT (STDMETHODCALLTYPE *DrawPrimitive)(
7982 IWineD3DDevice* This,
7983 UINT start_vertex,
7984 UINT vertex_count);
7985
7986 HRESULT (STDMETHODCALLTYPE *DrawIndexedPrimitive)(
7987 IWineD3DDevice* This,
7988 UINT start_idx,
7989 UINT index_count);
7990
7991 HRESULT (STDMETHODCALLTYPE *DrawPrimitiveUP)(
7992 IWineD3DDevice* This,
7993 UINT vertex_count,
7994 const void *stream_data,
7995 UINT stream_stride);
7996
7997 HRESULT (STDMETHODCALLTYPE *DrawIndexedPrimitiveUP)(
7998 IWineD3DDevice* This,
7999 UINT index_count,
8000 const void *index_data,
8001 WINED3DFORMAT index_data_format,
8002 const void *stream_data,
8003 UINT stream_stride);
8004
8005 HRESULT (STDMETHODCALLTYPE *DrawPrimitiveStrided)(
8006 IWineD3DDevice* This,
8007 UINT vertex_count,
8008 const WineDirect3DVertexStridedData *strided_data);
8009
8010 HRESULT (STDMETHODCALLTYPE *DrawIndexedPrimitiveStrided)(
8011 IWineD3DDevice* This,
8012 UINT index_count,
8013 const WineDirect3DVertexStridedData *strided_data,
8014 UINT vertex_count,
8015 const void *index_data,
8016 WINED3DFORMAT index_data_format);
8017
8018 HRESULT (STDMETHODCALLTYPE *DrawRectPatch)(
8019 IWineD3DDevice* This,
8020 UINT handle,
8021 const float *num_segs,
8022 const WINED3DRECTPATCH_INFO *rect_patch_info);
8023
8024 HRESULT (STDMETHODCALLTYPE *DrawTriPatch)(
8025 IWineD3DDevice* This,
8026 UINT handle,
8027 const float *num_segs,
8028 const WINED3DTRIPATCH_INFO *tri_patch_info);
8029
8030 HRESULT (STDMETHODCALLTYPE *DeletePatch)(
8031 IWineD3DDevice* This,
8032 UINT handle);
8033
8034 HRESULT (STDMETHODCALLTYPE *ColorFill)(
8035 IWineD3DDevice* This,
8036 IWineD3DSurface *surface,
8037 const WINED3DRECT *rect,
8038 WINED3DCOLOR color);
8039
8040 HRESULT (STDMETHODCALLTYPE *UpdateTexture)(
8041 IWineD3DDevice* This,
8042 IWineD3DBaseTexture *src_texture,
8043 IWineD3DBaseTexture *dst_texture);
8044
8045 HRESULT (STDMETHODCALLTYPE *UpdateSurface)(
8046 IWineD3DDevice* This,
8047 IWineD3DSurface *src_surface,
8048 const RECT *src_rect,
8049 IWineD3DSurface *dst_surface,
8050 const POINT *dst_point);
8051
8052 HRESULT (STDMETHODCALLTYPE *GetFrontBufferData)(
8053 IWineD3DDevice* This,
8054 UINT swapchain_idx,
8055 IWineD3DSurface *dst_surface);
8056
8057 HRESULT (STDMETHODCALLTYPE *EnumResources)(
8058 IWineD3DDevice* This,
8059 HRESULT (STDMETHODCALLTYPE * callback)(IWineD3DResource *resource,void *pData),
8060 void *data);
8061
8062 HRESULT (STDMETHODCALLTYPE *GetSurfaceFromDC)(
8063 IWineD3DDevice* This,
8064 HDC dc,
8065 IWineD3DSurface **surface);
8066
8067 HRESULT (STDMETHODCALLTYPE *AcquireFocusWindow)(
8068 IWineD3DDevice* This,
8069 HWND window);
8070
8071 void (STDMETHODCALLTYPE *ReleaseFocusWindow)(
8072 IWineD3DDevice* This);
8073
8074#ifdef VBOX_WITH_WDDM
8075 HRESULT (STDMETHODCALLTYPE *Flush)(
8076 IWineD3DDevice* This);
8077
8078 HRESULT (STDMETHODCALLTYPE *AddSwapChain)(
8079 IWineD3DDevice* This,
8080 IWineD3DSwapChain *swapchain);
8081
8082 HRESULT (STDMETHODCALLTYPE *RemoveSwapChain)(
8083 IWineD3DDevice* This,
8084 IWineD3DSwapChain *swapchain);
8085#endif
8086
8087 END_INTERFACE
8088} IWineD3DDeviceVtbl;
8089interface IWineD3DDevice {
8090 CONST_VTBL IWineD3DDeviceVtbl* lpVtbl;
8091};
8092
8093#ifdef COBJMACROS
8094/*** IUnknown methods ***/
8095#define IWineD3DDevice_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
8096#define IWineD3DDevice_AddRef(This) (This)->lpVtbl->AddRef(This)
8097#define IWineD3DDevice_Release(This) (This)->lpVtbl->Release(This)
8098/*** IWineD3DBase methods ***/
8099#define IWineD3DDevice_GetParent(This,parent) (This)->lpVtbl->GetParent(This,parent)
8100/*** IWineD3DDevice methods ***/
8101#define IWineD3DDevice_CreateBuffer(This,desc,data,parent,parent_ops,buffer) (This)->lpVtbl->CreateBuffer(This,desc,data,parent,parent_ops,buffer)
8102#define IWineD3DDevice_CreateVertexBuffer(This,length,usage,pool,vertex_buffer,parent,parent_ops) (This)->lpVtbl->CreateVertexBuffer(This,length,usage,pool,vertex_buffer,parent,parent_ops)
8103#define IWineD3DDevice_CreateIndexBuffer(This,length,usage,pool,index_buffer,parent,parent_ops) (This)->lpVtbl->CreateIndexBuffer(This,length,usage,pool,index_buffer,parent,parent_ops)
8104#define IWineD3DDevice_CreateStateBlock(This,type,stateblock,parent) (This)->lpVtbl->CreateStateBlock(This,type,stateblock,parent)
8105#ifdef VBOX_WITH_WDDM
8106#define IWineD3DDevice_CreateSurface(This,width,height,format,lockable,discard,level,surface,usage,pool,multisample_type,multisample_quality,surface_type,parent,parent_ops,shared_handle,pvClientMem) (This)->lpVtbl->CreateSurface(This,width,height,format,lockable,discard,level,surface,usage,pool,multisample_type,multisample_quality,surface_type,parent,parent_ops,shared_handle,pvClientMem)
8107#else
8108#define IWineD3DDevice_CreateSurface(This,width,height,format,lockable,discard,level,surface,usage,pool,multisample_type,multisample_quality,surface_type,parent,parent_ops) (This)->lpVtbl->CreateSurface(This,width,height,format,lockable,discard,level,surface,usage,pool,multisample_type,multisample_quality,surface_type,parent,parent_ops)
8109#endif
8110#define IWineD3DDevice_CreateRendertargetView(This,resource,parent,rendertarget_view) (This)->lpVtbl->CreateRendertargetView(This,resource,parent,rendertarget_view)
8111#ifdef VBOX_WITH_WDDM
8112#define IWineD3DDevice_CreateTexture(This,width,height,levels,usage,format,pool,texture,parent,parent_ops,shared_handle,pvClientMem) (This)->lpVtbl->CreateTexture(This,width,height,levels,usage,format,pool,texture,parent,parent_ops,shared_handle,pvClientMem)
8113#else
8114#define IWineD3DDevice_CreateTexture(This,width,height,levels,usage,format,pool,texture,parent,parent_ops) (This)->lpVtbl->CreateTexture(This,width,height,levels,usage,format,pool,texture,parent,parent_ops)
8115#endif
8116#define IWineD3DDevice_CreateVolumeTexture(This,width,height,depth,levels,usage,format,pool,texture,parent,parent_ops) (This)->lpVtbl->CreateVolumeTexture(This,width,height,depth,levels,usage,format,pool,texture,parent,parent_ops)
8117#define IWineD3DDevice_CreateVolume(This,width,height,depth,usage,format,pool,volume,parent,parent_ops) (This)->lpVtbl->CreateVolume(This,width,height,depth,usage,format,pool,volume,parent,parent_ops)
8118#define IWineD3DDevice_CreateCubeTexture(This,edge_length,levels,usage,format,pool,texture,parent,parent_ops) (This)->lpVtbl->CreateCubeTexture(This,edge_length,levels,usage,format,pool,texture,parent,parent_ops)
8119#define IWineD3DDevice_CreateQuery(This,type,query,parent) (This)->lpVtbl->CreateQuery(This,type,query,parent)
8120#define IWineD3DDevice_CreateSwapChain(This,present_parameters,swapchain,parent,surface_type) (This)->lpVtbl->CreateSwapChain(This,present_parameters,swapchain,parent,surface_type)
8121#define IWineD3DDevice_CreateVertexDeclaration(This,declaration,parent,parent_ops,elements,element_count) (This)->lpVtbl->CreateVertexDeclaration(This,declaration,parent,parent_ops,elements,element_count)
8122#define IWineD3DDevice_CreateVertexDeclarationFromFVF(This,declaration,parent,parent_ops,fvf) (This)->lpVtbl->CreateVertexDeclarationFromFVF(This,declaration,parent,parent_ops,fvf)
8123#define IWineD3DDevice_CreateVertexShader(This,function,output_signature,shader,parent,parent_ops) (This)->lpVtbl->CreateVertexShader(This,function,output_signature,shader,parent,parent_ops)
8124#define IWineD3DDevice_CreateGeometryShader(This,byte_code,output_signature,shader,parent,parent_ops) (This)->lpVtbl->CreateGeometryShader(This,byte_code,output_signature,shader,parent,parent_ops)
8125#define IWineD3DDevice_CreatePixelShader(This,function,output_signature,shader,parent,parent_ops) (This)->lpVtbl->CreatePixelShader(This,function,output_signature,shader,parent,parent_ops)
8126#define IWineD3DDevice_CreatePalette(This,flags,palette_entry,palette,parent) (This)->lpVtbl->CreatePalette(This,flags,palette_entry,palette,parent)
8127#define IWineD3DDevice_Init3D(This,present_parameters) (This)->lpVtbl->Init3D(This,present_parameters)
8128#define IWineD3DDevice_InitGDI(This,present_parameters) (This)->lpVtbl->InitGDI(This,present_parameters)
8129#define IWineD3DDevice_Uninit3D(This,destroy_swapchain_callback) (This)->lpVtbl->Uninit3D(This,destroy_swapchain_callback)
8130#define IWineD3DDevice_UninitGDI(This,destroy_swapchain_callback) (This)->lpVtbl->UninitGDI(This,destroy_swapchain_callback)
8131#define IWineD3DDevice_SetMultithreaded(This) (This)->lpVtbl->SetMultithreaded(This)
8132#define IWineD3DDevice_EvictManagedResources(This) (This)->lpVtbl->EvictManagedResources(This)
8133#define IWineD3DDevice_GetAvailableTextureMem(This) (This)->lpVtbl->GetAvailableTextureMem(This)
8134#define IWineD3DDevice_GetBackBuffer(This,swapchain_idx,backbuffer_idx,backbuffer_type,backbuffer) (This)->lpVtbl->GetBackBuffer(This,swapchain_idx,backbuffer_idx,backbuffer_type,backbuffer)
8135#define IWineD3DDevice_GetCreationParameters(This,creation_parameters) (This)->lpVtbl->GetCreationParameters(This,creation_parameters)
8136#define IWineD3DDevice_GetDeviceCaps(This,caps) (This)->lpVtbl->GetDeviceCaps(This,caps)
8137#define IWineD3DDevice_GetDirect3D(This,d3d) (This)->lpVtbl->GetDirect3D(This,d3d)
8138#define IWineD3DDevice_GetDisplayMode(This,swapchain_idx,mode) (This)->lpVtbl->GetDisplayMode(This,swapchain_idx,mode)
8139#define IWineD3DDevice_SetDisplayMode(This,swapchain_idx,mode) (This)->lpVtbl->SetDisplayMode(This,swapchain_idx,mode)
8140#define IWineD3DDevice_GetNumberOfSwapChains(This) (This)->lpVtbl->GetNumberOfSwapChains(This)
8141#define IWineD3DDevice_GetRasterStatus(This,swapchain_idx,raster_status) (This)->lpVtbl->GetRasterStatus(This,swapchain_idx,raster_status)
8142#define IWineD3DDevice_GetSwapChain(This,swapchain_idx,swapchain) (This)->lpVtbl->GetSwapChain(This,swapchain_idx,swapchain)
8143#define IWineD3DDevice_Reset(This,present_parameters) (This)->lpVtbl->Reset(This,present_parameters)
8144#define IWineD3DDevice_SetDialogBoxMode(This,enable_dialogs) (This)->lpVtbl->SetDialogBoxMode(This,enable_dialogs)
8145#define IWineD3DDevice_SetCursorProperties(This,x_hotspot,y_hotspot,cursor_surface) (This)->lpVtbl->SetCursorProperties(This,x_hotspot,y_hotspot,cursor_surface)
8146#define IWineD3DDevice_SetCursorPosition(This,x_screen_space,y_screen_space,flags) (This)->lpVtbl->SetCursorPosition(This,x_screen_space,y_screen_space,flags)
8147#define IWineD3DDevice_ShowCursor(This,show) (This)->lpVtbl->ShowCursor(This,show)
8148#define IWineD3DDevice_SetClipPlane(This,plane_idx,plane) (This)->lpVtbl->SetClipPlane(This,plane_idx,plane)
8149#define IWineD3DDevice_GetClipPlane(This,plane_idx,plane) (This)->lpVtbl->GetClipPlane(This,plane_idx,plane)
8150#define IWineD3DDevice_SetClipStatus(This,clip_status) (This)->lpVtbl->SetClipStatus(This,clip_status)
8151#define IWineD3DDevice_GetClipStatus(This,clip_status) (This)->lpVtbl->GetClipStatus(This,clip_status)
8152#define IWineD3DDevice_SetCurrentTexturePalette(This,palette_number) (This)->lpVtbl->SetCurrentTexturePalette(This,palette_number)
8153#define IWineD3DDevice_GetCurrentTexturePalette(This,palette_number) (This)->lpVtbl->GetCurrentTexturePalette(This,palette_number)
8154#define IWineD3DDevice_SetDepthStencilSurface(This,depth_stencil) (This)->lpVtbl->SetDepthStencilSurface(This,depth_stencil)
8155#define IWineD3DDevice_GetDepthStencilSurface(This,depth_stencil) (This)->lpVtbl->GetDepthStencilSurface(This,depth_stencil)
8156#define IWineD3DDevice_SetGammaRamp(This,swapchain_idx,flags,ramp) (This)->lpVtbl->SetGammaRamp(This,swapchain_idx,flags,ramp)
8157#define IWineD3DDevice_GetGammaRamp(This,swapchain_idx,ramp) (This)->lpVtbl->GetGammaRamp(This,swapchain_idx,ramp)
8158#define IWineD3DDevice_SetIndexBuffer(This,index_buffer,format) (This)->lpVtbl->SetIndexBuffer(This,index_buffer,format)
8159#define IWineD3DDevice_GetIndexBuffer(This,index_buffer) (This)->lpVtbl->GetIndexBuffer(This,index_buffer)
8160#define IWineD3DDevice_SetBaseVertexIndex(This,base_index) (This)->lpVtbl->SetBaseVertexIndex(This,base_index)
8161#define IWineD3DDevice_GetBaseVertexIndex(This,base_index) (This)->lpVtbl->GetBaseVertexIndex(This,base_index)
8162#define IWineD3DDevice_SetLight(This,light_idx,light) (This)->lpVtbl->SetLight(This,light_idx,light)
8163#define IWineD3DDevice_GetLight(This,light_idx,light) (This)->lpVtbl->GetLight(This,light_idx,light)
8164#define IWineD3DDevice_SetLightEnable(This,light_idx,enable) (This)->lpVtbl->SetLightEnable(This,light_idx,enable)
8165#define IWineD3DDevice_GetLightEnable(This,light_idx,enable) (This)->lpVtbl->GetLightEnable(This,light_idx,enable)
8166#define IWineD3DDevice_SetMaterial(This,material) (This)->lpVtbl->SetMaterial(This,material)
8167#define IWineD3DDevice_GetMaterial(This,material) (This)->lpVtbl->GetMaterial(This,material)
8168#define IWineD3DDevice_SetNPatchMode(This,segments) (This)->lpVtbl->SetNPatchMode(This,segments)
8169#define IWineD3DDevice_GetNPatchMode(This) (This)->lpVtbl->GetNPatchMode(This)
8170#define IWineD3DDevice_SetPaletteEntries(This,palette_number,entries) (This)->lpVtbl->SetPaletteEntries(This,palette_number,entries)
8171#define IWineD3DDevice_GetPaletteEntries(This,palette_number,entries) (This)->lpVtbl->GetPaletteEntries(This,palette_number,entries)
8172#define IWineD3DDevice_SetPixelShader(This,shader) (This)->lpVtbl->SetPixelShader(This,shader)
8173#define IWineD3DDevice_GetPixelShader(This,shader) (This)->lpVtbl->GetPixelShader(This,shader)
8174#define IWineD3DDevice_SetPixelShaderConstantB(This,start_register,constants,bool_count) (This)->lpVtbl->SetPixelShaderConstantB(This,start_register,constants,bool_count)
8175#define IWineD3DDevice_GetPixelShaderConstantB(This,start_register,constants,bool_count) (This)->lpVtbl->GetPixelShaderConstantB(This,start_register,constants,bool_count)
8176#define IWineD3DDevice_SetPixelShaderConstantI(This,start_register,constants,vector4i_count) (This)->lpVtbl->SetPixelShaderConstantI(This,start_register,constants,vector4i_count)
8177#define IWineD3DDevice_GetPixelShaderConstantI(This,start_register,constants,vector4i_count) (This)->lpVtbl->GetPixelShaderConstantI(This,start_register,constants,vector4i_count)
8178#define IWineD3DDevice_SetPixelShaderConstantF(This,start_register,constants,vector4f_count) (This)->lpVtbl->SetPixelShaderConstantF(This,start_register,constants,vector4f_count)
8179#define IWineD3DDevice_GetPixelShaderConstantF(This,start_register,constants,vector4f_count) (This)->lpVtbl->GetPixelShaderConstantF(This,start_register,constants,vector4f_count)
8180#define IWineD3DDevice_SetRenderState(This,state,value) (This)->lpVtbl->SetRenderState(This,state,value)
8181#define IWineD3DDevice_GetRenderState(This,state,value) (This)->lpVtbl->GetRenderState(This,state,value)
8182#define IWineD3DDevice_SetRenderTarget(This,render_target_idx,render_target,set_viewport) (This)->lpVtbl->SetRenderTarget(This,render_target_idx,render_target,set_viewport)
8183#define IWineD3DDevice_GetRenderTarget(This,render_target_idx,render_target) (This)->lpVtbl->GetRenderTarget(This,render_target_idx,render_target)
8184#define IWineD3DDevice_SetFrontBackBuffers(This,front,back) (This)->lpVtbl->SetFrontBackBuffers(This,front,back)
8185#define IWineD3DDevice_SetSamplerState(This,sampler_idx,state,value) (This)->lpVtbl->SetSamplerState(This,sampler_idx,state,value)
8186#define IWineD3DDevice_GetSamplerState(This,sampler_idx,state,value) (This)->lpVtbl->GetSamplerState(This,sampler_idx,state,value)
8187#define IWineD3DDevice_SetScissorRect(This,rect) (This)->lpVtbl->SetScissorRect(This,rect)
8188#define IWineD3DDevice_GetScissorRect(This,rect) (This)->lpVtbl->GetScissorRect(This,rect)
8189#define IWineD3DDevice_SetSoftwareVertexProcessing(This,software) (This)->lpVtbl->SetSoftwareVertexProcessing(This,software)
8190#define IWineD3DDevice_GetSoftwareVertexProcessing(This) (This)->lpVtbl->GetSoftwareVertexProcessing(This)
8191#define IWineD3DDevice_SetStreamSource(This,stream_idx,buffer,offset,stride) (This)->lpVtbl->SetStreamSource(This,stream_idx,buffer,offset,stride)
8192#define IWineD3DDevice_GetStreamSource(This,stream_idx,buffer,offset,stride) (This)->lpVtbl->GetStreamSource(This,stream_idx,buffer,offset,stride)
8193#define IWineD3DDevice_SetStreamSourceFreq(This,stream_idx,divider) (This)->lpVtbl->SetStreamSourceFreq(This,stream_idx,divider)
8194#define IWineD3DDevice_GetStreamSourceFreq(This,stream_idx,divider) (This)->lpVtbl->GetStreamSourceFreq(This,stream_idx,divider)
8195#define IWineD3DDevice_SetTexture(This,stage,texture) (This)->lpVtbl->SetTexture(This,stage,texture)
8196#define IWineD3DDevice_GetTexture(This,stage,texture) (This)->lpVtbl->GetTexture(This,stage,texture)
8197#define IWineD3DDevice_SetTextureStageState(This,stage,state,value) (This)->lpVtbl->SetTextureStageState(This,stage,state,value)
8198#define IWineD3DDevice_GetTextureStageState(This,stage,state,value) (This)->lpVtbl->GetTextureStageState(This,stage,state,value)
8199#define IWineD3DDevice_SetTransform(This,state,matrix) (This)->lpVtbl->SetTransform(This,state,matrix)
8200#define IWineD3DDevice_GetTransform(This,state,matrix) (This)->lpVtbl->GetTransform(This,state,matrix)
8201#define IWineD3DDevice_SetVertexDeclaration(This,declaration) (This)->lpVtbl->SetVertexDeclaration(This,declaration)
8202#define IWineD3DDevice_GetVertexDeclaration(This,declaration) (This)->lpVtbl->GetVertexDeclaration(This,declaration)
8203#define IWineD3DDevice_SetVertexShader(This,shader) (This)->lpVtbl->SetVertexShader(This,shader)
8204#define IWineD3DDevice_GetVertexShader(This,shader) (This)->lpVtbl->GetVertexShader(This,shader)
8205#define IWineD3DDevice_SetVertexShaderConstantB(This,start_register,constants,bool_count) (This)->lpVtbl->SetVertexShaderConstantB(This,start_register,constants,bool_count)
8206#define IWineD3DDevice_GetVertexShaderConstantB(This,start_register,constants,bool_count) (This)->lpVtbl->GetVertexShaderConstantB(This,start_register,constants,bool_count)
8207#define IWineD3DDevice_SetVertexShaderConstantI(This,start_register,constants,vector4i_count) (This)->lpVtbl->SetVertexShaderConstantI(This,start_register,constants,vector4i_count)
8208#define IWineD3DDevice_GetVertexShaderConstantI(This,start_register,constants,vector4i_count) (This)->lpVtbl->GetVertexShaderConstantI(This,start_register,constants,vector4i_count)
8209#define IWineD3DDevice_SetVertexShaderConstantF(This,start_register,constants,vector4f_count) (This)->lpVtbl->SetVertexShaderConstantF(This,start_register,constants,vector4f_count)
8210#define IWineD3DDevice_GetVertexShaderConstantF(This,start_register,constants,vector4f_count) (This)->lpVtbl->GetVertexShaderConstantF(This,start_register,constants,vector4f_count)
8211#define IWineD3DDevice_SetViewport(This,viewport) (This)->lpVtbl->SetViewport(This,viewport)
8212#define IWineD3DDevice_GetViewport(This,viewport) (This)->lpVtbl->GetViewport(This,viewport)
8213#define IWineD3DDevice_MultiplyTransform(This,state,matrix) (This)->lpVtbl->MultiplyTransform(This,state,matrix)
8214#define IWineD3DDevice_ValidateDevice(This,num_passes) (This)->lpVtbl->ValidateDevice(This,num_passes)
8215#define IWineD3DDevice_ProcessVertices(This,src_start_idx,dst_idx,vertex_count,dest_buffer,declaration,flags,DestFVF) (This)->lpVtbl->ProcessVertices(This,src_start_idx,dst_idx,vertex_count,dest_buffer,declaration,flags,DestFVF)
8216#define IWineD3DDevice_BeginStateBlock(This) (This)->lpVtbl->BeginStateBlock(This)
8217#define IWineD3DDevice_EndStateBlock(This,stateblock) (This)->lpVtbl->EndStateBlock(This,stateblock)
8218#define IWineD3DDevice_BeginScene(This) (This)->lpVtbl->BeginScene(This)
8219#define IWineD3DDevice_EndScene(This) (This)->lpVtbl->EndScene(This)
8220#define IWineD3DDevice_Present(This,src_rect,dst_rect,dst_window_override,dirty_region) (This)->lpVtbl->Present(This,src_rect,dst_rect,dst_window_override,dirty_region)
8221#define IWineD3DDevice_Clear(This,rect_count,rects,flags,color,z,stencil) (This)->lpVtbl->Clear(This,rect_count,rects,flags,color,z,stencil)
8222#define IWineD3DDevice_ClearRendertargetView(This,rendertarget_view,color) (This)->lpVtbl->ClearRendertargetView(This,rendertarget_view,color)
8223#define IWineD3DDevice_SetPrimitiveType(This,primitive_topology) (This)->lpVtbl->SetPrimitiveType(This,primitive_topology)
8224#define IWineD3DDevice_GetPrimitiveType(This,primitive_topology) (This)->lpVtbl->GetPrimitiveType(This,primitive_topology)
8225#define IWineD3DDevice_DrawPrimitive(This,start_vertex,vertex_count) (This)->lpVtbl->DrawPrimitive(This,start_vertex,vertex_count)
8226#define IWineD3DDevice_DrawIndexedPrimitive(This,start_idx,index_count) (This)->lpVtbl->DrawIndexedPrimitive(This,start_idx,index_count)
8227#define IWineD3DDevice_DrawPrimitiveUP(This,vertex_count,stream_data,stream_stride) (This)->lpVtbl->DrawPrimitiveUP(This,vertex_count,stream_data,stream_stride)
8228#define IWineD3DDevice_DrawIndexedPrimitiveUP(This,index_count,index_data,index_data_format,stream_data,stream_stride) (This)->lpVtbl->DrawIndexedPrimitiveUP(This,index_count,index_data,index_data_format,stream_data,stream_stride)
8229#define IWineD3DDevice_DrawPrimitiveStrided(This,vertex_count,strided_data) (This)->lpVtbl->DrawPrimitiveStrided(This,vertex_count,strided_data)
8230#define IWineD3DDevice_DrawIndexedPrimitiveStrided(This,index_count,strided_data,vertex_count,index_data,index_data_format) (This)->lpVtbl->DrawIndexedPrimitiveStrided(This,index_count,strided_data,vertex_count,index_data,index_data_format)
8231#define IWineD3DDevice_DrawRectPatch(This,handle,num_segs,rect_patch_info) (This)->lpVtbl->DrawRectPatch(This,handle,num_segs,rect_patch_info)
8232#define IWineD3DDevice_DrawTriPatch(This,handle,num_segs,tri_patch_info) (This)->lpVtbl->DrawTriPatch(This,handle,num_segs,tri_patch_info)
8233#define IWineD3DDevice_DeletePatch(This,handle) (This)->lpVtbl->DeletePatch(This,handle)
8234#define IWineD3DDevice_ColorFill(This,surface,rect,color) (This)->lpVtbl->ColorFill(This,surface,rect,color)
8235#define IWineD3DDevice_UpdateTexture(This,src_texture,dst_texture) (This)->lpVtbl->UpdateTexture(This,src_texture,dst_texture)
8236#define IWineD3DDevice_UpdateSurface(This,src_surface,src_rect,dst_surface,dst_point) (This)->lpVtbl->UpdateSurface(This,src_surface,src_rect,dst_surface,dst_point)
8237#define IWineD3DDevice_GetFrontBufferData(This,swapchain_idx,dst_surface) (This)->lpVtbl->GetFrontBufferData(This,swapchain_idx,dst_surface)
8238#define IWineD3DDevice_EnumResources(This,callback,data) (This)->lpVtbl->EnumResources(This,callback,data)
8239#define IWineD3DDevice_GetSurfaceFromDC(This,dc,surface) (This)->lpVtbl->GetSurfaceFromDC(This,dc,surface)
8240#define IWineD3DDevice_AcquireFocusWindow(This,window) (This)->lpVtbl->AcquireFocusWindow(This,window)
8241#define IWineD3DDevice_ReleaseFocusWindow(This) (This)->lpVtbl->ReleaseFocusWindow(This)
8242#ifdef VBOX_WITH_WDDM
8243#define IWineD3DDevice_Flush(This) (This)->lpVtbl->Flush(This)
8244#define IWineD3DDevice_AddSwapChain(This,swapchain) (This)->lpVtbl->AddSwapChain(This,swapchain)
8245#define IWineD3DDevice_RemoveSwapChain(This,swapchain) (This)->lpVtbl->RemoveSwapChain(This,swapchain)
8246#endif
8247#endif
8248
8249#endif
8250
8251HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateBuffer_Proxy(
8252 IWineD3DDevice* This,
8253 struct wined3d_buffer_desc *desc,
8254 const void *data,
8255 IUnknown *parent,
8256 const struct wined3d_parent_ops *parent_ops,
8257 IWineD3DBuffer **buffer);
8258void __RPC_STUB IWineD3DDevice_CreateBuffer_Stub(
8259 IRpcStubBuffer* This,
8260 IRpcChannelBuffer* pRpcChannelBuffer,
8261 PRPC_MESSAGE pRpcMessage,
8262 DWORD* pdwStubPhase);
8263HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateVertexBuffer_Proxy(
8264 IWineD3DDevice* This,
8265 UINT length,
8266 DWORD usage,
8267 WINED3DPOOL pool,
8268 IWineD3DBuffer **vertex_buffer,
8269 IUnknown *parent,
8270 const struct wined3d_parent_ops *parent_ops);
8271void __RPC_STUB IWineD3DDevice_CreateVertexBuffer_Stub(
8272 IRpcStubBuffer* This,
8273 IRpcChannelBuffer* pRpcChannelBuffer,
8274 PRPC_MESSAGE pRpcMessage,
8275 DWORD* pdwStubPhase);
8276HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateIndexBuffer_Proxy(
8277 IWineD3DDevice* This,
8278 UINT length,
8279 DWORD usage,
8280 WINED3DPOOL pool,
8281 IWineD3DBuffer **index_buffer,
8282 IUnknown *parent,
8283 const struct wined3d_parent_ops *parent_ops);
8284void __RPC_STUB IWineD3DDevice_CreateIndexBuffer_Stub(
8285 IRpcStubBuffer* This,
8286 IRpcChannelBuffer* pRpcChannelBuffer,
8287 PRPC_MESSAGE pRpcMessage,
8288 DWORD* pdwStubPhase);
8289HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateStateBlock_Proxy(
8290 IWineD3DDevice* This,
8291 WINED3DSTATEBLOCKTYPE type,
8292 IWineD3DStateBlock **stateblock,
8293 IUnknown *parent);
8294void __RPC_STUB IWineD3DDevice_CreateStateBlock_Stub(
8295 IRpcStubBuffer* This,
8296 IRpcChannelBuffer* pRpcChannelBuffer,
8297 PRPC_MESSAGE pRpcMessage,
8298 DWORD* pdwStubPhase);
8299HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateSurface_Proxy(
8300 IWineD3DDevice* This,
8301 UINT width,
8302 UINT height,
8303 WINED3DFORMAT format,
8304 BOOL lockable,
8305 BOOL discard,
8306 UINT level,
8307 IWineD3DSurface **surface,
8308 DWORD usage,
8309 WINED3DPOOL pool,
8310 WINED3DMULTISAMPLE_TYPE multisample_type,
8311 DWORD multisample_quality,
8312 WINED3DSURFTYPE surface_type,
8313 IUnknown *parent,
8314 const struct wined3d_parent_ops *parent_ops);
8315void __RPC_STUB IWineD3DDevice_CreateSurface_Stub(
8316 IRpcStubBuffer* This,
8317 IRpcChannelBuffer* pRpcChannelBuffer,
8318 PRPC_MESSAGE pRpcMessage,
8319 DWORD* pdwStubPhase);
8320HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateRendertargetView_Proxy(
8321 IWineD3DDevice* This,
8322 IWineD3DResource *resource,
8323 IUnknown *parent,
8324 IWineD3DRendertargetView **rendertarget_view);
8325void __RPC_STUB IWineD3DDevice_CreateRendertargetView_Stub(
8326 IRpcStubBuffer* This,
8327 IRpcChannelBuffer* pRpcChannelBuffer,
8328 PRPC_MESSAGE pRpcMessage,
8329 DWORD* pdwStubPhase);
8330HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateTexture_Proxy(
8331 IWineD3DDevice* This,
8332 UINT width,
8333 UINT height,
8334 UINT levels,
8335 DWORD usage,
8336 WINED3DFORMAT format,
8337 WINED3DPOOL pool,
8338 IWineD3DTexture **texture,
8339 IUnknown *parent,
8340 const struct wined3d_parent_ops *parent_ops);
8341void __RPC_STUB IWineD3DDevice_CreateTexture_Stub(
8342 IRpcStubBuffer* This,
8343 IRpcChannelBuffer* pRpcChannelBuffer,
8344 PRPC_MESSAGE pRpcMessage,
8345 DWORD* pdwStubPhase);
8346HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateVolumeTexture_Proxy(
8347 IWineD3DDevice* This,
8348 UINT width,
8349 UINT height,
8350 UINT depth,
8351 UINT levels,
8352 DWORD usage,
8353 WINED3DFORMAT format,
8354 WINED3DPOOL pool,
8355 IWineD3DVolumeTexture **texture,
8356 IUnknown *parent,
8357 const struct wined3d_parent_ops *parent_ops);
8358void __RPC_STUB IWineD3DDevice_CreateVolumeTexture_Stub(
8359 IRpcStubBuffer* This,
8360 IRpcChannelBuffer* pRpcChannelBuffer,
8361 PRPC_MESSAGE pRpcMessage,
8362 DWORD* pdwStubPhase);
8363HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateVolume_Proxy(
8364 IWineD3DDevice* This,
8365 UINT width,
8366 UINT height,
8367 UINT depth,
8368 DWORD usage,
8369 WINED3DFORMAT format,
8370 WINED3DPOOL pool,
8371 IWineD3DVolume **volume,
8372 IUnknown *parent,
8373 const struct wined3d_parent_ops *parent_ops);
8374void __RPC_STUB IWineD3DDevice_CreateVolume_Stub(
8375 IRpcStubBuffer* This,
8376 IRpcChannelBuffer* pRpcChannelBuffer,
8377 PRPC_MESSAGE pRpcMessage,
8378 DWORD* pdwStubPhase);
8379HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateCubeTexture_Proxy(
8380 IWineD3DDevice* This,
8381 UINT edge_length,
8382 UINT levels,
8383 DWORD usage,
8384 WINED3DFORMAT format,
8385 WINED3DPOOL pool,
8386 IWineD3DCubeTexture **texture,
8387 IUnknown *parent,
8388 const struct wined3d_parent_ops *parent_ops);
8389void __RPC_STUB IWineD3DDevice_CreateCubeTexture_Stub(
8390 IRpcStubBuffer* This,
8391 IRpcChannelBuffer* pRpcChannelBuffer,
8392 PRPC_MESSAGE pRpcMessage,
8393 DWORD* pdwStubPhase);
8394HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateQuery_Proxy(
8395 IWineD3DDevice* This,
8396 WINED3DQUERYTYPE type,
8397 IWineD3DQuery **query,
8398 IUnknown *parent);
8399void __RPC_STUB IWineD3DDevice_CreateQuery_Stub(
8400 IRpcStubBuffer* This,
8401 IRpcChannelBuffer* pRpcChannelBuffer,
8402 PRPC_MESSAGE pRpcMessage,
8403 DWORD* pdwStubPhase);
8404HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateSwapChain_Proxy(
8405 IWineD3DDevice* This,
8406 WINED3DPRESENT_PARAMETERS *present_parameters,
8407 IWineD3DSwapChain **swapchain,
8408 IUnknown *parent,
8409 WINED3DSURFTYPE surface_type);
8410void __RPC_STUB IWineD3DDevice_CreateSwapChain_Stub(
8411 IRpcStubBuffer* This,
8412 IRpcChannelBuffer* pRpcChannelBuffer,
8413 PRPC_MESSAGE pRpcMessage,
8414 DWORD* pdwStubPhase);
8415HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateVertexDeclaration_Proxy(
8416 IWineD3DDevice* This,
8417 IWineD3DVertexDeclaration **declaration,
8418 IUnknown *parent,
8419 const struct wined3d_parent_ops *parent_ops,
8420 const WINED3DVERTEXELEMENT *elements,
8421 UINT element_count);
8422void __RPC_STUB IWineD3DDevice_CreateVertexDeclaration_Stub(
8423 IRpcStubBuffer* This,
8424 IRpcChannelBuffer* pRpcChannelBuffer,
8425 PRPC_MESSAGE pRpcMessage,
8426 DWORD* pdwStubPhase);
8427HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateVertexDeclarationFromFVF_Proxy(
8428 IWineD3DDevice* This,
8429 IWineD3DVertexDeclaration **declaration,
8430 IUnknown *parent,
8431 const struct wined3d_parent_ops *parent_ops,
8432 DWORD fvf);
8433void __RPC_STUB IWineD3DDevice_CreateVertexDeclarationFromFVF_Stub(
8434 IRpcStubBuffer* This,
8435 IRpcChannelBuffer* pRpcChannelBuffer,
8436 PRPC_MESSAGE pRpcMessage,
8437 DWORD* pdwStubPhase);
8438HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateVertexShader_Proxy(
8439 IWineD3DDevice* This,
8440 const DWORD *function,
8441 const struct wined3d_shader_signature *output_signature,
8442 IWineD3DVertexShader **shader,
8443 IUnknown *parent,
8444 const struct wined3d_parent_ops *parent_ops);
8445void __RPC_STUB IWineD3DDevice_CreateVertexShader_Stub(
8446 IRpcStubBuffer* This,
8447 IRpcChannelBuffer* pRpcChannelBuffer,
8448 PRPC_MESSAGE pRpcMessage,
8449 DWORD* pdwStubPhase);
8450HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreateGeometryShader_Proxy(
8451 IWineD3DDevice* This,
8452 const DWORD *byte_code,
8453 const struct wined3d_shader_signature *output_signature,
8454 IWineD3DGeometryShader **shader,
8455 IUnknown *parent,
8456 const struct wined3d_parent_ops *parent_ops);
8457void __RPC_STUB IWineD3DDevice_CreateGeometryShader_Stub(
8458 IRpcStubBuffer* This,
8459 IRpcChannelBuffer* pRpcChannelBuffer,
8460 PRPC_MESSAGE pRpcMessage,
8461 DWORD* pdwStubPhase);
8462HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreatePixelShader_Proxy(
8463 IWineD3DDevice* This,
8464 const DWORD *function,
8465 const struct wined3d_shader_signature *output_signature,
8466 IWineD3DPixelShader **shader,
8467 IUnknown *parent,
8468 const struct wined3d_parent_ops *parent_ops);
8469void __RPC_STUB IWineD3DDevice_CreatePixelShader_Stub(
8470 IRpcStubBuffer* This,
8471 IRpcChannelBuffer* pRpcChannelBuffer,
8472 PRPC_MESSAGE pRpcMessage,
8473 DWORD* pdwStubPhase);
8474HRESULT STDMETHODCALLTYPE IWineD3DDevice_CreatePalette_Proxy(
8475 IWineD3DDevice* This,
8476 DWORD flags,
8477 const PALETTEENTRY *palette_entry,
8478 IWineD3DPalette **palette,
8479 IUnknown *parent);
8480void __RPC_STUB IWineD3DDevice_CreatePalette_Stub(
8481 IRpcStubBuffer* This,
8482 IRpcChannelBuffer* pRpcChannelBuffer,
8483 PRPC_MESSAGE pRpcMessage,
8484 DWORD* pdwStubPhase);
8485HRESULT STDMETHODCALLTYPE IWineD3DDevice_Init3D_Proxy(
8486 IWineD3DDevice* This,
8487 WINED3DPRESENT_PARAMETERS *present_parameters);
8488void __RPC_STUB IWineD3DDevice_Init3D_Stub(
8489 IRpcStubBuffer* This,
8490 IRpcChannelBuffer* pRpcChannelBuffer,
8491 PRPC_MESSAGE pRpcMessage,
8492 DWORD* pdwStubPhase);
8493HRESULT STDMETHODCALLTYPE IWineD3DDevice_InitGDI_Proxy(
8494 IWineD3DDevice* This,
8495 WINED3DPRESENT_PARAMETERS *present_parameters);
8496void __RPC_STUB IWineD3DDevice_InitGDI_Stub(
8497 IRpcStubBuffer* This,
8498 IRpcChannelBuffer* pRpcChannelBuffer,
8499 PRPC_MESSAGE pRpcMessage,
8500 DWORD* pdwStubPhase);
8501HRESULT STDMETHODCALLTYPE IWineD3DDevice_Uninit3D_Proxy(
8502 IWineD3DDevice* This,
8503 ULONG (STDMETHODCALLTYPE * destroy_swapchain_callback)(IWineD3DSwapChain *pSwapChain));
8504void __RPC_STUB IWineD3DDevice_Uninit3D_Stub(
8505 IRpcStubBuffer* This,
8506 IRpcChannelBuffer* pRpcChannelBuffer,
8507 PRPC_MESSAGE pRpcMessage,
8508 DWORD* pdwStubPhase);
8509HRESULT STDMETHODCALLTYPE IWineD3DDevice_UninitGDI_Proxy(
8510 IWineD3DDevice* This,
8511 ULONG (STDMETHODCALLTYPE * destroy_swapchain_callback)(IWineD3DSwapChain *pSwapChain));
8512void __RPC_STUB IWineD3DDevice_UninitGDI_Stub(
8513 IRpcStubBuffer* This,
8514 IRpcChannelBuffer* pRpcChannelBuffer,
8515 PRPC_MESSAGE pRpcMessage,
8516 DWORD* pdwStubPhase);
8517void STDMETHODCALLTYPE IWineD3DDevice_SetMultithreaded_Proxy(
8518 IWineD3DDevice* This);
8519void __RPC_STUB IWineD3DDevice_SetMultithreaded_Stub(
8520 IRpcStubBuffer* This,
8521 IRpcChannelBuffer* pRpcChannelBuffer,
8522 PRPC_MESSAGE pRpcMessage,
8523 DWORD* pdwStubPhase);
8524HRESULT STDMETHODCALLTYPE IWineD3DDevice_EvictManagedResources_Proxy(
8525 IWineD3DDevice* This);
8526void __RPC_STUB IWineD3DDevice_EvictManagedResources_Stub(
8527 IRpcStubBuffer* This,
8528 IRpcChannelBuffer* pRpcChannelBuffer,
8529 PRPC_MESSAGE pRpcMessage,
8530 DWORD* pdwStubPhase);
8531UINT STDMETHODCALLTYPE IWineD3DDevice_GetAvailableTextureMem_Proxy(
8532 IWineD3DDevice* This);
8533void __RPC_STUB IWineD3DDevice_GetAvailableTextureMem_Stub(
8534 IRpcStubBuffer* This,
8535 IRpcChannelBuffer* pRpcChannelBuffer,
8536 PRPC_MESSAGE pRpcMessage,
8537 DWORD* pdwStubPhase);
8538HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetBackBuffer_Proxy(
8539 IWineD3DDevice* This,
8540 UINT swapchain_idx,
8541 UINT backbuffer_idx,
8542 WINED3DBACKBUFFER_TYPE backbuffer_type,
8543 IWineD3DSurface **backbuffer);
8544void __RPC_STUB IWineD3DDevice_GetBackBuffer_Stub(
8545 IRpcStubBuffer* This,
8546 IRpcChannelBuffer* pRpcChannelBuffer,
8547 PRPC_MESSAGE pRpcMessage,
8548 DWORD* pdwStubPhase);
8549HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetCreationParameters_Proxy(
8550 IWineD3DDevice* This,
8551 WINED3DDEVICE_CREATION_PARAMETERS *creation_parameters);
8552void __RPC_STUB IWineD3DDevice_GetCreationParameters_Stub(
8553 IRpcStubBuffer* This,
8554 IRpcChannelBuffer* pRpcChannelBuffer,
8555 PRPC_MESSAGE pRpcMessage,
8556 DWORD* pdwStubPhase);
8557HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetDeviceCaps_Proxy(
8558 IWineD3DDevice* This,
8559 WINED3DCAPS *caps);
8560void __RPC_STUB IWineD3DDevice_GetDeviceCaps_Stub(
8561 IRpcStubBuffer* This,
8562 IRpcChannelBuffer* pRpcChannelBuffer,
8563 PRPC_MESSAGE pRpcMessage,
8564 DWORD* pdwStubPhase);
8565HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetDirect3D_Proxy(
8566 IWineD3DDevice* This,
8567 IWineD3D **d3d);
8568void __RPC_STUB IWineD3DDevice_GetDirect3D_Stub(
8569 IRpcStubBuffer* This,
8570 IRpcChannelBuffer* pRpcChannelBuffer,
8571 PRPC_MESSAGE pRpcMessage,
8572 DWORD* pdwStubPhase);
8573HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetDisplayMode_Proxy(
8574 IWineD3DDevice* This,
8575 UINT swapchain_idx,
8576 WINED3DDISPLAYMODE *mode);
8577void __RPC_STUB IWineD3DDevice_GetDisplayMode_Stub(
8578 IRpcStubBuffer* This,
8579 IRpcChannelBuffer* pRpcChannelBuffer,
8580 PRPC_MESSAGE pRpcMessage,
8581 DWORD* pdwStubPhase);
8582HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetDisplayMode_Proxy(
8583 IWineD3DDevice* This,
8584 UINT swapchain_idx,
8585 const WINED3DDISPLAYMODE *mode);
8586void __RPC_STUB IWineD3DDevice_SetDisplayMode_Stub(
8587 IRpcStubBuffer* This,
8588 IRpcChannelBuffer* pRpcChannelBuffer,
8589 PRPC_MESSAGE pRpcMessage,
8590 DWORD* pdwStubPhase);
8591UINT STDMETHODCALLTYPE IWineD3DDevice_GetNumberOfSwapChains_Proxy(
8592 IWineD3DDevice* This);
8593void __RPC_STUB IWineD3DDevice_GetNumberOfSwapChains_Stub(
8594 IRpcStubBuffer* This,
8595 IRpcChannelBuffer* pRpcChannelBuffer,
8596 PRPC_MESSAGE pRpcMessage,
8597 DWORD* pdwStubPhase);
8598HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetRasterStatus_Proxy(
8599 IWineD3DDevice* This,
8600 UINT swapchain_idx,
8601 WINED3DRASTER_STATUS *raster_status);
8602void __RPC_STUB IWineD3DDevice_GetRasterStatus_Stub(
8603 IRpcStubBuffer* This,
8604 IRpcChannelBuffer* pRpcChannelBuffer,
8605 PRPC_MESSAGE pRpcMessage,
8606 DWORD* pdwStubPhase);
8607HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetSwapChain_Proxy(
8608 IWineD3DDevice* This,
8609 UINT swapchain_idx,
8610 IWineD3DSwapChain **swapchain);
8611void __RPC_STUB IWineD3DDevice_GetSwapChain_Stub(
8612 IRpcStubBuffer* This,
8613 IRpcChannelBuffer* pRpcChannelBuffer,
8614 PRPC_MESSAGE pRpcMessage,
8615 DWORD* pdwStubPhase);
8616HRESULT STDMETHODCALLTYPE IWineD3DDevice_Reset_Proxy(
8617 IWineD3DDevice* This,
8618 WINED3DPRESENT_PARAMETERS *present_parameters);
8619void __RPC_STUB IWineD3DDevice_Reset_Stub(
8620 IRpcStubBuffer* This,
8621 IRpcChannelBuffer* pRpcChannelBuffer,
8622 PRPC_MESSAGE pRpcMessage,
8623 DWORD* pdwStubPhase);
8624HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetDialogBoxMode_Proxy(
8625 IWineD3DDevice* This,
8626 BOOL enable_dialogs);
8627void __RPC_STUB IWineD3DDevice_SetDialogBoxMode_Stub(
8628 IRpcStubBuffer* This,
8629 IRpcChannelBuffer* pRpcChannelBuffer,
8630 PRPC_MESSAGE pRpcMessage,
8631 DWORD* pdwStubPhase);
8632HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetCursorProperties_Proxy(
8633 IWineD3DDevice* This,
8634 UINT x_hotspot,
8635 UINT y_hotspot,
8636 IWineD3DSurface *cursor_surface);
8637void __RPC_STUB IWineD3DDevice_SetCursorProperties_Stub(
8638 IRpcStubBuffer* This,
8639 IRpcChannelBuffer* pRpcChannelBuffer,
8640 PRPC_MESSAGE pRpcMessage,
8641 DWORD* pdwStubPhase);
8642void STDMETHODCALLTYPE IWineD3DDevice_SetCursorPosition_Proxy(
8643 IWineD3DDevice* This,
8644 int x_screen_space,
8645 int y_screen_space,
8646 DWORD flags);
8647void __RPC_STUB IWineD3DDevice_SetCursorPosition_Stub(
8648 IRpcStubBuffer* This,
8649 IRpcChannelBuffer* pRpcChannelBuffer,
8650 PRPC_MESSAGE pRpcMessage,
8651 DWORD* pdwStubPhase);
8652BOOL STDMETHODCALLTYPE IWineD3DDevice_ShowCursor_Proxy(
8653 IWineD3DDevice* This,
8654 BOOL show);
8655void __RPC_STUB IWineD3DDevice_ShowCursor_Stub(
8656 IRpcStubBuffer* This,
8657 IRpcChannelBuffer* pRpcChannelBuffer,
8658 PRPC_MESSAGE pRpcMessage,
8659 DWORD* pdwStubPhase);
8660HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetClipPlane_Proxy(
8661 IWineD3DDevice* This,
8662 DWORD plane_idx,
8663 const float *plane);
8664void __RPC_STUB IWineD3DDevice_SetClipPlane_Stub(
8665 IRpcStubBuffer* This,
8666 IRpcChannelBuffer* pRpcChannelBuffer,
8667 PRPC_MESSAGE pRpcMessage,
8668 DWORD* pdwStubPhase);
8669HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetClipPlane_Proxy(
8670 IWineD3DDevice* This,
8671 DWORD plane_idx,
8672 float *plane);
8673void __RPC_STUB IWineD3DDevice_GetClipPlane_Stub(
8674 IRpcStubBuffer* This,
8675 IRpcChannelBuffer* pRpcChannelBuffer,
8676 PRPC_MESSAGE pRpcMessage,
8677 DWORD* pdwStubPhase);
8678HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetClipStatus_Proxy(
8679 IWineD3DDevice* This,
8680 const WINED3DCLIPSTATUS *clip_status);
8681void __RPC_STUB IWineD3DDevice_SetClipStatus_Stub(
8682 IRpcStubBuffer* This,
8683 IRpcChannelBuffer* pRpcChannelBuffer,
8684 PRPC_MESSAGE pRpcMessage,
8685 DWORD* pdwStubPhase);
8686HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetClipStatus_Proxy(
8687 IWineD3DDevice* This,
8688 WINED3DCLIPSTATUS *clip_status);
8689void __RPC_STUB IWineD3DDevice_GetClipStatus_Stub(
8690 IRpcStubBuffer* This,
8691 IRpcChannelBuffer* pRpcChannelBuffer,
8692 PRPC_MESSAGE pRpcMessage,
8693 DWORD* pdwStubPhase);
8694HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetCurrentTexturePalette_Proxy(
8695 IWineD3DDevice* This,
8696 UINT palette_number);
8697void __RPC_STUB IWineD3DDevice_SetCurrentTexturePalette_Stub(
8698 IRpcStubBuffer* This,
8699 IRpcChannelBuffer* pRpcChannelBuffer,
8700 PRPC_MESSAGE pRpcMessage,
8701 DWORD* pdwStubPhase);
8702HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetCurrentTexturePalette_Proxy(
8703 IWineD3DDevice* This,
8704 UINT *palette_number);
8705void __RPC_STUB IWineD3DDevice_GetCurrentTexturePalette_Stub(
8706 IRpcStubBuffer* This,
8707 IRpcChannelBuffer* pRpcChannelBuffer,
8708 PRPC_MESSAGE pRpcMessage,
8709 DWORD* pdwStubPhase);
8710HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetDepthStencilSurface_Proxy(
8711 IWineD3DDevice* This,
8712 IWineD3DSurface *depth_stencil);
8713void __RPC_STUB IWineD3DDevice_SetDepthStencilSurface_Stub(
8714 IRpcStubBuffer* This,
8715 IRpcChannelBuffer* pRpcChannelBuffer,
8716 PRPC_MESSAGE pRpcMessage,
8717 DWORD* pdwStubPhase);
8718HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetDepthStencilSurface_Proxy(
8719 IWineD3DDevice* This,
8720 IWineD3DSurface **depth_stencil);
8721void __RPC_STUB IWineD3DDevice_GetDepthStencilSurface_Stub(
8722 IRpcStubBuffer* This,
8723 IRpcChannelBuffer* pRpcChannelBuffer,
8724 PRPC_MESSAGE pRpcMessage,
8725 DWORD* pdwStubPhase);
8726void STDMETHODCALLTYPE IWineD3DDevice_SetGammaRamp_Proxy(
8727 IWineD3DDevice* This,
8728 UINT swapchain_idx,
8729 DWORD flags,
8730 const WINED3DGAMMARAMP *ramp);
8731void __RPC_STUB IWineD3DDevice_SetGammaRamp_Stub(
8732 IRpcStubBuffer* This,
8733 IRpcChannelBuffer* pRpcChannelBuffer,
8734 PRPC_MESSAGE pRpcMessage,
8735 DWORD* pdwStubPhase);
8736void STDMETHODCALLTYPE IWineD3DDevice_GetGammaRamp_Proxy(
8737 IWineD3DDevice* This,
8738 UINT swapchain_idx,
8739 WINED3DGAMMARAMP *ramp);
8740void __RPC_STUB IWineD3DDevice_GetGammaRamp_Stub(
8741 IRpcStubBuffer* This,
8742 IRpcChannelBuffer* pRpcChannelBuffer,
8743 PRPC_MESSAGE pRpcMessage,
8744 DWORD* pdwStubPhase);
8745HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetIndexBuffer_Proxy(
8746 IWineD3DDevice* This,
8747 IWineD3DBuffer *index_buffer,
8748 WINED3DFORMAT format);
8749void __RPC_STUB IWineD3DDevice_SetIndexBuffer_Stub(
8750 IRpcStubBuffer* This,
8751 IRpcChannelBuffer* pRpcChannelBuffer,
8752 PRPC_MESSAGE pRpcMessage,
8753 DWORD* pdwStubPhase);
8754HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetIndexBuffer_Proxy(
8755 IWineD3DDevice* This,
8756 IWineD3DBuffer **index_buffer);
8757void __RPC_STUB IWineD3DDevice_GetIndexBuffer_Stub(
8758 IRpcStubBuffer* This,
8759 IRpcChannelBuffer* pRpcChannelBuffer,
8760 PRPC_MESSAGE pRpcMessage,
8761 DWORD* pdwStubPhase);
8762HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetBaseVertexIndex_Proxy(
8763 IWineD3DDevice* This,
8764 INT base_index);
8765void __RPC_STUB IWineD3DDevice_SetBaseVertexIndex_Stub(
8766 IRpcStubBuffer* This,
8767 IRpcChannelBuffer* pRpcChannelBuffer,
8768 PRPC_MESSAGE pRpcMessage,
8769 DWORD* pdwStubPhase);
8770HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetBaseVertexIndex_Proxy(
8771 IWineD3DDevice* This,
8772 INT *base_index);
8773void __RPC_STUB IWineD3DDevice_GetBaseVertexIndex_Stub(
8774 IRpcStubBuffer* This,
8775 IRpcChannelBuffer* pRpcChannelBuffer,
8776 PRPC_MESSAGE pRpcMessage,
8777 DWORD* pdwStubPhase);
8778HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetLight_Proxy(
8779 IWineD3DDevice* This,
8780 DWORD light_idx,
8781 const WINED3DLIGHT *light);
8782void __RPC_STUB IWineD3DDevice_SetLight_Stub(
8783 IRpcStubBuffer* This,
8784 IRpcChannelBuffer* pRpcChannelBuffer,
8785 PRPC_MESSAGE pRpcMessage,
8786 DWORD* pdwStubPhase);
8787HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetLight_Proxy(
8788 IWineD3DDevice* This,
8789 DWORD light_idx,
8790 WINED3DLIGHT *light);
8791void __RPC_STUB IWineD3DDevice_GetLight_Stub(
8792 IRpcStubBuffer* This,
8793 IRpcChannelBuffer* pRpcChannelBuffer,
8794 PRPC_MESSAGE pRpcMessage,
8795 DWORD* pdwStubPhase);
8796HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetLightEnable_Proxy(
8797 IWineD3DDevice* This,
8798 DWORD light_idx,
8799 BOOL enable);
8800void __RPC_STUB IWineD3DDevice_SetLightEnable_Stub(
8801 IRpcStubBuffer* This,
8802 IRpcChannelBuffer* pRpcChannelBuffer,
8803 PRPC_MESSAGE pRpcMessage,
8804 DWORD* pdwStubPhase);
8805HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetLightEnable_Proxy(
8806 IWineD3DDevice* This,
8807 DWORD light_idx,
8808 BOOL *enable);
8809void __RPC_STUB IWineD3DDevice_GetLightEnable_Stub(
8810 IRpcStubBuffer* This,
8811 IRpcChannelBuffer* pRpcChannelBuffer,
8812 PRPC_MESSAGE pRpcMessage,
8813 DWORD* pdwStubPhase);
8814HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetMaterial_Proxy(
8815 IWineD3DDevice* This,
8816 const WINED3DMATERIAL *material);
8817void __RPC_STUB IWineD3DDevice_SetMaterial_Stub(
8818 IRpcStubBuffer* This,
8819 IRpcChannelBuffer* pRpcChannelBuffer,
8820 PRPC_MESSAGE pRpcMessage,
8821 DWORD* pdwStubPhase);
8822HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetMaterial_Proxy(
8823 IWineD3DDevice* This,
8824 WINED3DMATERIAL *material);
8825void __RPC_STUB IWineD3DDevice_GetMaterial_Stub(
8826 IRpcStubBuffer* This,
8827 IRpcChannelBuffer* pRpcChannelBuffer,
8828 PRPC_MESSAGE pRpcMessage,
8829 DWORD* pdwStubPhase);
8830HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetNPatchMode_Proxy(
8831 IWineD3DDevice* This,
8832 float segments);
8833void __RPC_STUB IWineD3DDevice_SetNPatchMode_Stub(
8834 IRpcStubBuffer* This,
8835 IRpcChannelBuffer* pRpcChannelBuffer,
8836 PRPC_MESSAGE pRpcMessage,
8837 DWORD* pdwStubPhase);
8838float STDMETHODCALLTYPE IWineD3DDevice_GetNPatchMode_Proxy(
8839 IWineD3DDevice* This);
8840void __RPC_STUB IWineD3DDevice_GetNPatchMode_Stub(
8841 IRpcStubBuffer* This,
8842 IRpcChannelBuffer* pRpcChannelBuffer,
8843 PRPC_MESSAGE pRpcMessage,
8844 DWORD* pdwStubPhase);
8845HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetPaletteEntries_Proxy(
8846 IWineD3DDevice* This,
8847 UINT palette_number,
8848 const PALETTEENTRY *entries);
8849void __RPC_STUB IWineD3DDevice_SetPaletteEntries_Stub(
8850 IRpcStubBuffer* This,
8851 IRpcChannelBuffer* pRpcChannelBuffer,
8852 PRPC_MESSAGE pRpcMessage,
8853 DWORD* pdwStubPhase);
8854HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetPaletteEntries_Proxy(
8855 IWineD3DDevice* This,
8856 UINT palette_number,
8857 PALETTEENTRY *entries);
8858void __RPC_STUB IWineD3DDevice_GetPaletteEntries_Stub(
8859 IRpcStubBuffer* This,
8860 IRpcChannelBuffer* pRpcChannelBuffer,
8861 PRPC_MESSAGE pRpcMessage,
8862 DWORD* pdwStubPhase);
8863HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetPixelShader_Proxy(
8864 IWineD3DDevice* This,
8865 IWineD3DPixelShader *shader);
8866void __RPC_STUB IWineD3DDevice_SetPixelShader_Stub(
8867 IRpcStubBuffer* This,
8868 IRpcChannelBuffer* pRpcChannelBuffer,
8869 PRPC_MESSAGE pRpcMessage,
8870 DWORD* pdwStubPhase);
8871HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetPixelShader_Proxy(
8872 IWineD3DDevice* This,
8873 IWineD3DPixelShader **shader);
8874void __RPC_STUB IWineD3DDevice_GetPixelShader_Stub(
8875 IRpcStubBuffer* This,
8876 IRpcChannelBuffer* pRpcChannelBuffer,
8877 PRPC_MESSAGE pRpcMessage,
8878 DWORD* pdwStubPhase);
8879HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetPixelShaderConstantB_Proxy(
8880 IWineD3DDevice* This,
8881 UINT start_register,
8882 const BOOL *constants,
8883 UINT bool_count);
8884void __RPC_STUB IWineD3DDevice_SetPixelShaderConstantB_Stub(
8885 IRpcStubBuffer* This,
8886 IRpcChannelBuffer* pRpcChannelBuffer,
8887 PRPC_MESSAGE pRpcMessage,
8888 DWORD* pdwStubPhase);
8889HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetPixelShaderConstantB_Proxy(
8890 IWineD3DDevice* This,
8891 UINT start_register,
8892 BOOL *constants,
8893 UINT bool_count);
8894void __RPC_STUB IWineD3DDevice_GetPixelShaderConstantB_Stub(
8895 IRpcStubBuffer* This,
8896 IRpcChannelBuffer* pRpcChannelBuffer,
8897 PRPC_MESSAGE pRpcMessage,
8898 DWORD* pdwStubPhase);
8899HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetPixelShaderConstantI_Proxy(
8900 IWineD3DDevice* This,
8901 UINT start_register,
8902 const int *constants,
8903 UINT vector4i_count);
8904void __RPC_STUB IWineD3DDevice_SetPixelShaderConstantI_Stub(
8905 IRpcStubBuffer* This,
8906 IRpcChannelBuffer* pRpcChannelBuffer,
8907 PRPC_MESSAGE pRpcMessage,
8908 DWORD* pdwStubPhase);
8909HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetPixelShaderConstantI_Proxy(
8910 IWineD3DDevice* This,
8911 UINT start_register,
8912 int *constants,
8913 UINT vector4i_count);
8914void __RPC_STUB IWineD3DDevice_GetPixelShaderConstantI_Stub(
8915 IRpcStubBuffer* This,
8916 IRpcChannelBuffer* pRpcChannelBuffer,
8917 PRPC_MESSAGE pRpcMessage,
8918 DWORD* pdwStubPhase);
8919HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetPixelShaderConstantF_Proxy(
8920 IWineD3DDevice* This,
8921 UINT start_register,
8922 const float *constants,
8923 UINT vector4f_count);
8924void __RPC_STUB IWineD3DDevice_SetPixelShaderConstantF_Stub(
8925 IRpcStubBuffer* This,
8926 IRpcChannelBuffer* pRpcChannelBuffer,
8927 PRPC_MESSAGE pRpcMessage,
8928 DWORD* pdwStubPhase);
8929HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetPixelShaderConstantF_Proxy(
8930 IWineD3DDevice* This,
8931 UINT start_register,
8932 float *constants,
8933 UINT vector4f_count);
8934void __RPC_STUB IWineD3DDevice_GetPixelShaderConstantF_Stub(
8935 IRpcStubBuffer* This,
8936 IRpcChannelBuffer* pRpcChannelBuffer,
8937 PRPC_MESSAGE pRpcMessage,
8938 DWORD* pdwStubPhase);
8939HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetRenderState_Proxy(
8940 IWineD3DDevice* This,
8941 WINED3DRENDERSTATETYPE state,
8942 DWORD value);
8943void __RPC_STUB IWineD3DDevice_SetRenderState_Stub(
8944 IRpcStubBuffer* This,
8945 IRpcChannelBuffer* pRpcChannelBuffer,
8946 PRPC_MESSAGE pRpcMessage,
8947 DWORD* pdwStubPhase);
8948HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetRenderState_Proxy(
8949 IWineD3DDevice* This,
8950 WINED3DRENDERSTATETYPE state,
8951 DWORD *value);
8952void __RPC_STUB IWineD3DDevice_GetRenderState_Stub(
8953 IRpcStubBuffer* This,
8954 IRpcChannelBuffer* pRpcChannelBuffer,
8955 PRPC_MESSAGE pRpcMessage,
8956 DWORD* pdwStubPhase);
8957HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetRenderTarget_Proxy(
8958 IWineD3DDevice* This,
8959 DWORD render_target_idx,
8960 IWineD3DSurface *render_target,
8961 BOOL set_viewport);
8962void __RPC_STUB IWineD3DDevice_SetRenderTarget_Stub(
8963 IRpcStubBuffer* This,
8964 IRpcChannelBuffer* pRpcChannelBuffer,
8965 PRPC_MESSAGE pRpcMessage,
8966 DWORD* pdwStubPhase);
8967HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetRenderTarget_Proxy(
8968 IWineD3DDevice* This,
8969 DWORD render_target_idx,
8970 IWineD3DSurface **render_target);
8971void __RPC_STUB IWineD3DDevice_GetRenderTarget_Stub(
8972 IRpcStubBuffer* This,
8973 IRpcChannelBuffer* pRpcChannelBuffer,
8974 PRPC_MESSAGE pRpcMessage,
8975 DWORD* pdwStubPhase);
8976HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetFrontBackBuffers_Proxy(
8977 IWineD3DDevice* This,
8978 IWineD3DSurface *front,
8979 IWineD3DSurface *back);
8980void __RPC_STUB IWineD3DDevice_SetFrontBackBuffers_Stub(
8981 IRpcStubBuffer* This,
8982 IRpcChannelBuffer* pRpcChannelBuffer,
8983 PRPC_MESSAGE pRpcMessage,
8984 DWORD* pdwStubPhase);
8985HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetSamplerState_Proxy(
8986 IWineD3DDevice* This,
8987 DWORD sampler_idx,
8988 WINED3DSAMPLERSTATETYPE state,
8989 DWORD value);
8990void __RPC_STUB IWineD3DDevice_SetSamplerState_Stub(
8991 IRpcStubBuffer* This,
8992 IRpcChannelBuffer* pRpcChannelBuffer,
8993 PRPC_MESSAGE pRpcMessage,
8994 DWORD* pdwStubPhase);
8995HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetSamplerState_Proxy(
8996 IWineD3DDevice* This,
8997 DWORD sampler_idx,
8998 WINED3DSAMPLERSTATETYPE state,
8999 DWORD *value);
9000void __RPC_STUB IWineD3DDevice_GetSamplerState_Stub(
9001 IRpcStubBuffer* This,
9002 IRpcChannelBuffer* pRpcChannelBuffer,
9003 PRPC_MESSAGE pRpcMessage,
9004 DWORD* pdwStubPhase);
9005HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetScissorRect_Proxy(
9006 IWineD3DDevice* This,
9007 const RECT *rect);
9008void __RPC_STUB IWineD3DDevice_SetScissorRect_Stub(
9009 IRpcStubBuffer* This,
9010 IRpcChannelBuffer* pRpcChannelBuffer,
9011 PRPC_MESSAGE pRpcMessage,
9012 DWORD* pdwStubPhase);
9013HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetScissorRect_Proxy(
9014 IWineD3DDevice* This,
9015 RECT *rect);
9016void __RPC_STUB IWineD3DDevice_GetScissorRect_Stub(
9017 IRpcStubBuffer* This,
9018 IRpcChannelBuffer* pRpcChannelBuffer,
9019 PRPC_MESSAGE pRpcMessage,
9020 DWORD* pdwStubPhase);
9021HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetSoftwareVertexProcessing_Proxy(
9022 IWineD3DDevice* This,
9023 BOOL software);
9024void __RPC_STUB IWineD3DDevice_SetSoftwareVertexProcessing_Stub(
9025 IRpcStubBuffer* This,
9026 IRpcChannelBuffer* pRpcChannelBuffer,
9027 PRPC_MESSAGE pRpcMessage,
9028 DWORD* pdwStubPhase);
9029BOOL STDMETHODCALLTYPE IWineD3DDevice_GetSoftwareVertexProcessing_Proxy(
9030 IWineD3DDevice* This);
9031void __RPC_STUB IWineD3DDevice_GetSoftwareVertexProcessing_Stub(
9032 IRpcStubBuffer* This,
9033 IRpcChannelBuffer* pRpcChannelBuffer,
9034 PRPC_MESSAGE pRpcMessage,
9035 DWORD* pdwStubPhase);
9036HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetStreamSource_Proxy(
9037 IWineD3DDevice* This,
9038 UINT stream_idx,
9039 IWineD3DBuffer *buffer,
9040 UINT offset,
9041 UINT stride);
9042void __RPC_STUB IWineD3DDevice_SetStreamSource_Stub(
9043 IRpcStubBuffer* This,
9044 IRpcChannelBuffer* pRpcChannelBuffer,
9045 PRPC_MESSAGE pRpcMessage,
9046 DWORD* pdwStubPhase);
9047HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetStreamSource_Proxy(
9048 IWineD3DDevice* This,
9049 UINT stream_idx,
9050 IWineD3DBuffer **buffer,
9051 UINT *offset,
9052 UINT *stride);
9053void __RPC_STUB IWineD3DDevice_GetStreamSource_Stub(
9054 IRpcStubBuffer* This,
9055 IRpcChannelBuffer* pRpcChannelBuffer,
9056 PRPC_MESSAGE pRpcMessage,
9057 DWORD* pdwStubPhase);
9058HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetStreamSourceFreq_Proxy(
9059 IWineD3DDevice* This,
9060 UINT stream_idx,
9061 UINT divider);
9062void __RPC_STUB IWineD3DDevice_SetStreamSourceFreq_Stub(
9063 IRpcStubBuffer* This,
9064 IRpcChannelBuffer* pRpcChannelBuffer,
9065 PRPC_MESSAGE pRpcMessage,
9066 DWORD* pdwStubPhase);
9067HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetStreamSourceFreq_Proxy(
9068 IWineD3DDevice* This,
9069 UINT stream_idx,
9070 UINT *divider);
9071void __RPC_STUB IWineD3DDevice_GetStreamSourceFreq_Stub(
9072 IRpcStubBuffer* This,
9073 IRpcChannelBuffer* pRpcChannelBuffer,
9074 PRPC_MESSAGE pRpcMessage,
9075 DWORD* pdwStubPhase);
9076HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetTexture_Proxy(
9077 IWineD3DDevice* This,
9078 DWORD stage,
9079 IWineD3DBaseTexture *texture);
9080void __RPC_STUB IWineD3DDevice_SetTexture_Stub(
9081 IRpcStubBuffer* This,
9082 IRpcChannelBuffer* pRpcChannelBuffer,
9083 PRPC_MESSAGE pRpcMessage,
9084 DWORD* pdwStubPhase);
9085HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetTexture_Proxy(
9086 IWineD3DDevice* This,
9087 DWORD stage,
9088 IWineD3DBaseTexture **texture);
9089void __RPC_STUB IWineD3DDevice_GetTexture_Stub(
9090 IRpcStubBuffer* This,
9091 IRpcChannelBuffer* pRpcChannelBuffer,
9092 PRPC_MESSAGE pRpcMessage,
9093 DWORD* pdwStubPhase);
9094HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetTextureStageState_Proxy(
9095 IWineD3DDevice* This,
9096 DWORD stage,
9097 WINED3DTEXTURESTAGESTATETYPE state,
9098 DWORD value);
9099void __RPC_STUB IWineD3DDevice_SetTextureStageState_Stub(
9100 IRpcStubBuffer* This,
9101 IRpcChannelBuffer* pRpcChannelBuffer,
9102 PRPC_MESSAGE pRpcMessage,
9103 DWORD* pdwStubPhase);
9104HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetTextureStageState_Proxy(
9105 IWineD3DDevice* This,
9106 DWORD stage,
9107 WINED3DTEXTURESTAGESTATETYPE state,
9108 DWORD *value);
9109void __RPC_STUB IWineD3DDevice_GetTextureStageState_Stub(
9110 IRpcStubBuffer* This,
9111 IRpcChannelBuffer* pRpcChannelBuffer,
9112 PRPC_MESSAGE pRpcMessage,
9113 DWORD* pdwStubPhase);
9114HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetTransform_Proxy(
9115 IWineD3DDevice* This,
9116 WINED3DTRANSFORMSTATETYPE state,
9117 const WINED3DMATRIX *matrix);
9118void __RPC_STUB IWineD3DDevice_SetTransform_Stub(
9119 IRpcStubBuffer* This,
9120 IRpcChannelBuffer* pRpcChannelBuffer,
9121 PRPC_MESSAGE pRpcMessage,
9122 DWORD* pdwStubPhase);
9123HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetTransform_Proxy(
9124 IWineD3DDevice* This,
9125 WINED3DTRANSFORMSTATETYPE state,
9126 WINED3DMATRIX *matrix);
9127void __RPC_STUB IWineD3DDevice_GetTransform_Stub(
9128 IRpcStubBuffer* This,
9129 IRpcChannelBuffer* pRpcChannelBuffer,
9130 PRPC_MESSAGE pRpcMessage,
9131 DWORD* pdwStubPhase);
9132HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetVertexDeclaration_Proxy(
9133 IWineD3DDevice* This,
9134 IWineD3DVertexDeclaration *declaration);
9135void __RPC_STUB IWineD3DDevice_SetVertexDeclaration_Stub(
9136 IRpcStubBuffer* This,
9137 IRpcChannelBuffer* pRpcChannelBuffer,
9138 PRPC_MESSAGE pRpcMessage,
9139 DWORD* pdwStubPhase);
9140HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetVertexDeclaration_Proxy(
9141 IWineD3DDevice* This,
9142 IWineD3DVertexDeclaration **declaration);
9143void __RPC_STUB IWineD3DDevice_GetVertexDeclaration_Stub(
9144 IRpcStubBuffer* This,
9145 IRpcChannelBuffer* pRpcChannelBuffer,
9146 PRPC_MESSAGE pRpcMessage,
9147 DWORD* pdwStubPhase);
9148HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetVertexShader_Proxy(
9149 IWineD3DDevice* This,
9150 IWineD3DVertexShader *shader);
9151void __RPC_STUB IWineD3DDevice_SetVertexShader_Stub(
9152 IRpcStubBuffer* This,
9153 IRpcChannelBuffer* pRpcChannelBuffer,
9154 PRPC_MESSAGE pRpcMessage,
9155 DWORD* pdwStubPhase);
9156HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetVertexShader_Proxy(
9157 IWineD3DDevice* This,
9158 IWineD3DVertexShader **shader);
9159void __RPC_STUB IWineD3DDevice_GetVertexShader_Stub(
9160 IRpcStubBuffer* This,
9161 IRpcChannelBuffer* pRpcChannelBuffer,
9162 PRPC_MESSAGE pRpcMessage,
9163 DWORD* pdwStubPhase);
9164HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetVertexShaderConstantB_Proxy(
9165 IWineD3DDevice* This,
9166 UINT start_register,
9167 const BOOL *constants,
9168 UINT bool_count);
9169void __RPC_STUB IWineD3DDevice_SetVertexShaderConstantB_Stub(
9170 IRpcStubBuffer* This,
9171 IRpcChannelBuffer* pRpcChannelBuffer,
9172 PRPC_MESSAGE pRpcMessage,
9173 DWORD* pdwStubPhase);
9174HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetVertexShaderConstantB_Proxy(
9175 IWineD3DDevice* This,
9176 UINT start_register,
9177 BOOL *constants,
9178 UINT bool_count);
9179void __RPC_STUB IWineD3DDevice_GetVertexShaderConstantB_Stub(
9180 IRpcStubBuffer* This,
9181 IRpcChannelBuffer* pRpcChannelBuffer,
9182 PRPC_MESSAGE pRpcMessage,
9183 DWORD* pdwStubPhase);
9184HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetVertexShaderConstantI_Proxy(
9185 IWineD3DDevice* This,
9186 UINT start_register,
9187 const int *constants,
9188 UINT vector4i_count);
9189void __RPC_STUB IWineD3DDevice_SetVertexShaderConstantI_Stub(
9190 IRpcStubBuffer* This,
9191 IRpcChannelBuffer* pRpcChannelBuffer,
9192 PRPC_MESSAGE pRpcMessage,
9193 DWORD* pdwStubPhase);
9194HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetVertexShaderConstantI_Proxy(
9195 IWineD3DDevice* This,
9196 UINT start_register,
9197 int *constants,
9198 UINT vector4i_count);
9199void __RPC_STUB IWineD3DDevice_GetVertexShaderConstantI_Stub(
9200 IRpcStubBuffer* This,
9201 IRpcChannelBuffer* pRpcChannelBuffer,
9202 PRPC_MESSAGE pRpcMessage,
9203 DWORD* pdwStubPhase);
9204HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetVertexShaderConstantF_Proxy(
9205 IWineD3DDevice* This,
9206 UINT start_register,
9207 const float *constants,
9208 UINT vector4f_count);
9209void __RPC_STUB IWineD3DDevice_SetVertexShaderConstantF_Stub(
9210 IRpcStubBuffer* This,
9211 IRpcChannelBuffer* pRpcChannelBuffer,
9212 PRPC_MESSAGE pRpcMessage,
9213 DWORD* pdwStubPhase);
9214HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetVertexShaderConstantF_Proxy(
9215 IWineD3DDevice* This,
9216 UINT start_register,
9217 float *constants,
9218 UINT vector4f_count);
9219void __RPC_STUB IWineD3DDevice_GetVertexShaderConstantF_Stub(
9220 IRpcStubBuffer* This,
9221 IRpcChannelBuffer* pRpcChannelBuffer,
9222 PRPC_MESSAGE pRpcMessage,
9223 DWORD* pdwStubPhase);
9224HRESULT STDMETHODCALLTYPE IWineD3DDevice_SetViewport_Proxy(
9225 IWineD3DDevice* This,
9226 const WINED3DVIEWPORT *viewport);
9227void __RPC_STUB IWineD3DDevice_SetViewport_Stub(
9228 IRpcStubBuffer* This,
9229 IRpcChannelBuffer* pRpcChannelBuffer,
9230 PRPC_MESSAGE pRpcMessage,
9231 DWORD* pdwStubPhase);
9232HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetViewport_Proxy(
9233 IWineD3DDevice* This,
9234 WINED3DVIEWPORT *viewport);
9235void __RPC_STUB IWineD3DDevice_GetViewport_Stub(
9236 IRpcStubBuffer* This,
9237 IRpcChannelBuffer* pRpcChannelBuffer,
9238 PRPC_MESSAGE pRpcMessage,
9239 DWORD* pdwStubPhase);
9240HRESULT STDMETHODCALLTYPE IWineD3DDevice_MultiplyTransform_Proxy(
9241 IWineD3DDevice* This,
9242 WINED3DTRANSFORMSTATETYPE state,
9243 const WINED3DMATRIX *matrix);
9244void __RPC_STUB IWineD3DDevice_MultiplyTransform_Stub(
9245 IRpcStubBuffer* This,
9246 IRpcChannelBuffer* pRpcChannelBuffer,
9247 PRPC_MESSAGE pRpcMessage,
9248 DWORD* pdwStubPhase);
9249HRESULT STDMETHODCALLTYPE IWineD3DDevice_ValidateDevice_Proxy(
9250 IWineD3DDevice* This,
9251 DWORD *num_passes);
9252void __RPC_STUB IWineD3DDevice_ValidateDevice_Stub(
9253 IRpcStubBuffer* This,
9254 IRpcChannelBuffer* pRpcChannelBuffer,
9255 PRPC_MESSAGE pRpcMessage,
9256 DWORD* pdwStubPhase);
9257HRESULT STDMETHODCALLTYPE IWineD3DDevice_ProcessVertices_Proxy(
9258 IWineD3DDevice* This,
9259 UINT src_start_idx,
9260 UINT dst_idx,
9261 UINT vertex_count,
9262 IWineD3DBuffer *dest_buffer,
9263 IWineD3DVertexDeclaration *declaration,
9264 DWORD flags,
9265 DWORD DestFVF);
9266void __RPC_STUB IWineD3DDevice_ProcessVertices_Stub(
9267 IRpcStubBuffer* This,
9268 IRpcChannelBuffer* pRpcChannelBuffer,
9269 PRPC_MESSAGE pRpcMessage,
9270 DWORD* pdwStubPhase);
9271HRESULT STDMETHODCALLTYPE IWineD3DDevice_BeginStateBlock_Proxy(
9272 IWineD3DDevice* This);
9273void __RPC_STUB IWineD3DDevice_BeginStateBlock_Stub(
9274 IRpcStubBuffer* This,
9275 IRpcChannelBuffer* pRpcChannelBuffer,
9276 PRPC_MESSAGE pRpcMessage,
9277 DWORD* pdwStubPhase);
9278HRESULT STDMETHODCALLTYPE IWineD3DDevice_EndStateBlock_Proxy(
9279 IWineD3DDevice* This,
9280 IWineD3DStateBlock **stateblock);
9281void __RPC_STUB IWineD3DDevice_EndStateBlock_Stub(
9282 IRpcStubBuffer* This,
9283 IRpcChannelBuffer* pRpcChannelBuffer,
9284 PRPC_MESSAGE pRpcMessage,
9285 DWORD* pdwStubPhase);
9286HRESULT STDMETHODCALLTYPE IWineD3DDevice_BeginScene_Proxy(
9287 IWineD3DDevice* This);
9288void __RPC_STUB IWineD3DDevice_BeginScene_Stub(
9289 IRpcStubBuffer* This,
9290 IRpcChannelBuffer* pRpcChannelBuffer,
9291 PRPC_MESSAGE pRpcMessage,
9292 DWORD* pdwStubPhase);
9293HRESULT STDMETHODCALLTYPE IWineD3DDevice_EndScene_Proxy(
9294 IWineD3DDevice* This);
9295void __RPC_STUB IWineD3DDevice_EndScene_Stub(
9296 IRpcStubBuffer* This,
9297 IRpcChannelBuffer* pRpcChannelBuffer,
9298 PRPC_MESSAGE pRpcMessage,
9299 DWORD* pdwStubPhase);
9300HRESULT STDMETHODCALLTYPE IWineD3DDevice_Present_Proxy(
9301 IWineD3DDevice* This,
9302 const RECT *src_rect,
9303 const RECT *dst_rect,
9304 HWND dst_window_override,
9305 const RGNDATA *dirty_region);
9306void __RPC_STUB IWineD3DDevice_Present_Stub(
9307 IRpcStubBuffer* This,
9308 IRpcChannelBuffer* pRpcChannelBuffer,
9309 PRPC_MESSAGE pRpcMessage,
9310 DWORD* pdwStubPhase);
9311HRESULT STDMETHODCALLTYPE IWineD3DDevice_Clear_Proxy(
9312 IWineD3DDevice* This,
9313 DWORD rect_count,
9314 const WINED3DRECT *rects,
9315 DWORD flags,
9316 WINED3DCOLOR color,
9317 float z,
9318 DWORD stencil);
9319void __RPC_STUB IWineD3DDevice_Clear_Stub(
9320 IRpcStubBuffer* This,
9321 IRpcChannelBuffer* pRpcChannelBuffer,
9322 PRPC_MESSAGE pRpcMessage,
9323 DWORD* pdwStubPhase);
9324void STDMETHODCALLTYPE IWineD3DDevice_ClearRendertargetView_Proxy(
9325 IWineD3DDevice* This,
9326 IWineD3DRendertargetView *rendertarget_view,
9327 const float color[4]);
9328void __RPC_STUB IWineD3DDevice_ClearRendertargetView_Stub(
9329 IRpcStubBuffer* This,
9330 IRpcChannelBuffer* pRpcChannelBuffer,
9331 PRPC_MESSAGE pRpcMessage,
9332 DWORD* pdwStubPhase);
9333void STDMETHODCALLTYPE IWineD3DDevice_SetPrimitiveType_Proxy(
9334 IWineD3DDevice* This,
9335 WINED3DPRIMITIVETYPE primitive_topology);
9336void __RPC_STUB IWineD3DDevice_SetPrimitiveType_Stub(
9337 IRpcStubBuffer* This,
9338 IRpcChannelBuffer* pRpcChannelBuffer,
9339 PRPC_MESSAGE pRpcMessage,
9340 DWORD* pdwStubPhase);
9341void STDMETHODCALLTYPE IWineD3DDevice_GetPrimitiveType_Proxy(
9342 IWineD3DDevice* This,
9343 WINED3DPRIMITIVETYPE *primitive_topology);
9344void __RPC_STUB IWineD3DDevice_GetPrimitiveType_Stub(
9345 IRpcStubBuffer* This,
9346 IRpcChannelBuffer* pRpcChannelBuffer,
9347 PRPC_MESSAGE pRpcMessage,
9348 DWORD* pdwStubPhase);
9349HRESULT STDMETHODCALLTYPE IWineD3DDevice_DrawPrimitive_Proxy(
9350 IWineD3DDevice* This,
9351 UINT start_vertex,
9352 UINT vertex_count);
9353void __RPC_STUB IWineD3DDevice_DrawPrimitive_Stub(
9354 IRpcStubBuffer* This,
9355 IRpcChannelBuffer* pRpcChannelBuffer,
9356 PRPC_MESSAGE pRpcMessage,
9357 DWORD* pdwStubPhase);
9358HRESULT STDMETHODCALLTYPE IWineD3DDevice_DrawIndexedPrimitive_Proxy(
9359 IWineD3DDevice* This,
9360 UINT start_idx,
9361 UINT index_count);
9362void __RPC_STUB IWineD3DDevice_DrawIndexedPrimitive_Stub(
9363 IRpcStubBuffer* This,
9364 IRpcChannelBuffer* pRpcChannelBuffer,
9365 PRPC_MESSAGE pRpcMessage,
9366 DWORD* pdwStubPhase);
9367HRESULT STDMETHODCALLTYPE IWineD3DDevice_DrawPrimitiveUP_Proxy(
9368 IWineD3DDevice* This,
9369 UINT vertex_count,
9370 const void *stream_data,
9371 UINT stream_stride);
9372void __RPC_STUB IWineD3DDevice_DrawPrimitiveUP_Stub(
9373 IRpcStubBuffer* This,
9374 IRpcChannelBuffer* pRpcChannelBuffer,
9375 PRPC_MESSAGE pRpcMessage,
9376 DWORD* pdwStubPhase);
9377HRESULT STDMETHODCALLTYPE IWineD3DDevice_DrawIndexedPrimitiveUP_Proxy(
9378 IWineD3DDevice* This,
9379 UINT index_count,
9380 const void *index_data,
9381 WINED3DFORMAT index_data_format,
9382 const void *stream_data,
9383 UINT stream_stride);
9384void __RPC_STUB IWineD3DDevice_DrawIndexedPrimitiveUP_Stub(
9385 IRpcStubBuffer* This,
9386 IRpcChannelBuffer* pRpcChannelBuffer,
9387 PRPC_MESSAGE pRpcMessage,
9388 DWORD* pdwStubPhase);
9389HRESULT STDMETHODCALLTYPE IWineD3DDevice_DrawPrimitiveStrided_Proxy(
9390 IWineD3DDevice* This,
9391 UINT vertex_count,
9392 const WineDirect3DVertexStridedData *strided_data);
9393void __RPC_STUB IWineD3DDevice_DrawPrimitiveStrided_Stub(
9394 IRpcStubBuffer* This,
9395 IRpcChannelBuffer* pRpcChannelBuffer,
9396 PRPC_MESSAGE pRpcMessage,
9397 DWORD* pdwStubPhase);
9398HRESULT STDMETHODCALLTYPE IWineD3DDevice_DrawIndexedPrimitiveStrided_Proxy(
9399 IWineD3DDevice* This,
9400 UINT index_count,
9401 const WineDirect3DVertexStridedData *strided_data,
9402 UINT vertex_count,
9403 const void *index_data,
9404 WINED3DFORMAT index_data_format);
9405void __RPC_STUB IWineD3DDevice_DrawIndexedPrimitiveStrided_Stub(
9406 IRpcStubBuffer* This,
9407 IRpcChannelBuffer* pRpcChannelBuffer,
9408 PRPC_MESSAGE pRpcMessage,
9409 DWORD* pdwStubPhase);
9410HRESULT STDMETHODCALLTYPE IWineD3DDevice_DrawRectPatch_Proxy(
9411 IWineD3DDevice* This,
9412 UINT handle,
9413 const float *num_segs,
9414 const WINED3DRECTPATCH_INFO *rect_patch_info);
9415void __RPC_STUB IWineD3DDevice_DrawRectPatch_Stub(
9416 IRpcStubBuffer* This,
9417 IRpcChannelBuffer* pRpcChannelBuffer,
9418 PRPC_MESSAGE pRpcMessage,
9419 DWORD* pdwStubPhase);
9420HRESULT STDMETHODCALLTYPE IWineD3DDevice_DrawTriPatch_Proxy(
9421 IWineD3DDevice* This,
9422 UINT handle,
9423 const float *num_segs,
9424 const WINED3DTRIPATCH_INFO *tri_patch_info);
9425void __RPC_STUB IWineD3DDevice_DrawTriPatch_Stub(
9426 IRpcStubBuffer* This,
9427 IRpcChannelBuffer* pRpcChannelBuffer,
9428 PRPC_MESSAGE pRpcMessage,
9429 DWORD* pdwStubPhase);
9430HRESULT STDMETHODCALLTYPE IWineD3DDevice_DeletePatch_Proxy(
9431 IWineD3DDevice* This,
9432 UINT handle);
9433void __RPC_STUB IWineD3DDevice_DeletePatch_Stub(
9434 IRpcStubBuffer* This,
9435 IRpcChannelBuffer* pRpcChannelBuffer,
9436 PRPC_MESSAGE pRpcMessage,
9437 DWORD* pdwStubPhase);
9438HRESULT STDMETHODCALLTYPE IWineD3DDevice_ColorFill_Proxy(
9439 IWineD3DDevice* This,
9440 IWineD3DSurface *surface,
9441 const WINED3DRECT *rect,
9442 WINED3DCOLOR color);
9443void __RPC_STUB IWineD3DDevice_ColorFill_Stub(
9444 IRpcStubBuffer* This,
9445 IRpcChannelBuffer* pRpcChannelBuffer,
9446 PRPC_MESSAGE pRpcMessage,
9447 DWORD* pdwStubPhase);
9448HRESULT STDMETHODCALLTYPE IWineD3DDevice_UpdateTexture_Proxy(
9449 IWineD3DDevice* This,
9450 IWineD3DBaseTexture *src_texture,
9451 IWineD3DBaseTexture *dst_texture);
9452void __RPC_STUB IWineD3DDevice_UpdateTexture_Stub(
9453 IRpcStubBuffer* This,
9454 IRpcChannelBuffer* pRpcChannelBuffer,
9455 PRPC_MESSAGE pRpcMessage,
9456 DWORD* pdwStubPhase);
9457HRESULT STDMETHODCALLTYPE IWineD3DDevice_UpdateSurface_Proxy(
9458 IWineD3DDevice* This,
9459 IWineD3DSurface *src_surface,
9460 const RECT *src_rect,
9461 IWineD3DSurface *dst_surface,
9462 const POINT *dst_point);
9463void __RPC_STUB IWineD3DDevice_UpdateSurface_Stub(
9464 IRpcStubBuffer* This,
9465 IRpcChannelBuffer* pRpcChannelBuffer,
9466 PRPC_MESSAGE pRpcMessage,
9467 DWORD* pdwStubPhase);
9468HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetFrontBufferData_Proxy(
9469 IWineD3DDevice* This,
9470 UINT swapchain_idx,
9471 IWineD3DSurface *dst_surface);
9472void __RPC_STUB IWineD3DDevice_GetFrontBufferData_Stub(
9473 IRpcStubBuffer* This,
9474 IRpcChannelBuffer* pRpcChannelBuffer,
9475 PRPC_MESSAGE pRpcMessage,
9476 DWORD* pdwStubPhase);
9477HRESULT STDMETHODCALLTYPE IWineD3DDevice_EnumResources_Proxy(
9478 IWineD3DDevice* This,
9479 HRESULT (STDMETHODCALLTYPE * callback)(IWineD3DResource *resource,void *pData),
9480 void *data);
9481void __RPC_STUB IWineD3DDevice_EnumResources_Stub(
9482 IRpcStubBuffer* This,
9483 IRpcChannelBuffer* pRpcChannelBuffer,
9484 PRPC_MESSAGE pRpcMessage,
9485 DWORD* pdwStubPhase);
9486HRESULT STDMETHODCALLTYPE IWineD3DDevice_GetSurfaceFromDC_Proxy(
9487 IWineD3DDevice* This,
9488 HDC dc,
9489 IWineD3DSurface **surface);
9490void __RPC_STUB IWineD3DDevice_GetSurfaceFromDC_Stub(
9491 IRpcStubBuffer* This,
9492 IRpcChannelBuffer* pRpcChannelBuffer,
9493 PRPC_MESSAGE pRpcMessage,
9494 DWORD* pdwStubPhase);
9495HRESULT STDMETHODCALLTYPE IWineD3DDevice_AcquireFocusWindow_Proxy(
9496 IWineD3DDevice* This,
9497 HWND window);
9498void __RPC_STUB IWineD3DDevice_AcquireFocusWindow_Stub(
9499 IRpcStubBuffer* This,
9500 IRpcChannelBuffer* pRpcChannelBuffer,
9501 PRPC_MESSAGE pRpcMessage,
9502 DWORD* pdwStubPhase);
9503void STDMETHODCALLTYPE IWineD3DDevice_ReleaseFocusWindow_Proxy(
9504 IWineD3DDevice* This);
9505void __RPC_STUB IWineD3DDevice_ReleaseFocusWindow_Stub(
9506 IRpcStubBuffer* This,
9507 IRpcChannelBuffer* pRpcChannelBuffer,
9508 PRPC_MESSAGE pRpcMessage,
9509 DWORD* pdwStubPhase);
9510
9511#endif /* __IWineD3DDevice_INTERFACE_DEFINED__ */
9512
9513IWineD3D * STDMETHODCALLTYPE WineDirect3DCreate(UINT dxVersion,IUnknown *parent);
9514
9515IWineD3DClipper * STDMETHODCALLTYPE WineDirect3DCreateClipper(IUnknown *parent);
9516
9517void STDMETHODCALLTYPE wined3d_mutex_lock(void);
9518
9519void STDMETHODCALLTYPE wined3d_mutex_unlock(void);
9520
9521/* Begin additional prototypes for all interfaces */
9522
9523
9524/* End additional prototypes */
9525
9526#ifdef __cplusplus
9527}
9528#endif
9529
9530#endif /* __WIDL_WINED3D_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette