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