2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
24 #define COM_NO_WINDOWS_H
26 #include <d3dtypes.h> /* must precede d3dcaps.h */
29 /*****************************************************************************
30 * Predeclare the interfaces
32 DEFINE_GUID(IID_IDirect3D
, 0x3BBA0080,0x2421,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
33 DEFINE_GUID(IID_IDirect3D2
, 0x6aae1ec1,0x662a,0x11d0,0x88,0x9d,0x00,0xaa,0x00,0xbb,0xb7,0x6a);
34 DEFINE_GUID(IID_IDirect3D3
, 0xbb223240,0xe72b,0x11d0,0xa9,0xb4,0x00,0xaa,0x00,0xc0,0x99,0x3e);
35 DEFINE_GUID(IID_IDirect3D7
, 0xf5049e77,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
37 DEFINE_GUID(IID_IDirect3DRampDevice
, 0xF2086B20,0x259F,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
38 DEFINE_GUID(IID_IDirect3DRGBDevice
, 0xA4665C60,0x2673,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
39 DEFINE_GUID(IID_IDirect3DHALDevice
, 0x84E63dE0,0x46AA,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
40 DEFINE_GUID(IID_IDirect3DMMXDevice
, 0x881949a1,0xd6f3,0x11d0,0x89,0xab,0x00,0xa0,0xc9,0x05,0x41,0x29);
41 DEFINE_GUID(IID_IDirect3DRefDevice
, 0x50936643,0x13e9,0x11d1,0x89,0xaa,0x00,0xa0,0xc9,0x05,0x41,0x29);
42 DEFINE_GUID(IID_IDirect3DTnLHalDevice
, 0xf5049e78,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
43 DEFINE_GUID(IID_IDirect3DNullDevice
, 0x8767df22,0xbacc,0x11d1,0x89,0x69,0x00,0xa0,0xc9,0x06,0x29,0xa8);
45 DEFINE_GUID(IID_IDirect3DDevice
, 0x64108800,0x957d,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
46 DEFINE_GUID(IID_IDirect3DDevice2
, 0x93281501,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
47 DEFINE_GUID(IID_IDirect3DDevice3
, 0xb0ab3b60,0x33d7,0x11d1,0xa9,0x81,0x00,0xc0,0x4f,0xd7,0xb1,0x74);
48 DEFINE_GUID(IID_IDirect3DDevice7
, 0xf5049e79,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
50 DEFINE_GUID(IID_IDirect3DTexture
, 0x2CDCD9E0,0x25A0,0x11CF,0xA3,0x1A,0x00,0xAA,0x00,0xB9,0x33,0x56);
51 DEFINE_GUID(IID_IDirect3DTexture2
, 0x93281502,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
53 DEFINE_GUID(IID_IDirect3DLight
, 0x4417C142,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
55 DEFINE_GUID(IID_IDirect3DMaterial
, 0x4417C144,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
56 DEFINE_GUID(IID_IDirect3DMaterial2
, 0x93281503,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
57 DEFINE_GUID(IID_IDirect3DMaterial3
, 0xca9c46f4,0xd3c5,0x11d1,0xb7,0x5a,0x00,0x60,0x08,0x52,0xb3,0x12);
59 DEFINE_GUID(IID_IDirect3DExecuteBuffer
, 0x4417C145,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
61 DEFINE_GUID(IID_IDirect3DViewport
, 0x4417C146,0x33AD,0x11CF,0x81,0x6F,0x00,0x00,0xC0,0x20,0x15,0x6E);
62 DEFINE_GUID(IID_IDirect3DViewport2
, 0x93281500,0x8CF8,0x11D0,0x89,0xAB,0x00,0xA0,0xC9,0x05,0x41,0x29);
63 DEFINE_GUID(IID_IDirect3DViewport3
, 0xb0ab3b61,0x33d7,0x11d1,0xa9,0x81,0x00,0xc0,0x4f,0xd7,0xb1,0x74);
65 DEFINE_GUID(IID_IDirect3DVertexBuffer
, 0x7a503555,0x4a83,0x11d1,0xa5,0xdb,0x00,0xa0,0xc9,0x03,0x67,0xf8);
66 DEFINE_GUID(IID_IDirect3DVertexBuffer7
, 0xf5049e7d,0x4861,0x11d2,0xa4,0x07,0x00,0xa0,0xc9,0x06,0x29,0xa8);
69 typedef struct IDirect3D
*LPDIRECT3D
;
70 typedef struct IDirect3D2
*LPDIRECT3D2
;
71 typedef struct IDirect3D3
*LPDIRECT3D3
;
72 typedef struct IDirect3D7
*LPDIRECT3D7
;
74 typedef struct IDirect3DLight
*LPDIRECT3DLIGHT
;
76 typedef struct IDirect3DDevice
*LPDIRECT3DDEVICE
;
77 typedef struct IDirect3DDevice2
*LPDIRECT3DDEVICE2
;
78 typedef struct IDirect3DDevice3
*LPDIRECT3DDEVICE3
;
79 typedef struct IDirect3DDevice7
*LPDIRECT3DDEVICE7
;
81 typedef struct IDirect3DViewport
*LPDIRECT3DVIEWPORT
;
82 typedef struct IDirect3DViewport2
*LPDIRECT3DVIEWPORT2
;
83 typedef struct IDirect3DViewport3
*LPDIRECT3DVIEWPORT3
;
85 typedef struct IDirect3DMaterial
*LPDIRECT3DMATERIAL
;
86 typedef struct IDirect3DMaterial2
*LPDIRECT3DMATERIAL2
;
87 typedef struct IDirect3DMaterial3
*LPDIRECT3DMATERIAL3
;
89 typedef struct IDirect3DTexture
*LPDIRECT3DTEXTURE
;
90 typedef struct IDirect3DTexture2
*LPDIRECT3DTEXTURE2
;
92 typedef struct IDirect3DExecuteBuffer
*LPDIRECT3DEXECUTEBUFFER
;
94 typedef struct IDirect3DVertexBuffer
*LPDIRECT3DVERTEXBUFFER
;
95 typedef struct IDirect3DVertexBuffer7
*LPDIRECT3DVERTEXBUFFER7
;
97 /* ********************************************************************
99 ******************************************************************** */
101 #define D3DERR_BADMAJORVERSION MAKE_DDHRESULT(700)
102 #define D3DERR_BADMINORVERSION MAKE_DDHRESULT(701)
103 #define D3DERR_INVALID_DEVICE MAKE_DDHRESULT(705)
104 #define D3DERR_INITFAILED MAKE_DDHRESULT(706)
105 #define D3DERR_DEVICEAGGREGATED MAKE_DDHRESULT(707)
106 #define D3DERR_EXECUTE_CREATE_FAILED MAKE_DDHRESULT(710)
107 #define D3DERR_EXECUTE_DESTROY_FAILED MAKE_DDHRESULT(711)
108 #define D3DERR_EXECUTE_LOCK_FAILED MAKE_DDHRESULT(712)
109 #define D3DERR_EXECUTE_UNLOCK_FAILED MAKE_DDHRESULT(713)
110 #define D3DERR_EXECUTE_LOCKED MAKE_DDHRESULT(714)
111 #define D3DERR_EXECUTE_NOT_LOCKED MAKE_DDHRESULT(715)
112 #define D3DERR_EXECUTE_FAILED MAKE_DDHRESULT(716)
113 #define D3DERR_EXECUTE_CLIPPED_FAILED MAKE_DDHRESULT(717)
114 #define D3DERR_TEXTURE_NO_SUPPORT MAKE_DDHRESULT(720)
115 #define D3DERR_TEXTURE_CREATE_FAILED MAKE_DDHRESULT(721)
116 #define D3DERR_TEXTURE_DESTROY_FAILED MAKE_DDHRESULT(722)
117 #define D3DERR_TEXTURE_LOCK_FAILED MAKE_DDHRESULT(723)
118 #define D3DERR_TEXTURE_UNLOCK_FAILED MAKE_DDHRESULT(724)
119 #define D3DERR_TEXTURE_LOAD_FAILED MAKE_DDHRESULT(725)
120 #define D3DERR_TEXTURE_SWAP_FAILED MAKE_DDHRESULT(726)
121 #define D3DERR_TEXTURE_LOCKED MAKE_DDHRESULT(727)
122 #define D3DERR_TEXTURE_NOT_LOCKED MAKE_DDHRESULT(728)
123 #define D3DERR_TEXTURE_GETSURF_FAILED MAKE_DDHRESULT(729)
124 #define D3DERR_MATRIX_CREATE_FAILED MAKE_DDHRESULT(730)
125 #define D3DERR_MATRIX_DESTROY_FAILED MAKE_DDHRESULT(731)
126 #define D3DERR_MATRIX_SETDATA_FAILED MAKE_DDHRESULT(732)
127 #define D3DERR_MATRIX_GETDATA_FAILED MAKE_DDHRESULT(733)
128 #define D3DERR_SETVIEWPORTDATA_FAILED MAKE_DDHRESULT(734)
129 #define D3DERR_INVALIDCURRENTVIEWPORT MAKE_DDHRESULT(735)
130 #define D3DERR_INVALIDPRIMITIVETYPE MAKE_DDHRESULT(736)
131 #define D3DERR_INVALIDVERTEXTYPE MAKE_DDHRESULT(737)
132 #define D3DERR_TEXTURE_BADSIZE MAKE_DDHRESULT(738)
133 #define D3DERR_INVALIDRAMPTEXTURE MAKE_DDHRESULT(739)
134 #define D3DERR_MATERIAL_CREATE_FAILED MAKE_DDHRESULT(740)
135 #define D3DERR_MATERIAL_DESTROY_FAILED MAKE_DDHRESULT(741)
136 #define D3DERR_MATERIAL_SETDATA_FAILED MAKE_DDHRESULT(742)
137 #define D3DERR_MATERIAL_GETDATA_FAILED MAKE_DDHRESULT(743)
138 #define D3DERR_INVALIDPALETTE MAKE_DDHRESULT(744)
139 #define D3DERR_ZBUFF_NEEDS_SYSTEMMEMORY MAKE_DDHRESULT(745)
140 #define D3DERR_ZBUFF_NEEDS_VIDEOMEMORY MAKE_DDHRESULT(746)
141 #define D3DERR_SURFACENOTINVIDMEM MAKE_DDHRESULT(747)
142 #define D3DERR_LIGHT_SET_FAILED MAKE_DDHRESULT(750)
143 #define D3DERR_LIGHTHASVIEWPORT MAKE_DDHRESULT(751)
144 #define D3DERR_LIGHTNOTINTHISVIEWPORT MAKE_DDHRESULT(752)
145 #define D3DERR_SCENE_IN_SCENE MAKE_DDHRESULT(760)
146 #define D3DERR_SCENE_NOT_IN_SCENE MAKE_DDHRESULT(761)
147 #define D3DERR_SCENE_BEGIN_FAILED MAKE_DDHRESULT(762)
148 #define D3DERR_SCENE_END_FAILED MAKE_DDHRESULT(763)
149 #define D3DERR_INBEGIN MAKE_DDHRESULT(770)
150 #define D3DERR_NOTINBEGIN MAKE_DDHRESULT(771)
151 #define D3DERR_NOVIEWPORTS MAKE_DDHRESULT(772)
152 #define D3DERR_VIEWPORTDATANOTSET MAKE_DDHRESULT(773)
153 #define D3DERR_VIEWPORTHASNODEVICE MAKE_DDHRESULT(774)
154 #define D3DERR_NOCURRENTVIEWPORT MAKE_DDHRESULT(775)
155 #define D3DERR_INVALIDVERTEXFORMAT MAKE_DDHRESULT(2048)
156 #define D3DERR_COLORKEYATTACHED MAKE_DDHRESULT(2050)
157 #define D3DERR_VERTEXBUFFEROPTIMIZED MAKE_DDHRESULT(2060)
158 #define D3DERR_VBUF_CREATE_FAILED MAKE_DDHRESULT(2061)
159 #define D3DERR_VERTEXBUFFERLOCKED MAKE_DDHRESULT(2062)
160 #define D3DERR_VERTEXBUFFERUNLOCKFAILED MAKE_DDHRESULT(2063)
161 #define D3DERR_ZBUFFER_NOTPRESENT MAKE_DDHRESULT(2070)
162 #define D3DERR_STENCILBUFFER_NOTPRESENT MAKE_DDHRESULT(2071)
164 #define D3DERR_WRONGTEXTUREFORMAT MAKE_DDHRESULT(2072)
165 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_DDHRESULT(2073)
166 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_DDHRESULT(2074)
167 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_DDHRESULT(2075)
168 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_DDHRESULT(2076)
169 #define D3DERR_TOOMANYOPERATIONS MAKE_DDHRESULT(2077)
170 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_DDHRESULT(2078)
171 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_DDHRESULT(2079)
172 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_DDHRESULT(2081)
173 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_DDHRESULT(2082)
174 #define D3DERR_TOOMANYPRIMITIVES MAKE_DDHRESULT(2083)
175 #define D3DERR_INVALIDMATRIX MAKE_DDHRESULT(2084)
176 #define D3DERR_TOOMANYVERTICES MAKE_DDHRESULT(2085)
177 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_DDHRESULT(2086)
179 #define D3DERR_INVALIDSTATEBLOCK MAKE_DDHRESULT(2100)
180 #define D3DERR_INBEGINSTATEBLOCK MAKE_DDHRESULT(2101)
181 #define D3DERR_NOTINBEGINSTATEBLOCK MAKE_DDHRESULT(2102)
183 /* ********************************************************************
185 ******************************************************************** */
186 #define D3DNEXT_NEXT __MSABI_LONG(0x01)
187 #define D3DNEXT_HEAD __MSABI_LONG(0x02)
188 #define D3DNEXT_TAIL __MSABI_LONG(0x04)
190 #define D3DDP_WAIT __MSABI_LONG(0x00000001)
191 #define D3DDP_OUTOFORDER __MSABI_LONG(0x00000002)
192 #define D3DDP_DONOTCLIP __MSABI_LONG(0x00000004)
193 #define D3DDP_DONOTUPDATEEXTENTS __MSABI_LONG(0x00000008)
194 #define D3DDP_DONOTLIGHT __MSABI_LONG(0x00000010)
196 /* ********************************************************************
198 ******************************************************************** */
199 typedef DWORD D3DVIEWPORTHANDLE
, *LPD3DVIEWPORTHANDLE
;
202 /*****************************************************************************
203 * IDirect3D interface
206 #define INTERFACE IDirect3D
207 DECLARE_INTERFACE_(IDirect3D
,IUnknown
)
209 /*** IUnknown methods ***/
210 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
211 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
212 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
213 /*** IDirect3D methods ***/
214 STDMETHOD(Initialize
)(THIS_ REFIID riid
) PURE
;
215 STDMETHOD(EnumDevices
)(THIS_ LPD3DENUMDEVICESCALLBACK cb
, void *ctx
) PURE
;
216 STDMETHOD(CreateLight
)(THIS_
struct IDirect3DLight
**light
, IUnknown
*outer
) PURE
;
217 STDMETHOD(CreateMaterial
)(THIS_
struct IDirect3DMaterial
**material
, IUnknown
*outer
) PURE
;
218 STDMETHOD(CreateViewport
)(THIS_
struct IDirect3DViewport
**viewport
, IUnknown
*outer
) PURE
;
219 STDMETHOD(FindDevice
)(THIS_ D3DFINDDEVICESEARCH
*search
, D3DFINDDEVICERESULT
*result
) PURE
;
223 #if !defined(__cplusplus) || defined(CINTERFACE)
224 /*** IUnknown methods ***/
225 #define IDirect3D_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
226 #define IDirect3D_AddRef(p) (p)->lpVtbl->AddRef(p)
227 #define IDirect3D_Release(p) (p)->lpVtbl->Release(p)
228 /*** IDirect3D methods ***/
229 #define IDirect3D_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
230 #define IDirect3D_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
231 #define IDirect3D_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b)
232 #define IDirect3D_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
233 #define IDirect3D_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
234 #define IDirect3D_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b)
236 /*** IUnknown methods ***/
237 #define IDirect3D_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
238 #define IDirect3D_AddRef(p) (p)->AddRef()
239 #define IDirect3D_Release(p) (p)->Release()
240 /*** IDirect3D methods ***/
241 #define IDirect3D_Initialize(p,a) (p)->Initialize(a)
242 #define IDirect3D_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
243 #define IDirect3D_CreateLight(p,a,b) (p)->CreateLight(a,b)
244 #define IDirect3D_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
245 #define IDirect3D_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
246 #define IDirect3D_FindDevice(p,a,b) (p)->FindDevice(a,b)
250 /*****************************************************************************
251 * IDirect3D2 interface
253 #define INTERFACE IDirect3D2
254 DECLARE_INTERFACE_(IDirect3D2
,IUnknown
)
256 /*** IUnknown methods ***/
257 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
258 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
259 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
260 /*** IDirect3D2 methods ***/
261 STDMETHOD(EnumDevices
)(THIS_ LPD3DENUMDEVICESCALLBACK cb
, void *ctx
) PURE
;
262 STDMETHOD(CreateLight
)(THIS_
struct IDirect3DLight
**light
, IUnknown
*outer
) PURE
;
263 STDMETHOD(CreateMaterial
)(THIS_
struct IDirect3DMaterial2
**material
, IUnknown
*outer
) PURE
;
264 STDMETHOD(CreateViewport
)(THIS_
struct IDirect3DViewport2
**viewport
, IUnknown
*outer
) PURE
;
265 STDMETHOD(FindDevice
)(THIS_ D3DFINDDEVICESEARCH
*search
, D3DFINDDEVICERESULT
*result
) PURE
;
266 STDMETHOD(CreateDevice
)(THIS_ REFCLSID rclsid
, IDirectDrawSurface
*surface
,
267 struct IDirect3DDevice2
**device
) PURE
;
271 #if !defined(__cplusplus) || defined(CINTERFACE)
272 /*** IUnknown methods ***/
273 #define IDirect3D2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
274 #define IDirect3D2_AddRef(p) (p)->lpVtbl->AddRef(p)
275 #define IDirect3D2_Release(p) (p)->lpVtbl->Release(p)
276 /*** IDirect3D2 methods ***/
277 #define IDirect3D2_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
278 #define IDirect3D2_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b)
279 #define IDirect3D2_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
280 #define IDirect3D2_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
281 #define IDirect3D2_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b)
282 #define IDirect3D2_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
284 /*** IUnknown methods ***/
285 #define IDirect3D2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
286 #define IDirect3D2_AddRef(p) (p)->AddRef()
287 #define IDirect3D2_Release(p) (p)->Release()
288 /*** IDirect3D2 methods ***/
289 #define IDirect3D2_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
290 #define IDirect3D2_CreateLight(p,a,b) (p)->CreateLight(a,b)
291 #define IDirect3D2_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
292 #define IDirect3D2_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
293 #define IDirect3D2_FindDevice(p,a,b) (p)->FindDevice(a,b)
294 #define IDirect3D2_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
298 /*****************************************************************************
299 * IDirect3D3 interface
301 #define INTERFACE IDirect3D3
302 DECLARE_INTERFACE_(IDirect3D3
,IUnknown
)
304 /*** IUnknown methods ***/
305 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
306 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
307 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
308 /*** IDirect3D3 methods ***/
309 STDMETHOD(EnumDevices
)(THIS_ LPD3DENUMDEVICESCALLBACK cb
, void *ctx
) PURE
;
310 STDMETHOD(CreateLight
)(THIS_
struct IDirect3DLight
**light
, IUnknown
*outer
) PURE
;
311 STDMETHOD(CreateMaterial
)(THIS_
struct IDirect3DMaterial3
**material
, IUnknown
*outer
) PURE
;
312 STDMETHOD(CreateViewport
)(THIS_
struct IDirect3DViewport3
**viewport
, IUnknown
*outer
) PURE
;
313 STDMETHOD(FindDevice
)(THIS_ D3DFINDDEVICESEARCH
*search
, D3DFINDDEVICERESULT
*result
) PURE
;
314 STDMETHOD(CreateDevice
)(THIS_ REFCLSID rclsid
, IDirectDrawSurface4
*surface
,
315 struct IDirect3DDevice3
**device
, IUnknown
*outer
) PURE
;
316 STDMETHOD(CreateVertexBuffer
)(THIS_ D3DVERTEXBUFFERDESC
*desc
, struct IDirect3DVertexBuffer
**buffer
,
317 DWORD flags
, IUnknown
*outer
) PURE
;
318 STDMETHOD(EnumZBufferFormats
)(THIS_ REFCLSID device_iid
, LPD3DENUMPIXELFORMATSCALLBACK cb
, void *ctx
) PURE
;
319 STDMETHOD(EvictManagedTextures
)(THIS
) PURE
;
323 #if !defined(__cplusplus) || defined(CINTERFACE)
324 /*** IUnknown methods ***/
325 #define IDirect3D3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
326 #define IDirect3D3_AddRef(p) (p)->lpVtbl->AddRef(p)
327 #define IDirect3D3_Release(p) (p)->lpVtbl->Release(p)
328 /*** IDirect3D3 methods ***/
329 #define IDirect3D3_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
330 #define IDirect3D3_CreateLight(p,a,b) (p)->lpVtbl->CreateLight(p,a,b)
331 #define IDirect3D3_CreateMaterial(p,a,b) (p)->lpVtbl->CreateMaterial(p,a,b)
332 #define IDirect3D3_CreateViewport(p,a,b) (p)->lpVtbl->CreateViewport(p,a,b)
333 #define IDirect3D3_FindDevice(p,a,b) (p)->lpVtbl->FindDevice(p,a,b)
334 #define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->lpVtbl->CreateDevice(p,a,b,c,d)
335 #define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d)
336 #define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c)
337 #define IDirect3D3_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p)
339 /*** IUnknown methods ***/
340 #define IDirect3D3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
341 #define IDirect3D3_AddRef(p) (p)->AddRef()
342 #define IDirect3D3_Release(p) (p)->Release()
343 /*** IDirect3D3 methods ***/
344 #define IDirect3D3_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
345 #define IDirect3D3_CreateLight(p,a,b) (p)->CreateLight(a,b)
346 #define IDirect3D3_CreateMaterial(p,a,b) (p)->CreateMaterial(a,b)
347 #define IDirect3D3_CreateViewport(p,a,b) (p)->CreateViewport(a,b)
348 #define IDirect3D3_FindDevice(p,a,b) (p)->FindDevice(a,b)
349 #define IDirect3D3_CreateDevice(p,a,b,c,d) (p)->CreateDevice(a,b,c,d)
350 #define IDirect3D3_CreateVertexBuffer(p,a,b,c,d) (p)->CreateVertexBuffer(a,b,c,d)
351 #define IDirect3D3_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c)
352 #define IDirect3D3_EvictManagedTextures(p) (p)->EvictManagedTextures()
355 /*****************************************************************************
356 * IDirect3D7 interface
358 #define INTERFACE IDirect3D7
359 DECLARE_INTERFACE_(IDirect3D7
,IUnknown
)
361 /*** IUnknown methods ***/
362 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
363 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
364 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
365 /*** IDirect3D7 methods ***/
366 STDMETHOD(EnumDevices
)(THIS_ LPD3DENUMDEVICESCALLBACK7 cb
, void *ctx
) PURE
;
367 STDMETHOD(CreateDevice
)(THIS_ REFCLSID rclsid
, IDirectDrawSurface7
*surface
,
368 struct IDirect3DDevice7
**device
) PURE
;
369 STDMETHOD(CreateVertexBuffer
)(THIS_ D3DVERTEXBUFFERDESC
*desc
,
370 struct IDirect3DVertexBuffer7
**buffer
, DWORD flags
) PURE
;
371 STDMETHOD(EnumZBufferFormats
)(THIS_ REFCLSID device_iid
, LPD3DENUMPIXELFORMATSCALLBACK cb
, void *ctx
) PURE
;
372 STDMETHOD(EvictManagedTextures
)(THIS
) PURE
;
376 #if !defined(__cplusplus) || defined(CINTERFACE)
377 /*** IUnknown methods ***/
378 #define IDirect3D7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
379 #define IDirect3D7_AddRef(p) (p)->lpVtbl->AddRef(p)
380 #define IDirect3D7_Release(p) (p)->lpVtbl->Release(p)
381 /*** IDirect3D3 methods ***/
382 #define IDirect3D7_EnumDevices(p,a,b) (p)->lpVtbl->EnumDevices(p,a,b)
383 #define IDirect3D7_CreateDevice(p,a,b,c) (p)->lpVtbl->CreateDevice(p,a,b,c)
384 #define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c)
385 #define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->lpVtbl->EnumZBufferFormats(p,a,b,c)
386 #define IDirect3D7_EvictManagedTextures(p) (p)->lpVtbl->EvictManagedTextures(p)
388 /*** IUnknown methods ***/
389 #define IDirect3D7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
390 #define IDirect3D7_AddRef(p) (p)->AddRef()
391 #define IDirect3D7_Release(p) (p)->Release()
392 /*** IDirect3D3 methods ***/
393 #define IDirect3D7_EnumDevices(p,a,b) (p)->EnumDevices(a,b)
394 #define IDirect3D7_CreateDevice(p,a,b,c) (p)->CreateDevice(a,b,c)
395 #define IDirect3D7_CreateVertexBuffer(p,a,b,c) (p)->CreateVertexBuffer(a,b,c)
396 #define IDirect3D7_EnumZBufferFormats(p,a,b,c) (p)->EnumZBufferFormats(a,b,c)
397 #define IDirect3D7_EvictManagedTextures(p) (p)->EvictManagedTextures()
401 /*****************************************************************************
402 * IDirect3DLight interface
404 #define INTERFACE IDirect3DLight
405 DECLARE_INTERFACE_(IDirect3DLight
,IUnknown
)
407 /*** IUnknown methods ***/
408 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
409 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
410 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
411 /*** IDirect3DLight methods ***/
412 STDMETHOD(Initialize
)(THIS_ IDirect3D
*d3d
) PURE
;
413 STDMETHOD(SetLight
)(THIS_ D3DLIGHT
*data
) PURE
;
414 STDMETHOD(GetLight
)(THIS_ D3DLIGHT
*data
) PURE
;
418 #if !defined(__cplusplus) || defined(CINTERFACE)
419 /*** IUnknown methods ***/
420 #define IDirect3DLight_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
421 #define IDirect3DLight_AddRef(p) (p)->lpVtbl->AddRef(p)
422 #define IDirect3DLight_Release(p) (p)->lpVtbl->Release(p)
423 /*** IDirect3DLight methods ***/
424 #define IDirect3DLight_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
425 #define IDirect3DLight_SetLight(p,a) (p)->lpVtbl->SetLight(p,a)
426 #define IDirect3DLight_GetLight(p,a) (p)->lpVtbl->GetLight(p,a)
428 /*** IUnknown methods ***/
429 #define IDirect3DLight_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
430 #define IDirect3DLight_AddRef(p) (p)->AddRef()
431 #define IDirect3DLight_Release(p) (p)->Release()
432 /*** IDirect3DLight methods ***/
433 #define IDirect3DLight_Initialize(p,a) (p)->Initialize(a)
434 #define IDirect3DLight_SetLight(p,a) (p)->SetLight(a)
435 #define IDirect3DLight_GetLight(p,a) (p)->GetLight(a)
439 /*****************************************************************************
440 * IDirect3DMaterial interface
442 #define INTERFACE IDirect3DMaterial
443 DECLARE_INTERFACE_(IDirect3DMaterial
,IUnknown
)
445 /*** IUnknown methods ***/
446 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
447 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
448 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
449 /*** IDirect3DMaterial methods ***/
450 STDMETHOD(Initialize
)(THIS_ IDirect3D
*d3d
) PURE
;
451 STDMETHOD(SetMaterial
)(THIS_ D3DMATERIAL
*data
) PURE
;
452 STDMETHOD(GetMaterial
)(THIS_ D3DMATERIAL
*data
) PURE
;
453 STDMETHOD(GetHandle
)(THIS_
struct IDirect3DDevice
*device
, D3DMATERIALHANDLE
*handle
) PURE
;
454 STDMETHOD(Reserve
)(THIS
) PURE
;
455 STDMETHOD(Unreserve
)(THIS
) PURE
;
459 #if !defined(__cplusplus) || defined(CINTERFACE)
460 /*** IUnknown methods ***/
461 #define IDirect3DMaterial_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
462 #define IDirect3DMaterial_AddRef(p) (p)->lpVtbl->AddRef(p)
463 #define IDirect3DMaterial_Release(p) (p)->lpVtbl->Release(p)
464 /*** IDirect3DMaterial methods ***/
465 #define IDirect3DMaterial_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
466 #define IDirect3DMaterial_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
467 #define IDirect3DMaterial_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
468 #define IDirect3DMaterial_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
469 #define IDirect3DMaterial_Reserve(p) (p)->lpVtbl->Reserve(p)
470 #define IDirect3DMaterial_Unreserve(p) (p)->lpVtbl->Unreserve(p)
472 /*** IUnknown methods ***/
473 #define IDirect3DMaterial_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
474 #define IDirect3DMaterial_AddRef(p) (p)->AddRef()
475 #define IDirect3DMaterial_Release(p) (p)->Release()
476 /*** IDirect3DMaterial methods ***/
477 #define IDirect3DMaterial_Initialize(p,a) (p)->Initialize(a)
478 #define IDirect3DMaterial_SetMaterial(p,a) (p)->SetMaterial(a)
479 #define IDirect3DMaterial_GetMaterial(p,a) (p)->GetMaterial(a)
480 #define IDirect3DMaterial_GetHandle(p,a,b) (p)->GetHandle(a,b)
481 #define IDirect3DMaterial_Reserve(p) (p)->Reserve()
482 #define IDirect3DMaterial_Unreserve(p) (p)->Unreserve()
486 /*****************************************************************************
487 * IDirect3DMaterial2 interface
489 #define INTERFACE IDirect3DMaterial2
490 DECLARE_INTERFACE_(IDirect3DMaterial2
,IUnknown
)
492 /*** IUnknown methods ***/
493 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
494 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
495 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
496 /*** IDirect3DMaterial2 methods ***/
497 STDMETHOD(SetMaterial
)(THIS_ D3DMATERIAL
*data
) PURE
;
498 STDMETHOD(GetMaterial
)(THIS_ D3DMATERIAL
*data
) PURE
;
499 STDMETHOD(GetHandle
)(THIS_
struct IDirect3DDevice2
*device
, D3DMATERIALHANDLE
*handle
) PURE
;
503 #if !defined(__cplusplus) || defined(CINTERFACE)
504 /*** IUnknown methods ***/
505 #define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
506 #define IDirect3DMaterial2_AddRef(p) (p)->lpVtbl->AddRef(p)
507 #define IDirect3DMaterial2_Release(p) (p)->lpVtbl->Release(p)
508 /*** IDirect3DMaterial2 methods ***/
509 #define IDirect3DMaterial2_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
510 #define IDirect3DMaterial2_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
511 #define IDirect3DMaterial2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
513 /*** IUnknown methods ***/
514 #define IDirect3DMaterial2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
515 #define IDirect3DMaterial2_AddRef(p) (p)->AddRef()
516 #define IDirect3DMaterial2_Release(p) (p)->Release()
517 /*** IDirect3DMaterial2 methods ***/
518 #define IDirect3DMaterial2_SetMaterial(p,a) (p)->SetMaterial(a)
519 #define IDirect3DMaterial2_GetMaterial(p,a) (p)->GetMaterial(a)
520 #define IDirect3DMaterial2_GetHandle(p,a,b) (p)->GetHandle(a,b)
524 /*****************************************************************************
525 * IDirect3DMaterial3 interface
527 #define INTERFACE IDirect3DMaterial3
528 DECLARE_INTERFACE_(IDirect3DMaterial3
,IUnknown
)
530 /*** IUnknown methods ***/
531 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
532 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
533 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
534 /*** IDirect3DMaterial3 methods ***/
535 STDMETHOD(SetMaterial
)(THIS_ D3DMATERIAL
*data
) PURE
;
536 STDMETHOD(GetMaterial
)(THIS_ D3DMATERIAL
*data
) PURE
;
537 STDMETHOD(GetHandle
)(THIS_
struct IDirect3DDevice3
*device
, D3DMATERIALHANDLE
*handle
) PURE
;
541 #if !defined(__cplusplus) || defined(CINTERFACE)
542 /*** IUnknown methods ***/
543 #define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
544 #define IDirect3DMaterial3_AddRef(p) (p)->lpVtbl->AddRef(p)
545 #define IDirect3DMaterial3_Release(p) (p)->lpVtbl->Release(p)
546 /*** IDirect3DMaterial3 methods ***/
547 #define IDirect3DMaterial3_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
548 #define IDirect3DMaterial3_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
549 #define IDirect3DMaterial3_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
551 /*** IUnknown methods ***/
552 #define IDirect3DMaterial3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
553 #define IDirect3DMaterial3_AddRef(p) (p)->AddRef()
554 #define IDirect3DMaterial3_Release(p) (p)->Release()
555 /*** IDirect3DMaterial3 methods ***/
556 #define IDirect3DMaterial3_SetMaterial(p,a) (p)->SetMaterial(a)
557 #define IDirect3DMaterial3_GetMaterial(p,a) (p)->GetMaterial(a)
558 #define IDirect3DMaterial3_GetHandle(p,a,b) (p)->GetHandle(a,b)
562 /*****************************************************************************
563 * IDirect3DTexture interface
565 #define INTERFACE IDirect3DTexture
566 DECLARE_INTERFACE_(IDirect3DTexture
,IUnknown
)
568 /*** IUnknown methods ***/
569 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
570 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
571 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
572 /*** IDirect3DTexture methods ***/
573 STDMETHOD(Initialize
)(THIS_
struct IDirect3DDevice
*device
, IDirectDrawSurface
*surface
) PURE
;
574 STDMETHOD(GetHandle
)(THIS_
struct IDirect3DDevice
*device
, D3DTEXTUREHANDLE
*handle
) PURE
;
575 STDMETHOD(PaletteChanged
)(THIS_ DWORD dwStart
, DWORD dwCount
) PURE
;
576 STDMETHOD(Load
)(THIS_ IDirect3DTexture
*texture
) PURE
;
577 STDMETHOD(Unload
)(THIS
) PURE
;
581 #if !defined(__cplusplus) || defined(CINTERFACE)
582 /*** IUnknown methods ***/
583 #define IDirect3DTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
584 #define IDirect3DTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
585 #define IDirect3DTexture_Release(p) (p)->lpVtbl->Release(p)
586 /*** IDirect3DTexture methods ***/
587 #define IDirect3DTexture_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
588 #define IDirect3DTexture_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
589 #define IDirect3DTexture_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b)
590 #define IDirect3DTexture_Load(p,a) (p)->lpVtbl->Load(p,a)
591 #define IDirect3DTexture_Unload(p) (p)->lpVtbl->Unload(p)
593 /*** IUnknown methods ***/
594 #define IDirect3DTexture_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
595 #define IDirect3DTexture_AddRef(p) (p)->AddRef()
596 #define IDirect3DTexture_Release(p) (p)->Release()
597 /*** IDirect3DTexture methods ***/
598 #define IDirect3DTexture_Initialize(p,a,b) (p)->Initialize(a,b)
599 #define IDirect3DTexture_GetHandle(p,a,b) (p)->GetHandle(a,b)
600 #define IDirect3DTexture_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b)
601 #define IDirect3DTexture_Load(p,a) (p)->Load(a)
602 #define IDirect3DTexture_Unload(p) (p)->Unload()
606 /*****************************************************************************
607 * IDirect3DTexture2 interface
609 #define INTERFACE IDirect3DTexture2
610 DECLARE_INTERFACE_(IDirect3DTexture2
,IUnknown
)
612 /*** IUnknown methods ***/
613 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
614 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
615 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
616 /*** IDirect3DTexture2 methods ***/
617 STDMETHOD(GetHandle
)(THIS_
struct IDirect3DDevice2
*device
, D3DTEXTUREHANDLE
*handle
) PURE
;
618 STDMETHOD(PaletteChanged
)(THIS_ DWORD dwStart
, DWORD dwCount
) PURE
;
619 STDMETHOD(Load
)(THIS_ IDirect3DTexture2
*texture
) PURE
;
623 #if !defined(__cplusplus) || defined(CINTERFACE)
624 /*** IUnknown methods ***/
625 #define IDirect3DTexture2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
626 #define IDirect3DTexture2_AddRef(p) (p)->lpVtbl->AddRef(p)
627 #define IDirect3DTexture2_Release(p) (p)->lpVtbl->Release(p)
628 /*** IDirect3DTexture2 methods ***/
629 #define IDirect3DTexture2_GetHandle(p,a,b) (p)->lpVtbl->GetHandle(p,a,b)
630 #define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->lpVtbl->PaletteChanged(p,a,b)
631 #define IDirect3DTexture2_Load(p,a) (p)->lpVtbl->Load(p,a)
633 /*** IUnknown methods ***/
634 #define IDirect3DTexture2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
635 #define IDirect3DTexture2_AddRef(p) (p)->AddRef()
636 #define IDirect3DTexture2_Release(p) (p)->Release()
637 /*** IDirect3DTexture2 methods ***/
638 #define IDirect3DTexture2_GetHandle(p,a,b) (p)->GetHandle(a,b)
639 #define IDirect3DTexture2_PaletteChanged(p,a,b) (p)->PaletteChanged(a,b)
640 #define IDirect3DTexture2_Load(p,a) (p)->Load(a)
644 /*****************************************************************************
645 * IDirect3DViewport interface
647 #define INTERFACE IDirect3DViewport
648 DECLARE_INTERFACE_(IDirect3DViewport
,IUnknown
)
650 /*** IUnknown methods ***/
651 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
652 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
653 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
654 /*** IDirect3DViewport methods ***/
655 STDMETHOD(Initialize
)(THIS_ IDirect3D
*d3d
) PURE
;
656 STDMETHOD(GetViewport
)(THIS_ D3DVIEWPORT
*data
) PURE
;
657 STDMETHOD(SetViewport
)(THIS_ D3DVIEWPORT
*data
) PURE
;
658 STDMETHOD(TransformVertices
)(THIS_ DWORD vertex_count
, D3DTRANSFORMDATA
*data
, DWORD flags
, DWORD
*offscreen
) PURE
;
659 STDMETHOD(LightElements
)(THIS_ DWORD element_count
, D3DLIGHTDATA
*data
) PURE
;
660 STDMETHOD(SetBackground
)(THIS_ D3DMATERIALHANDLE hMat
) PURE
;
661 STDMETHOD(GetBackground
)(THIS_ D3DMATERIALHANDLE
*material
, BOOL
*valid
) PURE
;
662 STDMETHOD(SetBackgroundDepth
)(THIS_ IDirectDrawSurface
*surface
) PURE
;
663 STDMETHOD(GetBackgroundDepth
)(THIS_ IDirectDrawSurface
**surface
, BOOL
*valid
) PURE
;
664 STDMETHOD(Clear
)(THIS_ DWORD count
, D3DRECT
*rects
, DWORD flags
) PURE
;
665 STDMETHOD(AddLight
)(THIS_ IDirect3DLight
*light
) PURE
;
666 STDMETHOD(DeleteLight
)(THIS_ IDirect3DLight
*light
) PURE
;
667 STDMETHOD(NextLight
)(THIS_ IDirect3DLight
*ref
, IDirect3DLight
**light
, DWORD flags
) PURE
;
671 #if !defined(__cplusplus) || defined(CINTERFACE)
672 /*** IUnknown methods ***/
673 #define IDirect3DViewport_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
674 #define IDirect3DViewport_AddRef(p) (p)->lpVtbl->AddRef(p)
675 #define IDirect3DViewport_Release(p) (p)->lpVtbl->Release(p)
676 /*** IDirect3DViewport methods ***/
677 #define IDirect3DViewport_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
678 #define IDirect3DViewport_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
679 #define IDirect3DViewport_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
680 #define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d)
681 #define IDirect3DViewport_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b)
682 #define IDirect3DViewport_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a)
683 #define IDirect3DViewport_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b)
684 #define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a)
685 #define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b)
686 #define IDirect3DViewport_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c)
687 #define IDirect3DViewport_AddLight(p,a) (p)->lpVtbl->AddLight(p,a)
688 #define IDirect3DViewport_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a)
689 #define IDirect3DViewport_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c)
691 /*** IUnknown methods ***/
692 #define IDirect3DViewport_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
693 #define IDirect3DViewport_AddRef(p) (p)->AddRef()
694 #define IDirect3DViewport_Release(p) (p)->Release()
695 /*** IDirect3DViewport methods ***/
696 #define IDirect3DViewport_Initialize(p,a) (p)->Initialize(a)
697 #define IDirect3DViewport_GetViewport(p,a) (p)->GetViewport(a)
698 #define IDirect3DViewport_SetViewport(p,a) (p)->SetViewport(a)
699 #define IDirect3DViewport_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d)
700 #define IDirect3DViewport_LightElements(p,a,b) (p)->LightElements(a,b)
701 #define IDirect3DViewport_SetBackground(p,a) (p)->SetBackground(a)
702 #define IDirect3DViewport_GetBackground(p,a,b) (p)->GetBackground(a,b)
703 #define IDirect3DViewport_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a)
704 #define IDirect3DViewport_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b)
705 #define IDirect3DViewport_Clear(p,a,b,c) (p)->Clear(a,b,c)
706 #define IDirect3DViewport_AddLight(p,a) (p)->AddLight(a)
707 #define IDirect3DViewport_DeleteLight(p,a) (p)->DeleteLight(a)
708 #define IDirect3DViewport_NextLight(p,a,b,c) (p)->NextLight(a,b,c)
712 /*****************************************************************************
713 * IDirect3DViewport2 interface
715 #define INTERFACE IDirect3DViewport2
716 DECLARE_INTERFACE_(IDirect3DViewport2
,IDirect3DViewport
)
718 /*** IUnknown methods ***/
719 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
720 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
721 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
722 /*** IDirect3DViewport methods ***/
723 STDMETHOD(Initialize
)(THIS_ IDirect3D
*d3d
) PURE
;
724 STDMETHOD(GetViewport
)(THIS_ D3DVIEWPORT
*data
) PURE
;
725 STDMETHOD(SetViewport
)(THIS_ D3DVIEWPORT
*data
) PURE
;
726 STDMETHOD(TransformVertices
)(THIS_ DWORD vertex_count
, D3DTRANSFORMDATA
*data
, DWORD flags
, DWORD
*offscreen
) PURE
;
727 STDMETHOD(LightElements
)(THIS_ DWORD element_count
, D3DLIGHTDATA
*data
) PURE
;
728 STDMETHOD(SetBackground
)(THIS_ D3DMATERIALHANDLE hMat
) PURE
;
729 STDMETHOD(GetBackground
)(THIS_ D3DMATERIALHANDLE
*material
, BOOL
*valid
) PURE
;
730 STDMETHOD(SetBackgroundDepth
)(THIS_ IDirectDrawSurface
*surface
) PURE
;
731 STDMETHOD(GetBackgroundDepth
)(THIS_ IDirectDrawSurface
**surface
, BOOL
*valid
) PURE
;
732 STDMETHOD(Clear
)(THIS_ DWORD count
, D3DRECT
*rects
, DWORD flags
) PURE
;
733 STDMETHOD(AddLight
)(THIS_ IDirect3DLight
*light
) PURE
;
734 STDMETHOD(DeleteLight
)(THIS_ IDirect3DLight
*light
) PURE
;
735 STDMETHOD(NextLight
)(THIS_ IDirect3DLight
*ref
, IDirect3DLight
**light
, DWORD flags
) PURE
;
736 /*** IDirect3DViewport2 methods ***/
737 STDMETHOD(GetViewport2
)(THIS_ D3DVIEWPORT2
*data
) PURE
;
738 STDMETHOD(SetViewport2
)(THIS_ D3DVIEWPORT2
*data
) PURE
;
742 #if !defined(__cplusplus) || defined(CINTERFACE)
743 /*** IUnknown methods ***/
744 #define IDirect3DViewport2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
745 #define IDirect3DViewport2_AddRef(p) (p)->lpVtbl->AddRef(p)
746 #define IDirect3DViewport2_Release(p) (p)->lpVtbl->Release(p)
747 /*** IDirect3Viewport methods ***/
748 #define IDirect3DViewport2_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
749 #define IDirect3DViewport2_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
750 #define IDirect3DViewport2_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
751 #define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d)
752 #define IDirect3DViewport2_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b)
753 #define IDirect3DViewport2_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a)
754 #define IDirect3DViewport2_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b)
755 #define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a)
756 #define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b)
757 #define IDirect3DViewport2_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c)
758 #define IDirect3DViewport2_AddLight(p,a) (p)->lpVtbl->AddLight(p,a)
759 #define IDirect3DViewport2_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a)
760 #define IDirect3DViewport2_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c)
761 /*** IDirect3DViewport2 methods ***/
762 #define IDirect3DViewport2_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a)
763 #define IDirect3DViewport2_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a)
765 /*** IUnknown methods ***/
766 #define IDirect3DViewport2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
767 #define IDirect3DViewport2_AddRef(p) (p)->AddRef()
768 #define IDirect3DViewport2_Release(p) (p)->Release()
769 /*** IDirect3Viewport methods ***/
770 #define IDirect3DViewport2_Initialize(p,a) (p)->Initialize(a)
771 #define IDirect3DViewport2_GetViewport(p,a) (p)->GetViewport(a)
772 #define IDirect3DViewport2_SetViewport(p,a) (p)->SetViewport(a)
773 #define IDirect3DViewport2_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d)
774 #define IDirect3DViewport2_LightElements(p,a,b) (p)->LightElements(a,b)
775 #define IDirect3DViewport2_SetBackground(p,a) (p)->SetBackground(a)
776 #define IDirect3DViewport2_GetBackground(p,a,b) (p)->GetBackground(a,b)
777 #define IDirect3DViewport2_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a)
778 #define IDirect3DViewport2_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b)
779 #define IDirect3DViewport2_Clear(p,a,b,c) (p)->Clear(a,b,c)
780 #define IDirect3DViewport2_AddLight(p,a) (p)->AddLight(a)
781 #define IDirect3DViewport2_DeleteLight(p,a) (p)->DeleteLight(a)
782 #define IDirect3DViewport2_NextLight(p,a,b,c) (p)->NextLight(a,b,c)
783 /*** IDirect3DViewport2 methods ***/
784 #define IDirect3DViewport2_GetViewport2(p,a) (p)->GetViewport2(a)
785 #define IDirect3DViewport2_SetViewport2(p,a) (p)->SetViewport2(a)
788 /*****************************************************************************
789 * IDirect3DViewport3 interface
791 #define INTERFACE IDirect3DViewport3
792 DECLARE_INTERFACE_(IDirect3DViewport3
,IDirect3DViewport2
)
794 /*** IUnknown methods ***/
795 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
796 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
797 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
798 /*** IDirect3DViewport methods ***/
799 STDMETHOD(Initialize
)(THIS_ IDirect3D
*d3d
) PURE
;
800 STDMETHOD(GetViewport
)(THIS_ D3DVIEWPORT
*data
) PURE
;
801 STDMETHOD(SetViewport
)(THIS_ D3DVIEWPORT
*data
) PURE
;
802 STDMETHOD(TransformVertices
)(THIS_ DWORD vertex_count
, D3DTRANSFORMDATA
*data
, DWORD flags
, DWORD
*offscreen
) PURE
;
803 STDMETHOD(LightElements
)(THIS_ DWORD element_count
, D3DLIGHTDATA
*data
) PURE
;
804 STDMETHOD(SetBackground
)(THIS_ D3DMATERIALHANDLE hMat
) PURE
;
805 STDMETHOD(GetBackground
)(THIS_ D3DMATERIALHANDLE
*material
, BOOL
*valid
) PURE
;
806 STDMETHOD(SetBackgroundDepth
)(THIS_ IDirectDrawSurface
*surface
) PURE
;
807 STDMETHOD(GetBackgroundDepth
)(THIS_ IDirectDrawSurface
**surface
, BOOL
*valid
) PURE
;
808 STDMETHOD(Clear
)(THIS_ DWORD count
, D3DRECT
*rects
, DWORD flags
) PURE
;
809 STDMETHOD(AddLight
)(THIS_ IDirect3DLight
*light
) PURE
;
810 STDMETHOD(DeleteLight
)(THIS_ IDirect3DLight
*light
) PURE
;
811 STDMETHOD(NextLight
)(THIS_ IDirect3DLight
*ref
, IDirect3DLight
**light
, DWORD flags
) PURE
;
812 /*** IDirect3DViewport2 methods ***/
813 STDMETHOD(GetViewport2
)(THIS_ D3DVIEWPORT2
*data
) PURE
;
814 STDMETHOD(SetViewport2
)(THIS_ D3DVIEWPORT2
*data
) PURE
;
815 /*** IDirect3DViewport3 methods ***/
816 STDMETHOD(SetBackgroundDepth2
)(THIS_ IDirectDrawSurface4
*surface
) PURE
;
817 STDMETHOD(GetBackgroundDepth2
)(THIS_ IDirectDrawSurface4
**surface
, BOOL
*valid
) PURE
;
818 STDMETHOD(Clear2
)(THIS_ DWORD count
, D3DRECT
*rects
, DWORD flags
, DWORD color
, D3DVALUE z
, DWORD stencil
) PURE
;
822 #if !defined(__cplusplus) || defined(CINTERFACE)
823 /*** IUnknown methods ***/
824 #define IDirect3DViewport3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
825 #define IDirect3DViewport3_AddRef(p) (p)->lpVtbl->AddRef(p)
826 #define IDirect3DViewport3_Release(p) (p)->lpVtbl->Release(p)
827 /*** IDirect3Viewport methods ***/
828 #define IDirect3DViewport3_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
829 #define IDirect3DViewport3_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
830 #define IDirect3DViewport3_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
831 #define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->lpVtbl->TransformVertices(p,a,b,c,d)
832 #define IDirect3DViewport3_LightElements(p,a,b) (p)->lpVtbl->LightElements(p,a,b)
833 #define IDirect3DViewport3_SetBackground(p,a) (p)->lpVtbl->SetBackground(p,a)
834 #define IDirect3DViewport3_GetBackground(p,a,b) (p)->lpVtbl->GetBackground(p,a,b)
835 #define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->lpVtbl->SetBackgroundDepth(p,a)
836 #define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->lpVtbl->GetBackgroundDepth(p,a,b)
837 #define IDirect3DViewport3_Clear(p,a,b,c) (p)->lpVtbl->Clear(p,a,b,c)
838 #define IDirect3DViewport3_AddLight(p,a) (p)->lpVtbl->AddLight(p,a)
839 #define IDirect3DViewport3_DeleteLight(p,a) (p)->lpVtbl->DeleteLight(p,a)
840 #define IDirect3DViewport3_NextLight(p,a,b,c) (p)->lpVtbl->NextLight(p,a,b,c)
841 /*** IDirect3DViewport2 methods ***/
842 #define IDirect3DViewport3_GetViewport2(p,a) (p)->lpVtbl->GetViewport2(p,a)
843 #define IDirect3DViewport3_SetViewport2(p,a) (p)->lpVtbl->SetViewport2(p,a)
844 /*** IDirect3DViewport3 methods ***/
845 #define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->lpVtbl->SetBackgroundDepth2(p,a)
846 #define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->lpVtbl->GetBackgroundDepth2(p,a,b)
847 #define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->lpVtbl->Clear2(p,a,b,c,d,e,f)
849 /*** IUnknown methods ***/
850 #define IDirect3DViewport3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
851 #define IDirect3DViewport3_AddRef(p) (p)->AddRef()
852 #define IDirect3DViewport3_Release(p) (p)->Release()
853 /*** IDirect3Viewport methods ***/
854 #define IDirect3DViewport3_Initialize(p,a) (p)->Initialize(a)
855 #define IDirect3DViewport3_GetViewport(p,a) (p)->GetViewport(a)
856 #define IDirect3DViewport3_SetViewport(p,a) (p)->SetViewport(a)
857 #define IDirect3DViewport3_TransformVertices(p,a,b,c,d) (p)->TransformVertices(a,b,c,d)
858 #define IDirect3DViewport3_LightElements(p,a,b) (p)->LightElements(a,b)
859 #define IDirect3DViewport3_SetBackground(p,a) (p)->SetBackground(a)
860 #define IDirect3DViewport3_GetBackground(p,a,b) (p)->GetBackground(a,b)
861 #define IDirect3DViewport3_SetBackgroundDepth(p,a) (p)->SetBackgroundDepth(a)
862 #define IDirect3DViewport3_GetBackgroundDepth(p,a,b) (p)->GetBackgroundDepth(a,b)
863 #define IDirect3DViewport3_Clear(p,a,b,c) (p)->Clear(a,b,c)
864 #define IDirect3DViewport3_AddLight(p,a) (p)->AddLight(a)
865 #define IDirect3DViewport3_DeleteLight(p,a) (p)->DeleteLight(a)
866 #define IDirect3DViewport3_NextLight(p,a,b,c) (p)->NextLight(a,b,c)
867 /*** IDirect3DViewport2 methods ***/
868 #define IDirect3DViewport3_GetViewport2(p,a) (p)->GetViewport2(a)
869 #define IDirect3DViewport3_SetViewport2(p,a) (p)->SetViewport2(a)
870 /*** IDirect3DViewport3 methods ***/
871 #define IDirect3DViewport3_SetBackgroundDepth2(p,a) (p)->SetBackgroundDepth2(a)
872 #define IDirect3DViewport3_GetBackgroundDepth2(p,a,b) (p)->GetBackgroundDepth2(a,b)
873 #define IDirect3DViewport3_Clear2(p,a,b,c,d,e,f) (p)->Clear2(a,b,c,d,e,f)
878 /*****************************************************************************
879 * IDirect3DExecuteBuffer interface
881 #define INTERFACE IDirect3DExecuteBuffer
882 DECLARE_INTERFACE_(IDirect3DExecuteBuffer
,IUnknown
)
884 /*** IUnknown methods ***/
885 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
886 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
887 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
888 /*** IDirect3DExecuteBuffer methods ***/
889 STDMETHOD(Initialize
)(THIS_
struct IDirect3DDevice
*device
, D3DEXECUTEBUFFERDESC
*desc
) PURE
;
890 STDMETHOD(Lock
)(THIS_ D3DEXECUTEBUFFERDESC
*desc
) PURE
;
891 STDMETHOD(Unlock
)(THIS
) PURE
;
892 STDMETHOD(SetExecuteData
)(THIS_ D3DEXECUTEDATA
*data
) PURE
;
893 STDMETHOD(GetExecuteData
)(THIS_ D3DEXECUTEDATA
*data
) PURE
;
894 STDMETHOD(Validate
)(THIS_ DWORD
*offset
, LPD3DVALIDATECALLBACK cb
, void *ctx
, DWORD reserved
) PURE
;
895 STDMETHOD(Optimize
)(THIS_ DWORD dwDummy
) PURE
;
899 #if !defined(__cplusplus) || defined(CINTERFACE)
900 /*** IUnknown methods ***/
901 #define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
902 #define IDirect3DExecuteBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
903 #define IDirect3DExecuteBuffer_Release(p) (p)->lpVtbl->Release(p)
904 /*** IDirect3DExecuteBuffer methods ***/
905 #define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->lpVtbl->Initialize(p,a,b)
906 #define IDirect3DExecuteBuffer_Lock(p,a) (p)->lpVtbl->Lock(p,a)
907 #define IDirect3DExecuteBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
908 #define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->lpVtbl->SetExecuteData(p,a)
909 #define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->lpVtbl->GetExecuteData(p,a)
910 #define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->lpVtbl->Validate(p,a,b,c,d)
911 #define IDirect3DExecuteBuffer_Optimize(p,a) (p)->lpVtbl->Optimize(p,a)
913 /*** IUnknown methods ***/
914 #define IDirect3DExecuteBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
915 #define IDirect3DExecuteBuffer_AddRef(p) (p)->AddRef()
916 #define IDirect3DExecuteBuffer_Release(p) (p)->Release()
917 /*** IDirect3DExecuteBuffer methods ***/
918 #define IDirect3DExecuteBuffer_Initialize(p,a,b) (p)->Initialize(a,b)
919 #define IDirect3DExecuteBuffer_Lock(p,a) (p)->Lock(a)
920 #define IDirect3DExecuteBuffer_Unlock(p) (p)->Unlock()
921 #define IDirect3DExecuteBuffer_SetExecuteData(p,a) (p)->SetExecuteData(a)
922 #define IDirect3DExecuteBuffer_GetExecuteData(p,a) (p)->GetExecuteData(a)
923 #define IDirect3DExecuteBuffer_Validate(p,a,b,c,d) (p)->Validate(a,b,c,d)
924 #define IDirect3DExecuteBuffer_Optimize(p,a) (p)->Optimize(a)
928 /*****************************************************************************
929 * IDirect3DDevice interface
931 #define INTERFACE IDirect3DDevice
932 DECLARE_INTERFACE_(IDirect3DDevice
,IUnknown
)
934 /*** IUnknown methods ***/
935 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
936 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
937 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
938 /*** IDirect3DDevice methods ***/
939 STDMETHOD(Initialize
)(THIS_ IDirect3D
*d3d
, GUID
*guid
, D3DDEVICEDESC
*desc
) PURE
;
940 STDMETHOD(GetCaps
)(THIS_ D3DDEVICEDESC
*hal_desc
, D3DDEVICEDESC
*hel_desc
) PURE
;
941 STDMETHOD(SwapTextureHandles
)(THIS_ IDirect3DTexture
*tex1
, IDirect3DTexture
*tex2
) PURE
;
942 STDMETHOD(CreateExecuteBuffer
)(THIS_ D3DEXECUTEBUFFERDESC
*desc
,
943 IDirect3DExecuteBuffer
**buffer
, IUnknown
*outer
) PURE
;
944 STDMETHOD(GetStats
)(THIS_ D3DSTATS
*stats
) PURE
;
945 STDMETHOD(Execute
)(THIS_ IDirect3DExecuteBuffer
*buffer
, IDirect3DViewport
*viewport
,
947 STDMETHOD(AddViewport
)(THIS_ IDirect3DViewport
*viewport
) PURE
;
948 STDMETHOD(DeleteViewport
)(THIS_ IDirect3DViewport
*viewport
) PURE
;
949 STDMETHOD(NextViewport
)(THIS_ IDirect3DViewport
*ref
,
950 IDirect3DViewport
**viewport
, DWORD flags
) PURE
;
951 STDMETHOD(Pick
)(THIS_ IDirect3DExecuteBuffer
*buffer
, IDirect3DViewport
*viewport
,
952 DWORD flags
, D3DRECT
*rect
) PURE
;
953 STDMETHOD(GetPickRecords
)(THIS_ DWORD
*count
, D3DPICKRECORD
*records
) PURE
;
954 STDMETHOD(EnumTextureFormats
)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK cb
, void *ctx
) PURE
;
955 STDMETHOD(CreateMatrix
)(THIS_ D3DMATRIXHANDLE
*matrix
) PURE
;
956 STDMETHOD(SetMatrix
)(THIS_ D3DMATRIXHANDLE handle
, D3DMATRIX
*matrix
) PURE
;
957 STDMETHOD(GetMatrix
)(THIS_ D3DMATRIXHANDLE handle
, D3DMATRIX
*matrix
) PURE
;
958 STDMETHOD(DeleteMatrix
)(THIS_ D3DMATRIXHANDLE D3DMatHandle
) PURE
;
959 STDMETHOD(BeginScene
)(THIS
) PURE
;
960 STDMETHOD(EndScene
)(THIS
) PURE
;
961 STDMETHOD(GetDirect3D
)(THIS_ IDirect3D
**d3d
) PURE
;
965 #if !defined(__cplusplus) || defined(CINTERFACE)
966 /*** IUnknown methods ***/
967 #define IDirect3DDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
968 #define IDirect3DDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
969 #define IDirect3DDevice_Release(p) (p)->lpVtbl->Release(p)
970 /*** IDirect3DDevice methods ***/
971 #define IDirect3DDevice_Initialize(p,a,b,c) (p)->lpVtbl->Initialize(p,a,b,c)
972 #define IDirect3DDevice_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
973 #define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b)
974 #define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->lpVtbl->CreateExecuteBuffer(p,a,b,c)
975 #define IDirect3DDevice_GetStats(p,a) (p)->lpVtbl->GetStats(p,a)
976 #define IDirect3DDevice_Execute(p,a,b,c) (p)->lpVtbl->Execute(p,a,b,c)
977 #define IDirect3DDevice_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a)
978 #define IDirect3DDevice_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a)
979 #define IDirect3DDevice_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c)
980 #define IDirect3DDevice_Pick(p,a,b,c,d) (p)->lpVtbl->Pick(p,a,b,c,d)
981 #define IDirect3DDevice_GetPickRecords(p,a,b) (p)->lpVtbl->GetPickRecords(p,a,b)
982 #define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
983 #define IDirect3DDevice_CreateMatrix(p,a) (p)->lpVtbl->CreateMatrix(p,a)
984 #define IDirect3DDevice_SetMatrix(p,a,b) (p)->lpVtbl->SetMatrix(p,a,b)
985 #define IDirect3DDevice_GetMatrix(p,a,b) (p)->lpVtbl->GetMatrix(p,a,b)
986 #define IDirect3DDevice_DeleteMatrix(p,a) (p)->lpVtbl->DeleteMatrix(p,a)
987 #define IDirect3DDevice_BeginScene(p) (p)->lpVtbl->BeginScene(p)
988 #define IDirect3DDevice_EndScene(p) (p)->lpVtbl->EndScene(p)
989 #define IDirect3DDevice_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
991 /*** IUnknown methods ***/
992 #define IDirect3DDevice_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
993 #define IDirect3DDevice_AddRef(p) (p)->AddRef()
994 #define IDirect3DDevice_Release(p) (p)->Release()
995 /*** IDirect3DDevice methods ***/
996 #define IDirect3DDevice_Initialize(p,a,b,c) (p)->Initialize(a,b,c)
997 #define IDirect3DDevice_GetCaps(p,a,b) (p)->GetCaps(a,b)
998 #define IDirect3DDevice_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b)
999 #define IDirect3DDevice_CreateExecuteBuffer(p,a,b,c) (p)->CreateExecuteBuffer(a,b,c)
1000 #define IDirect3DDevice_GetStats(p,a) (p)->GetStats(a)
1001 #define IDirect3DDevice_Execute(p,a,b,c) (p)->Execute(a,b,c)
1002 #define IDirect3DDevice_AddViewport(p,a) (p)->AddViewport(a)
1003 #define IDirect3DDevice_DeleteViewport(p,a) (p)->DeleteViewport(a)
1004 #define IDirect3DDevice_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c)
1005 #define IDirect3DDevice_Pick(p,a,b,c,d) (p)->Pick(a,b,c,d)
1006 #define IDirect3DDevice_GetPickRecords(p,a,b) (p)->GetPickRecords(a,b)
1007 #define IDirect3DDevice_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
1008 #define IDirect3DDevice_CreateMatrix(p,a) (p)->CreateMatrix(a)
1009 #define IDirect3DDevice_SetMatrix(p,a,b) (p)->SetMatrix(a,b)
1010 #define IDirect3DDevice_GetMatrix(p,a,b) (p)->GetMatrix(a,b)
1011 #define IDirect3DDevice_DeleteMatrix(p,a) (p)->DeleteMatrix(a)
1012 #define IDirect3DDevice_BeginScene(p) (p)->BeginScene()
1013 #define IDirect3DDevice_EndScene(p) (p)->EndScene()
1014 #define IDirect3DDevice_GetDirect3D(p,a) (p)->GetDirect3D(a)
1018 /*****************************************************************************
1019 * IDirect3DDevice2 interface
1021 #define INTERFACE IDirect3DDevice2
1022 DECLARE_INTERFACE_(IDirect3DDevice2
,IUnknown
)
1024 /*** IUnknown methods ***/
1025 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1026 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1027 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1028 /*** IDirect3DDevice2 methods ***/
1029 STDMETHOD(GetCaps
)(THIS_ D3DDEVICEDESC
*hal_desc
, D3DDEVICEDESC
*hel_desc
) PURE
;
1030 STDMETHOD(SwapTextureHandles
)(THIS_ IDirect3DTexture2
*tex1
, IDirect3DTexture2
*tex2
) PURE
;
1031 STDMETHOD(GetStats
)(THIS_ D3DSTATS
*stats
) PURE
;
1032 STDMETHOD(AddViewport
)(THIS_ IDirect3DViewport2
*viewport
) PURE
;
1033 STDMETHOD(DeleteViewport
)(THIS_ IDirect3DViewport2
*viewport
) PURE
;
1034 STDMETHOD(NextViewport
)(THIS_ IDirect3DViewport2
*ref
,
1035 IDirect3DViewport2
**viewport
, DWORD flags
) PURE
;
1036 STDMETHOD(EnumTextureFormats
)(THIS_ LPD3DENUMTEXTUREFORMATSCALLBACK cb
, void *ctx
) PURE
;
1037 STDMETHOD(BeginScene
)(THIS
) PURE
;
1038 STDMETHOD(EndScene
)(THIS
) PURE
;
1039 STDMETHOD(GetDirect3D
)(THIS_ IDirect3D2
**d3d
) PURE
;
1040 /*** DrawPrimitive API ***/
1041 STDMETHOD(SetCurrentViewport
)(THIS_ IDirect3DViewport2
*viewport
) PURE
;
1042 STDMETHOD(GetCurrentViewport
)(THIS_ IDirect3DViewport2
**viewport
) PURE
;
1043 STDMETHOD(SetRenderTarget
)(THIS_ IDirectDrawSurface
*surface
, DWORD flags
) PURE
;
1044 STDMETHOD(GetRenderTarget
)(THIS_ IDirectDrawSurface
**surface
) PURE
;
1045 STDMETHOD(Begin
)(THIS_ D3DPRIMITIVETYPE d3dpt
,D3DVERTEXTYPE dwVertexTypeDesc
,DWORD dwFlags
) PURE
;
1046 STDMETHOD(BeginIndexed
)(THIS_ D3DPRIMITIVETYPE primitive_type
, D3DVERTEXTYPE vertex_type
,
1047 void *vertices
, DWORD vertex_count
, DWORD flags
) PURE
;
1048 STDMETHOD(Vertex
)(THIS_
void *vertex
) PURE
;
1049 STDMETHOD(Index
)(THIS_ WORD wVertexIndex
) PURE
;
1050 STDMETHOD(End
)(THIS_ DWORD dwFlags
) PURE
;
1051 STDMETHOD(GetRenderState
)(THIS_ D3DRENDERSTATETYPE dwRenderStateType
, LPDWORD lpdwRenderState
) PURE
;
1052 STDMETHOD(SetRenderState
)(THIS_ D3DRENDERSTATETYPE dwRenderStateType
, DWORD dwRenderState
) PURE
;
1053 STDMETHOD(GetLightState
)(THIS_ D3DLIGHTSTATETYPE dwLightStateType
, LPDWORD lpdwLightState
) PURE
;
1054 STDMETHOD(SetLightState
)(THIS_ D3DLIGHTSTATETYPE dwLightStateType
, DWORD dwLightState
) PURE
;
1055 STDMETHOD(SetTransform
)(THIS_ D3DTRANSFORMSTATETYPE state
, D3DMATRIX
*matrix
) PURE
;
1056 STDMETHOD(GetTransform
)(THIS_ D3DTRANSFORMSTATETYPE state
, D3DMATRIX
*matrix
) PURE
;
1057 STDMETHOD(MultiplyTransform
)(THIS_ D3DTRANSFORMSTATETYPE state
, D3DMATRIX
*matrix
) PURE
;
1058 STDMETHOD(DrawPrimitive
)(THIS_ D3DPRIMITIVETYPE primitive_type
, D3DVERTEXTYPE vertex_type
,
1059 void *vertices
, DWORD vertex_count
, DWORD flags
) PURE
;
1060 STDMETHOD(DrawIndexedPrimitive
)(THIS_ D3DPRIMITIVETYPE primitive_type
, D3DVERTEXTYPE vertex_type
,
1061 void *vertices
, DWORD vertex_count
, WORD
*indices
, DWORD index_count
, DWORD flags
) PURE
;
1062 STDMETHOD(SetClipStatus
)(THIS_ D3DCLIPSTATUS
*clip_status
) PURE
;
1063 STDMETHOD(GetClipStatus
)(THIS_ D3DCLIPSTATUS
*clip_status
) PURE
;
1067 #if !defined(__cplusplus) || defined(CINTERFACE)
1068 /*** IUnknown methods ***/
1069 #define IDirect3DDevice2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1070 #define IDirect3DDevice2_AddRef(p) (p)->lpVtbl->AddRef(p)
1071 #define IDirect3DDevice2_Release(p) (p)->lpVtbl->Release(p)
1072 /*** IDirect3DDevice2 methods ***/
1073 #define IDirect3DDevice2_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
1074 #define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->lpVtbl->SwapTextureHandles(p,a,b)
1075 #define IDirect3DDevice2_GetStats(p,a) (p)->lpVtbl->GetStats(p,a)
1076 #define IDirect3DDevice2_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a)
1077 #define IDirect3DDevice2_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a)
1078 #define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c)
1079 #define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
1080 #define IDirect3DDevice2_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1081 #define IDirect3DDevice2_EndScene(p) (p)->lpVtbl->EndScene(p)
1082 #define IDirect3DDevice2_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1083 #define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a)
1084 #define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a)
1085 #define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1086 #define IDirect3DDevice2_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
1087 #define IDirect3DDevice2_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c)
1088 #define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e)
1089 #define IDirect3DDevice2_Vertex(p,a) (p)->lpVtbl->Vertex(p,a)
1090 #define IDirect3DDevice2_Index(p,a) (p)->lpVtbl->Index(p,a)
1091 #define IDirect3DDevice2_End(p,a) (p)->lpVtbl->End(p,a)
1092 #define IDirect3DDevice2_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1093 #define IDirect3DDevice2_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1094 #define IDirect3DDevice2_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b)
1095 #define IDirect3DDevice2_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b)
1096 #define IDirect3DDevice2_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1097 #define IDirect3DDevice2_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1098 #define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1099 #define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e)
1100 #define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g)
1101 #define IDirect3DDevice2_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1102 #define IDirect3DDevice2_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1104 /*** IUnknown methods ***/
1105 #define IDirect3DDevice2_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1106 #define IDirect3DDevice2_AddRef(p) (p)->AddRef()
1107 #define IDirect3DDevice2_Release(p) (p)->Release()
1108 /*** IDirect3DDevice2 methods ***/
1109 #define IDirect3DDevice2_GetCaps(p,a,b) (p)->GetCaps(a,b)
1110 #define IDirect3DDevice2_SwapTextureHandles(p,a,b) (p)->SwapTextureHandles(a,b)
1111 #define IDirect3DDevice2_GetStats(p,a) (p)->GetStats(a)
1112 #define IDirect3DDevice2_AddViewport(p,a) (p)->AddViewport(a)
1113 #define IDirect3DDevice2_DeleteViewport(p,a) (p)->DeleteViewport(a)
1114 #define IDirect3DDevice2_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c)
1115 #define IDirect3DDevice2_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
1116 #define IDirect3DDevice2_BeginScene(p) (p)->BeginScene()
1117 #define IDirect3DDevice2_EndScene(p) (p)->EndScene()
1118 #define IDirect3DDevice2_GetDirect3D(p,a) (p)->GetDirect3D(a)
1119 #define IDirect3DDevice2_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a)
1120 #define IDirect3DDevice2_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a)
1121 #define IDirect3DDevice2_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
1122 #define IDirect3DDevice2_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
1123 #define IDirect3DDevice2_Begin(p,a,b,c) (p)->Begin(a,b,c)
1124 #define IDirect3DDevice2_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e)
1125 #define IDirect3DDevice2_Vertex(p,a) (p)->Vertex(a)
1126 #define IDirect3DDevice2_Index(p,a) (p)->Index(a)
1127 #define IDirect3DDevice2_End(p,a) (p)->End(a)
1128 #define IDirect3DDevice2_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
1129 #define IDirect3DDevice2_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
1130 #define IDirect3DDevice2_GetLightState(p,a,b) (p)->GetLightState(a,b)
1131 #define IDirect3DDevice2_SetLightState(p,a,b) (p)->SetLightState(a,b)
1132 #define IDirect3DDevice2_SetTransform(p,a,b) (p)->SetTransform(a,b)
1133 #define IDirect3DDevice2_GetTransform(p,a,b) (p)->GetTransform(a,b)
1134 #define IDirect3DDevice2_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
1135 #define IDirect3DDevice2_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e)
1136 #define IDirect3DDevice2_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g)
1137 #define IDirect3DDevice2_SetClipStatus(p,a) (p)->SetClipStatus(a)
1138 #define IDirect3DDevice2_GetClipStatus(p,a) (p)->GetClipStatus(a)
1141 /*****************************************************************************
1142 * IDirect3DDevice3 interface
1144 #define INTERFACE IDirect3DDevice3
1145 DECLARE_INTERFACE_(IDirect3DDevice3
,IUnknown
)
1147 /*** IUnknown methods ***/
1148 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1149 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1150 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1151 /*** IDirect3DDevice3 methods ***/
1152 STDMETHOD(GetCaps
)(THIS_ D3DDEVICEDESC
*hal_desc
, D3DDEVICEDESC
*hel_desc
) PURE
;
1153 STDMETHOD(GetStats
)(THIS_ D3DSTATS
*stats
) PURE
;
1154 STDMETHOD(AddViewport
)(THIS_ IDirect3DViewport3
*viewport
) PURE
;
1155 STDMETHOD(DeleteViewport
)(THIS_ IDirect3DViewport3
*viewport
) PURE
;
1156 STDMETHOD(NextViewport
)(THIS_ IDirect3DViewport3
*ref
,
1157 IDirect3DViewport3
**viewport
, DWORD flags
) PURE
;
1158 STDMETHOD(EnumTextureFormats
)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK cb
, void *ctx
) PURE
;
1159 STDMETHOD(BeginScene
)(THIS
) PURE
;
1160 STDMETHOD(EndScene
)(THIS
) PURE
;
1161 STDMETHOD(GetDirect3D
)(THIS_ IDirect3D3
**d3d
) PURE
;
1162 /*** DrawPrimitive API ***/
1163 STDMETHOD(SetCurrentViewport
)(THIS_ IDirect3DViewport3
*viewport
) PURE
;
1164 STDMETHOD(GetCurrentViewport
)(THIS_ IDirect3DViewport3
**viewport
) PURE
;
1165 STDMETHOD(SetRenderTarget
)(THIS_ IDirectDrawSurface4
*surface
, DWORD flags
) PURE
;
1166 STDMETHOD(GetRenderTarget
)(THIS_ IDirectDrawSurface4
**surface
) PURE
;
1167 STDMETHOD(Begin
)(THIS_ D3DPRIMITIVETYPE d3dptPrimitiveType
,DWORD dwVertexTypeDesc
, DWORD dwFlags
) PURE
;
1168 STDMETHOD(BeginIndexed
)(THIS_ D3DPRIMITIVETYPE primitive_type
, DWORD fvf
,
1169 void *vertices
, DWORD vertex_count
, DWORD flags
) PURE
;
1170 STDMETHOD(Vertex
)(THIS_
void *vertex
) PURE
;
1171 STDMETHOD(Index
)(THIS_ WORD wVertexIndex
) PURE
;
1172 STDMETHOD(End
)(THIS_ DWORD dwFlags
) PURE
;
1173 STDMETHOD(GetRenderState
)(THIS_ D3DRENDERSTATETYPE dwRenderStateType
, LPDWORD lpdwRenderState
) PURE
;
1174 STDMETHOD(SetRenderState
)(THIS_ D3DRENDERSTATETYPE dwRenderStateType
, DWORD dwRenderState
) PURE
;
1175 STDMETHOD(GetLightState
)(THIS_ D3DLIGHTSTATETYPE dwLightStateType
, LPDWORD lpdwLightState
) PURE
;
1176 STDMETHOD(SetLightState
)(THIS_ D3DLIGHTSTATETYPE dwLightStateType
, DWORD dwLightState
) PURE
;
1177 STDMETHOD(SetTransform
)(THIS_ D3DTRANSFORMSTATETYPE state
, D3DMATRIX
*matrix
) PURE
;
1178 STDMETHOD(GetTransform
)(THIS_ D3DTRANSFORMSTATETYPE state
, D3DMATRIX
*matrix
) PURE
;
1179 STDMETHOD(MultiplyTransform
)(THIS_ D3DTRANSFORMSTATETYPE state
, D3DMATRIX
*matrix
) PURE
;
1180 STDMETHOD(DrawPrimitive
)(THIS_ D3DPRIMITIVETYPE primitive_type
, DWORD vertex_type
,
1181 void *vertices
, DWORD vertex_count
, DWORD flags
) PURE
;
1182 STDMETHOD(DrawIndexedPrimitive
)(THIS_ D3DPRIMITIVETYPE primitive_type
, DWORD fvf
,
1183 void *vertices
, DWORD vertex_count
, WORD
*indices
, DWORD index_count
, DWORD flags
) PURE
;
1184 STDMETHOD(SetClipStatus
)(THIS_ D3DCLIPSTATUS
*clip_status
) PURE
;
1185 STDMETHOD(GetClipStatus
)(THIS_ D3DCLIPSTATUS
*clip_status
) PURE
;
1186 STDMETHOD(DrawPrimitiveStrided
)(THIS_ D3DPRIMITIVETYPE primitive_type
, DWORD fvf
,
1187 D3DDRAWPRIMITIVESTRIDEDDATA
*strided_data
, DWORD vertex_count
, DWORD flags
) PURE
;
1188 STDMETHOD(DrawIndexedPrimitiveStrided
)(THIS_ D3DPRIMITIVETYPE primitive_type
, DWORD fvf
,
1189 D3DDRAWPRIMITIVESTRIDEDDATA
*strided_data
, DWORD vertex_count
, WORD
*indices
, DWORD index_count
,
1191 STDMETHOD(DrawPrimitiveVB
)(THIS_ D3DPRIMITIVETYPE primitive_type
, struct IDirect3DVertexBuffer
*vb
,
1192 DWORD start_vertex
, DWORD vertex_count
, DWORD flags
) PURE
;
1193 STDMETHOD(DrawIndexedPrimitiveVB
)(THIS_ D3DPRIMITIVETYPE primitive_type
, struct IDirect3DVertexBuffer
*vb
,
1194 WORD
*indices
, DWORD index_count
, DWORD flags
) PURE
;
1195 STDMETHOD(ComputeSphereVisibility
)(THIS_ D3DVECTOR
*centers
, D3DVALUE
*radii
, DWORD sphere_count
,
1196 DWORD flags
, DWORD
*ret
) PURE
;
1197 STDMETHOD(GetTexture
)(THIS_ DWORD stage
, IDirect3DTexture2
**texture
) PURE
;
1198 STDMETHOD(SetTexture
)(THIS_ DWORD stage
, IDirect3DTexture2
*texture
) PURE
;
1199 STDMETHOD(GetTextureStageState
)(THIS_ DWORD dwStage
,D3DTEXTURESTAGESTATETYPE d3dTexStageStateType
,LPDWORD lpdwState
) PURE
;
1200 STDMETHOD(SetTextureStageState
)(THIS_ DWORD dwStage
,D3DTEXTURESTAGESTATETYPE d3dTexStageStateType
,DWORD dwState
) PURE
;
1201 STDMETHOD(ValidateDevice
)(THIS_ LPDWORD lpdwPasses
) PURE
;
1205 #if !defined(__cplusplus) || defined(CINTERFACE)
1206 /*** IUnknown methods ***/
1207 #define IDirect3DDevice3_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1208 #define IDirect3DDevice3_AddRef(p) (p)->lpVtbl->AddRef(p)
1209 #define IDirect3DDevice3_Release(p) (p)->lpVtbl->Release(p)
1210 /*** IDirect3DDevice3 methods ***/
1211 #define IDirect3DDevice3_GetCaps(p,a,b) (p)->lpVtbl->GetCaps(p,a,b)
1212 #define IDirect3DDevice3_GetStats(p,a) (p)->lpVtbl->GetStats(p,a)
1213 #define IDirect3DDevice3_AddViewport(p,a) (p)->lpVtbl->AddViewport(p,a)
1214 #define IDirect3DDevice3_DeleteViewport(p,a) (p)->lpVtbl->DeleteViewport(p,a)
1215 #define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->lpVtbl->NextViewport(p,a,b,c)
1216 #define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
1217 #define IDirect3DDevice3_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1218 #define IDirect3DDevice3_EndScene(p) (p)->lpVtbl->EndScene(p)
1219 #define IDirect3DDevice3_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1220 #define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->lpVtbl->SetCurrentViewport(p,a)
1221 #define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->lpVtbl->GetCurrentViewport(p,a)
1222 #define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1223 #define IDirect3DDevice3_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
1224 #define IDirect3DDevice3_Begin(p,a,b,c) (p)->lpVtbl->Begin(p,a,b,c)
1225 #define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->lpVtbl->BeginIndexed(p,a,b,c,d,e)
1226 #define IDirect3DDevice3_Vertex(p,a) (p)->lpVtbl->Vertex(p,a)
1227 #define IDirect3DDevice3_Index(p,a) (p)->lpVtbl->Index(p,a)
1228 #define IDirect3DDevice3_End(p,a) (p)->lpVtbl->End(p,a)
1229 #define IDirect3DDevice3_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1230 #define IDirect3DDevice3_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1231 #define IDirect3DDevice3_GetLightState(p,a,b) (p)->lpVtbl->GetLightState(p,a,b)
1232 #define IDirect3DDevice3_SetLightState(p,a,b) (p)->lpVtbl->SetLightState(p,a,b)
1233 #define IDirect3DDevice3_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1234 #define IDirect3DDevice3_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1235 #define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1236 #define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e)
1237 #define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g)
1238 #define IDirect3DDevice3_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1239 #define IDirect3DDevice3_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1240 #define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e)
1241 #define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g)
1242 #define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e)
1243 #define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e)
1244 #define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e)
1245 #define IDirect3DDevice3_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
1246 #define IDirect3DDevice3_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
1247 #define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
1248 #define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
1249 #define IDirect3DDevice3_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
1251 /*** IUnknown methods ***/
1252 #define IDirect3DDevice3_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1253 #define IDirect3DDevice3_AddRef(p) (p)->AddRef()
1254 #define IDirect3DDevice3_Release(p) (p)->Release()
1255 /*** IDirect3DDevice3 methods ***/
1256 #define IDirect3DDevice3_GetCaps(p,a,b) (p)->GetCaps(a,b)
1257 #define IDirect3DDevice3_GetStats(p,a) (p)->GetStats(a)
1258 #define IDirect3DDevice3_AddViewport(p,a) (p)->AddViewport(a)
1259 #define IDirect3DDevice3_DeleteViewport(p,a) (p)->DeleteViewport(a)
1260 #define IDirect3DDevice3_NextViewport(p,a,b,c) (p)->NextViewport(a,b,c)
1261 #define IDirect3DDevice3_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
1262 #define IDirect3DDevice3_BeginScene(p) (p)->BeginScene()
1263 #define IDirect3DDevice3_EndScene(p) (p)->EndScene()
1264 #define IDirect3DDevice3_GetDirect3D(p,a) (p)->GetDirect3D(a)
1265 #define IDirect3DDevice3_SetCurrentViewport(p,a) (p)->SetCurrentViewport(a)
1266 #define IDirect3DDevice3_GetCurrentViewport(p,a) (p)->GetCurrentViewport(a)
1267 #define IDirect3DDevice3_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
1268 #define IDirect3DDevice3_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
1269 #define IDirect3DDevice3_Begin(p,a,b,c) (p)->Begin(a,b,c)
1270 #define IDirect3DDevice3_BeginIndexed(p,a,b,c,d,e) (p)->BeginIndexed(a,b,c,d,e)
1271 #define IDirect3DDevice3_Vertex(p,a) (p)->Vertex(a)
1272 #define IDirect3DDevice3_Index(p,a) (p)->Index(a)
1273 #define IDirect3DDevice3_End(p,a) (p)->End(a)
1274 #define IDirect3DDevice3_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
1275 #define IDirect3DDevice3_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
1276 #define IDirect3DDevice3_GetLightState(p,a,b) (p)->GetLightState(a,b)
1277 #define IDirect3DDevice3_SetLightState(p,a,b) (p)->SetLightState(a,b)
1278 #define IDirect3DDevice3_SetTransform(p,a,b) (p)->SetTransform(a,b)
1279 #define IDirect3DDevice3_GetTransform(p,a,b) (p)->GetTransform(a,b)
1280 #define IDirect3DDevice3_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
1281 #define IDirect3DDevice3_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e)
1282 #define IDirect3DDevice3_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g)
1283 #define IDirect3DDevice3_SetClipStatus(p,a) (p)->SetClipStatus(a)
1284 #define IDirect3DDevice3_GetClipStatus(p,a) (p)->GetClipStatus(a)
1285 #define IDirect3DDevice3_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e)
1286 #define IDirect3DDevice3_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g)
1287 #define IDirect3DDevice3_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e)
1288 #define IDirect3DDevice3_DrawIndexedPrimitiveVB(p,a,b,c,d,e) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e)
1289 #define IDirect3DDevice3_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e)
1290 #define IDirect3DDevice3_GetTexture(p,a,b) (p)->GetTexture(a,b)
1291 #define IDirect3DDevice3_SetTexture(p,a,b) (p)->SetTexture(a,b)
1292 #define IDirect3DDevice3_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
1293 #define IDirect3DDevice3_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
1294 #define IDirect3DDevice3_ValidateDevice(p,a) (p)->ValidateDevice(a)
1297 /*****************************************************************************
1298 * IDirect3DDevice7 interface
1300 #define INTERFACE IDirect3DDevice7
1301 DECLARE_INTERFACE_(IDirect3DDevice7
,IUnknown
)
1303 /*** IUnknown methods ***/
1304 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1305 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1306 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1307 /*** IDirect3DDevice7 methods ***/
1308 STDMETHOD(GetCaps
)(THIS_ D3DDEVICEDESC7
*desc
) PURE
;
1309 STDMETHOD(EnumTextureFormats
)(THIS_ LPD3DENUMPIXELFORMATSCALLBACK cb
, void *ctx
) PURE
;
1310 STDMETHOD(BeginScene
)(THIS
) PURE
;
1311 STDMETHOD(EndScene
)(THIS
) PURE
;
1312 STDMETHOD(GetDirect3D
)(THIS_ IDirect3D7
**d3d
) PURE
;
1313 STDMETHOD(SetRenderTarget
)(THIS_ IDirectDrawSurface7
*surface
, DWORD flags
) PURE
;
1314 STDMETHOD(GetRenderTarget
)(THIS_ IDirectDrawSurface7
**surface
) PURE
;
1315 STDMETHOD(Clear
)(THIS_ DWORD count
, D3DRECT
*rects
, DWORD flags
, D3DCOLOR color
, D3DVALUE z
, DWORD stencil
) PURE
;
1316 STDMETHOD(SetTransform
)(THIS_ D3DTRANSFORMSTATETYPE state
, D3DMATRIX
*matrix
) PURE
;
1317 STDMETHOD(GetTransform
)(THIS_ D3DTRANSFORMSTATETYPE state
, D3DMATRIX
*matrix
) PURE
;
1318 STDMETHOD(SetViewport
)(THIS_ D3DVIEWPORT7
*data
) PURE
;
1319 STDMETHOD(MultiplyTransform
)(THIS_ D3DTRANSFORMSTATETYPE state
, D3DMATRIX
*matrix
) PURE
;
1320 STDMETHOD(GetViewport
)(THIS_ D3DVIEWPORT7
*data
) PURE
;
1321 STDMETHOD(SetMaterial
)(THIS_ D3DMATERIAL7
*data
) PURE
;
1322 STDMETHOD(GetMaterial
)(THIS_ D3DMATERIAL7
*data
) PURE
;
1323 STDMETHOD(SetLight
)(THIS_ DWORD idx
, D3DLIGHT7
*data
) PURE
;
1324 STDMETHOD(GetLight
)(THIS_ DWORD idx
, D3DLIGHT7
*data
) PURE
;
1325 STDMETHOD(SetRenderState
)(THIS_ D3DRENDERSTATETYPE dwRenderStateType
, DWORD dwRenderState
) PURE
;
1326 STDMETHOD(GetRenderState
)(THIS_ D3DRENDERSTATETYPE dwRenderStateType
, LPDWORD lpdwRenderState
) PURE
;
1327 STDMETHOD(BeginStateBlock
)(THIS
) PURE
;
1328 STDMETHOD(EndStateBlock
)(THIS_ LPDWORD lpdwBlockHandle
) PURE
;
1329 STDMETHOD(PreLoad
)(THIS_ IDirectDrawSurface7
*surface
) PURE
;
1330 STDMETHOD(DrawPrimitive
)(THIS_ D3DPRIMITIVETYPE primitive_type
, DWORD fvf
,
1331 void *vertices
, DWORD vertex_count
, DWORD flags
) PURE
;
1332 STDMETHOD(DrawIndexedPrimitive
)(THIS_ D3DPRIMITIVETYPE primitive_type
, DWORD fvf
,
1333 void *vertices
, DWORD vertex_count
, WORD
*indices
, DWORD index_count
, DWORD flags
) PURE
;
1334 STDMETHOD(SetClipStatus
)(THIS_ D3DCLIPSTATUS
*clip_status
) PURE
;
1335 STDMETHOD(GetClipStatus
)(THIS_ D3DCLIPSTATUS
*clip_status
) PURE
;
1336 STDMETHOD(DrawPrimitiveStrided
)(THIS_ D3DPRIMITIVETYPE primitive_type
, DWORD fvf
,
1337 D3DDRAWPRIMITIVESTRIDEDDATA
*strided_data
, DWORD vertex_count
, DWORD flags
) PURE
;
1338 STDMETHOD(DrawIndexedPrimitiveStrided
)(THIS_ D3DPRIMITIVETYPE primitive_type
, DWORD fvf
,
1339 D3DDRAWPRIMITIVESTRIDEDDATA
*strided_data
, DWORD vertex_count
, WORD
*indices
, DWORD index_count
,
1341 STDMETHOD(DrawPrimitiveVB
)(THIS_ D3DPRIMITIVETYPE primitive_type
, struct IDirect3DVertexBuffer7
*vb
,
1342 DWORD start_vertex
, DWORD vertex_count
, DWORD flags
) PURE
;
1343 STDMETHOD(DrawIndexedPrimitiveVB
)(THIS_ D3DPRIMITIVETYPE primitive_type
, struct IDirect3DVertexBuffer7
*vb
,
1344 DWORD start_vertex
, DWORD vertex_count
, WORD
*indices
, DWORD index_count
, DWORD flags
) PURE
;
1345 STDMETHOD(ComputeSphereVisibility
)(THIS_ D3DVECTOR
*centers
, D3DVALUE
*radii
, DWORD sphere_count
,
1346 DWORD flags
, DWORD
*ret
) PURE
;
1347 STDMETHOD(GetTexture
)(THIS_ DWORD stage
, IDirectDrawSurface7
**surface
) PURE
;
1348 STDMETHOD(SetTexture
)(THIS_ DWORD stage
, IDirectDrawSurface7
*surface
) PURE
;
1349 STDMETHOD(GetTextureStageState
)(THIS_ DWORD dwStage
,D3DTEXTURESTAGESTATETYPE d3dTexStageStateType
,LPDWORD lpdwState
) PURE
;
1350 STDMETHOD(SetTextureStageState
)(THIS_ DWORD dwStage
,D3DTEXTURESTAGESTATETYPE d3dTexStageStateType
,DWORD dwState
) PURE
;
1351 STDMETHOD(ValidateDevice
)(THIS_ LPDWORD lpdwPasses
) PURE
;
1352 STDMETHOD(ApplyStateBlock
)(THIS_ DWORD dwBlockHandle
) PURE
;
1353 STDMETHOD(CaptureStateBlock
)(THIS_ DWORD dwBlockHandle
) PURE
;
1354 STDMETHOD(DeleteStateBlock
)(THIS_ DWORD dwBlockHandle
) PURE
;
1355 STDMETHOD(CreateStateBlock
)(THIS_ D3DSTATEBLOCKTYPE d3dsbType
,LPDWORD lpdwBlockHandle
) PURE
;
1356 STDMETHOD(Load
)(THIS_ IDirectDrawSurface7
*dst_surface
, POINT
*dst_point
,
1357 IDirectDrawSurface7
*src_surface
, RECT
*src_rect
, DWORD flags
) PURE
;
1358 STDMETHOD(LightEnable
)(THIS_ DWORD dwLightIndex
,BOOL bEnable
) PURE
;
1359 STDMETHOD(GetLightEnable
)(THIS_ DWORD dwLightIndex
,BOOL
*pbEnable
) PURE
;
1360 STDMETHOD(SetClipPlane
)(THIS_ DWORD dwIndex
,D3DVALUE
*pPlaneEquation
) PURE
;
1361 STDMETHOD(GetClipPlane
)(THIS_ DWORD dwIndex
,D3DVALUE
*pPlaneEquation
) PURE
;
1362 STDMETHOD(GetInfo
)(THIS_ DWORD info_id
, void *info
, DWORD info_size
) PURE
;
1366 #if !defined(__cplusplus) || defined(CINTERFACE)
1367 /*** IUnknown methods ***/
1368 #define IDirect3DDevice7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1369 #define IDirect3DDevice7_AddRef(p) (p)->lpVtbl->AddRef(p)
1370 #define IDirect3DDevice7_Release(p) (p)->lpVtbl->Release(p)
1371 /*** IDirect3DDevice7 methods ***/
1372 #define IDirect3DDevice7_GetCaps(p,a) (p)->lpVtbl->GetCaps(p,a)
1373 #define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->lpVtbl->EnumTextureFormats(p,a,b)
1374 #define IDirect3DDevice7_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1375 #define IDirect3DDevice7_EndScene(p) (p)->lpVtbl->EndScene(p)
1376 #define IDirect3DDevice7_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1377 #define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1378 #define IDirect3DDevice7_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
1379 #define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
1380 #define IDirect3DDevice7_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1381 #define IDirect3DDevice7_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1382 #define IDirect3DDevice7_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
1383 #define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1384 #define IDirect3DDevice7_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
1385 #define IDirect3DDevice7_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
1386 #define IDirect3DDevice7_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
1387 #define IDirect3DDevice7_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
1388 #define IDirect3DDevice7_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
1389 #define IDirect3DDevice7_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1390 #define IDirect3DDevice7_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1391 #define IDirect3DDevice7_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
1392 #define IDirect3DDevice7_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
1393 #define IDirect3DDevice7_PreLoad(p,a) (p)->lpVtbl->PreLoad(p,a)
1394 #define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitive(p,a,b,c,d,e)
1395 #define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f,g)
1396 #define IDirect3DDevice7_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1397 #define IDirect3DDevice7_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1398 #define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c,d,e)
1399 #define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g)
1400 #define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->lpVtbl->DrawPrimitiveVB(p,a,b,c,d,e)
1401 #define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->lpVtbl->DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g)
1402 #define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->lpVtbl->ComputeSphereVisibility(p,a,b,c,d,e)
1403 #define IDirect3DDevice7_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
1404 #define IDirect3DDevice7_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
1405 #define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
1406 #define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
1407 #define IDirect3DDevice7_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
1408 #define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a)
1409 #define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a)
1410 #define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a)
1411 #define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
1412 #define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->lpVtbl->Load(p,a,b,c,d,e)
1413 #define IDirect3DDevice7_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
1414 #define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
1415 #define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
1416 #define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
1417 #define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)
1419 /*** IUnknown methods ***/
1420 #define IDirect3DDevice7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1421 #define IDirect3DDevice7_AddRef(p) (p)->AddRef()
1422 #define IDirect3DDevice7_Release(p) (p)->Release()
1423 /*** IDirect3DDevice7 methods ***/
1424 #define IDirect3DDevice7_GetCaps(p,a) (p)->GetCaps(a)
1425 #define IDirect3DDevice7_EnumTextureFormats(p,a,b) (p)->EnumTextureFormats(a,b)
1426 #define IDirect3DDevice7_BeginScene(p) (p)->BeginScene()
1427 #define IDirect3DDevice7_EndScene(p) (p)->EndScene()
1428 #define IDirect3DDevice7_GetDirect3D(p,a) (p)->GetDirect3D(a)
1429 #define IDirect3DDevice7_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
1430 #define IDirect3DDevice7_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
1431 #define IDirect3DDevice7_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
1432 #define IDirect3DDevice7_SetTransform(p,a,b) (p)->SetTransform(a,b)
1433 #define IDirect3DDevice7_GetTransform(p,a,b) (p)->GetTransform(a,b)
1434 #define IDirect3DDevice7_SetViewport(p,a) (p)->SetViewport(a)
1435 #define IDirect3DDevice7_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
1436 #define IDirect3DDevice7_GetViewport(p,a) (p)->GetViewport(a)
1437 #define IDirect3DDevice7_SetMaterial(p,a) (p)->SetMaterial(a)
1438 #define IDirect3DDevice7_GetMaterial(p,a) (p)->GetMaterial(a)
1439 #define IDirect3DDevice7_SetLight(p,a,b) (p)->SetLight(a,b)
1440 #define IDirect3DDevice7_GetLight(p,a,b) (p)->GetLight(a,b)
1441 #define IDirect3DDevice7_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
1442 #define IDirect3DDevice7_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
1443 #define IDirect3DDevice7_BeginStateBlock(p) (p)->BeginStateBlock()
1444 #define IDirect3DDevice7_EndStateBlock(p,a) (p)->EndStateBlock(a)
1445 #define IDirect3DDevice7_PreLoad(p,a) (p)->PreLoad(a)
1446 #define IDirect3DDevice7_DrawPrimitive(p,a,b,c,d,e) (p)->DrawPrimitive(a,b,c,d,e)
1447 #define IDirect3DDevice7_DrawIndexedPrimitive(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitive(a,b,c,d,e,f,g)
1448 #define IDirect3DDevice7_SetClipStatus(p,a) (p)->SetClipStatus(a)
1449 #define IDirect3DDevice7_GetClipStatus(p,a) (p)->GetClipStatus(a)
1450 #define IDirect3DDevice7_DrawPrimitiveStrided(p,a,b,c,d,e) (p)->DrawPrimitiveStrided(a,b,c,d,e)
1451 #define IDirect3DDevice7_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveStrided(a,b,c,d,e,f,g)
1452 #define IDirect3DDevice7_DrawPrimitiveVB(p,a,b,c,d,e) (p)->DrawPrimitiveVB(a,b,c,d,e)
1453 #define IDirect3DDevice7_DrawIndexedPrimitiveVB(p,a,b,c,d,e,f,g) (p)->DrawIndexedPrimitiveVB(a,b,c,d,e,f,g)
1454 #define IDirect3DDevice7_ComputeSphereVisibility(p,a,b,c,d,e) (p)->ComputeSphereVisibility(a,b,c,d,e)
1455 #define IDirect3DDevice7_GetTexture(p,a,b) (p)->GetTexture(a,b)
1456 #define IDirect3DDevice7_SetTexture(p,a,b) (p)->SetTexture(a,b)
1457 #define IDirect3DDevice7_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
1458 #define IDirect3DDevice7_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
1459 #define IDirect3DDevice7_ValidateDevice(p,a) (p)->ValidateDevice(a)
1460 #define IDirect3DDevice7_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a)
1461 #define IDirect3DDevice7_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a)
1462 #define IDirect3DDevice7_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a)
1463 #define IDirect3DDevice7_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
1464 #define IDirect3DDevice7_Load(p,a,b,c,d,e) (p)->Load(a,b,c,d,e)
1465 #define IDirect3DDevice7_LightEnable(p,a,b) (p)->LightEnable(a,b)
1466 #define IDirect3DDevice7_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
1467 #define IDirect3DDevice7_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
1468 #define IDirect3DDevice7_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
1469 #define IDirect3DDevice7_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c)
1474 /*****************************************************************************
1475 * IDirect3DVertexBuffer interface
1477 #define INTERFACE IDirect3DVertexBuffer
1478 DECLARE_INTERFACE_(IDirect3DVertexBuffer
,IUnknown
)
1480 /*** IUnknown methods ***/
1481 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1482 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1483 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1484 /*** IDirect3DVertexBuffer methods ***/
1485 STDMETHOD(Lock
)(THIS_ DWORD flags
, void **data
, DWORD
*data_size
) PURE
;
1486 STDMETHOD(Unlock
)(THIS
) PURE
;
1487 STDMETHOD(ProcessVertices
)(THIS_ DWORD vertex_op
, DWORD dst_idx
, DWORD count
,
1488 IDirect3DVertexBuffer
*src_buffer
, DWORD src_idx
,
1489 IDirect3DDevice3
*device
, DWORD flags
) PURE
;
1490 STDMETHOD(GetVertexBufferDesc
)(THIS_ D3DVERTEXBUFFERDESC
*desc
) PURE
;
1491 STDMETHOD(Optimize
)(THIS_ IDirect3DDevice3
*device
, DWORD flags
) PURE
;
1495 #if !defined(__cplusplus) || defined(CINTERFACE)
1496 /*** IUnknown methods ***/
1497 #define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1498 #define IDirect3DVertexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
1499 #define IDirect3DVertexBuffer_Release(p) (p)->lpVtbl->Release(p)
1500 /*** IDirect3DVertexBuffer methods ***/
1501 #define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c)
1502 #define IDirect3DVertexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
1503 #define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g)
1504 #define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a)
1505 #define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b)
1507 /*** IUnknown methods ***/
1508 #define IDirect3DVertexBuffer_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1509 #define IDirect3DVertexBuffer_AddRef(p) (p)->AddRef()
1510 #define IDirect3DVertexBuffer_Release(p) (p)->Release()
1511 /*** IDirect3DVertexBuffer methods ***/
1512 #define IDirect3DVertexBuffer_Lock(p,a,b,c) (p)->Lock(a,b,c)
1513 #define IDirect3DVertexBuffer_Unlock(p) (p)->Unlock()
1514 #define IDirect3DVertexBuffer_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g)
1515 #define IDirect3DVertexBuffer_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a)
1516 #define IDirect3DVertexBuffer_Optimize(p,a,b) (p)->Optimize(a,b)
1519 /*****************************************************************************
1520 * IDirect3DVertexBuffer7 interface
1522 #define INTERFACE IDirect3DVertexBuffer7
1523 DECLARE_INTERFACE_(IDirect3DVertexBuffer7
,IUnknown
)
1525 /*** IUnknown methods ***/
1526 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1527 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1528 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1529 /*** IDirect3DVertexBuffer7 methods ***/
1530 STDMETHOD(Lock
)(THIS_ DWORD flags
, void **data
, DWORD
*data_size
) PURE
;
1531 STDMETHOD(Unlock
)(THIS
) PURE
;
1532 STDMETHOD(ProcessVertices
)(THIS_ DWORD vertex_op
, DWORD dst_idx
, DWORD count
,
1533 IDirect3DVertexBuffer7
*src_buffer
, DWORD src_idx
,
1534 IDirect3DDevice7
*device
, DWORD flags
) PURE
;
1535 STDMETHOD(GetVertexBufferDesc
)(THIS_ D3DVERTEXBUFFERDESC
*desc
) PURE
;
1536 STDMETHOD(Optimize
)(THIS_ IDirect3DDevice7
*device
, DWORD flags
) PURE
;
1537 STDMETHOD(ProcessVerticesStrided
)(THIS_ DWORD vertex_op
, DWORD dst_idx
, DWORD count
,
1538 D3DDRAWPRIMITIVESTRIDEDDATA
*data
, DWORD fvf
, IDirect3DDevice7
*device
, DWORD flags
) PURE
;
1542 #if !defined(__cplusplus) || defined(CINTERFACE)
1543 /*** IUnknown methods ***/
1544 #define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1545 #define IDirect3DVertexBuffer7_AddRef(p) (p)->lpVtbl->AddRef(p)
1546 #define IDirect3DVertexBuffer7_Release(p) (p)->lpVtbl->Release(p)
1547 /*** IDirect3DVertexBuffer7 methods ***/
1548 #define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->lpVtbl->Lock(p,a,b,c)
1549 #define IDirect3DVertexBuffer7_Unlock(p) (p)->lpVtbl->Unlock(p)
1550 #define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f,g)
1551 #define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->lpVtbl->GetVertexBufferDesc(p,a)
1552 #define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->lpVtbl->Optimize(p,a,b)
1553 #define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->lpVtbl->ProcessVerticesStrided(p,a,b,c,d,e,f,g)
1555 /*** IUnknown methods ***/
1556 #define IDirect3DVertexBuffer7_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1557 #define IDirect3DVertexBuffer7_AddRef(p) (p)->AddRef()
1558 #define IDirect3DVertexBuffer7_Release(p) (p)->Release()
1559 /*** IDirect3DVertexBuffer7 methods ***/
1560 #define IDirect3DVertexBuffer7_Lock(p,a,b,c) (p)->Lock(a,b,c)
1561 #define IDirect3DVertexBuffer7_Unlock(p) (p)->Unlock()
1562 #define IDirect3DVertexBuffer7_ProcessVertices(p,a,b,c,d,e,f,g) (p)->ProcessVertices(a,b,c,d,e,f,g)
1563 #define IDirect3DVertexBuffer7_GetVertexBufferDesc(p,a) (p)->GetVertexBufferDesc(a)
1564 #define IDirect3DVertexBuffer7_Optimize(p,a,b) (p)->Optimize(a,b)
1565 #define IDirect3DVertexBuffer7_ProcessVerticesStrided(p,a,b,c,d,e,f,g) (p)->ProcessVerticesStrided(a,b,c,d,e,f,g)
1568 #endif /* __WINE_D3D_H */