Mercurial > mm7
comparison lib/legacy_dx/d3d.h @ 0:9c0607679772
init
author | Ritor1 |
---|---|
date | Sat, 12 Jan 2013 09:45:18 +0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9c0607679772 |
---|---|
1 /*==========================================================================; | |
2 * | |
3 * Copyright (C) Microsoft Corporation. All Rights Reserved. | |
4 * | |
5 * File: d3d.h | |
6 * Content: Direct3D include file | |
7 * | |
8 ****************************************************************************/ | |
9 | |
10 #ifndef _D3D_H_ | |
11 #define _D3D_H_ | |
12 | |
13 #ifndef DIRECT3D_VERSION | |
14 #define DIRECT3D_VERSION 0x0700 | |
15 #endif | |
16 | |
17 // include this file content only if compiling for <=DX7 interfaces | |
18 #if(DIRECT3D_VERSION < 0x0800) | |
19 | |
20 | |
21 #include <stdlib.h> | |
22 | |
23 #define COM_NO_WINDOWS_H | |
24 #include <objbase.h> | |
25 | |
26 #define D3DAPI WINAPI | |
27 | |
28 /* | |
29 * Interface IID's | |
30 */ | |
31 #if defined( _WIN32 ) && !defined( _NO_COM) | |
32 DEFINE_GUID( IID_IDirect3D, 0x3BBA0080,0x2421,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 ); | |
33 #if(DIRECT3D_VERSION >= 0x0500) | |
34 DEFINE_GUID( IID_IDirect3D2, 0x6aae1ec1,0x662a,0x11d0,0x88,0x9d,0x00,0xaa,0x00,0xbb,0xb7,0x6a); | |
35 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
36 #if(DIRECT3D_VERSION >= 0x0600) | |
37 DEFINE_GUID( IID_IDirect3D3, 0xbb223240,0xe72b,0x11d0,0xa9,0xb4,0x00,0xaa,0x00,0xc0,0x99,0x3e); | |
38 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
39 #if(DIRECT3D_VERSION >= 0x0700) | |
40 DEFINE_GUID( IID_IDirect3D7, 0xf5049e77,0x4861,0x11d2,0xa4,0x7,0x0,0xa0,0xc9,0x6,0x29,0xa8); | |
41 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
42 | |
43 #if(DIRECT3D_VERSION >= 0x0500) | |
44 DEFINE_GUID( IID_IDirect3DRampDevice, 0xF2086B20,0x259F,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 ); | |
45 DEFINE_GUID( IID_IDirect3DRGBDevice, 0xA4665C60,0x2673,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 ); | |
46 DEFINE_GUID( IID_IDirect3DHALDevice, 0x84E63dE0,0x46AA,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); | |
47 DEFINE_GUID( IID_IDirect3DMMXDevice, 0x881949a1,0xd6f3,0x11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29 ); | |
48 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
49 | |
50 #if(DIRECT3D_VERSION >= 0x0600) | |
51 DEFINE_GUID( IID_IDirect3DRefDevice, 0x50936643, 0x13e9, 0x11d1, 0x89, 0xaa, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); | |
52 DEFINE_GUID( IID_IDirect3DNullDevice, 0x8767df22, 0xbacc, 0x11d1, 0x89, 0x69, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); | |
53 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
54 #if(DIRECT3D_VERSION >= 0x0700) | |
55 DEFINE_GUID( IID_IDirect3DTnLHalDevice, 0xf5049e78, 0x4861, 0x11d2, 0xa4, 0x7, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); | |
56 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
57 | |
58 /* | |
59 * Internal Guid to distinguish requested MMX from MMX being used as an RGB rasterizer | |
60 */ | |
61 | |
62 DEFINE_GUID( IID_IDirect3DDevice, 0x64108800,0x957d,0X11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29 ); | |
63 #if(DIRECT3D_VERSION >= 0x0500) | |
64 DEFINE_GUID( IID_IDirect3DDevice2, 0x93281501, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); | |
65 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
66 #if(DIRECT3D_VERSION >= 0x0600) | |
67 DEFINE_GUID( IID_IDirect3DDevice3, 0xb0ab3b60, 0x33d7, 0x11d1, 0xa9, 0x81, 0x0, 0xc0, 0x4f, 0xd7, 0xb1, 0x74); | |
68 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
69 #if(DIRECT3D_VERSION >= 0x0700) | |
70 DEFINE_GUID( IID_IDirect3DDevice7, 0xf5049e79, 0x4861, 0x11d2, 0xa4, 0x7, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); | |
71 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
72 | |
73 DEFINE_GUID( IID_IDirect3DTexture, 0x2CDCD9E0,0x25A0,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56 ); | |
74 #if(DIRECT3D_VERSION >= 0x0500) | |
75 DEFINE_GUID( IID_IDirect3DTexture2, 0x93281502, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); | |
76 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
77 | |
78 DEFINE_GUID( IID_IDirect3DLight, 0x4417C142,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); | |
79 | |
80 DEFINE_GUID( IID_IDirect3DMaterial, 0x4417C144,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); | |
81 #if(DIRECT3D_VERSION >= 0x0500) | |
82 DEFINE_GUID( IID_IDirect3DMaterial2, 0x93281503, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); | |
83 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
84 #if(DIRECT3D_VERSION >= 0x0600) | |
85 DEFINE_GUID( IID_IDirect3DMaterial3, 0xca9c46f4, 0xd3c5, 0x11d1, 0xb7, 0x5a, 0x0, 0x60, 0x8, 0x52, 0xb3, 0x12); | |
86 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
87 | |
88 DEFINE_GUID( IID_IDirect3DExecuteBuffer,0x4417C145,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); | |
89 DEFINE_GUID( IID_IDirect3DViewport, 0x4417C146,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E ); | |
90 #if(DIRECT3D_VERSION >= 0x0500) | |
91 DEFINE_GUID( IID_IDirect3DViewport2, 0x93281500, 0x8cf8, 0x11d0, 0x89, 0xab, 0x0, 0xa0, 0xc9, 0x5, 0x41, 0x29); | |
92 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
93 #if(DIRECT3D_VERSION >= 0x0600) | |
94 DEFINE_GUID( IID_IDirect3DViewport3, 0xb0ab3b61, 0x33d7, 0x11d1, 0xa9, 0x81, 0x0, 0xc0, 0x4f, 0xd7, 0xb1, 0x74); | |
95 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
96 #if(DIRECT3D_VERSION >= 0x0600) | |
97 DEFINE_GUID( IID_IDirect3DVertexBuffer, 0x7a503555, 0x4a83, 0x11d1, 0xa5, 0xdb, 0x0, 0xa0, 0xc9, 0x3, 0x67, 0xf8); | |
98 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
99 #if(DIRECT3D_VERSION >= 0x0700) | |
100 DEFINE_GUID( IID_IDirect3DVertexBuffer7, 0xf5049e7d, 0x4861, 0x11d2, 0xa4, 0x7, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8); | |
101 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
102 #endif | |
103 | |
104 #ifdef __cplusplus | |
105 struct IDirect3D; | |
106 struct IDirect3DDevice; | |
107 struct IDirect3DLight; | |
108 struct IDirect3DMaterial; | |
109 struct IDirect3DExecuteBuffer; | |
110 struct IDirect3DTexture; | |
111 struct IDirect3DViewport; | |
112 typedef struct IDirect3D *LPDIRECT3D; | |
113 typedef struct IDirect3DDevice *LPDIRECT3DDEVICE; | |
114 typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER; | |
115 typedef struct IDirect3DLight *LPDIRECT3DLIGHT; | |
116 typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL; | |
117 typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE; | |
118 typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT; | |
119 | |
120 #if(DIRECT3D_VERSION >= 0x0500) | |
121 struct IDirect3D2; | |
122 struct IDirect3DDevice2; | |
123 struct IDirect3DMaterial2; | |
124 struct IDirect3DTexture2; | |
125 struct IDirect3DViewport2; | |
126 typedef struct IDirect3D2 *LPDIRECT3D2; | |
127 typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2; | |
128 typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2; | |
129 typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2; | |
130 typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2; | |
131 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
132 | |
133 #if(DIRECT3D_VERSION >= 0x0600) | |
134 struct IDirect3D3; | |
135 struct IDirect3DDevice3; | |
136 struct IDirect3DMaterial3; | |
137 struct IDirect3DViewport3; | |
138 struct IDirect3DVertexBuffer; | |
139 typedef struct IDirect3D3 *LPDIRECT3D3; | |
140 typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3; | |
141 typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3; | |
142 typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3; | |
143 typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER; | |
144 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
145 | |
146 #if(DIRECT3D_VERSION >= 0x0700) | |
147 struct IDirect3D7; | |
148 struct IDirect3DDevice7; | |
149 struct IDirect3DVertexBuffer7; | |
150 typedef struct IDirect3D7 *LPDIRECT3D7; | |
151 typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7; | |
152 typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7; | |
153 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
154 | |
155 #else | |
156 | |
157 typedef struct IDirect3D *LPDIRECT3D; | |
158 typedef struct IDirect3DDevice *LPDIRECT3DDEVICE; | |
159 typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER; | |
160 typedef struct IDirect3DLight *LPDIRECT3DLIGHT; | |
161 typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL; | |
162 typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE; | |
163 typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT; | |
164 | |
165 #if(DIRECT3D_VERSION >= 0x0500) | |
166 typedef struct IDirect3D2 *LPDIRECT3D2; | |
167 typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2; | |
168 typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2; | |
169 typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2; | |
170 typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2; | |
171 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
172 | |
173 #if(DIRECT3D_VERSION >= 0x0600) | |
174 typedef struct IDirect3D3 *LPDIRECT3D3; | |
175 typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3; | |
176 typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3; | |
177 typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3; | |
178 typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER; | |
179 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
180 | |
181 #if(DIRECT3D_VERSION >= 0x0700) | |
182 typedef struct IDirect3D7 *LPDIRECT3D7; | |
183 typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7; | |
184 typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7; | |
185 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
186 | |
187 #endif | |
188 | |
189 #include "d3dtypes.h" | |
190 #include "d3dcaps.h" | |
191 | |
192 | |
193 #ifdef __cplusplus | |
194 extern "C" { | |
195 #endif | |
196 | |
197 /* | |
198 * Direct3D interfaces | |
199 */ | |
200 #undef INTERFACE | |
201 #define INTERFACE IDirect3D | |
202 | |
203 DECLARE_INTERFACE_(IDirect3D, IUnknown) | |
204 { | |
205 /*** IUnknown methods ***/ | |
206 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
207 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
208 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
209 | |
210 /*** IDirect3D methods ***/ | |
211 STDMETHOD(Initialize)(THIS_ REFCLSID) PURE; | |
212 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK,LPVOID) PURE; | |
213 STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT*,IUnknown*) PURE; | |
214 STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL*,IUnknown*) PURE; | |
215 STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT*,IUnknown*) PURE; | |
216 STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH,LPD3DFINDDEVICERESULT) PURE; | |
217 }; | |
218 | |
219 typedef struct IDirect3D *LPDIRECT3D; | |
220 | |
221 #if !defined(__cplusplus) || defined(CINTERFACE) | |
222 #define IDirect3D_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
223 #define IDirect3D_AddRef(p) (p)->lpVtbl->AddRef(p) | |
224 #define IDirect3D_Release(p) (p)->lpVtbl->Release(p) | |
225 #define IDirect3D_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) | |
226 #define IDirect3D_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b) | |
227 #define IDirect3D_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b) | |
228 #define IDirect3D_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b) | |
229 #define IDirect3D_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b) | |
230 #define IDirect3D_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b) | |
231 #else | |
232 #define IDirect3D_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
233 #define IDirect3D_AddRef(p) (p)->AddRef() | |
234 #define IDirect3D_Release(p) (p)->Release() | |
235 #define IDirect3D_Initialize(p,a) (p)->Initialize(a) | |
236 #define IDirect3D_EnumDevices(p,a,b) (p)->EnumDevices(a,b) | |
237 #define IDirect3D_CreateLight(p,a,b) (p)->CreateLight(a,b) | |
238 #define IDirect3D_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b) | |
239 #define IDirect3D_CreateViewport(p,a,b) (p)->CreateViewport(a,b) | |
240 #define IDirect3D_FindDevice(p,a,b) (p)->FindDevice(a,b) | |
241 #endif | |
242 | |
243 #if(DIRECT3D_VERSION >= 0x0500) | |
244 #undef INTERFACE | |
245 #define INTERFACE IDirect3D2 | |
246 | |
247 DECLARE_INTERFACE_(IDirect3D2, IUnknown) | |
248 { | |
249 /*** IUnknown methods ***/ | |
250 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
251 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
252 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
253 | |
254 /*** IDirect3D2 methods ***/ | |
255 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK,LPVOID) PURE; | |
256 STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT*,IUnknown*) PURE; | |
257 STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL2*,IUnknown*) PURE; | |
258 STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT2*,IUnknown*) PURE; | |
259 STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH,LPD3DFINDDEVICERESULT) PURE; | |
260 STDMETHOD(CreateDevice)(THIS_ REFCLSID,LPDIRECTDRAWSURFACE,LPDIRECT3DDEVICE2*) PURE; | |
261 }; | |
262 | |
263 typedef struct IDirect3D2 *LPDIRECT3D2; | |
264 | |
265 #if !defined(__cplusplus) || defined(CINTERFACE) | |
266 #define IDirect3D2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
267 #define IDirect3D2_AddRef(p) (p)->lpVtbl->AddRef(p) | |
268 #define IDirect3D2_Release(p) (p)->lpVtbl->Release(p) | |
269 #define IDirect3D2_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b) | |
270 #define IDirect3D2_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b) | |
271 #define IDirect3D2_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b) | |
272 #define IDirect3D2_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b) | |
273 #define IDirect3D2_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b) | |
274 #define IDirect3D2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) | |
275 #else | |
276 #define IDirect3D2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
277 #define IDirect3D2_AddRef(p) (p)->AddRef() | |
278 #define IDirect3D2_Release(p) (p)->Release() | |
279 #define IDirect3D2_EnumDevices(p,a,b) (p)->EnumDevices(a,b) | |
280 #define IDirect3D2_CreateLight(p,a,b) (p)->CreateLight(a,b) | |
281 #define IDirect3D2_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b) | |
282 #define IDirect3D2_CreateViewport(p,a,b) (p)->CreateViewport(a,b) | |
283 #define IDirect3D2_FindDevice(p,a,b) (p)->FindDevice(a,b) | |
284 #define IDirect3D2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) | |
285 #endif | |
286 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
287 | |
288 #if(DIRECT3D_VERSION >= 0x0600) | |
289 #undef INTERFACE | |
290 #define INTERFACE IDirect3D3 | |
291 | |
292 DECLARE_INTERFACE_(IDirect3D3, IUnknown) | |
293 { | |
294 /*** IUnknown methods ***/ | |
295 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
296 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
297 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
298 | |
299 /*** IDirect3D3 methods ***/ | |
300 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK,LPVOID) PURE; | |
301 STDMETHOD(CreateLight)(THIS_ LPDIRECT3DLIGHT*,LPUNKNOWN) PURE; | |
302 STDMETHOD(CreateMaterial)(THIS_ LPDIRECT3DMATERIAL3*,LPUNKNOWN) PURE; | |
303 STDMETHOD(CreateViewport)(THIS_ LPDIRECT3DVIEWPORT3*,LPUNKNOWN) PURE; | |
304 STDMETHOD(FindDevice)(THIS_ LPD3DFINDDEVICESEARCH,LPD3DFINDDEVICERESULT) PURE; | |
305 STDMETHOD(CreateDevice)(THIS_ REFCLSID,LPDIRECTDRAWSURFACE4,LPDIRECT3DDEVICE3*,LPUNKNOWN) PURE; | |
306 STDMETHOD(CreateVertexBuffer)(THIS_ LPD3DVERTEXBUFFERDESC,LPDIRECT3DVERTEXBUFFER*,DWORD,LPUNKNOWN) PURE; | |
307 STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID,LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE; | |
308 STDMETHOD(EvictManagedTextures)(THIS) PURE; | |
309 }; | |
310 | |
311 typedef struct IDirect3D3 *LPDIRECT3D3; | |
312 | |
313 #if !defined(__cplusplus) || defined(CINTERFACE) | |
314 #define IDirect3D3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
315 #define IDirect3D3_AddRef(p) (p)->lpVtbl->AddRef(p) | |
316 #define IDirect3D3_Release(p) (p)->lpVtbl->Release(p) | |
317 #define IDirect3D3_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b) | |
318 #define IDirect3D3_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b) | |
319 #define IDirect3D3_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b) | |
320 #define IDirect3D3_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b) | |
321 #define IDirect3D3_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b) | |
322 #define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->lpVtbl->CreateDevice(p,a,b,c,d) | |
323 #define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d) | |
324 #define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c) | |
325 #define IDirect3D3_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p) | |
326 #else | |
327 #define IDirect3D3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
328 #define IDirect3D3_AddRef(p) (p)->AddRef() | |
329 #define IDirect3D3_Release(p) (p)->Release() | |
330 #define IDirect3D3_EnumDevices(p,a,b) (p)->EnumDevices(a,b) | |
331 #define IDirect3D3_CreateLight(p,a,b) (p)->CreateLight(a,b) | |
332 #define IDirect3D3_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b) | |
333 #define IDirect3D3_CreateViewport(p,a,b) (p)->CreateViewport(a,b) | |
334 #define IDirect3D3_FindDevice(p,a,b) (p)->FindDevice(a,b) | |
335 #define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->CreateDevice(a,b,c,d) | |
336 #define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->CreateVertexBuffer(a,b,c,d) | |
337 #define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c) | |
338 #define IDirect3D3_EvictManagedTextures(p) (p)->EvictManagedTextures() | |
339 #endif | |
340 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
341 | |
342 #if(DIRECT3D_VERSION >= 0x0700) | |
343 #undef INTERFACE | |
344 #define INTERFACE IDirect3D7 | |
345 | |
346 DECLARE_INTERFACE_(IDirect3D7, IUnknown) | |
347 { | |
348 /*** IUnknown methods ***/ | |
349 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
350 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
351 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
352 | |
353 /*** IDirect3D7 methods ***/ | |
354 STDMETHOD(EnumDevices)(THIS_ LPD3DENUMDEVICESCALLBACK7,LPVOID) PURE; | |
355 STDMETHOD(CreateDevice)(THIS_ REFCLSID,LPDIRECTDRAWSURFACE7,LPDIRECT3DDEVICE7*) PURE; | |
356 STDMETHOD(CreateVertexBuffer)(THIS_ LPD3DVERTEXBUFFERDESC,LPDIRECT3DVERTEXBUFFER7*,DWORD) PURE; | |
357 STDMETHOD(EnumZBufferFormats)(THIS_ REFCLSID,LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE; | |
358 STDMETHOD(EvictManagedTextures)(THIS) PURE; | |
359 }; | |
360 | |
361 typedef struct IDirect3D7 *LPDIRECT3D7; | |
362 | |
363 #if !defined(__cplusplus) || defined(CINTERFACE) | |
364 #define IDirect3D7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
365 #define IDirect3D7_AddRef(p) (p)->lpVtbl->AddRef(p) | |
366 #define IDirect3D7_Release(p) (p)->lpVtbl->Release(p) | |
367 #define IDirect3D7_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b) | |
368 #define IDirect3D7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c) | |
369 #define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c) | |
370 #define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c) | |
371 #define IDirect3D7_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p) | |
372 #else | |
373 #define IDirect3D7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
374 #define IDirect3D7_AddRef(p) (p)->AddRef() | |
375 #define IDirect3D7_Release(p) (p)->Release() | |
376 #define IDirect3D7_EnumDevices(p,a,b) (p)->EnumDevices(a,b) | |
377 #define IDirect3D7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c) | |
378 #define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->CreateVertexBuffer(a,b,c) | |
379 #define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c) | |
380 #define IDirect3D7_EvictManagedTextures(p) (p)->EvictManagedTextures() | |
381 #endif | |
382 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
383 /* | |
384 * Direct3D Device interfaces | |
385 */ | |
386 #undef INTERFACE | |
387 #define INTERFACE IDirect3DDevice | |
388 | |
389 DECLARE_INTERFACE_(IDirect3DDevice, IUnknown) | |
390 { | |
391 /*** IUnknown methods ***/ | |
392 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
393 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
394 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
395 | |
396 /*** IDirect3DDevice methods ***/ | |
397 STDMETHOD(Initialize)(THIS_ LPDIRECT3D,LPGUID,LPD3DDEVICEDESC) PURE; | |
398 STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC,LPD3DDEVICEDESC) PURE; | |
399 STDMETHOD(SwapTextureHandles)(THIS_ LPDIRECT3DTEXTURE,LPDIRECT3DTEXTURE) PURE; | |
400 STDMETHOD(CreateExecuteBuffer)(THIS_ LPD3DEXECUTEBUFFERDESC,LPDIRECT3DEXECUTEBUFFER*,IUnknown*) PURE; | |
401 STDMETHOD(GetStats)(THIS_ LPD3DSTATS) PURE; | |
402 STDMETHOD(Execute)(THIS_ LPDIRECT3DEXECUTEBUFFER,LPDIRECT3DVIEWPORT,DWORD) PURE; | |
403 STDMETHOD(AddViewport)(THIS_ LPDIRECT3DVIEWPORT) PURE; | |
404 STDMETHOD(DeleteViewport)(THIS_ LPDIRECT3DVIEWPORT) PURE; | |
405 STDMETHOD(NextViewport)(THIS_ LPDIRECT3DVIEWPORT,LPDIRECT3DVIEWPORT*,DWORD) PURE; | |
406 STDMETHOD(Pick)(THIS_ LPDIRECT3DEXECUTEBUFFER,LPDIRECT3DVIEWPORT,DWORD,LPD3DRECT) PURE; | |
407 STDMETHOD(GetPickRecords)(THIS_ LPDWORD,LPD3DPICKRECORD) PURE; | |
408 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK,LPVOID) PURE; | |
409 STDMETHOD(CreateMatrix)(THIS_ LPD3DMATRIXHANDLE) PURE; | |
410 STDMETHOD(SetMatrix)(THIS_ D3DMATRIXHANDLE,const LPD3DMATRIX) PURE; | |
411 STDMETHOD(GetMatrix)(THIS_ D3DMATRIXHANDLE,LPD3DMATRIX) PURE; | |
412 STDMETHOD(DeleteMatrix)(THIS_ D3DMATRIXHANDLE) PURE; | |
413 STDMETHOD(BeginScene)(THIS) PURE; | |
414 STDMETHOD(EndScene)(THIS) PURE; | |
415 STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D*) PURE; | |
416 }; | |
417 | |
418 typedef struct IDirect3DDevice *LPDIRECT3DDEVICE; | |
419 | |
420 #if !defined(__cplusplus) || defined(CINTERFACE) | |
421 #define IDirect3DDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
422 #define IDirect3DDevice_AddRef(p) (p)->lpVtbl->AddRef(p) | |
423 #define IDirect3DDevice_Release(p) (p)->lpVtbl->Release(p) | |
424 #define IDirect3DDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c) | |
425 #define IDirect3DDevice_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) | |
426 #define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b) | |
427 #define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->lpVtbl->CreateExecuteBuffer(p,a,b,c) | |
428 #define IDirect3DDevice_GetStats(p,a) (p)->lpVtbl->GetStats(p,a) | |
429 #define IDirect3DDevice_Execute(p,a,b,c) (p)->lpVtbl->Execute(p,a,b,c) | |
430 #define IDirect3DDevice_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a) | |
431 #define IDirect3DDevice_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a) | |
432 #define IDirect3DDevice_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c) | |
433 #define IDirect3DDevice_Pick(p,a,b,c,d) (p)->lpVtbl->Pick(p,a,b,c,d) | |
434 #define IDirect3DDevice_GetPickRecords(p,a,b) (p)->lpVtbl->GetPickRecords(p,a,b) | |
435 #define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b) | |
436 #define IDirect3DDevice_CreateMatrix(p,a) (p)->lpVtbl->CreateMatrix(p,a) | |
437 #define IDirect3DDevice_SetMatrix(p,a,b) (p)->lpVtbl->SetMatrix(p,a,b) | |
438 #define IDirect3DDevice_GetMatrix(p,a,b) (p)->lpVtbl->GetMatrix(p,a,b) | |
439 #define IDirect3DDevice_DeleteMatrix(p,a) (p)->lpVtbl->DeleteMatrix(p,a) | |
440 #define IDirect3DDevice_BeginScene(p) (p)->lpVtbl->BeginScene(p) | |
441 #define IDirect3DDevice_EndScene(p) (p)->lpVtbl->EndScene(p) | |
442 #define IDirect3DDevice_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) | |
443 #else | |
444 #define IDirect3DDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
445 #define IDirect3DDevice_AddRef(p) (p)->AddRef() | |
446 #define IDirect3DDevice_Release(p) (p)->Release() | |
447 #define IDirect3DDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c) | |
448 #define IDirect3DDevice_GetCaps(p,a,b) (p)->GetCaps(a,b) | |
449 #define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b) | |
450 #define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->CreateExecuteBuffer(a,b,c) | |
451 #define IDirect3DDevice_GetStats(p,a) (p)->GetStats(a) | |
452 #define IDirect3DDevice_Execute(p,a,b,c) (p)->Execute(a,b,c) | |
453 #define IDirect3DDevice_AddViewport(p,a) (p)->AddViewport(a) | |
454 #define IDirect3DDevice_DeleteViewport(p,a) (p)->DeleteViewport(a) | |
455 #define IDirect3DDevice_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c) | |
456 #define IDirect3DDevice_Pick(p,a,b,c,d) (p)->Pick(a,b,c,d) | |
457 #define IDirect3DDevice_GetPickRecords(p,a,b) (p)->GetPickRecords(a,b) | |
458 #define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b) | |
459 #define IDirect3DDevice_CreateMatrix(p,a) (p)->CreateMatrix(a) | |
460 #define IDirect3DDevice_SetMatrix(p,a,b) (p)->SetMatrix(a,b) | |
461 #define IDirect3DDevice_GetMatrix(p,a,b) (p)->GetMatrix(a,b) | |
462 #define IDirect3DDevice_DeleteMatrix(p,a) (p)->DeleteMatrix(a) | |
463 #define IDirect3DDevice_BeginScene(p) (p)->BeginScene() | |
464 #define IDirect3DDevice_EndScene(p) (p)->EndScene() | |
465 #define IDirect3DDevice_GetDirect3D(p,a) (p)->GetDirect3D(a) | |
466 #endif | |
467 | |
468 #if(DIRECT3D_VERSION >= 0x0500) | |
469 #undef INTERFACE | |
470 #define INTERFACE IDirect3DDevice2 | |
471 | |
472 DECLARE_INTERFACE_(IDirect3DDevice2, IUnknown) | |
473 { | |
474 /*** IUnknown methods ***/ | |
475 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
476 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
477 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
478 | |
479 /*** IDirect3DDevice2 methods ***/ | |
480 STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC,LPD3DDEVICEDESC) PURE; | |
481 STDMETHOD(SwapTextureHandles)(THIS_ LPDIRECT3DTEXTURE2,LPDIRECT3DTEXTURE2) PURE; | |
482 STDMETHOD(GetStats)(THIS_ LPD3DSTATS) PURE; | |
483 STDMETHOD(AddViewport)(THIS_ LPDIRECT3DVIEWPORT2) PURE; | |
484 STDMETHOD(DeleteViewport)(THIS_ LPDIRECT3DVIEWPORT2) PURE; | |
485 STDMETHOD(NextViewport)(THIS_ LPDIRECT3DVIEWPORT2,LPDIRECT3DVIEWPORT2*,DWORD) PURE; | |
486 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK,LPVOID) PURE; | |
487 STDMETHOD(BeginScene)(THIS) PURE; | |
488 STDMETHOD(EndScene)(THIS) PURE; | |
489 STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D2*) PURE; | |
490 STDMETHOD(SetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT2) PURE; | |
491 STDMETHOD(GetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT2 *) PURE; | |
492 STDMETHOD(SetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE,DWORD) PURE; | |
493 STDMETHOD(GetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE *) PURE; | |
494 STDMETHOD(Begin)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,DWORD) PURE; | |
495 STDMETHOD(BeginIndexed)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,LPVOID,DWORD,DWORD) PURE; | |
496 STDMETHOD(Vertex)(THIS_ LPVOID) PURE; | |
497 STDMETHOD(Index)(THIS_ WORD) PURE; | |
498 STDMETHOD(End)(THIS_ DWORD) PURE; | |
499 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE,LPDWORD) PURE; | |
500 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE,DWORD) PURE; | |
501 STDMETHOD(GetLightState)(THIS_ D3DLIGHTSTATETYPE,LPDWORD) PURE; | |
502 STDMETHOD(SetLightState)(THIS_ D3DLIGHTSTATETYPE,DWORD) PURE; | |
503 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; | |
504 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; | |
505 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; | |
506 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,LPVOID,DWORD,DWORD) PURE; | |
507 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,D3DVERTEXTYPE,LPVOID,DWORD,LPWORD,DWORD,DWORD) PURE; | |
508 STDMETHOD(SetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; | |
509 STDMETHOD(GetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; | |
510 }; | |
511 | |
512 typedef struct IDirect3DDevice2 *LPDIRECT3DDEVICE2; | |
513 | |
514 #if !defined(__cplusplus) || defined(CINTERFACE) | |
515 #define IDirect3DDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
516 #define IDirect3DDevice2_AddRef(p) (p)->lpVtbl->AddRef(p) | |
517 #define IDirect3DDevice2_Release(p) (p)->lpVtbl->Release(p) | |
518 #define IDirect3DDevice2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) | |
519 #define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b) | |
520 #define IDirect3DDevice2_GetStats(p,a) (p)->lpVtbl->GetStats(p,a) | |
521 #define IDirect3DDevice2_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a) | |
522 #define IDirect3DDevice2_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a) | |
523 #define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c) | |
524 #define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b) | |
525 #define IDirect3DDevice2_BeginScene(p) (p)->lpVtbl->BeginScene(p) | |
526 #define IDirect3DDevice2_EndScene(p) (p)->lpVtbl->EndScene(p) | |
527 #define IDirect3DDevice2_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) | |
528 #define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a) | |
529 #define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a) | |
530 #define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) | |
531 #define IDirect3DDevice2_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a) | |
532 #define IDirect3DDevice2_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c) | |
533 #define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e) | |
534 #define IDirect3DDevice2_Vertex(p,a) (p)->lpVtbl->Vertex(p,a) | |
535 #define IDirect3DDevice2_Index(p,a) (p)->lpVtbl->Index(p,a) | |
536 #define IDirect3DDevice2_End(p,a) (p)->lpVtbl->End(p,a) | |
537 #define IDirect3DDevice2_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) | |
538 #define IDirect3DDevice2_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) | |
539 #define IDirect3DDevice2_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b) | |
540 #define IDirect3DDevice2_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b) | |
541 #define IDirect3DDevice2_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) | |
542 #define IDirect3DDevice2_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) | |
543 #define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) | |
544 #define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e) | |
545 #define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g) | |
546 #define IDirect3DDevice2_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) | |
547 #define IDirect3DDevice2_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) | |
548 #else | |
549 #define IDirect3DDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
550 #define IDirect3DDevice2_AddRef(p) (p)->AddRef() | |
551 #define IDirect3DDevice2_Release(p) (p)->Release() | |
552 #define IDirect3DDevice2_GetCaps(p,a,b) (p)->GetCaps(a,b) | |
553 #define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b) | |
554 #define IDirect3DDevice2_GetStats(p,a) (p)->GetStats(a) | |
555 #define IDirect3DDevice2_AddViewport(p,a) (p)->AddViewport(a) | |
556 #define IDirect3DDevice2_DeleteViewport(p,a) (p)->DeleteViewport(a) | |
557 #define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c) | |
558 #define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b) | |
559 #define IDirect3DDevice2_BeginScene(p) (p)->BeginScene() | |
560 #define IDirect3DDevice2_EndScene(p) (p)->EndScene() | |
561 #define IDirect3DDevice2_GetDirect3D(p,a) (p)->GetDirect3D(a) | |
562 #define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a) | |
563 #define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a) | |
564 #define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) | |
565 #define IDirect3DDevice2_GetRenderTarget(p,a) (p)->GetRenderTarget(a) | |
566 #define IDirect3DDevice2_Begin(p,a,b,c) (p)->Begin(a,b,c) | |
567 #define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e) | |
568 #define IDirect3DDevice2_Vertex(p,a) (p)->Vertex(a) | |
569 #define IDirect3DDevice2_Index(p,a) (p)->Index(a) | |
570 #define IDirect3DDevice2_End(p,a) (p)->End(a) | |
571 #define IDirect3DDevice2_GetRenderState(p,a,b) (p)->GetRenderState(a,b) | |
572 #define IDirect3DDevice2_SetRenderState(p,a,b) (p)->SetRenderState(a,b) | |
573 #define IDirect3DDevice2_GetLightState(p,a,b) (p)->GetLightState(a,b) | |
574 #define IDirect3DDevice2_SetLightState(p,a,b) (p)->SetLightState(a,b) | |
575 #define IDirect3DDevice2_SetTransform(p,a,b) (p)->SetTransform(a,b) | |
576 #define IDirect3DDevice2_GetTransform(p,a,b) (p)->GetTransform(a,b) | |
577 #define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) | |
578 #define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e) | |
579 #define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g) | |
580 #define IDirect3DDevice2_SetClipStatus(p,a) (p)->SetClipStatus(a) | |
581 #define IDirect3DDevice2_GetClipStatus(p,a) (p)->GetClipStatus(a) | |
582 #endif | |
583 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
584 | |
585 #if(DIRECT3D_VERSION >= 0x0600) | |
586 #undef INTERFACE | |
587 #define INTERFACE IDirect3DDevice3 | |
588 | |
589 DECLARE_INTERFACE_(IDirect3DDevice3, IUnknown) | |
590 { | |
591 /*** IUnknown methods ***/ | |
592 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
593 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
594 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
595 | |
596 /*** IDirect3DDevice3 methods ***/ | |
597 STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC,LPD3DDEVICEDESC) PURE; | |
598 STDMETHOD(GetStats)(THIS_ LPD3DSTATS) PURE; | |
599 STDMETHOD(AddViewport)(THIS_ LPDIRECT3DVIEWPORT3) PURE; | |
600 STDMETHOD(DeleteViewport)(THIS_ LPDIRECT3DVIEWPORT3) PURE; | |
601 STDMETHOD(NextViewport)(THIS_ LPDIRECT3DVIEWPORT3,LPDIRECT3DVIEWPORT3*,DWORD) PURE; | |
602 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE; | |
603 STDMETHOD(BeginScene)(THIS) PURE; | |
604 STDMETHOD(EndScene)(THIS) PURE; | |
605 STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D3*) PURE; | |
606 STDMETHOD(SetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT3) PURE; | |
607 STDMETHOD(GetCurrentViewport)(THIS_ LPDIRECT3DVIEWPORT3 *) PURE; | |
608 STDMETHOD(SetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE4,DWORD) PURE; | |
609 STDMETHOD(GetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE4 *) PURE; | |
610 STDMETHOD(Begin)(THIS_ D3DPRIMITIVETYPE,DWORD,DWORD) PURE; | |
611 STDMETHOD(BeginIndexed)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,DWORD) PURE; | |
612 STDMETHOD(Vertex)(THIS_ LPVOID) PURE; | |
613 STDMETHOD(Index)(THIS_ WORD) PURE; | |
614 STDMETHOD(End)(THIS_ DWORD) PURE; | |
615 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE,LPDWORD) PURE; | |
616 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE,DWORD) PURE; | |
617 STDMETHOD(GetLightState)(THIS_ D3DLIGHTSTATETYPE,LPDWORD) PURE; | |
618 STDMETHOD(SetLightState)(THIS_ D3DLIGHTSTATETYPE,DWORD) PURE; | |
619 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; | |
620 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; | |
621 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; | |
622 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,DWORD) PURE; | |
623 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,LPWORD,DWORD,DWORD) PURE; | |
624 STDMETHOD(SetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; | |
625 STDMETHOD(GetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; | |
626 STDMETHOD(DrawPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,DWORD) PURE; | |
627 STDMETHOD(DrawIndexedPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,LPWORD,DWORD,DWORD) PURE; | |
628 STDMETHOD(DrawPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER,DWORD,DWORD,DWORD) PURE; | |
629 STDMETHOD(DrawIndexedPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER,LPWORD,DWORD,DWORD) PURE; | |
630 STDMETHOD(ComputeSphereVisibility)(THIS_ LPD3DVECTOR,LPD3DVALUE,DWORD,DWORD,LPDWORD) PURE; | |
631 STDMETHOD(GetTexture)(THIS_ DWORD,LPDIRECT3DTEXTURE2 *) PURE; | |
632 STDMETHOD(SetTexture)(THIS_ DWORD,LPDIRECT3DTEXTURE2) PURE; | |
633 STDMETHOD(GetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,LPDWORD) PURE; | |
634 STDMETHOD(SetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,DWORD) PURE; | |
635 STDMETHOD(ValidateDevice)(THIS_ LPDWORD) PURE; | |
636 }; | |
637 | |
638 typedef struct IDirect3DDevice3 *LPDIRECT3DDEVICE3; | |
639 | |
640 #if !defined(__cplusplus) || defined(CINTERFACE) | |
641 #define IDirect3DDevice3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
642 #define IDirect3DDevice3_AddRef(p) (p)->lpVtbl->AddRef(p) | |
643 #define IDirect3DDevice3_Release(p) (p)->lpVtbl->Release(p) | |
644 #define IDirect3DDevice3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b) | |
645 #define IDirect3DDevice3_GetStats(p,a) (p)->lpVtbl->GetStats(p,a) | |
646 #define IDirect3DDevice3_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a) | |
647 #define IDirect3DDevice3_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a) | |
648 #define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c) | |
649 #define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b) | |
650 #define IDirect3DDevice3_BeginScene(p) (p)->lpVtbl->BeginScene(p) | |
651 #define IDirect3DDevice3_EndScene(p) (p)->lpVtbl->EndScene(p) | |
652 #define IDirect3DDevice3_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) | |
653 #define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a) | |
654 #define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a) | |
655 #define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) | |
656 #define IDirect3DDevice3_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a) | |
657 #define IDirect3DDevice3_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c) | |
658 #define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e) | |
659 #define IDirect3DDevice3_Vertex(p,a) (p)->lpVtbl->Vertex(p,a) | |
660 #define IDirect3DDevice3_Index(p,a) (p)->lpVtbl->Index(p,a) | |
661 #define IDirect3DDevice3_End(p,a) (p)->lpVtbl->End(p,a) | |
662 #define IDirect3DDevice3_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) | |
663 #define IDirect3DDevice3_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) | |
664 #define IDirect3DDevice3_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b) | |
665 #define IDirect3DDevice3_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b) | |
666 #define IDirect3DDevice3_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) | |
667 #define IDirect3DDevice3_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) | |
668 #define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) | |
669 #define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e) | |
670 #define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g) | |
671 #define IDirect3DDevice3_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) | |
672 #define IDirect3DDevice3_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) | |
673 #define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e) | |
674 #define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) | |
675 #define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e) | |
676 #define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e) | |
677 #define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e) | |
678 #define IDirect3DDevice3_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b) | |
679 #define IDirect3DDevice3_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b) | |
680 #define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c) | |
681 #define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c) | |
682 #define IDirect3DDevice3_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a) | |
683 #else | |
684 #define IDirect3DDevice3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
685 #define IDirect3DDevice3_AddRef(p) (p)->AddRef() | |
686 #define IDirect3DDevice3_Release(p) (p)->Release() | |
687 #define IDirect3DDevice3_GetCaps(p,a,b) (p)->GetCaps(a,b) | |
688 #define IDirect3DDevice3_GetStats(p,a) (p)->GetStats(a) | |
689 #define IDirect3DDevice3_AddViewport(p,a) (p)->AddViewport(a) | |
690 #define IDirect3DDevice3_DeleteViewport(p,a) (p)->DeleteViewport(a) | |
691 #define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c) | |
692 #define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b) | |
693 #define IDirect3DDevice3_BeginScene(p) (p)->BeginScene() | |
694 #define IDirect3DDevice3_EndScene(p) (p)->EndScene() | |
695 #define IDirect3DDevice3_GetDirect3D(p,a) (p)->GetDirect3D(a) | |
696 #define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a) | |
697 #define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a) | |
698 #define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) | |
699 #define IDirect3DDevice3_GetRenderTarget(p,a) (p)->GetRenderTarget(a) | |
700 #define IDirect3DDevice3_Begin(p,a,b,c) (p)->Begin(a,b,c) | |
701 #define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e) | |
702 #define IDirect3DDevice3_Vertex(p,a) (p)->Vertex(a) | |
703 #define IDirect3DDevice3_Index(p,a) (p)->Index(a) | |
704 #define IDirect3DDevice3_End(p,a) (p)->End(a) | |
705 #define IDirect3DDevice3_GetRenderState(p,a,b) (p)->GetRenderState(a,b) | |
706 #define IDirect3DDevice3_SetRenderState(p,a,b) (p)->SetRenderState(a,b) | |
707 #define IDirect3DDevice3_GetLightState(p,a,b) (p)->GetLightState(a,b) | |
708 #define IDirect3DDevice3_SetLightState(p,a,b) (p)->SetLightState(a,b) | |
709 #define IDirect3DDevice3_SetTransform(p,a,b) (p)->SetTransform(a,b) | |
710 #define IDirect3DDevice3_GetTransform(p,a,b) (p)->GetTransform(a,b) | |
711 #define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) | |
712 #define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e) | |
713 #define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g) | |
714 #define IDirect3DDevice3_SetClipStatus(p,a) (p)->SetClipStatus(a) | |
715 #define IDirect3DDevice3_GetClipStatus(p,a) (p)->GetClipStatus(a) | |
716 #define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e) | |
717 #define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g) | |
718 #define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e) | |
719 #define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e) | |
720 #define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e) | |
721 #define IDirect3DDevice3_GetTexture(p,a,b) (p)->GetTexture(a,b) | |
722 #define IDirect3DDevice3_SetTexture(p,a,b) (p)->SetTexture(a,b) | |
723 #define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c) | |
724 #define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c) | |
725 #define IDirect3DDevice3_ValidateDevice(p,a) (p)->ValidateDevice(a) | |
726 #endif | |
727 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
728 | |
729 #if(DIRECT3D_VERSION >= 0x0700) | |
730 #undef INTERFACE | |
731 #define INTERFACE IDirect3DDevice7 | |
732 | |
733 DECLARE_INTERFACE_(IDirect3DDevice7, IUnknown) | |
734 { | |
735 /*** IUnknown methods ***/ | |
736 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
737 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
738 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
739 | |
740 /*** IDirect3DDevice7 methods ***/ | |
741 STDMETHOD(GetCaps)(THIS_ LPD3DDEVICEDESC7) PURE; | |
742 STDMETHOD(EnumTextureFormats)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK,LPVOID) PURE; | |
743 STDMETHOD(BeginScene)(THIS) PURE; | |
744 STDMETHOD(EndScene)(THIS) PURE; | |
745 STDMETHOD(GetDirect3D)(THIS_ LPDIRECT3D7*) PURE; | |
746 STDMETHOD(SetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE7,DWORD) PURE; | |
747 STDMETHOD(GetRenderTarget)(THIS_ LPDIRECTDRAWSURFACE7 *) PURE; | |
748 STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD,D3DCOLOR,D3DVALUE,DWORD) PURE; | |
749 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; | |
750 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; | |
751 STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT7) PURE; | |
752 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,LPD3DMATRIX) PURE; | |
753 STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT7) PURE; | |
754 STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL7) PURE; | |
755 STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL7) PURE; | |
756 STDMETHOD(SetLight)(THIS_ DWORD,LPD3DLIGHT7) PURE; | |
757 STDMETHOD(GetLight)(THIS_ DWORD,LPD3DLIGHT7) PURE; | |
758 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE,DWORD) PURE; | |
759 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE,LPDWORD) PURE; | |
760 STDMETHOD(BeginStateBlock)(THIS) PURE; | |
761 STDMETHOD(EndStateBlock)(THIS_ LPDWORD) PURE; | |
762 STDMETHOD(PreLoad)(THIS_ LPDIRECTDRAWSURFACE7) PURE; | |
763 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,DWORD) PURE; | |
764 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,DWORD,LPVOID,DWORD,LPWORD,DWORD,DWORD) PURE; | |
765 STDMETHOD(SetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; | |
766 STDMETHOD(GetClipStatus)(THIS_ LPD3DCLIPSTATUS) PURE; | |
767 STDMETHOD(DrawPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,DWORD) PURE; | |
768 STDMETHOD(DrawIndexedPrimitiveStrided)(THIS_ D3DPRIMITIVETYPE,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,LPWORD,DWORD,DWORD) PURE; | |
769 STDMETHOD(DrawPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER7,DWORD,DWORD,DWORD) PURE; | |
770 STDMETHOD(DrawIndexedPrimitiveVB)(THIS_ D3DPRIMITIVETYPE,LPDIRECT3DVERTEXBUFFER7,DWORD,DWORD,LPWORD,DWORD,DWORD) PURE; | |
771 STDMETHOD(ComputeSphereVisibility)(THIS_ LPD3DVECTOR,LPD3DVALUE,DWORD,DWORD,LPDWORD) PURE; | |
772 STDMETHOD(GetTexture)(THIS_ DWORD,LPDIRECTDRAWSURFACE7 *) PURE; | |
773 STDMETHOD(SetTexture)(THIS_ DWORD,LPDIRECTDRAWSURFACE7) PURE; | |
774 STDMETHOD(GetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,LPDWORD) PURE; | |
775 STDMETHOD(SetTextureStageState)(THIS_ DWORD,D3DTEXTURESTAGESTATETYPE,DWORD) PURE; | |
776 STDMETHOD(ValidateDevice)(THIS_ LPDWORD) PURE; | |
777 STDMETHOD(ApplyStateBlock)(THIS_ DWORD) PURE; | |
778 STDMETHOD(CaptureStateBlock)(THIS_ DWORD) PURE; | |
779 STDMETHOD(DeleteStateBlock)(THIS_ DWORD) PURE; | |
780 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE,LPDWORD) PURE; | |
781 STDMETHOD(Load)(THIS_ LPDIRECTDRAWSURFACE7,LPPOINT,LPDIRECTDRAWSURFACE7,LPRECT,DWORD) PURE; | |
782 STDMETHOD(LightEnable)(THIS_ DWORD,BOOL) PURE; | |
783 STDMETHOD(GetLightEnable)(THIS_ DWORD,BOOL*) PURE; | |
784 STDMETHOD(SetClipPlane)(THIS_ DWORD,D3DVALUE*) PURE; | |
785 STDMETHOD(GetClipPlane)(THIS_ DWORD,D3DVALUE*) PURE; | |
786 STDMETHOD(GetInfo)(THIS_ DWORD,LPVOID,DWORD) PURE; | |
787 }; | |
788 | |
789 typedef struct IDirect3DDevice7 *LPDIRECT3DDEVICE7; | |
790 | |
791 #if !defined(__cplusplus) || defined(CINTERFACE) | |
792 #define IDirect3DDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
793 #define IDirect3DDevice7_AddRef(p) (p)->lpVtbl->AddRef(p) | |
794 #define IDirect3DDevice7_Release(p) (p)->lpVtbl->Release(p) | |
795 #define IDirect3DDevice7_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a) | |
796 #define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b) | |
797 #define IDirect3DDevice7_BeginScene(p) (p)->lpVtbl->BeginScene(p) | |
798 #define IDirect3DDevice7_EndScene(p) (p)->lpVtbl->EndScene(p) | |
799 #define IDirect3DDevice7_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a) | |
800 #define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b) | |
801 #define IDirect3DDevice7_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a) | |
802 #define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f) | |
803 #define IDirect3DDevice7_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b) | |
804 #define IDirect3DDevice7_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b) | |
805 #define IDirect3DDevice7_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) | |
806 #define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b) | |
807 #define IDirect3DDevice7_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) | |
808 #define IDirect3DDevice7_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) | |
809 #define IDirect3DDevice7_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) | |
810 #define IDirect3DDevice7_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b) | |
811 #define IDirect3DDevice7_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b) | |
812 #define IDirect3DDevice7_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b) | |
813 #define IDirect3DDevice7_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b) | |
814 #define IDirect3DDevice7_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p) | |
815 #define IDirect3DDevice7_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a) | |
816 #define IDirect3DDevice7_PreLoad(p,a) (p)->lpVtbl->PreLoad(p,a) | |
817 #define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e) | |
818 #define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g) | |
819 #define IDirect3DDevice7_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a) | |
820 #define IDirect3DDevice7_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a) | |
821 #define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e) | |
822 #define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) | |
823 #define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e) | |
824 #define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) | |
825 #define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e) | |
826 #define IDirect3DDevice7_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b) | |
827 #define IDirect3DDevice7_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b) | |
828 #define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c) | |
829 #define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c) | |
830 #define IDirect3DDevice7_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a) | |
831 #define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a) | |
832 #define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a) | |
833 #define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a) | |
834 #define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b) | |
835 #define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->lpVtbl->Load(p,a,b,c,d,e) | |
836 #define IDirect3DDevice7_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b) | |
837 #define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b) | |
838 #define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b) | |
839 #define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b) | |
840 #define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c) | |
841 #else | |
842 #define IDirect3DDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
843 #define IDirect3DDevice7_AddRef(p) (p)->AddRef() | |
844 #define IDirect3DDevice7_Release(p) (p)->Release() | |
845 #define IDirect3DDevice7_GetCaps(p,a) (p)->GetCaps(a) | |
846 #define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b) | |
847 #define IDirect3DDevice7_BeginScene(p) (p)->BeginScene() | |
848 #define IDirect3DDevice7_EndScene(p) (p)->EndScene() | |
849 #define IDirect3DDevice7_GetDirect3D(p,a) (p)->GetDirect3D(a) | |
850 #define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b) | |
851 #define IDirect3DDevice7_GetRenderTarget(p,a) (p)->GetRenderTarget(a) | |
852 #define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f) | |
853 #define IDirect3DDevice7_SetTransform(p,a,b) (p)->SetTransform(a,b) | |
854 #define IDirect3DDevice7_GetTransform(p,a,b) (p)->GetTransform(a,b) | |
855 #define IDirect3DDevice7_SetViewport(p,a) (p)->SetViewport(a) | |
856 #define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b) | |
857 #define IDirect3DDevice7_GetViewport(p,a) (p)->GetViewport(a) | |
858 #define IDirect3DDevice7_SetMaterial(p,a) (p)->SetMaterial(a) | |
859 #define IDirect3DDevice7_GetMaterial(p,a) (p)->GetMaterial(a) | |
860 #define IDirect3DDevice7_SetLight(p,a,b) (p)->SetLight(a,b) | |
861 #define IDirect3DDevice7_GetLight(p,a,b) (p)->GetLight(a,b) | |
862 #define IDirect3DDevice7_SetRenderState(p,a,b) (p)->SetRenderState(a,b) | |
863 #define IDirect3DDevice7_GetRenderState(p,a,b) (p)->GetRenderState(a,b) | |
864 #define IDirect3DDevice7_BeginStateBlock(p) (p)->BeginStateBlock() | |
865 #define IDirect3DDevice7_EndStateBlock(p,a) (p)->EndStateBlock(a) | |
866 #define IDirect3DDevice7_PreLoad(p,a) (p)->PreLoad(a) | |
867 #define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e) | |
868 #define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g) | |
869 #define IDirect3DDevice7_SetClipStatus(p,a) (p)->SetClipStatus(a) | |
870 #define IDirect3DDevice7_GetClipStatus(p,a) (p)->GetClipStatus(a) | |
871 #define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e) | |
872 #define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g) | |
873 #define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e) | |
874 #define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e,f,g) | |
875 #define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e) | |
876 #define IDirect3DDevice7_GetTexture(p,a,b) (p)->GetTexture(a,b) | |
877 #define IDirect3DDevice7_SetTexture(p,a,b) (p)->SetTexture(a,b) | |
878 #define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c) | |
879 #define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c) | |
880 #define IDirect3DDevice7_ValidateDevice(p,a) (p)->ValidateDevice(a) | |
881 #define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a) | |
882 #define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a) | |
883 #define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a) | |
884 #define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b) | |
885 #define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->Load(a,b,c,d,e) | |
886 #define IDirect3DDevice7_LightEnable(p,a,b) (p)->LightEnable(a,b) | |
887 #define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b) | |
888 #define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b) | |
889 #define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b) | |
890 #define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c) | |
891 #endif | |
892 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
893 | |
894 /* | |
895 * Execute Buffer interface | |
896 */ | |
897 #undef INTERFACE | |
898 #define INTERFACE IDirect3DExecuteBuffer | |
899 | |
900 DECLARE_INTERFACE_(IDirect3DExecuteBuffer, IUnknown) | |
901 { | |
902 /*** IUnknown methods ***/ | |
903 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
904 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
905 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
906 | |
907 /*** IDirect3DExecuteBuffer methods ***/ | |
908 STDMETHOD(Initialize)(THIS_ LPDIRECT3DDEVICE,LPD3DEXECUTEBUFFERDESC) PURE; | |
909 STDMETHOD(Lock)(THIS_ LPD3DEXECUTEBUFFERDESC) PURE; | |
910 STDMETHOD(Unlock)(THIS) PURE; | |
911 STDMETHOD(SetExecuteData)(THIS_ LPD3DEXECUTEDATA) PURE; | |
912 STDMETHOD(GetExecuteData)(THIS_ LPD3DEXECUTEDATA) PURE; | |
913 STDMETHOD(Validate)(THIS_ LPDWORD,LPD3DVALIDATECALLBACK,LPVOID,DWORD) PURE; | |
914 STDMETHOD(Optimize)(THIS_ DWORD) PURE; | |
915 }; | |
916 | |
917 typedef struct IDirect3DExecuteBuffer *LPDIRECT3DEXECUTEBUFFER; | |
918 | |
919 #if !defined(__cplusplus) || defined(CINTERFACE) | |
920 #define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
921 #define IDirect3DExecuteBuffer_AddRef(p) (p)->lpVtbl->AddRef(p) | |
922 #define IDirect3DExecuteBuffer_Release(p) (p)->lpVtbl->Release(p) | |
923 #define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) | |
924 #define IDirect3DExecuteBuffer_Lock(p,a) (p)->lpVtbl->Lock(p,a) | |
925 #define IDirect3DExecuteBuffer_Unlock(p) (p)->lpVtbl->Unlock(p) | |
926 #define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->lpVtbl->SetExecuteData(p,a) | |
927 #define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->lpVtbl->GetExecuteData(p,a) | |
928 #define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->lpVtbl->Validate(p,a,b,c,d) | |
929 #define IDirect3DExecuteBuffer_Optimize(p,a) (p)->lpVtbl->Optimize(p,a) | |
930 #else | |
931 #define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
932 #define IDirect3DExecuteBuffer_AddRef(p) (p)->AddRef() | |
933 #define IDirect3DExecuteBuffer_Release(p) (p)->Release() | |
934 #define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->Initialize(a,b) | |
935 #define IDirect3DExecuteBuffer_Lock(p,a) (p)->Lock(a) | |
936 #define IDirect3DExecuteBuffer_Unlock(p) (p)->Unlock() | |
937 #define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->SetExecuteData(a) | |
938 #define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->GetExecuteData(a) | |
939 #define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->Validate(a,b,c,d) | |
940 #define IDirect3DExecuteBuffer_Optimize(p,a) (p)->Optimize(a) | |
941 #endif | |
942 | |
943 /* | |
944 * Light interfaces | |
945 */ | |
946 #undef INTERFACE | |
947 #define INTERFACE IDirect3DLight | |
948 | |
949 DECLARE_INTERFACE_(IDirect3DLight, IUnknown) | |
950 { | |
951 /*** IUnknown methods ***/ | |
952 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
953 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
954 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
955 | |
956 /*** IDirect3DLight methods ***/ | |
957 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; | |
958 STDMETHOD(SetLight)(THIS_ LPD3DLIGHT) PURE; | |
959 STDMETHOD(GetLight)(THIS_ LPD3DLIGHT) PURE; | |
960 }; | |
961 | |
962 typedef struct IDirect3DLight *LPDIRECT3DLIGHT; | |
963 | |
964 #if !defined(__cplusplus) || defined(CINTERFACE) | |
965 #define IDirect3DLight_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
966 #define IDirect3DLight_AddRef(p) (p)->lpVtbl->AddRef(p) | |
967 #define IDirect3DLight_Release(p) (p)->lpVtbl->Release(p) | |
968 #define IDirect3DLight_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) | |
969 #define IDirect3DLight_SetLight(p,a) (p)->lpVtbl->SetLight(p,a) | |
970 #define IDirect3DLight_GetLight(p,a) (p)->lpVtbl->GetLight(p,a) | |
971 #else | |
972 #define IDirect3DLight_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
973 #define IDirect3DLight_AddRef(p) (p)->AddRef() | |
974 #define IDirect3DLight_Release(p) (p)->Release() | |
975 #define IDirect3DLight_Initialize(p,a) (p)->Initialize(a) | |
976 #define IDirect3DLight_SetLight(p,a) (p)->SetLight(a) | |
977 #define IDirect3DLight_GetLight(p,a) (p)->GetLight(a) | |
978 #endif | |
979 | |
980 /* | |
981 * Material interfaces | |
982 */ | |
983 #undef INTERFACE | |
984 #define INTERFACE IDirect3DMaterial | |
985 | |
986 DECLARE_INTERFACE_(IDirect3DMaterial, IUnknown) | |
987 { | |
988 /*** IUnknown methods ***/ | |
989 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
990 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
991 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
992 | |
993 /*** IDirect3DMaterial methods ***/ | |
994 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; | |
995 STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL) PURE; | |
996 STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL) PURE; | |
997 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE,LPD3DMATERIALHANDLE) PURE; | |
998 STDMETHOD(Reserve)(THIS) PURE; | |
999 STDMETHOD(Unreserve)(THIS) PURE; | |
1000 }; | |
1001 | |
1002 typedef struct IDirect3DMaterial *LPDIRECT3DMATERIAL; | |
1003 | |
1004 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1005 #define IDirect3DMaterial_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1006 #define IDirect3DMaterial_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1007 #define IDirect3DMaterial_Release(p) (p)->lpVtbl->Release(p) | |
1008 #define IDirect3DMaterial_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) | |
1009 #define IDirect3DMaterial_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) | |
1010 #define IDirect3DMaterial_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) | |
1011 #define IDirect3DMaterial_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) | |
1012 #define IDirect3DMaterial_Reserve(p) (p)->lpVtbl->Reserve(p) | |
1013 #define IDirect3DMaterial_Unreserve(p) (p)->lpVtbl->Unreserve(p) | |
1014 #else | |
1015 #define IDirect3DMaterial_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1016 #define IDirect3DMaterial_AddRef(p) (p)->AddRef() | |
1017 #define IDirect3DMaterial_Release(p) (p)->Release() | |
1018 #define IDirect3DMaterial_Initialize(p,a) (p)->Initialize(a) | |
1019 #define IDirect3DMaterial_SetMaterial(p,a) (p)->SetMaterial(a) | |
1020 #define IDirect3DMaterial_GetMaterial(p,a) (p)->GetMaterial(a) | |
1021 #define IDirect3DMaterial_GetHandle(p,a,b) (p)->GetHandle(a,b) | |
1022 #define IDirect3DMaterial_Reserve(p) (p)->Reserve() | |
1023 #define IDirect3DMaterial_Unreserve(p) (p)->Unreserve() | |
1024 #endif | |
1025 | |
1026 #if(DIRECT3D_VERSION >= 0x0500) | |
1027 #undef INTERFACE | |
1028 #define INTERFACE IDirect3DMaterial2 | |
1029 | |
1030 DECLARE_INTERFACE_(IDirect3DMaterial2, IUnknown) | |
1031 { | |
1032 /*** IUnknown methods ***/ | |
1033 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
1034 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
1035 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
1036 | |
1037 /*** IDirect3DMaterial2 methods ***/ | |
1038 STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL) PURE; | |
1039 STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL) PURE; | |
1040 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE2,LPD3DMATERIALHANDLE) PURE; | |
1041 }; | |
1042 | |
1043 typedef struct IDirect3DMaterial2 *LPDIRECT3DMATERIAL2; | |
1044 | |
1045 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1046 #define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1047 #define IDirect3DMaterial2_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1048 #define IDirect3DMaterial2_Release(p) (p)->lpVtbl->Release(p) | |
1049 #define IDirect3DMaterial2_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) | |
1050 #define IDirect3DMaterial2_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) | |
1051 #define IDirect3DMaterial2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) | |
1052 #else | |
1053 #define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1054 #define IDirect3DMaterial2_AddRef(p) (p)->AddRef() | |
1055 #define IDirect3DMaterial2_Release(p) (p)->Release() | |
1056 #define IDirect3DMaterial2_SetMaterial(p,a) (p)->SetMaterial(a) | |
1057 #define IDirect3DMaterial2_GetMaterial(p,a) (p)->GetMaterial(a) | |
1058 #define IDirect3DMaterial2_GetHandle(p,a,b) (p)->GetHandle(a,b) | |
1059 #endif | |
1060 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1061 | |
1062 #if(DIRECT3D_VERSION >= 0x0600) | |
1063 #undef INTERFACE | |
1064 #define INTERFACE IDirect3DMaterial3 | |
1065 | |
1066 DECLARE_INTERFACE_(IDirect3DMaterial3, IUnknown) | |
1067 { | |
1068 /*** IUnknown methods ***/ | |
1069 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
1070 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
1071 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
1072 | |
1073 /*** IDirect3DMaterial3 methods ***/ | |
1074 STDMETHOD(SetMaterial)(THIS_ LPD3DMATERIAL) PURE; | |
1075 STDMETHOD(GetMaterial)(THIS_ LPD3DMATERIAL) PURE; | |
1076 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE3,LPD3DMATERIALHANDLE) PURE; | |
1077 }; | |
1078 | |
1079 typedef struct IDirect3DMaterial3 *LPDIRECT3DMATERIAL3; | |
1080 | |
1081 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1082 #define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1083 #define IDirect3DMaterial3_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1084 #define IDirect3DMaterial3_Release(p) (p)->lpVtbl->Release(p) | |
1085 #define IDirect3DMaterial3_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a) | |
1086 #define IDirect3DMaterial3_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a) | |
1087 #define IDirect3DMaterial3_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) | |
1088 #else | |
1089 #define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1090 #define IDirect3DMaterial3_AddRef(p) (p)->AddRef() | |
1091 #define IDirect3DMaterial3_Release(p) (p)->Release() | |
1092 #define IDirect3DMaterial3_SetMaterial(p,a) (p)->SetMaterial(a) | |
1093 #define IDirect3DMaterial3_GetMaterial(p,a) (p)->GetMaterial(a) | |
1094 #define IDirect3DMaterial3_GetHandle(p,a,b) (p)->GetHandle(a,b) | |
1095 #endif | |
1096 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
1097 | |
1098 /* | |
1099 * Texture interfaces | |
1100 */ | |
1101 #undef INTERFACE | |
1102 #define INTERFACE IDirect3DTexture | |
1103 | |
1104 DECLARE_INTERFACE_(IDirect3DTexture, IUnknown) | |
1105 { | |
1106 /*** IUnknown methods ***/ | |
1107 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
1108 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
1109 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
1110 | |
1111 /*** IDirect3DTexture methods ***/ | |
1112 STDMETHOD(Initialize)(THIS_ LPDIRECT3DDEVICE,LPDIRECTDRAWSURFACE) PURE; | |
1113 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE,LPD3DTEXTUREHANDLE) PURE; | |
1114 STDMETHOD(PaletteChanged)(THIS_ DWORD,DWORD) PURE; | |
1115 STDMETHOD(Load)(THIS_ LPDIRECT3DTEXTURE) PURE; | |
1116 STDMETHOD(Unload)(THIS) PURE; | |
1117 }; | |
1118 | |
1119 typedef struct IDirect3DTexture *LPDIRECT3DTEXTURE; | |
1120 | |
1121 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1122 #define IDirect3DTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1123 #define IDirect3DTexture_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1124 #define IDirect3DTexture_Release(p) (p)->lpVtbl->Release(p) | |
1125 #define IDirect3DTexture_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b) | |
1126 #define IDirect3DTexture_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) | |
1127 #define IDirect3DTexture_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b) | |
1128 #define IDirect3DTexture_Load(p,a) (p)->lpVtbl->Load(p,a) | |
1129 #define IDirect3DTexture_Unload(p) (p)->lpVtbl->Unload(p) | |
1130 #else | |
1131 #define IDirect3DTexture_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1132 #define IDirect3DTexture_AddRef(p) (p)->AddRef() | |
1133 #define IDirect3DTexture_Release(p) (p)->Release() | |
1134 #define IDirect3DTexture_Initialize(p,a,b) (p)->Initialize(a,b) | |
1135 #define IDirect3DTexture_GetHandle(p,a,b) (p)->GetHandle(a,b) | |
1136 #define IDirect3DTexture_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b) | |
1137 #define IDirect3DTexture_Load(p,a) (p)->Load(a) | |
1138 #define IDirect3DTexture_Unload(p) (p)->Unload() | |
1139 #endif | |
1140 | |
1141 #if(DIRECT3D_VERSION >= 0x0500) | |
1142 #undef INTERFACE | |
1143 #define INTERFACE IDirect3DTexture2 | |
1144 | |
1145 DECLARE_INTERFACE_(IDirect3DTexture2, IUnknown) | |
1146 { | |
1147 /*** IUnknown methods ***/ | |
1148 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
1149 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
1150 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
1151 | |
1152 /*** IDirect3DTexture2 methods ***/ | |
1153 STDMETHOD(GetHandle)(THIS_ LPDIRECT3DDEVICE2,LPD3DTEXTUREHANDLE) PURE; | |
1154 STDMETHOD(PaletteChanged)(THIS_ DWORD,DWORD) PURE; | |
1155 STDMETHOD(Load)(THIS_ LPDIRECT3DTEXTURE2) PURE; | |
1156 }; | |
1157 | |
1158 typedef struct IDirect3DTexture2 *LPDIRECT3DTEXTURE2; | |
1159 | |
1160 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1161 #define IDirect3DTexture2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1162 #define IDirect3DTexture2_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1163 #define IDirect3DTexture2_Release(p) (p)->lpVtbl->Release(p) | |
1164 #define IDirect3DTexture2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b) | |
1165 #define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b) | |
1166 #define IDirect3DTexture2_Load(p,a) (p)->lpVtbl->Load(p,a) | |
1167 #else | |
1168 #define IDirect3DTexture2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1169 #define IDirect3DTexture2_AddRef(p) (p)->AddRef() | |
1170 #define IDirect3DTexture2_Release(p) (p)->Release() | |
1171 #define IDirect3DTexture2_GetHandle(p,a,b) (p)->GetHandle(a,b) | |
1172 #define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b) | |
1173 #define IDirect3DTexture2_Load(p,a) (p)->Load(a) | |
1174 #endif | |
1175 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1176 | |
1177 /* | |
1178 * OldViewport interfaces | |
1179 */ | |
1180 #undef INTERFACE | |
1181 #define INTERFACE IDirect3DViewport | |
1182 | |
1183 DECLARE_INTERFACE_(IDirect3DViewport, IUnknown) | |
1184 { | |
1185 /*** IUnknown methods ***/ | |
1186 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
1187 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
1188 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
1189 | |
1190 /*** IDirect3DViewport methods ***/ | |
1191 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; | |
1192 STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT) PURE; | |
1193 STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT) PURE; | |
1194 STDMETHOD(TransformVertices)(THIS_ DWORD,LPD3DTRANSFORMDATA,DWORD,LPDWORD) PURE; | |
1195 STDMETHOD(LightElements)(THIS_ DWORD,LPD3DLIGHTDATA) PURE; | |
1196 STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE) PURE; | |
1197 STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE,LPBOOL) PURE; | |
1198 STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE; | |
1199 STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE*,LPBOOL) PURE; | |
1200 STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD) PURE; | |
1201 STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT) PURE; | |
1202 STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT) PURE; | |
1203 STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT,LPDIRECT3DLIGHT*,DWORD) PURE; | |
1204 }; | |
1205 | |
1206 typedef struct IDirect3DViewport *LPDIRECT3DVIEWPORT; | |
1207 | |
1208 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1209 #define IDirect3DViewport_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1210 #define IDirect3DViewport_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1211 #define IDirect3DViewport_Release(p) (p)->lpVtbl->Release(p) | |
1212 #define IDirect3DViewport_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) | |
1213 #define IDirect3DViewport_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) | |
1214 #define IDirect3DViewport_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) | |
1215 #define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d) | |
1216 #define IDirect3DViewport_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b) | |
1217 #define IDirect3DViewport_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a) | |
1218 #define IDirect3DViewport_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b) | |
1219 #define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a) | |
1220 #define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b) | |
1221 #define IDirect3DViewport_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c) | |
1222 #define IDirect3DViewport_AddLight(p,a) (p)->lpVtbl->AddLight(p,a) | |
1223 #define IDirect3DViewport_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a) | |
1224 #define IDirect3DViewport_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c) | |
1225 #else | |
1226 #define IDirect3DViewport_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1227 #define IDirect3DViewport_AddRef(p) (p)->AddRef() | |
1228 #define IDirect3DViewport_Release(p) (p)->Release() | |
1229 #define IDirect3DViewport_Initialize(p,a) (p)->Initialize(a) | |
1230 #define IDirect3DViewport_GetViewport(p,a) (p)->GetViewport(a) | |
1231 #define IDirect3DViewport_SetViewport(p,a) (p)->SetViewport(a) | |
1232 #define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d) | |
1233 #define IDirect3DViewport_LightElements(p,a,b) (p)->LightElements(a,b) | |
1234 #define IDirect3DViewport_SetBackground(p,a) (p)->SetBackground(a) | |
1235 #define IDirect3DViewport_GetBackground(p,a,b) (p)->GetBackground(a,b) | |
1236 #define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a) | |
1237 #define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b) | |
1238 #define IDirect3DViewport_Clear(p,a,b,c) (p)->Clear(a,b,c) | |
1239 #define IDirect3DViewport_AddLight(p,a) (p)->AddLight(a) | |
1240 #define IDirect3DViewport_DeleteLight(p,a) (p)->DeleteLight(a) | |
1241 #define IDirect3DViewport_NextLight(p,a,b,c) (p)->NextLight(a,b,c) | |
1242 #endif | |
1243 | |
1244 #if(DIRECT3D_VERSION >= 0x0500) | |
1245 #undef INTERFACE | |
1246 #define INTERFACE IDirect3DViewport2 | |
1247 | |
1248 DECLARE_INTERFACE_(IDirect3DViewport2, IDirect3DViewport) | |
1249 { | |
1250 /*** IUnknown methods ***/ | |
1251 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
1252 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
1253 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
1254 | |
1255 /*** IDirect3DViewport methods ***/ | |
1256 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; | |
1257 STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT) PURE; | |
1258 STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT) PURE; | |
1259 STDMETHOD(TransformVertices)(THIS_ DWORD,LPD3DTRANSFORMDATA,DWORD,LPDWORD) PURE; | |
1260 STDMETHOD(LightElements)(THIS_ DWORD,LPD3DLIGHTDATA) PURE; | |
1261 STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE) PURE; | |
1262 STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE,LPBOOL) PURE; | |
1263 STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE; | |
1264 STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE*,LPBOOL) PURE; | |
1265 STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD) PURE; | |
1266 STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT) PURE; | |
1267 STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT) PURE; | |
1268 STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT,LPDIRECT3DLIGHT*,DWORD) PURE; | |
1269 STDMETHOD(GetViewport2)(THIS_ LPD3DVIEWPORT2) PURE; | |
1270 STDMETHOD(SetViewport2)(THIS_ LPD3DVIEWPORT2) PURE; | |
1271 }; | |
1272 | |
1273 typedef struct IDirect3DViewport2 *LPDIRECT3DVIEWPORT2; | |
1274 | |
1275 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1276 #define IDirect3DViewport2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1277 #define IDirect3DViewport2_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1278 #define IDirect3DViewport2_Release(p) (p)->lpVtbl->Release(p) | |
1279 #define IDirect3DViewport2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) | |
1280 #define IDirect3DViewport2_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) | |
1281 #define IDirect3DViewport2_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) | |
1282 #define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d) | |
1283 #define IDirect3DViewport2_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b) | |
1284 #define IDirect3DViewport2_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a) | |
1285 #define IDirect3DViewport2_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b) | |
1286 #define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a) | |
1287 #define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b) | |
1288 #define IDirect3DViewport2_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c) | |
1289 #define IDirect3DViewport2_AddLight(p,a) (p)->lpVtbl->AddLight(p,a) | |
1290 #define IDirect3DViewport2_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a) | |
1291 #define IDirect3DViewport2_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c) | |
1292 #define IDirect3DViewport2_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a) | |
1293 #define IDirect3DViewport2_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a) | |
1294 #else | |
1295 #define IDirect3DViewport2_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1296 #define IDirect3DViewport2_AddRef(p) (p)->AddRef() | |
1297 #define IDirect3DViewport2_Release(p) (p)->Release() | |
1298 #define IDirect3DViewport2_Initialize(p,a) (p)->Initialize(a) | |
1299 #define IDirect3DViewport2_GetViewport(p,a) (p)->GetViewport(a) | |
1300 #define IDirect3DViewport2_SetViewport(p,a) (p)->SetViewport(a) | |
1301 #define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d) | |
1302 #define IDirect3DViewport2_LightElements(p,a,b) (p)->LightElements(a,b) | |
1303 #define IDirect3DViewport2_SetBackground(p,a) (p)->SetBackground(a) | |
1304 #define IDirect3DViewport2_GetBackground(p,a,b) (p)->GetBackground(a,b) | |
1305 #define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a) | |
1306 #define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b) | |
1307 #define IDirect3DViewport2_Clear(p,a,b,c) (p)->Clear(a,b,c) | |
1308 #define IDirect3DViewport2_AddLight(p,a) (p)->AddLight(a) | |
1309 #define IDirect3DViewport2_DeleteLight(p,a) (p)->DeleteLight(a) | |
1310 #define IDirect3DViewport2_NextLight(p,a,b,c) (p)->NextLight(a,b,c) | |
1311 #define IDirect3DViewport2_GetViewport2(p,a) (p)->GetViewport2(a) | |
1312 #define IDirect3DViewport2_SetViewport2(p,a) (p)->SetViewport2(a) | |
1313 #endif | |
1314 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1315 | |
1316 #if(DIRECT3D_VERSION >= 0x0600) | |
1317 | |
1318 #undef INTERFACE | |
1319 #define INTERFACE IDirect3DViewport3 | |
1320 | |
1321 DECLARE_INTERFACE_(IDirect3DViewport3, IDirect3DViewport2) | |
1322 { | |
1323 /*** IUnknown methods ***/ | |
1324 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
1325 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
1326 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
1327 | |
1328 /*** IDirect3DViewport2 methods ***/ | |
1329 STDMETHOD(Initialize)(THIS_ LPDIRECT3D) PURE; | |
1330 STDMETHOD(GetViewport)(THIS_ LPD3DVIEWPORT) PURE; | |
1331 STDMETHOD(SetViewport)(THIS_ LPD3DVIEWPORT) PURE; | |
1332 STDMETHOD(TransformVertices)(THIS_ DWORD,LPD3DTRANSFORMDATA,DWORD,LPDWORD) PURE; | |
1333 STDMETHOD(LightElements)(THIS_ DWORD,LPD3DLIGHTDATA) PURE; | |
1334 STDMETHOD(SetBackground)(THIS_ D3DMATERIALHANDLE) PURE; | |
1335 STDMETHOD(GetBackground)(THIS_ LPD3DMATERIALHANDLE,LPBOOL) PURE; | |
1336 STDMETHOD(SetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE) PURE; | |
1337 STDMETHOD(GetBackgroundDepth)(THIS_ LPDIRECTDRAWSURFACE*,LPBOOL) PURE; | |
1338 STDMETHOD(Clear)(THIS_ DWORD,LPD3DRECT,DWORD) PURE; | |
1339 STDMETHOD(AddLight)(THIS_ LPDIRECT3DLIGHT) PURE; | |
1340 STDMETHOD(DeleteLight)(THIS_ LPDIRECT3DLIGHT) PURE; | |
1341 STDMETHOD(NextLight)(THIS_ LPDIRECT3DLIGHT,LPDIRECT3DLIGHT*,DWORD) PURE; | |
1342 STDMETHOD(GetViewport2)(THIS_ LPD3DVIEWPORT2) PURE; | |
1343 STDMETHOD(SetViewport2)(THIS_ LPD3DVIEWPORT2) PURE; | |
1344 STDMETHOD(SetBackgroundDepth2)(THIS_ LPDIRECTDRAWSURFACE4) PURE; | |
1345 STDMETHOD(GetBackgroundDepth2)(THIS_ LPDIRECTDRAWSURFACE4*,LPBOOL) PURE; | |
1346 STDMETHOD(Clear2)(THIS_ DWORD,LPD3DRECT,DWORD,D3DCOLOR,D3DVALUE,DWORD) PURE; | |
1347 }; | |
1348 | |
1349 typedef struct IDirect3DViewport3 *LPDIRECT3DVIEWPORT3; | |
1350 | |
1351 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1352 #define IDirect3DViewport3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1353 #define IDirect3DViewport3_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1354 #define IDirect3DViewport3_Release(p) (p)->lpVtbl->Release(p) | |
1355 #define IDirect3DViewport3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a) | |
1356 #define IDirect3DViewport3_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a) | |
1357 #define IDirect3DViewport3_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a) | |
1358 #define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d) | |
1359 #define IDirect3DViewport3_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b) | |
1360 #define IDirect3DViewport3_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a) | |
1361 #define IDirect3DViewport3_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b) | |
1362 #define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a) | |
1363 #define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b) | |
1364 #define IDirect3DViewport3_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c) | |
1365 #define IDirect3DViewport3_AddLight(p,a) (p)->lpVtbl->AddLight(p,a) | |
1366 #define IDirect3DViewport3_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a) | |
1367 #define IDirect3DViewport3_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c) | |
1368 #define IDirect3DViewport3_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a) | |
1369 #define IDirect3DViewport3_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a) | |
1370 #define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->lpVtbl->SetBackgroundDepth2(p,a) | |
1371 #define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->lpVtbl->GetBackgroundDepth2(p,a,b) | |
1372 #define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->lpVtbl->Clear2(p,a,b,c,d,e,f) | |
1373 #else | |
1374 #define IDirect3DViewport3_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1375 #define IDirect3DViewport3_AddRef(p) (p)->AddRef() | |
1376 #define IDirect3DViewport3_Release(p) (p)->Release() | |
1377 #define IDirect3DViewport3_Initialize(p,a) (p)->Initialize(a) | |
1378 #define IDirect3DViewport3_GetViewport(p,a) (p)->GetViewport(a) | |
1379 #define IDirect3DViewport3_SetViewport(p,a) (p)->SetViewport(a) | |
1380 #define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d) | |
1381 #define IDirect3DViewport3_LightElements(p,a,b) (p)->LightElements(a,b) | |
1382 #define IDirect3DViewport3_SetBackground(p,a) (p)->SetBackground(a) | |
1383 #define IDirect3DViewport3_GetBackground(p,a,b) (p)->GetBackground(a,b) | |
1384 #define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a) | |
1385 #define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b) | |
1386 #define IDirect3DViewport3_Clear(p,a,b,c) (p)->Clear(a,b,c) | |
1387 #define IDirect3DViewport3_AddLight(p,a) (p)->AddLight(a) | |
1388 #define IDirect3DViewport3_DeleteLight(p,a) (p)->DeleteLight(a) | |
1389 #define IDirect3DViewport3_NextLight(p,a,b,c) (p)->NextLight(a,b,c) | |
1390 #define IDirect3DViewport3_GetViewport2(p,a) (p)->GetViewport2(a) | |
1391 #define IDirect3DViewport3_SetViewport2(p,a) (p)->SetViewport2(a) | |
1392 #define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->SetBackgroundDepth2(a) | |
1393 #define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->GetBackgroundDepth2(a,b) | |
1394 #define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->Clear2(a,b,c,d,e,f) | |
1395 #endif | |
1396 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
1397 | |
1398 #if(DIRECT3D_VERSION >= 0x0600) | |
1399 #undef INTERFACE | |
1400 #define INTERFACE IDirect3DVertexBuffer | |
1401 | |
1402 DECLARE_INTERFACE_(IDirect3DVertexBuffer, IUnknown) | |
1403 { | |
1404 /*** IUnknown methods ***/ | |
1405 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
1406 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
1407 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
1408 | |
1409 /*** IDirect3DVertexBuffer methods ***/ | |
1410 STDMETHOD(Lock)(THIS_ DWORD,LPVOID*,LPDWORD) PURE; | |
1411 STDMETHOD(Unlock)(THIS) PURE; | |
1412 STDMETHOD(ProcessVertices)(THIS_ DWORD,DWORD,DWORD,LPDIRECT3DVERTEXBUFFER,DWORD,LPDIRECT3DDEVICE3,DWORD) PURE; | |
1413 STDMETHOD(GetVertexBufferDesc)(THIS_ LPD3DVERTEXBUFFERDESC) PURE; | |
1414 STDMETHOD(Optimize)(THIS_ LPDIRECT3DDEVICE3,DWORD) PURE; | |
1415 }; | |
1416 | |
1417 typedef struct IDirect3DVertexBuffer *LPDIRECT3DVERTEXBUFFER; | |
1418 | |
1419 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1420 #define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1421 #define IDirect3DVertexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1422 #define IDirect3DVertexBuffer_Release(p) (p)->lpVtbl->Release(p) | |
1423 #define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c) | |
1424 #define IDirect3DVertexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p) | |
1425 #define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g) | |
1426 #define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a) | |
1427 #define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b) | |
1428 #else | |
1429 #define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1430 #define IDirect3DVertexBuffer_AddRef(p) (p)->AddRef() | |
1431 #define IDirect3DVertexBuffer_Release(p) (p)->Release() | |
1432 #define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->Lock(a,b,c) | |
1433 #define IDirect3DVertexBuffer_Unlock(p) (p)->Unlock() | |
1434 #define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g) | |
1435 #define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a) | |
1436 #define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->Optimize(a,b) | |
1437 #endif | |
1438 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
1439 | |
1440 #if(DIRECT3D_VERSION >= 0x0700) | |
1441 #undef INTERFACE | |
1442 #define INTERFACE IDirect3DVertexBuffer7 | |
1443 | |
1444 DECLARE_INTERFACE_(IDirect3DVertexBuffer7, IUnknown) | |
1445 { | |
1446 /*** IUnknown methods ***/ | |
1447 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE; | |
1448 STDMETHOD_(ULONG,AddRef)(THIS) PURE; | |
1449 STDMETHOD_(ULONG,Release)(THIS) PURE; | |
1450 | |
1451 /*** IDirect3DVertexBuffer7 methods ***/ | |
1452 STDMETHOD(Lock)(THIS_ DWORD,LPVOID*,LPDWORD) PURE; | |
1453 STDMETHOD(Unlock)(THIS) PURE; | |
1454 STDMETHOD(ProcessVertices)(THIS_ DWORD,DWORD,DWORD,LPDIRECT3DVERTEXBUFFER7,DWORD,LPDIRECT3DDEVICE7,DWORD) PURE; | |
1455 STDMETHOD(GetVertexBufferDesc)(THIS_ LPD3DVERTEXBUFFERDESC) PURE; | |
1456 STDMETHOD(Optimize)(THIS_ LPDIRECT3DDEVICE7,DWORD) PURE; | |
1457 STDMETHOD(ProcessVerticesStrided)(THIS_ DWORD,DWORD,DWORD,LPD3DDRAWPRIMITIVESTRIDEDDATA,DWORD,LPDIRECT3DDEVICE7,DWORD) PURE; | |
1458 }; | |
1459 | |
1460 typedef struct IDirect3DVertexBuffer7 *LPDIRECT3DVERTEXBUFFER7; | |
1461 | |
1462 #if !defined(__cplusplus) || defined(CINTERFACE) | |
1463 #define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) | |
1464 #define IDirect3DVertexBuffer7_AddRef(p) (p)->lpVtbl->AddRef(p) | |
1465 #define IDirect3DVertexBuffer7_Release(p) (p)->lpVtbl->Release(p) | |
1466 #define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c) | |
1467 #define IDirect3DVertexBuffer7_Unlock(p) (p)->lpVtbl->Unlock(p) | |
1468 #define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g) | |
1469 #define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a) | |
1470 #define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b) | |
1471 #define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVerticesStrided(p,a,b,c,d,e,f,g) | |
1472 #else | |
1473 #define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->QueryInterface(a,b) | |
1474 #define IDirect3DVertexBuffer7_AddRef(p) (p)->AddRef() | |
1475 #define IDirect3DVertexBuffer7_Release(p) (p)->Release() | |
1476 #define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->Lock(a,b,c) | |
1477 #define IDirect3DVertexBuffer7_Unlock(p) (p)->Unlock() | |
1478 #define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g) | |
1479 #define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a) | |
1480 #define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->Optimize(a,b) | |
1481 #define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->ProcessVerticesStrided(a,b,c,d,e,f,g) | |
1482 #endif | |
1483 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
1484 | |
1485 #if(DIRECT3D_VERSION >= 0x0500) | |
1486 /**************************************************************************** | |
1487 * | |
1488 * Flags for IDirect3DDevice::NextViewport | |
1489 * | |
1490 ****************************************************************************/ | |
1491 | |
1492 /* | |
1493 * Return the next OldViewport | |
1494 */ | |
1495 #define D3DNEXT_NEXT 0x00000001l | |
1496 | |
1497 /* | |
1498 * Return the first OldViewport | |
1499 */ | |
1500 #define D3DNEXT_HEAD 0x00000002l | |
1501 | |
1502 /* | |
1503 * Return the last OldViewport | |
1504 */ | |
1505 #define D3DNEXT_TAIL 0x00000004l | |
1506 | |
1507 | |
1508 /**************************************************************************** | |
1509 * | |
1510 * Flags for DrawPrimitive/DrawIndexedPrimitive | |
1511 * Also valid for Begin/BeginIndexed | |
1512 * Also valid for VertexBuffer::CreateVertexBuffer | |
1513 ****************************************************************************/ | |
1514 | |
1515 /* | |
1516 * Wait until the device is ready to draw the primitive | |
1517 * This will cause DP to not return DDERR_WASSTILLDRAWING | |
1518 */ | |
1519 #define D3DDP_WAIT 0x00000001l | |
1520 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1521 | |
1522 #if (DIRECT3D_VERSION == 0x0500) | |
1523 /* | |
1524 * Hint that it is acceptable to render the primitive out of order. | |
1525 */ | |
1526 #define D3DDP_OUTOFORDER 0x00000002l | |
1527 #endif | |
1528 | |
1529 | |
1530 #if(DIRECT3D_VERSION >= 0x0500) | |
1531 /* | |
1532 * Hint that the primitives have been clipped by the application. | |
1533 */ | |
1534 #define D3DDP_DONOTCLIP 0x00000004l | |
1535 | |
1536 /* | |
1537 * Hint that the extents need not be updated. | |
1538 */ | |
1539 #define D3DDP_DONOTUPDATEEXTENTS 0x00000008l | |
1540 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1541 | |
1542 #if(DIRECT3D_VERSION >= 0x0600) | |
1543 | |
1544 /* | |
1545 * Hint that the lighting should not be applied on vertices. | |
1546 */ | |
1547 | |
1548 #define D3DDP_DONOTLIGHT 0x00000010l | |
1549 | |
1550 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
1551 | |
1552 /* | |
1553 * Direct3D Errors | |
1554 * DirectDraw error codes are used when errors not specified here. | |
1555 */ | |
1556 #define D3D_OK DD_OK | |
1557 #define D3DERR_BADMAJORVERSION MAKE_DDHRESULT(700) | |
1558 #define D3DERR_BADMINORVERSION MAKE_DDHRESULT(701) | |
1559 | |
1560 #if(DIRECT3D_VERSION >= 0x0500) | |
1561 /* | |
1562 * An invalid device was requested by the application. | |
1563 */ | |
1564 #define D3DERR_INVALID_DEVICE MAKE_DDHRESULT(705) | |
1565 #define D3DERR_INITFAILED MAKE_DDHRESULT(706) | |
1566 | |
1567 /* | |
1568 * SetRenderTarget attempted on a device that was | |
1569 * QI'd off the render target. | |
1570 */ | |
1571 #define D3DERR_DEVICEAGGREGATED MAKE_DDHRESULT(707) | |
1572 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1573 | |
1574 #define D3DERR_EXECUTE_CREATE_FAILED MAKE_DDHRESULT(710) | |
1575 #define D3DERR_EXECUTE_DESTROY_FAILED MAKE_DDHRESULT(711) | |
1576 #define D3DERR_EXECUTE_LOCK_FAILED MAKE_DDHRESULT(712) | |
1577 #define D3DERR_EXECUTE_UNLOCK_FAILED MAKE_DDHRESULT(713) | |
1578 #define D3DERR_EXECUTE_LOCKED MAKE_DDHRESULT(714) | |
1579 #define D3DERR_EXECUTE_NOT_LOCKED MAKE_DDHRESULT(715) | |
1580 | |
1581 #define D3DERR_EXECUTE_FAILED MAKE_DDHRESULT(716) | |
1582 #define D3DERR_EXECUTE_CLIPPED_FAILED MAKE_DDHRESULT(717) | |
1583 | |
1584 #define D3DERR_TEXTURE_NO_SUPPORT MAKE_DDHRESULT(720) | |
1585 #define D3DERR_TEXTURE_CREATE_FAILED MAKE_DDHRESULT(721) | |
1586 #define D3DERR_TEXTURE_DESTROY_FAILED MAKE_DDHRESULT(722) | |
1587 #define D3DERR_TEXTURE_LOCK_FAILED MAKE_DDHRESULT(723) | |
1588 #define D3DERR_TEXTURE_UNLOCK_FAILED MAKE_DDHRESULT(724) | |
1589 #define D3DERR_TEXTURE_LOAD_FAILED MAKE_DDHRESULT(725) | |
1590 #define D3DERR_TEXTURE_SWAP_FAILED MAKE_DDHRESULT(726) | |
1591 #define D3DERR_TEXTURE_LOCKED MAKE_DDHRESULT(727) | |
1592 #define D3DERR_TEXTURE_NOT_LOCKED MAKE_DDHRESULT(728) | |
1593 #define D3DERR_TEXTURE_GETSURF_FAILED MAKE_DDHRESULT(729) | |
1594 | |
1595 #define D3DERR_MATRIX_CREATE_FAILED MAKE_DDHRESULT(730) | |
1596 #define D3DERR_MATRIX_DESTROY_FAILED MAKE_DDHRESULT(731) | |
1597 #define D3DERR_MATRIX_SETDATA_FAILED MAKE_DDHRESULT(732) | |
1598 #define D3DERR_MATRIX_GETDATA_FAILED MAKE_DDHRESULT(733) | |
1599 #define D3DERR_SETVIEWPORTDATA_FAILED MAKE_DDHRESULT(734) | |
1600 | |
1601 #if(DIRECT3D_VERSION >= 0x0500) | |
1602 #define D3DERR_INVALIDCURRENTVIEWPORT MAKE_DDHRESULT(735) | |
1603 #define D3DERR_INVALIDPRIMITIVETYPE MAKE_DDHRESULT(736) | |
1604 #define D3DERR_INVALIDVERTEXTYPE MAKE_DDHRESULT(737) | |
1605 #define D3DERR_TEXTURE_BADSIZE MAKE_DDHRESULT(738) | |
1606 #define D3DERR_INVALIDRAMPTEXTURE MAKE_DDHRESULT(739) | |
1607 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1608 | |
1609 #define D3DERR_MATERIAL_CREATE_FAILED MAKE_DDHRESULT(740) | |
1610 #define D3DERR_MATERIAL_DESTROY_FAILED MAKE_DDHRESULT(741) | |
1611 #define D3DERR_MATERIAL_SETDATA_FAILED MAKE_DDHRESULT(742) | |
1612 #define D3DERR_MATERIAL_GETDATA_FAILED MAKE_DDHRESULT(743) | |
1613 | |
1614 #if(DIRECT3D_VERSION >= 0x0500) | |
1615 #define D3DERR_INVALIDPALETTE MAKE_DDHRESULT(744) | |
1616 | |
1617 #define D3DERR_ZBUFF_NEEDS_SYSTEMMEMORY MAKE_DDHRESULT(745) | |
1618 #define D3DERR_ZBUFF_NEEDS_VIDEOMEMORY MAKE_DDHRESULT(746) | |
1619 #define D3DERR_SURFACENOTINVIDMEM MAKE_DDHRESULT(747) | |
1620 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1621 | |
1622 #define D3DERR_LIGHT_SET_FAILED MAKE_DDHRESULT(750) | |
1623 #if(DIRECT3D_VERSION >= 0x0500) | |
1624 #define D3DERR_LIGHTHASVIEWPORT MAKE_DDHRESULT(751) | |
1625 #define D3DERR_LIGHTNOTINTHISVIEWPORT MAKE_DDHRESULT(752) | |
1626 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1627 | |
1628 #define D3DERR_SCENE_IN_SCENE MAKE_DDHRESULT(760) | |
1629 #define D3DERR_SCENE_NOT_IN_SCENE MAKE_DDHRESULT(761) | |
1630 #define D3DERR_SCENE_BEGIN_FAILED MAKE_DDHRESULT(762) | |
1631 #define D3DERR_SCENE_END_FAILED MAKE_DDHRESULT(763) | |
1632 | |
1633 #if(DIRECT3D_VERSION >= 0x0500) | |
1634 #define D3DERR_INBEGIN MAKE_DDHRESULT(770) | |
1635 #define D3DERR_NOTINBEGIN MAKE_DDHRESULT(771) | |
1636 #define D3DERR_NOVIEWPORTS MAKE_DDHRESULT(772) | |
1637 #define D3DERR_VIEWPORTDATANOTSET MAKE_DDHRESULT(773) | |
1638 #define D3DERR_VIEWPORTHASNODEVICE MAKE_DDHRESULT(774) | |
1639 #define D3DERR_NOCURRENTVIEWPORT MAKE_DDHRESULT(775) | |
1640 #endif /* DIRECT3D_VERSION >= 0x0500 */ | |
1641 | |
1642 #if(DIRECT3D_VERSION >= 0x0600) | |
1643 #define D3DERR_INVALIDVERTEXFORMAT MAKE_DDHRESULT(2048) | |
1644 | |
1645 /* | |
1646 * Attempted to CreateTexture on a surface that had a color key | |
1647 */ | |
1648 #define D3DERR_COLORKEYATTACHED MAKE_DDHRESULT(2050) | |
1649 | |
1650 #define D3DERR_VERTEXBUFFEROPTIMIZED MAKE_DDHRESULT(2060) | |
1651 #define D3DERR_VBUF_CREATE_FAILED MAKE_DDHRESULT(2061) | |
1652 #define D3DERR_VERTEXBUFFERLOCKED MAKE_DDHRESULT(2062) | |
1653 #define D3DERR_VERTEXBUFFERUNLOCKFAILED MAKE_DDHRESULT(2063) | |
1654 | |
1655 #define D3DERR_ZBUFFER_NOTPRESENT MAKE_DDHRESULT(2070) | |
1656 #define D3DERR_STENCILBUFFER_NOTPRESENT MAKE_DDHRESULT(2071) | |
1657 | |
1658 #define D3DERR_WRONGTEXTUREFORMAT MAKE_DDHRESULT(2072) | |
1659 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_DDHRESULT(2073) | |
1660 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_DDHRESULT(2074) | |
1661 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_DDHRESULT(2075) | |
1662 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_DDHRESULT(2076) | |
1663 #define D3DERR_TOOMANYOPERATIONS MAKE_DDHRESULT(2077) | |
1664 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_DDHRESULT(2078) | |
1665 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_DDHRESULT(2079) | |
1666 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_DDHRESULT(2081) | |
1667 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_DDHRESULT(2082) | |
1668 #define D3DERR_TOOMANYPRIMITIVES MAKE_DDHRESULT(2083) | |
1669 #define D3DERR_INVALIDMATRIX MAKE_DDHRESULT(2084) | |
1670 #define D3DERR_TOOMANYVERTICES MAKE_DDHRESULT(2085) | |
1671 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_DDHRESULT(2086) | |
1672 | |
1673 #endif /* DIRECT3D_VERSION >= 0x0600 */ | |
1674 | |
1675 #if(DIRECT3D_VERSION >= 0x0700) | |
1676 #define D3DERR_INVALIDSTATEBLOCK MAKE_DDHRESULT(2100) | |
1677 #define D3DERR_INBEGINSTATEBLOCK MAKE_DDHRESULT(2101) | |
1678 #define D3DERR_NOTINBEGINSTATEBLOCK MAKE_DDHRESULT(2102) | |
1679 #endif /* DIRECT3D_VERSION >= 0x0700 */ | |
1680 | |
1681 | |
1682 #ifdef __cplusplus | |
1683 }; | |
1684 #endif | |
1685 | |
1686 #endif /* (DIRECT3D_VERSION < 0x0800) */ | |
1687 #endif /* _D3D_H_ */ | |
1688 |