dsrc isn't necessary for this repo
[client-tools.git] / src / external / 3rd / library / directx9 / include / d3d9.h
blob85bd95796fb35e484402f74c4ba29979c3959a6b
1 /*==========================================================================;
3 * Copyright (C) Microsoft Corporation. All Rights Reserved.
5 * File: d3d9.h
6 * Content: Direct3D include file
8 ****************************************************************************/
10 #ifndef _D3D9_H_
11 #define _D3D9_H_
13 #ifndef DIRECT3D_VERSION
14 #define DIRECT3D_VERSION 0x0900
15 #endif //DIRECT3D_VERSION
17 // include this file content only if compiling for DX9 interfaces
18 #if(DIRECT3D_VERSION >= 0x0900)
21 /* This identifier is passed to Direct3DCreate9 in order to ensure that an
22 * application was built against the correct header files. This number is
23 * incremented whenever a header (or other) change would require applications
24 * to be rebuilt. If the version doesn't match, Direct3DCreate9 will fail.
25 * (The number itself has no meaning.)*/
27 #ifdef D3D_DEBUG_INFO
28 #define D3D_SDK_VERSION (32 | 0x80000000)
29 #define D3D9b_SDK_VERSION (31 | 0x80000000)
31 #else
32 #define D3D_SDK_VERSION 32
33 #define D3D9b_SDK_VERSION 31
34 #endif
37 #include <stdlib.h>
39 #define COM_NO_WINDOWS_H
40 #include <objbase.h>
42 #include <windows.h>
44 #if !defined(HMONITOR_DECLARED) && (WINVER < 0x0500)
45 #define HMONITOR_DECLARED
46 DECLARE_HANDLE(HMONITOR);
47 #endif
49 #define D3DAPI WINAPI
52 * Interface IID's
54 #if defined( _WIN32 ) && !defined( _NO_COM)
56 /* IID_IDirect3D9 */
57 /* {81BDCBCA-64D4-426d-AE8D-AD0147F4275C} */
58 DEFINE_GUID(IID_IDirect3D9, 0x81bdcbca, 0x64d4, 0x426d, 0xae, 0x8d, 0xad, 0x1, 0x47, 0xf4, 0x27, 0x5c);
60 /* IID_IDirect3DDevice9 */
61 // {D0223B96-BF7A-43fd-92BD-A43B0D82B9EB} */
62 DEFINE_GUID(IID_IDirect3DDevice9, 0xd0223b96, 0xbf7a, 0x43fd, 0x92, 0xbd, 0xa4, 0x3b, 0xd, 0x82, 0xb9, 0xeb);
64 /* IID_IDirect3DResource9 */
65 // {05EEC05D-8F7D-4362-B999-D1BAF357C704}
66 DEFINE_GUID(IID_IDirect3DResource9, 0x5eec05d, 0x8f7d, 0x4362, 0xb9, 0x99, 0xd1, 0xba, 0xf3, 0x57, 0xc7, 0x4);
68 /* IID_IDirect3DBaseTexture9 */
69 /* {580CA87E-1D3C-4d54-991D-B7D3E3C298CE} */
70 DEFINE_GUID(IID_IDirect3DBaseTexture9, 0x580ca87e, 0x1d3c, 0x4d54, 0x99, 0x1d, 0xb7, 0xd3, 0xe3, 0xc2, 0x98, 0xce);
72 /* IID_IDirect3DTexture9 */
73 /* {85C31227-3DE5-4f00-9B3A-F11AC38C18B5} */
74 DEFINE_GUID(IID_IDirect3DTexture9, 0x85c31227, 0x3de5, 0x4f00, 0x9b, 0x3a, 0xf1, 0x1a, 0xc3, 0x8c, 0x18, 0xb5);
76 /* IID_IDirect3DCubeTexture9 */
77 /* {FFF32F81-D953-473a-9223-93D652ABA93F} */
78 DEFINE_GUID(IID_IDirect3DCubeTexture9, 0xfff32f81, 0xd953, 0x473a, 0x92, 0x23, 0x93, 0xd6, 0x52, 0xab, 0xa9, 0x3f);
80 /* IID_IDirect3DVolumeTexture9 */
81 /* {2518526C-E789-4111-A7B9-47EF328D13E6} */
82 DEFINE_GUID(IID_IDirect3DVolumeTexture9, 0x2518526c, 0xe789, 0x4111, 0xa7, 0xb9, 0x47, 0xef, 0x32, 0x8d, 0x13, 0xe6);
84 /* IID_IDirect3DVertexBuffer9 */
85 /* {B64BB1B5-FD70-4df6-BF91-19D0A12455E3} */
86 DEFINE_GUID(IID_IDirect3DVertexBuffer9, 0xb64bb1b5, 0xfd70, 0x4df6, 0xbf, 0x91, 0x19, 0xd0, 0xa1, 0x24, 0x55, 0xe3);
88 /* IID_IDirect3DIndexBuffer9 */
89 /* {7C9DD65E-D3F7-4529-ACEE-785830ACDE35} */
90 DEFINE_GUID(IID_IDirect3DIndexBuffer9, 0x7c9dd65e, 0xd3f7, 0x4529, 0xac, 0xee, 0x78, 0x58, 0x30, 0xac, 0xde, 0x35);
92 /* IID_IDirect3DSurface9 */
93 /* {0CFBAF3A-9FF6-429a-99B3-A2796AF8B89B} */
94 DEFINE_GUID(IID_IDirect3DSurface9, 0xcfbaf3a, 0x9ff6, 0x429a, 0x99, 0xb3, 0xa2, 0x79, 0x6a, 0xf8, 0xb8, 0x9b);
96 /* IID_IDirect3DVolume9 */
97 /* {24F416E6-1F67-4aa7-B88E-D33F6F3128A1} */
98 DEFINE_GUID(IID_IDirect3DVolume9, 0x24f416e6, 0x1f67, 0x4aa7, 0xb8, 0x8e, 0xd3, 0x3f, 0x6f, 0x31, 0x28, 0xa1);
100 /* IID_IDirect3DSwapChain9 */
101 /* {794950F2-ADFC-458a-905E-10A10B0B503B} */
102 DEFINE_GUID(IID_IDirect3DSwapChain9, 0x794950f2, 0xadfc, 0x458a, 0x90, 0x5e, 0x10, 0xa1, 0xb, 0xb, 0x50, 0x3b);
104 /* IID_IDirect3DVertexDeclaration9 */
105 /* {DD13C59C-36FA-4098-A8FB-C7ED39DC8546} */
106 DEFINE_GUID(IID_IDirect3DVertexDeclaration9, 0xdd13c59c, 0x36fa, 0x4098, 0xa8, 0xfb, 0xc7, 0xed, 0x39, 0xdc, 0x85, 0x46);
108 /* IID_IDirect3DVertexShader9 */
109 /* {EFC5557E-6265-4613-8A94-43857889EB36} */
110 DEFINE_GUID(IID_IDirect3DVertexShader9, 0xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36);
112 /* IID_IDirect3DPixelShader9 */
113 /* {6D3BDBDC-5B02-4415-B852-CE5E8BCCB289} */
114 DEFINE_GUID(IID_IDirect3DPixelShader9, 0x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89);
116 /* IID_IDirect3DStateBlock9 */
117 /* {B07C4FE5-310D-4ba8-A23C-4F0F206F218B} */
118 DEFINE_GUID(IID_IDirect3DStateBlock9, 0xb07c4fe5, 0x310d, 0x4ba8, 0xa2, 0x3c, 0x4f, 0xf, 0x20, 0x6f, 0x21, 0x8b);
120 /* IID_IDirect3DQuery9 */
121 /* {d9771460-a695-4f26-bbd3-27b840b541cc} */
122 DEFINE_GUID(IID_IDirect3DQuery9, 0xd9771460, 0xa695, 0x4f26, 0xbb, 0xd3, 0x27, 0xb8, 0x40, 0xb5, 0x41, 0xcc);
125 /* IID_HelperName */
126 /* {E4A36723-FDFE-4b22-B146-3C04C07F4CC8} */
127 DEFINE_GUID(IID_HelperName, 0xe4a36723, 0xfdfe, 0x4b22, 0xb1, 0x46, 0x3c, 0x4, 0xc0, 0x7f, 0x4c, 0xc8);
130 #endif
132 #ifdef __cplusplus
134 #ifndef DECLSPEC_UUID
135 #if _MSC_VER >= 1100
136 #define DECLSPEC_UUID(x) __declspec(uuid(x))
137 #else
138 #define DECLSPEC_UUID(x)
139 #endif
140 #endif
142 interface DECLSPEC_UUID("81BDCBCA-64D4-426d-AE8D-AD0147F4275C") IDirect3D9;
143 interface DECLSPEC_UUID("D0223B96-BF7A-43fd-92BD-A43B0D82B9EB") IDirect3DDevice9;
145 interface DECLSPEC_UUID("B07C4FE5-310D-4ba8-A23C-4F0F206F218B") IDirect3DStateBlock9;
146 interface DECLSPEC_UUID("05EEC05D-8F7D-4362-B999-D1BAF357C704") IDirect3DResource9;
147 interface DECLSPEC_UUID("DD13C59C-36FA-4098-A8FB-C7ED39DC8546") IDirect3DVertexDeclaration9;
148 interface DECLSPEC_UUID("EFC5557E-6265-4613-8A94-43857889EB36") IDirect3DVertexShader9;
149 interface DECLSPEC_UUID("6D3BDBDC-5B02-4415-B852-CE5E8BCCB289") IDirect3DPixelShader9;
150 interface DECLSPEC_UUID("580CA87E-1D3C-4d54-991D-B7D3E3C298CE") IDirect3DBaseTexture9;
151 interface DECLSPEC_UUID("85C31227-3DE5-4f00-9B3A-F11AC38C18B5") IDirect3DTexture9;
152 interface DECLSPEC_UUID("2518526C-E789-4111-A7B9-47EF328D13E6") IDirect3DVolumeTexture9;
153 interface DECLSPEC_UUID("FFF32F81-D953-473a-9223-93D652ABA93F") IDirect3DCubeTexture9;
155 interface DECLSPEC_UUID("B64BB1B5-FD70-4df6-BF91-19D0A12455E3") IDirect3DVertexBuffer9;
156 interface DECLSPEC_UUID("7C9DD65E-D3F7-4529-ACEE-785830ACDE35") IDirect3DIndexBuffer9;
158 interface DECLSPEC_UUID("0CFBAF3A-9FF6-429a-99B3-A2796AF8B89B") IDirect3DSurface9;
159 interface DECLSPEC_UUID("24F416E6-1F67-4aa7-B88E-D33F6F3128A1") IDirect3DVolume9;
161 interface DECLSPEC_UUID("794950F2-ADFC-458a-905E-10A10B0B503B") IDirect3DSwapChain9;
162 interface DECLSPEC_UUID("d9771460-a695-4f26-bbd3-27b840b541cc") IDirect3DQuery9;
165 #if defined(_COM_SMARTPTR_TYPEDEF)
166 _COM_SMARTPTR_TYPEDEF(IDirect3D9, __uuidof(IDirect3D9));
167 _COM_SMARTPTR_TYPEDEF(IDirect3DDevice9, __uuidof(IDirect3DDevice9));
169 _COM_SMARTPTR_TYPEDEF(IDirect3DStateBlock9, __uuidof(IDirect3DStateBlock9));
170 _COM_SMARTPTR_TYPEDEF(IDirect3DResource9, __uuidof(IDirect3DResource9));
171 _COM_SMARTPTR_TYPEDEF(IDirect3DVertexDeclaration9, __uuidof(IDirect3DVertexDeclaration9));
172 _COM_SMARTPTR_TYPEDEF(IDirect3DVertexShader9, __uuidof(IDirect3DVertexShader9));
173 _COM_SMARTPTR_TYPEDEF(IDirect3DPixelShader9, __uuidof(IDirect3DPixelShader9));
174 _COM_SMARTPTR_TYPEDEF(IDirect3DBaseTexture9, __uuidof(IDirect3DBaseTexture9));
175 _COM_SMARTPTR_TYPEDEF(IDirect3DTexture9, __uuidof(IDirect3DTexture9));
176 _COM_SMARTPTR_TYPEDEF(IDirect3DVolumeTexture9, __uuidof(IDirect3DVolumeTexture9));
177 _COM_SMARTPTR_TYPEDEF(IDirect3DCubeTexture9, __uuidof(IDirect3DCubeTexture9));
179 _COM_SMARTPTR_TYPEDEF(IDirect3DVertexBuffer9, __uuidof(IDirect3DVertexBuffer9));
180 _COM_SMARTPTR_TYPEDEF(IDirect3DIndexBuffer9, __uuidof(IDirect3DIndexBuffer9));
182 _COM_SMARTPTR_TYPEDEF(IDirect3DSurface9, __uuidof(IDirect3DSurface9));
183 _COM_SMARTPTR_TYPEDEF(IDirect3DVolume9, __uuidof(IDirect3DVolume9));
185 _COM_SMARTPTR_TYPEDEF(IDirect3DSwapChain9, __uuidof(IDirect3DSwapChain9));
186 _COM_SMARTPTR_TYPEDEF(IDirect3DQuery9, __uuidof(IDirect3DQuery9));
188 #endif
189 #endif
192 typedef interface IDirect3D9 IDirect3D9;
193 typedef interface IDirect3DDevice9 IDirect3DDevice9;
194 typedef interface IDirect3DStateBlock9 IDirect3DStateBlock9;
195 typedef interface IDirect3DVertexDeclaration9 IDirect3DVertexDeclaration9;
196 typedef interface IDirect3DVertexShader9 IDirect3DVertexShader9;
197 typedef interface IDirect3DPixelShader9 IDirect3DPixelShader9;
198 typedef interface IDirect3DResource9 IDirect3DResource9;
199 typedef interface IDirect3DBaseTexture9 IDirect3DBaseTexture9;
200 typedef interface IDirect3DTexture9 IDirect3DTexture9;
201 typedef interface IDirect3DVolumeTexture9 IDirect3DVolumeTexture9;
202 typedef interface IDirect3DCubeTexture9 IDirect3DCubeTexture9;
203 typedef interface IDirect3DVertexBuffer9 IDirect3DVertexBuffer9;
204 typedef interface IDirect3DIndexBuffer9 IDirect3DIndexBuffer9;
205 typedef interface IDirect3DSurface9 IDirect3DSurface9;
206 typedef interface IDirect3DVolume9 IDirect3DVolume9;
207 typedef interface IDirect3DSwapChain9 IDirect3DSwapChain9;
208 typedef interface IDirect3DQuery9 IDirect3DQuery9;
211 #include "d3d9types.h"
212 #include "d3d9caps.h"
215 #ifdef __cplusplus
216 extern "C" {
217 #endif
220 * DLL Function for creating a Direct3D9 object. This object supports
221 * enumeration and allows the creation of Direct3DDevice9 objects.
222 * Pass the value of the constant D3D_SDK_VERSION to this function, so
223 * that the run-time can validate that your application was compiled
224 * against the right headers.
227 IDirect3D9 * WINAPI Direct3DCreate9(UINT SDKVersion);
230 * Stubs for graphics profiling.
233 int WINAPI D3DPERF_BeginEvent( D3DCOLOR col, LPCWSTR wszName );
234 int WINAPI D3DPERF_EndEvent( void );
235 void WINAPI D3DPERF_SetMarker( D3DCOLOR col, LPCWSTR wszName );
236 void WINAPI D3DPERF_SetRegion( D3DCOLOR col, LPCWSTR wszName );
237 BOOL WINAPI D3DPERF_QueryRepeatFrame( void );
239 void WINAPI D3DPERF_SetOptions( DWORD dwOptions );
240 DWORD WINAPI D3DPERF_GetStatus( void );
243 * Direct3D interfaces
251 #undef INTERFACE
252 #define INTERFACE IDirect3D9
254 DECLARE_INTERFACE_(IDirect3D9, IUnknown)
256 /*** IUnknown methods ***/
257 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
258 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
259 STDMETHOD_(ULONG,Release)(THIS) PURE;
261 /*** IDirect3D9 methods ***/
262 STDMETHOD(RegisterSoftwareDevice)(THIS_ void* pInitializeFunction) PURE;
263 STDMETHOD_(UINT, GetAdapterCount)(THIS) PURE;
264 STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter,DWORD Flags,D3DADAPTER_IDENTIFIER9* pIdentifier) PURE;
265 STDMETHOD_(UINT, GetAdapterModeCount)(THIS_ UINT Adapter,D3DFORMAT Format) PURE;
266 STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter,D3DFORMAT Format,UINT Mode,D3DDISPLAYMODE* pMode) PURE;
267 STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter,D3DDISPLAYMODE* pMode) PURE;
268 STDMETHOD(CheckDeviceType)(THIS_ UINT Adapter,D3DDEVTYPE DevType,D3DFORMAT AdapterFormat,D3DFORMAT BackBufferFormat,BOOL bWindowed) PURE;
269 STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT AdapterFormat,DWORD Usage,D3DRESOURCETYPE RType,D3DFORMAT CheckFormat) PURE;
270 STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT SurfaceFormat,BOOL Windowed,D3DMULTISAMPLE_TYPE MultiSampleType,DWORD* pQualityLevels) PURE;
271 STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT AdapterFormat,D3DFORMAT RenderTargetFormat,D3DFORMAT DepthStencilFormat) PURE;
272 STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT SourceFormat,D3DFORMAT TargetFormat) PURE;
273 STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DCAPS9* pCaps) PURE;
274 STDMETHOD_(HMONITOR, GetAdapterMonitor)(THIS_ UINT Adapter) PURE;
275 STDMETHOD(CreateDevice)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,HWND hFocusWindow,DWORD BehaviorFlags,D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DDevice9** ppReturnedDeviceInterface) PURE;
277 #ifdef D3D_DEBUG_INFO
278 LPCWSTR Version;
279 #endif
282 typedef struct IDirect3D9 *LPDIRECT3D9, *PDIRECT3D9;
284 #if !defined(__cplusplus) || defined(CINTERFACE)
285 #define IDirect3D9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
286 #define IDirect3D9_AddRef(p) (p)->lpVtbl->AddRef(p)
287 #define IDirect3D9_Release(p) (p)->lpVtbl->Release(p)
288 #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
289 #define IDirect3D9_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
290 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
291 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
292 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
293 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
294 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
295 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
296 #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
297 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
298 #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
299 #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
300 #define IDirect3D9_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
301 #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
302 #else
303 #define IDirect3D9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
304 #define IDirect3D9_AddRef(p) (p)->AddRef()
305 #define IDirect3D9_Release(p) (p)->Release()
306 #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a)
307 #define IDirect3D9_GetAdapterCount(p) (p)->GetAdapterCount()
308 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c)
309 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->GetAdapterModeCount(a,b)
310 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->EnumAdapterModes(a,b,c,d)
311 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b)
312 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e)
313 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f)
314 #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->CheckDeviceMultiSampleType(a,b,c,d,e,f)
315 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e)
316 #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->CheckDeviceFormatConversion(a,b,c,d)
317 #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c)
318 #define IDirect3D9_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a)
319 #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f)
320 #endif
328 /* SwapChain */
344 #undef INTERFACE
345 #define INTERFACE IDirect3DDevice9
347 DECLARE_INTERFACE_(IDirect3DDevice9, IUnknown)
349 /*** IUnknown methods ***/
350 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
351 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
352 STDMETHOD_(ULONG,Release)(THIS) PURE;
354 /*** IDirect3DDevice9 methods ***/
355 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
356 STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE;
357 STDMETHOD(EvictManagedResources)(THIS) PURE;
358 STDMETHOD(GetDirect3D)(THIS_ IDirect3D9** ppD3D9) PURE;
359 STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS9* pCaps) PURE;
360 STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain,D3DDISPLAYMODE* pMode) PURE;
361 STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE;
362 STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot,UINT YHotSpot,IDirect3DSurface9* pCursorBitmap) PURE;
363 STDMETHOD_(void, SetCursorPosition)(THIS_ int X,int Y,DWORD Flags) PURE;
364 STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE;
365 STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DSwapChain9** pSwapChain) PURE;
366 STDMETHOD(GetSwapChain)(THIS_ UINT iSwapChain,IDirect3DSwapChain9** pSwapChain) PURE;
367 STDMETHOD_(UINT, GetNumberOfSwapChains)(THIS) PURE;
368 STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE;
369 STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion) PURE;
370 STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain,UINT iBackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface9** ppBackBuffer) PURE;
371 STDMETHOD(GetRasterStatus)(THIS_ UINT iSwapChain,D3DRASTER_STATUS* pRasterStatus) PURE;
372 STDMETHOD(SetDialogBoxMode)(THIS_ BOOL bEnableDialogs) PURE;
373 STDMETHOD_(void, SetGammaRamp)(THIS_ UINT iSwapChain,DWORD Flags,CONST D3DGAMMARAMP* pRamp) PURE;
374 STDMETHOD_(void, GetGammaRamp)(THIS_ UINT iSwapChain,D3DGAMMARAMP* pRamp) PURE;
375 STDMETHOD(CreateTexture)(THIS_ UINT Width,UINT Height,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DTexture9** ppTexture,HANDLE* pSharedHandle) PURE;
376 STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width,UINT Height,UINT Depth,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DVolumeTexture9** ppVolumeTexture,HANDLE* pSharedHandle) PURE;
377 STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DCubeTexture9** ppCubeTexture,HANDLE* pSharedHandle) PURE;
378 STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length,DWORD Usage,DWORD FVF,D3DPOOL Pool,IDirect3DVertexBuffer9** ppVertexBuffer,HANDLE* pSharedHandle) PURE;
379 STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DIndexBuffer9** ppIndexBuffer,HANDLE* pSharedHandle) PURE;
380 STDMETHOD(CreateRenderTarget)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,DWORD MultisampleQuality,BOOL Lockable,IDirect3DSurface9** ppSurface,HANDLE* pSharedHandle) PURE;
381 STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,DWORD MultisampleQuality,BOOL Discard,IDirect3DSurface9** ppSurface,HANDLE* pSharedHandle) PURE;
382 STDMETHOD(UpdateSurface)(THIS_ IDirect3DSurface9* pSourceSurface,CONST RECT* pSourceRect,IDirect3DSurface9* pDestinationSurface,CONST POINT* pDestPoint) PURE;
383 STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture9* pSourceTexture,IDirect3DBaseTexture9* pDestinationTexture) PURE;
384 STDMETHOD(GetRenderTargetData)(THIS_ IDirect3DSurface9* pRenderTarget,IDirect3DSurface9* pDestSurface) PURE;
385 STDMETHOD(GetFrontBufferData)(THIS_ UINT iSwapChain,IDirect3DSurface9* pDestSurface) PURE;
386 STDMETHOD(StretchRect)(THIS_ IDirect3DSurface9* pSourceSurface,CONST RECT* pSourceRect,IDirect3DSurface9* pDestSurface,CONST RECT* pDestRect,D3DTEXTUREFILTERTYPE Filter) PURE;
387 STDMETHOD(ColorFill)(THIS_ IDirect3DSurface9* pSurface,CONST RECT* pRect,D3DCOLOR color) PURE;
388 STDMETHOD(CreateOffscreenPlainSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DPOOL Pool,IDirect3DSurface9** ppSurface,HANDLE* pSharedHandle) PURE;
389 STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex,IDirect3DSurface9* pRenderTarget) PURE;
390 STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex,IDirect3DSurface9** ppRenderTarget) PURE;
391 STDMETHOD(SetDepthStencilSurface)(THIS_ IDirect3DSurface9* pNewZStencil) PURE;
392 STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface9** ppZStencilSurface) PURE;
393 STDMETHOD(BeginScene)(THIS) PURE;
394 STDMETHOD(EndScene)(THIS) PURE;
395 STDMETHOD(Clear)(THIS_ DWORD Count,CONST D3DRECT* pRects,DWORD Flags,D3DCOLOR Color,float Z,DWORD Stencil) PURE;
396 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,CONST D3DMATRIX* pMatrix) PURE;
397 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,D3DMATRIX* pMatrix) PURE;
398 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,CONST D3DMATRIX*) PURE;
399 STDMETHOD(SetViewport)(THIS_ CONST D3DVIEWPORT9* pViewport) PURE;
400 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT9* pViewport) PURE;
401 STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL9* pMaterial) PURE;
402 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL9* pMaterial) PURE;
403 STDMETHOD(SetLight)(THIS_ DWORD Index,CONST D3DLIGHT9*) PURE;
404 STDMETHOD(GetLight)(THIS_ DWORD Index,D3DLIGHT9*) PURE;
405 STDMETHOD(LightEnable)(THIS_ DWORD Index,BOOL Enable) PURE;
406 STDMETHOD(GetLightEnable)(THIS_ DWORD Index,BOOL* pEnable) PURE;
407 STDMETHOD(SetClipPlane)(THIS_ DWORD Index,CONST float* pPlane) PURE;
408 STDMETHOD(GetClipPlane)(THIS_ DWORD Index,float* pPlane) PURE;
409 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD Value) PURE;
410 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD* pValue) PURE;
411 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type,IDirect3DStateBlock9** ppSB) PURE;
412 STDMETHOD(BeginStateBlock)(THIS) PURE;
413 STDMETHOD(EndStateBlock)(THIS_ IDirect3DStateBlock9** ppSB) PURE;
414 STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS9* pClipStatus) PURE;
415 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS9* pClipStatus) PURE;
416 STDMETHOD(GetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture9** ppTexture) PURE;
417 STDMETHOD(SetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture9* pTexture) PURE;
418 STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD* pValue) PURE;
419 STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE;
420 STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler,D3DSAMPLERSTATETYPE Type,DWORD* pValue) PURE;
421 STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler,D3DSAMPLERSTATETYPE Type,DWORD Value) PURE;
422 STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE;
423 STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber,CONST PALETTEENTRY* pEntries) PURE;
424 STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE;
425 STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE;
426 STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE;
427 STDMETHOD(SetScissorRect)(THIS_ CONST RECT* pRect) PURE;
428 STDMETHOD(GetScissorRect)(THIS_ RECT* pRect) PURE;
429 STDMETHOD(SetSoftwareVertexProcessing)(THIS_ BOOL bSoftware) PURE;
430 STDMETHOD_(BOOL, GetSoftwareVertexProcessing)(THIS) PURE;
431 STDMETHOD(SetNPatchMode)(THIS_ float nSegments) PURE;
432 STDMETHOD_(float, GetNPatchMode)(THIS) PURE;
433 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE;
434 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount) PURE;
435 STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT PrimitiveCount,CONST void* pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;
436 STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT MinVertexIndex,UINT NumVertices,UINT PrimitiveCount,CONST void* pIndexData,D3DFORMAT IndexDataFormat,CONST void* pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;
437 STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex,UINT DestIndex,UINT VertexCount,IDirect3DVertexBuffer9* pDestBuffer,IDirect3DVertexDeclaration9* pVertexDecl,DWORD Flags) PURE;
438 STDMETHOD(CreateVertexDeclaration)(THIS_ CONST D3DVERTEXELEMENT9* pVertexElements,IDirect3DVertexDeclaration9** ppDecl) PURE;
439 STDMETHOD(SetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9* pDecl) PURE;
440 STDMETHOD(GetVertexDeclaration)(THIS_ IDirect3DVertexDeclaration9** ppDecl) PURE;
441 STDMETHOD(SetFVF)(THIS_ DWORD FVF) PURE;
442 STDMETHOD(GetFVF)(THIS_ DWORD* pFVF) PURE;
443 STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD* pFunction,IDirect3DVertexShader9** ppShader) PURE;
444 STDMETHOD(SetVertexShader)(THIS_ IDirect3DVertexShader9* pShader) PURE;
445 STDMETHOD(GetVertexShader)(THIS_ IDirect3DVertexShader9** ppShader) PURE;
446 STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT StartRegister,CONST float* pConstantData,UINT Vector4fCount) PURE;
447 STDMETHOD(GetVertexShaderConstantF)(THIS_ UINT StartRegister,float* pConstantData,UINT Vector4fCount) PURE;
448 STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT StartRegister,CONST int* pConstantData,UINT Vector4iCount) PURE;
449 STDMETHOD(GetVertexShaderConstantI)(THIS_ UINT StartRegister,int* pConstantData,UINT Vector4iCount) PURE;
450 STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT StartRegister,CONST BOOL* pConstantData,UINT BoolCount) PURE;
451 STDMETHOD(GetVertexShaderConstantB)(THIS_ UINT StartRegister,BOOL* pConstantData,UINT BoolCount) PURE;
452 STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer9* pStreamData,UINT OffsetInBytes,UINT Stride) PURE;
453 STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer9** ppStreamData,UINT* pOffsetInBytes,UINT* pStride) PURE;
454 STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber,UINT Setting) PURE;
455 STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber,UINT* pSetting) PURE;
456 STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer9* pIndexData) PURE;
457 STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer9** ppIndexData) PURE;
458 STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD* pFunction,IDirect3DPixelShader9** ppShader) PURE;
459 STDMETHOD(SetPixelShader)(THIS_ IDirect3DPixelShader9* pShader) PURE;
460 STDMETHOD(GetPixelShader)(THIS_ IDirect3DPixelShader9** ppShader) PURE;
461 STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT StartRegister,CONST float* pConstantData,UINT Vector4fCount) PURE;
462 STDMETHOD(GetPixelShaderConstantF)(THIS_ UINT StartRegister,float* pConstantData,UINT Vector4fCount) PURE;
463 STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT StartRegister,CONST int* pConstantData,UINT Vector4iCount) PURE;
464 STDMETHOD(GetPixelShaderConstantI)(THIS_ UINT StartRegister,int* pConstantData,UINT Vector4iCount) PURE;
465 STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT StartRegister,CONST BOOL* pConstantData,UINT BoolCount) PURE;
466 STDMETHOD(GetPixelShaderConstantB)(THIS_ UINT StartRegister,BOOL* pConstantData,UINT BoolCount) PURE;
467 STDMETHOD(DrawRectPatch)(THIS_ UINT Handle,CONST float* pNumSegs,CONST D3DRECTPATCH_INFO* pRectPatchInfo) PURE;
468 STDMETHOD(DrawTriPatch)(THIS_ UINT Handle,CONST float* pNumSegs,CONST D3DTRIPATCH_INFO* pTriPatchInfo) PURE;
469 STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE;
470 STDMETHOD(CreateQuery)(THIS_ D3DQUERYTYPE Type,IDirect3DQuery9** ppQuery) PURE;
472 #ifdef D3D_DEBUG_INFO
473 D3DDEVICE_CREATION_PARAMETERS CreationParameters;
474 D3DPRESENT_PARAMETERS PresentParameters;
475 D3DDISPLAYMODE DisplayMode;
476 D3DCAPS9 Caps;
478 UINT AvailableTextureMem;
479 UINT SwapChains;
480 UINT Textures;
481 UINT VertexBuffers;
482 UINT IndexBuffers;
483 UINT VertexShaders;
484 UINT PixelShaders;
486 D3DVIEWPORT9 Viewport;
487 D3DMATRIX ProjectionMatrix;
488 D3DMATRIX ViewMatrix;
489 D3DMATRIX WorldMatrix;
490 D3DMATRIX TextureMatrices[8];
492 DWORD FVF;
493 UINT VertexSize;
494 DWORD VertexShaderVersion;
495 DWORD PixelShaderVersion;
496 BOOL SoftwareVertexProcessing;
498 D3DMATERIAL9 Material;
499 D3DLIGHT9 Lights[16];
500 BOOL LightsEnabled[16];
502 D3DGAMMARAMP GammaRamp;
503 RECT ScissorRect;
504 BOOL DialogBoxMode;
505 #endif
508 typedef struct IDirect3DDevice9 *LPDIRECT3DDEVICE9, *PDIRECT3DDEVICE9;
510 #if !defined(__cplusplus) || defined(CINTERFACE)
511 #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
512 #define IDirect3DDevice9_AddRef(p) (p)->lpVtbl->AddRef(p)
513 #define IDirect3DDevice9_Release(p) (p)->lpVtbl->Release(p)
514 #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
515 #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
516 #define IDirect3DDevice9_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
517 #define IDirect3DDevice9_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
518 #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
519 #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
520 #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
521 #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
522 #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
523 #define IDirect3DDevice9_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
524 #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
525 #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
526 #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
527 #define IDirect3DDevice9_Reset(p,a) (p)->lpVtbl->Reset(p,a)
528 #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
529 #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
530 #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
531 #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
532 #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
533 #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
534 #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h)
535 #define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i)
536 #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g)
537 #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f)
538 #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f)
539 #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h)
540 #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h)
541 #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
542 #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
543 #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
544 #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
545 #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
546 #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
547 #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f)
548 #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
549 #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
550 #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
551 #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
552 #define IDirect3DDevice9_BeginScene(p) (p)->lpVtbl->BeginScene(p)
553 #define IDirect3DDevice9_EndScene(p) (p)->lpVtbl->EndScene(p)
554 #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
555 #define IDirect3DDevice9_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
556 #define IDirect3DDevice9_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
557 #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
558 #define IDirect3DDevice9_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
559 #define IDirect3DDevice9_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
560 #define IDirect3DDevice9_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
561 #define IDirect3DDevice9_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
562 #define IDirect3DDevice9_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
563 #define IDirect3DDevice9_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
564 #define IDirect3DDevice9_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
565 #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
566 #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
567 #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
568 #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
569 #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
570 #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
571 #define IDirect3DDevice9_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
572 #define IDirect3DDevice9_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
573 #define IDirect3DDevice9_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
574 #define IDirect3DDevice9_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
575 #define IDirect3DDevice9_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
576 #define IDirect3DDevice9_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
577 #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
578 #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
579 #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
580 #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
581 #define IDirect3DDevice9_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
582 #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
583 #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
584 #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
585 #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
586 #define IDirect3DDevice9_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
587 #define IDirect3DDevice9_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
588 #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
589 #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
590 #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
591 #define IDirect3DDevice9_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
592 #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
593 #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
594 #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
595 #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
596 #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
597 #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b)
598 #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
599 #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
600 #define IDirect3DDevice9_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
601 #define IDirect3DDevice9_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
602 #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b)
603 #define IDirect3DDevice9_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
604 #define IDirect3DDevice9_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
605 #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
606 #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
607 #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
608 #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
609 #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
610 #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
611 #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
612 #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
613 #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
614 #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
615 #define IDirect3DDevice9_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
616 #define IDirect3DDevice9_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
617 #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
618 #define IDirect3DDevice9_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
619 #define IDirect3DDevice9_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
620 #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
621 #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
622 #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
623 #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
624 #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
625 #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
626 #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
627 #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
628 #define IDirect3DDevice9_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
629 #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b)
630 #else
631 #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
632 #define IDirect3DDevice9_AddRef(p) (p)->AddRef()
633 #define IDirect3DDevice9_Release(p) (p)->Release()
634 #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
635 #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
636 #define IDirect3DDevice9_EvictManagedResources(p) (p)->EvictManagedResources()
637 #define IDirect3DDevice9_GetDirect3D(p,a) (p)->GetDirect3D(a)
638 #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
639 #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b)
640 #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
641 #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
642 #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
643 #define IDirect3DDevice9_ShowCursor(p,a) (p)->ShowCursor(a)
644 #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
645 #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b)
646 #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains()
647 #define IDirect3DDevice9_Reset(p,a) (p)->Reset(a)
648 #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
649 #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d)
650 #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b)
651 #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a)
652 #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c)
653 #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b)
654 #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h)
655 #define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i)
656 #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g)
657 #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f)
658 #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f)
659 #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h)
660 #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h)
661 #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d)
662 #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
663 #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b)
664 #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b)
665 #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e)
666 #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c)
667 #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f)
668 #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
669 #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b)
670 #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a)
671 #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
672 #define IDirect3DDevice9_BeginScene(p) (p)->BeginScene()
673 #define IDirect3DDevice9_EndScene(p) (p)->EndScene()
674 #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
675 #define IDirect3DDevice9_SetTransform(p,a,b) (p)->SetTransform(a,b)
676 #define IDirect3DDevice9_GetTransform(p,a,b) (p)->GetTransform(a,b)
677 #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
678 #define IDirect3DDevice9_SetViewport(p,a) (p)->SetViewport(a)
679 #define IDirect3DDevice9_GetViewport(p,a) (p)->GetViewport(a)
680 #define IDirect3DDevice9_SetMaterial(p,a) (p)->SetMaterial(a)
681 #define IDirect3DDevice9_GetMaterial(p,a) (p)->GetMaterial(a)
682 #define IDirect3DDevice9_SetLight(p,a,b) (p)->SetLight(a,b)
683 #define IDirect3DDevice9_GetLight(p,a,b) (p)->GetLight(a,b)
684 #define IDirect3DDevice9_LightEnable(p,a,b) (p)->LightEnable(a,b)
685 #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
686 #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
687 #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
688 #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
689 #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
690 #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
691 #define IDirect3DDevice9_BeginStateBlock(p) (p)->BeginStateBlock()
692 #define IDirect3DDevice9_EndStateBlock(p,a) (p)->EndStateBlock(a)
693 #define IDirect3DDevice9_SetClipStatus(p,a) (p)->SetClipStatus(a)
694 #define IDirect3DDevice9_GetClipStatus(p,a) (p)->GetClipStatus(a)
695 #define IDirect3DDevice9_GetTexture(p,a,b) (p)->GetTexture(a,b)
696 #define IDirect3DDevice9_SetTexture(p,a,b) (p)->SetTexture(a,b)
697 #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
698 #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
699 #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c)
700 #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c)
701 #define IDirect3DDevice9_ValidateDevice(p,a) (p)->ValidateDevice(a)
702 #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
703 #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
704 #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
705 #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
706 #define IDirect3DDevice9_SetScissorRect(p,a) (p)->SetScissorRect(a)
707 #define IDirect3DDevice9_GetScissorRect(p,a) (p)->GetScissorRect(a)
708 #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a)
709 #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing()
710 #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->SetNPatchMode(a)
711 #define IDirect3DDevice9_GetNPatchMode(p) (p)->GetNPatchMode()
712 #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
713 #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f)
714 #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
715 #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
716 #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f)
717 #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b)
718 #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a)
719 #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a)
720 #define IDirect3DDevice9_SetFVF(p,a) (p)->SetFVF(a)
721 #define IDirect3DDevice9_GetFVF(p,a) (p)->GetFVF(a)
722 #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b)
723 #define IDirect3DDevice9_SetVertexShader(p,a) (p)->SetVertexShader(a)
724 #define IDirect3DDevice9_GetVertexShader(p,a) (p)->GetVertexShader(a)
725 #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c)
726 #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c)
727 #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c)
728 #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c)
729 #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c)
730 #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c)
731 #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d)
732 #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d)
733 #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b)
734 #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b)
735 #define IDirect3DDevice9_SetIndices(p,a) (p)->SetIndices(a)
736 #define IDirect3DDevice9_GetIndices(p,a) (p)->GetIndices(a)
737 #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
738 #define IDirect3DDevice9_SetPixelShader(p,a) (p)->SetPixelShader(a)
739 #define IDirect3DDevice9_GetPixelShader(p,a) (p)->GetPixelShader(a)
740 #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c)
741 #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c)
742 #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c)
743 #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c)
744 #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c)
745 #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c)
746 #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
747 #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
748 #define IDirect3DDevice9_DeletePatch(p,a) (p)->DeletePatch(a)
749 #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->CreateQuery(a,b)
750 #endif
753 #undef INTERFACE
754 #define INTERFACE IDirect3DStateBlock9
756 DECLARE_INTERFACE_(IDirect3DStateBlock9, IUnknown)
758 /*** IUnknown methods ***/
759 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
760 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
761 STDMETHOD_(ULONG,Release)(THIS) PURE;
763 /*** IDirect3DStateBlock9 methods ***/
764 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
765 STDMETHOD(Capture)(THIS) PURE;
766 STDMETHOD(Apply)(THIS) PURE;
768 #ifdef D3D_DEBUG_INFO
769 LPCWSTR CreationCallStack;
770 #endif
773 typedef struct IDirect3DStateBlock9 *LPDIRECT3DSTATEBLOCK9, *PDIRECT3DSTATEBLOCK9;
775 #if !defined(__cplusplus) || defined(CINTERFACE)
776 #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
777 #define IDirect3DStateBlock9_AddRef(p) (p)->lpVtbl->AddRef(p)
778 #define IDirect3DStateBlock9_Release(p) (p)->lpVtbl->Release(p)
779 #define IDirect3DStateBlock9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
780 #define IDirect3DStateBlock9_Capture(p) (p)->lpVtbl->Capture(p)
781 #define IDirect3DStateBlock9_Apply(p) (p)->lpVtbl->Apply(p)
782 #else
783 #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
784 #define IDirect3DStateBlock9_AddRef(p) (p)->AddRef()
785 #define IDirect3DStateBlock9_Release(p) (p)->Release()
786 #define IDirect3DStateBlock9_GetDevice(p,a) (p)->GetDevice(a)
787 #define IDirect3DStateBlock9_Capture(p) (p)->Capture()
788 #define IDirect3DStateBlock9_Apply(p) (p)->Apply()
789 #endif
794 #undef INTERFACE
795 #define INTERFACE IDirect3DSwapChain9
797 DECLARE_INTERFACE_(IDirect3DSwapChain9, IUnknown)
799 /*** IUnknown methods ***/
800 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
801 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
802 STDMETHOD_(ULONG,Release)(THIS) PURE;
804 /*** IDirect3DSwapChain9 methods ***/
805 STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion,DWORD dwFlags) PURE;
806 STDMETHOD(GetFrontBufferData)(THIS_ IDirect3DSurface9* pDestSurface) PURE;
807 STDMETHOD(GetBackBuffer)(THIS_ UINT iBackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface9** ppBackBuffer) PURE;
808 STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS* pRasterStatus) PURE;
809 STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE* pMode) PURE;
810 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
811 STDMETHOD(GetPresentParameters)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE;
813 #ifdef D3D_DEBUG_INFO
814 D3DPRESENT_PARAMETERS PresentParameters;
815 D3DDISPLAYMODE DisplayMode;
816 LPCWSTR CreationCallStack;
817 #endif
820 typedef struct IDirect3DSwapChain9 *LPDIRECT3DSWAPCHAIN9, *PDIRECT3DSWAPCHAIN9;
822 #if !defined(__cplusplus) || defined(CINTERFACE)
823 #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
824 #define IDirect3DSwapChain9_AddRef(p) (p)->lpVtbl->AddRef(p)
825 #define IDirect3DSwapChain9_Release(p) (p)->lpVtbl->Release(p)
826 #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
827 #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
828 #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
829 #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
830 #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
831 #define IDirect3DSwapChain9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
832 #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
833 #else
834 #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
835 #define IDirect3DSwapChain9_AddRef(p) (p)->AddRef()
836 #define IDirect3DSwapChain9_Release(p) (p)->Release()
837 #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->Present(a,b,c,d,e)
838 #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->GetFrontBufferData(a)
839 #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
840 #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
841 #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
842 #define IDirect3DSwapChain9_GetDevice(p,a) (p)->GetDevice(a)
843 #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->GetPresentParameters(a)
844 #endif
848 #undef INTERFACE
849 #define INTERFACE IDirect3DResource9
851 DECLARE_INTERFACE_(IDirect3DResource9, IUnknown)
853 /*** IUnknown methods ***/
854 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
855 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
856 STDMETHOD_(ULONG,Release)(THIS) PURE;
858 /*** IDirect3DResource9 methods ***/
859 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
860 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;
861 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;
862 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
863 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
864 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
865 STDMETHOD_(void, PreLoad)(THIS) PURE;
866 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
869 typedef struct IDirect3DResource9 *LPDIRECT3DRESOURCE9, *PDIRECT3DRESOURCE9;
871 #if !defined(__cplusplus) || defined(CINTERFACE)
872 #define IDirect3DResource9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
873 #define IDirect3DResource9_AddRef(p) (p)->lpVtbl->AddRef(p)
874 #define IDirect3DResource9_Release(p) (p)->lpVtbl->Release(p)
875 #define IDirect3DResource9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
876 #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
877 #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
878 #define IDirect3DResource9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
879 #define IDirect3DResource9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
880 #define IDirect3DResource9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
881 #define IDirect3DResource9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
882 #define IDirect3DResource9_GetType(p) (p)->lpVtbl->GetType(p)
883 #else
884 #define IDirect3DResource9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
885 #define IDirect3DResource9_AddRef(p) (p)->AddRef()
886 #define IDirect3DResource9_Release(p) (p)->Release()
887 #define IDirect3DResource9_GetDevice(p,a) (p)->GetDevice(a)
888 #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
889 #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
890 #define IDirect3DResource9_FreePrivateData(p,a) (p)->FreePrivateData(a)
891 #define IDirect3DResource9_SetPriority(p,a) (p)->SetPriority(a)
892 #define IDirect3DResource9_GetPriority(p) (p)->GetPriority()
893 #define IDirect3DResource9_PreLoad(p) (p)->PreLoad()
894 #define IDirect3DResource9_GetType(p) (p)->GetType()
895 #endif
900 #undef INTERFACE
901 #define INTERFACE IDirect3DVertexDeclaration9
903 DECLARE_INTERFACE_(IDirect3DVertexDeclaration9, IUnknown)
905 /*** IUnknown methods ***/
906 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
907 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
908 STDMETHOD_(ULONG,Release)(THIS) PURE;
910 /*** IDirect3DVertexDeclaration9 methods ***/
911 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
912 STDMETHOD(GetDeclaration)(THIS_ D3DVERTEXELEMENT9* pElement,UINT* pNumElements) PURE;
914 #ifdef D3D_DEBUG_INFO
915 LPCWSTR CreationCallStack;
916 #endif
919 typedef struct IDirect3DVertexDeclaration9 *LPDIRECT3DVERTEXDECLARATION9, *PDIRECT3DVERTEXDECLARATION9;
921 #if !defined(__cplusplus) || defined(CINTERFACE)
922 #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
923 #define IDirect3DVertexDeclaration9_AddRef(p) (p)->lpVtbl->AddRef(p)
924 #define IDirect3DVertexDeclaration9_Release(p) (p)->lpVtbl->Release(p)
925 #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
926 #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->lpVtbl->GetDeclaration(p,a,b)
927 #else
928 #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
929 #define IDirect3DVertexDeclaration9_AddRef(p) (p)->AddRef()
930 #define IDirect3DVertexDeclaration9_Release(p) (p)->Release()
931 #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->GetDevice(a)
932 #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->GetDeclaration(a,b)
933 #endif
938 #undef INTERFACE
939 #define INTERFACE IDirect3DVertexShader9
941 DECLARE_INTERFACE_(IDirect3DVertexShader9, IUnknown)
943 /*** IUnknown methods ***/
944 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
945 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
946 STDMETHOD_(ULONG,Release)(THIS) PURE;
948 /*** IDirect3DVertexShader9 methods ***/
949 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
950 STDMETHOD(GetFunction)(THIS_ void*,UINT* pSizeOfData) PURE;
952 #ifdef D3D_DEBUG_INFO
953 DWORD Version;
954 LPCWSTR CreationCallStack;
955 #endif
958 typedef struct IDirect3DVertexShader9 *LPDIRECT3DVERTEXSHADER9, *PDIRECT3DVERTEXSHADER9;
960 #if !defined(__cplusplus) || defined(CINTERFACE)
961 #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
962 #define IDirect3DVertexShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
963 #define IDirect3DVertexShader9_Release(p) (p)->lpVtbl->Release(p)
964 #define IDirect3DVertexShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
965 #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
966 #else
967 #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
968 #define IDirect3DVertexShader9_AddRef(p) (p)->AddRef()
969 #define IDirect3DVertexShader9_Release(p) (p)->Release()
970 #define IDirect3DVertexShader9_GetDevice(p,a) (p)->GetDevice(a)
971 #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->GetFunction(a,b)
972 #endif
977 #undef INTERFACE
978 #define INTERFACE IDirect3DPixelShader9
980 DECLARE_INTERFACE_(IDirect3DPixelShader9, IUnknown)
982 /*** IUnknown methods ***/
983 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
984 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
985 STDMETHOD_(ULONG,Release)(THIS) PURE;
987 /*** IDirect3DPixelShader9 methods ***/
988 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
989 STDMETHOD(GetFunction)(THIS_ void*,UINT* pSizeOfData) PURE;
991 #ifdef D3D_DEBUG_INFO
992 DWORD Version;
993 LPCWSTR CreationCallStack;
994 #endif
997 typedef struct IDirect3DPixelShader9 *LPDIRECT3DPIXELSHADER9, *PDIRECT3DPIXELSHADER9;
999 #if !defined(__cplusplus) || defined(CINTERFACE)
1000 #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1001 #define IDirect3DPixelShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
1002 #define IDirect3DPixelShader9_Release(p) (p)->lpVtbl->Release(p)
1003 #define IDirect3DPixelShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1004 #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1005 #else
1006 #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1007 #define IDirect3DPixelShader9_AddRef(p) (p)->AddRef()
1008 #define IDirect3DPixelShader9_Release(p) (p)->Release()
1009 #define IDirect3DPixelShader9_GetDevice(p,a) (p)->GetDevice(a)
1010 #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->GetFunction(a,b)
1011 #endif
1016 #undef INTERFACE
1017 #define INTERFACE IDirect3DBaseTexture9
1019 DECLARE_INTERFACE_(IDirect3DBaseTexture9, IDirect3DResource9)
1021 /*** IUnknown methods ***/
1022 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
1023 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1024 STDMETHOD_(ULONG,Release)(THIS) PURE;
1026 /*** IDirect3DResource9 methods ***/
1027 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1028 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;
1029 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;
1030 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1031 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1032 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1033 STDMETHOD_(void, PreLoad)(THIS) PURE;
1034 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1035 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
1036 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
1037 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
1038 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
1039 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
1040 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
1043 typedef struct IDirect3DBaseTexture9 *LPDIRECT3DBASETEXTURE9, *PDIRECT3DBASETEXTURE9;
1045 #if !defined(__cplusplus) || defined(CINTERFACE)
1046 #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1047 #define IDirect3DBaseTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1048 #define IDirect3DBaseTexture9_Release(p) (p)->lpVtbl->Release(p)
1049 #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1050 #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1051 #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1052 #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1053 #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1054 #define IDirect3DBaseTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1055 #define IDirect3DBaseTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1056 #define IDirect3DBaseTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1057 #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1058 #define IDirect3DBaseTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1059 #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1060 #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1061 #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1062 #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1063 #else
1064 #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1065 #define IDirect3DBaseTexture9_AddRef(p) (p)->AddRef()
1066 #define IDirect3DBaseTexture9_Release(p) (p)->Release()
1067 #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->GetDevice(a)
1068 #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1069 #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1070 #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1071 #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->SetPriority(a)
1072 #define IDirect3DBaseTexture9_GetPriority(p) (p)->GetPriority()
1073 #define IDirect3DBaseTexture9_PreLoad(p) (p)->PreLoad()
1074 #define IDirect3DBaseTexture9_GetType(p) (p)->GetType()
1075 #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->SetLOD(a)
1076 #define IDirect3DBaseTexture9_GetLOD(p) (p)->GetLOD()
1077 #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->GetLevelCount()
1078 #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1079 #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1080 #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1081 #endif
1087 #undef INTERFACE
1088 #define INTERFACE IDirect3DTexture9
1090 DECLARE_INTERFACE_(IDirect3DTexture9, IDirect3DBaseTexture9)
1092 /*** IUnknown methods ***/
1093 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
1094 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1095 STDMETHOD_(ULONG,Release)(THIS) PURE;
1097 /*** IDirect3DBaseTexture9 methods ***/
1098 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1099 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;
1100 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;
1101 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1102 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1103 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1104 STDMETHOD_(void, PreLoad)(THIS) PURE;
1105 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1106 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
1107 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
1108 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
1109 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
1110 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
1111 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
1112 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC *pDesc) PURE;
1113 STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level,IDirect3DSurface9** ppSurfaceLevel) PURE;
1114 STDMETHOD(LockRect)(THIS_ UINT Level,D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE;
1115 STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE;
1116 STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pDirtyRect) PURE;
1118 #ifdef D3D_DEBUG_INFO
1119 LPCWSTR Name;
1120 UINT Width;
1121 UINT Height;
1122 UINT Levels;
1123 DWORD Usage;
1124 D3DFORMAT Format;
1125 D3DPOOL Pool;
1126 DWORD Priority;
1127 DWORD LOD;
1128 D3DTEXTUREFILTERTYPE FilterType;
1129 UINT LockCount;
1130 LPCWSTR CreationCallStack;
1131 #endif
1134 typedef struct IDirect3DTexture9 *LPDIRECT3DTEXTURE9, *PDIRECT3DTEXTURE9;
1136 #if !defined(__cplusplus) || defined(CINTERFACE)
1137 #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1138 #define IDirect3DTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1139 #define IDirect3DTexture9_Release(p) (p)->lpVtbl->Release(p)
1140 #define IDirect3DTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1141 #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1142 #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1143 #define IDirect3DTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1144 #define IDirect3DTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1145 #define IDirect3DTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1146 #define IDirect3DTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1147 #define IDirect3DTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1148 #define IDirect3DTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1149 #define IDirect3DTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1150 #define IDirect3DTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1151 #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1152 #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1153 #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1154 #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1155 #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
1156 #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
1157 #define IDirect3DTexture9_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
1158 #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
1159 #else
1160 #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1161 #define IDirect3DTexture9_AddRef(p) (p)->AddRef()
1162 #define IDirect3DTexture9_Release(p) (p)->Release()
1163 #define IDirect3DTexture9_GetDevice(p,a) (p)->GetDevice(a)
1164 #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1165 #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1166 #define IDirect3DTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1167 #define IDirect3DTexture9_SetPriority(p,a) (p)->SetPriority(a)
1168 #define IDirect3DTexture9_GetPriority(p) (p)->GetPriority()
1169 #define IDirect3DTexture9_PreLoad(p) (p)->PreLoad()
1170 #define IDirect3DTexture9_GetType(p) (p)->GetType()
1171 #define IDirect3DTexture9_SetLOD(p,a) (p)->SetLOD(a)
1172 #define IDirect3DTexture9_GetLOD(p) (p)->GetLOD()
1173 #define IDirect3DTexture9_GetLevelCount(p) (p)->GetLevelCount()
1174 #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1175 #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1176 #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1177 #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1178 #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b)
1179 #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d)
1180 #define IDirect3DTexture9_UnlockRect(p,a) (p)->UnlockRect(a)
1181 #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->AddDirtyRect(a)
1182 #endif
1188 #undef INTERFACE
1189 #define INTERFACE IDirect3DVolumeTexture9
1191 DECLARE_INTERFACE_(IDirect3DVolumeTexture9, IDirect3DBaseTexture9)
1193 /*** IUnknown methods ***/
1194 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
1195 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1196 STDMETHOD_(ULONG,Release)(THIS) PURE;
1198 /*** IDirect3DBaseTexture9 methods ***/
1199 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1200 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;
1201 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;
1202 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1203 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1204 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1205 STDMETHOD_(void, PreLoad)(THIS) PURE;
1206 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1207 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
1208 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
1209 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
1210 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
1211 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
1212 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
1213 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DVOLUME_DESC *pDesc) PURE;
1214 STDMETHOD(GetVolumeLevel)(THIS_ UINT Level,IDirect3DVolume9** ppVolumeLevel) PURE;
1215 STDMETHOD(LockBox)(THIS_ UINT Level,D3DLOCKED_BOX* pLockedVolume,CONST D3DBOX* pBox,DWORD Flags) PURE;
1216 STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE;
1217 STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX* pDirtyBox) PURE;
1219 #ifdef D3D_DEBUG_INFO
1220 LPCWSTR Name;
1221 UINT Width;
1222 UINT Height;
1223 UINT Depth;
1224 UINT Levels;
1225 DWORD Usage;
1226 D3DFORMAT Format;
1227 D3DPOOL Pool;
1228 DWORD Priority;
1229 DWORD LOD;
1230 D3DTEXTUREFILTERTYPE FilterType;
1231 UINT LockCount;
1232 LPCWSTR CreationCallStack;
1233 #endif
1236 typedef struct IDirect3DVolumeTexture9 *LPDIRECT3DVOLUMETEXTURE9, *PDIRECT3DVOLUMETEXTURE9;
1238 #if !defined(__cplusplus) || defined(CINTERFACE)
1239 #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1240 #define IDirect3DVolumeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1241 #define IDirect3DVolumeTexture9_Release(p) (p)->lpVtbl->Release(p)
1242 #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1243 #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1244 #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1245 #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1246 #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1247 #define IDirect3DVolumeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1248 #define IDirect3DVolumeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1249 #define IDirect3DVolumeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1250 #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1251 #define IDirect3DVolumeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1252 #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1253 #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1254 #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1255 #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1256 #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1257 #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
1258 #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
1259 #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
1260 #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
1261 #else
1262 #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1263 #define IDirect3DVolumeTexture9_AddRef(p) (p)->AddRef()
1264 #define IDirect3DVolumeTexture9_Release(p) (p)->Release()
1265 #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->GetDevice(a)
1266 #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1267 #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1268 #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1269 #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->SetPriority(a)
1270 #define IDirect3DVolumeTexture9_GetPriority(p) (p)->GetPriority()
1271 #define IDirect3DVolumeTexture9_PreLoad(p) (p)->PreLoad()
1272 #define IDirect3DVolumeTexture9_GetType(p) (p)->GetType()
1273 #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->SetLOD(a)
1274 #define IDirect3DVolumeTexture9_GetLOD(p) (p)->GetLOD()
1275 #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->GetLevelCount()
1276 #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1277 #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1278 #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1279 #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1280 #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b)
1281 #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d)
1282 #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->UnlockBox(a)
1283 #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->AddDirtyBox(a)
1284 #endif
1290 #undef INTERFACE
1291 #define INTERFACE IDirect3DCubeTexture9
1293 DECLARE_INTERFACE_(IDirect3DCubeTexture9, IDirect3DBaseTexture9)
1295 /*** IUnknown methods ***/
1296 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
1297 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1298 STDMETHOD_(ULONG,Release)(THIS) PURE;
1300 /*** IDirect3DBaseTexture9 methods ***/
1301 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1302 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;
1303 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;
1304 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1305 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1306 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1307 STDMETHOD_(void, PreLoad)(THIS) PURE;
1308 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1309 STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
1310 STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
1311 STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
1312 STDMETHOD(SetAutoGenFilterType)(THIS_ D3DTEXTUREFILTERTYPE FilterType) PURE;
1313 STDMETHOD_(D3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
1314 STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
1315 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC *pDesc) PURE;
1316 STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,IDirect3DSurface9** ppCubeMapSurface) PURE;
1317 STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE;
1318 STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level) PURE;
1319 STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType,CONST RECT* pDirtyRect) PURE;
1321 #ifdef D3D_DEBUG_INFO
1322 LPCWSTR Name;
1323 UINT Width;
1324 UINT Height;
1325 UINT Levels;
1326 DWORD Usage;
1327 D3DFORMAT Format;
1328 D3DPOOL Pool;
1329 DWORD Priority;
1330 DWORD LOD;
1331 D3DTEXTUREFILTERTYPE FilterType;
1332 UINT LockCount;
1333 LPCWSTR CreationCallStack;
1334 #endif
1337 typedef struct IDirect3DCubeTexture9 *LPDIRECT3DCUBETEXTURE9, *PDIRECT3DCUBETEXTURE9;
1339 #if !defined(__cplusplus) || defined(CINTERFACE)
1340 #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1341 #define IDirect3DCubeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
1342 #define IDirect3DCubeTexture9_Release(p) (p)->lpVtbl->Release(p)
1343 #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1344 #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1345 #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1346 #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1347 #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1348 #define IDirect3DCubeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1349 #define IDirect3DCubeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1350 #define IDirect3DCubeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
1351 #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1352 #define IDirect3DCubeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1353 #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1354 #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
1355 #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
1356 #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
1357 #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1358 #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
1359 #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
1360 #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
1361 #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
1362 #else
1363 #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1364 #define IDirect3DCubeTexture9_AddRef(p) (p)->AddRef()
1365 #define IDirect3DCubeTexture9_Release(p) (p)->Release()
1366 #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->GetDevice(a)
1367 #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1368 #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1369 #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1370 #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->SetPriority(a)
1371 #define IDirect3DCubeTexture9_GetPriority(p) (p)->GetPriority()
1372 #define IDirect3DCubeTexture9_PreLoad(p) (p)->PreLoad()
1373 #define IDirect3DCubeTexture9_GetType(p) (p)->GetType()
1374 #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->SetLOD(a)
1375 #define IDirect3DCubeTexture9_GetLOD(p) (p)->GetLOD()
1376 #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->GetLevelCount()
1377 #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
1378 #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
1379 #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
1380 #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1381 #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c)
1382 #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e)
1383 #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->UnlockRect(a,b)
1384 #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b)
1385 #endif
1390 #undef INTERFACE
1391 #define INTERFACE IDirect3DVertexBuffer9
1393 DECLARE_INTERFACE_(IDirect3DVertexBuffer9, IDirect3DResource9)
1395 /*** IUnknown methods ***/
1396 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
1397 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1398 STDMETHOD_(ULONG,Release)(THIS) PURE;
1400 /*** IDirect3DResource9 methods ***/
1401 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1402 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;
1403 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;
1404 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1405 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1406 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1407 STDMETHOD_(void, PreLoad)(THIS) PURE;
1408 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1409 STDMETHOD(Lock)(THIS_ UINT OffsetToLock,UINT SizeToLock,void** ppbData,DWORD Flags) PURE;
1410 STDMETHOD(Unlock)(THIS) PURE;
1411 STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC *pDesc) PURE;
1413 #ifdef D3D_DEBUG_INFO
1414 LPCWSTR Name;
1415 UINT Length;
1416 DWORD Usage;
1417 DWORD FVF;
1418 D3DPOOL Pool;
1419 DWORD Priority;
1420 UINT LockCount;
1421 LPCWSTR CreationCallStack;
1422 #endif
1425 typedef struct IDirect3DVertexBuffer9 *LPDIRECT3DVERTEXBUFFER9, *PDIRECT3DVERTEXBUFFER9;
1427 #if !defined(__cplusplus) || defined(CINTERFACE)
1428 #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1429 #define IDirect3DVertexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
1430 #define IDirect3DVertexBuffer9_Release(p) (p)->lpVtbl->Release(p)
1431 #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1432 #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1433 #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1434 #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1435 #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1436 #define IDirect3DVertexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1437 #define IDirect3DVertexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1438 #define IDirect3DVertexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
1439 #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
1440 #define IDirect3DVertexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
1441 #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1442 #else
1443 #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1444 #define IDirect3DVertexBuffer9_AddRef(p) (p)->AddRef()
1445 #define IDirect3DVertexBuffer9_Release(p) (p)->Release()
1446 #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->GetDevice(a)
1447 #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1448 #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1449 #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1450 #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->SetPriority(a)
1451 #define IDirect3DVertexBuffer9_GetPriority(p) (p)->GetPriority()
1452 #define IDirect3DVertexBuffer9_PreLoad(p) (p)->PreLoad()
1453 #define IDirect3DVertexBuffer9_GetType(p) (p)->GetType()
1454 #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
1455 #define IDirect3DVertexBuffer9_Unlock(p) (p)->Unlock()
1456 #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->GetDesc(a)
1457 #endif
1462 #undef INTERFACE
1463 #define INTERFACE IDirect3DIndexBuffer9
1465 DECLARE_INTERFACE_(IDirect3DIndexBuffer9, IDirect3DResource9)
1467 /*** IUnknown methods ***/
1468 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
1469 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1470 STDMETHOD_(ULONG,Release)(THIS) PURE;
1472 /*** IDirect3DResource9 methods ***/
1473 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1474 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;
1475 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;
1476 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1477 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1478 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1479 STDMETHOD_(void, PreLoad)(THIS) PURE;
1480 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1481 STDMETHOD(Lock)(THIS_ UINT OffsetToLock,UINT SizeToLock,void** ppbData,DWORD Flags) PURE;
1482 STDMETHOD(Unlock)(THIS) PURE;
1483 STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC *pDesc) PURE;
1485 #ifdef D3D_DEBUG_INFO
1486 LPCWSTR Name;
1487 UINT Length;
1488 DWORD Usage;
1489 D3DFORMAT Format;
1490 D3DPOOL Pool;
1491 DWORD Priority;
1492 UINT LockCount;
1493 LPCWSTR CreationCallStack;
1494 #endif
1497 typedef struct IDirect3DIndexBuffer9 *LPDIRECT3DINDEXBUFFER9, *PDIRECT3DINDEXBUFFER9;
1499 #if !defined(__cplusplus) || defined(CINTERFACE)
1500 #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1501 #define IDirect3DIndexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
1502 #define IDirect3DIndexBuffer9_Release(p) (p)->lpVtbl->Release(p)
1503 #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1504 #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1505 #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1506 #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1507 #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1508 #define IDirect3DIndexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1509 #define IDirect3DIndexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1510 #define IDirect3DIndexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
1511 #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
1512 #define IDirect3DIndexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
1513 #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1514 #else
1515 #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1516 #define IDirect3DIndexBuffer9_AddRef(p) (p)->AddRef()
1517 #define IDirect3DIndexBuffer9_Release(p) (p)->Release()
1518 #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->GetDevice(a)
1519 #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1520 #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1521 #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1522 #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->SetPriority(a)
1523 #define IDirect3DIndexBuffer9_GetPriority(p) (p)->GetPriority()
1524 #define IDirect3DIndexBuffer9_PreLoad(p) (p)->PreLoad()
1525 #define IDirect3DIndexBuffer9_GetType(p) (p)->GetType()
1526 #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
1527 #define IDirect3DIndexBuffer9_Unlock(p) (p)->Unlock()
1528 #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->GetDesc(a)
1529 #endif
1534 #undef INTERFACE
1535 #define INTERFACE IDirect3DSurface9
1537 DECLARE_INTERFACE_(IDirect3DSurface9, IDirect3DResource9)
1539 /*** IUnknown methods ***/
1540 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
1541 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1542 STDMETHOD_(ULONG,Release)(THIS) PURE;
1544 /*** IDirect3DResource9 methods ***/
1545 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1546 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;
1547 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;
1548 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1549 STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;
1550 STDMETHOD_(DWORD, GetPriority)(THIS) PURE;
1551 STDMETHOD_(void, PreLoad)(THIS) PURE;
1552 STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;
1553 STDMETHOD(GetContainer)(THIS_ REFIID riid,void** ppContainer) PURE;
1554 STDMETHOD(GetDesc)(THIS_ D3DSURFACE_DESC *pDesc) PURE;
1555 STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE;
1556 STDMETHOD(UnlockRect)(THIS) PURE;
1557 STDMETHOD(GetDC)(THIS_ HDC *phdc) PURE;
1558 STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE;
1560 #ifdef D3D_DEBUG_INFO
1561 LPCWSTR Name;
1562 UINT Width;
1563 UINT Height;
1564 DWORD Usage;
1565 D3DFORMAT Format;
1566 D3DPOOL Pool;
1567 D3DMULTISAMPLE_TYPE MultiSampleType;
1568 DWORD MultiSampleQuality;
1569 DWORD Priority;
1570 UINT LockCount;
1571 UINT DCCount;
1572 LPCWSTR CreationCallStack;
1573 #endif
1576 typedef struct IDirect3DSurface9 *LPDIRECT3DSURFACE9, *PDIRECT3DSURFACE9;
1578 #if !defined(__cplusplus) || defined(CINTERFACE)
1579 #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1580 #define IDirect3DSurface9_AddRef(p) (p)->lpVtbl->AddRef(p)
1581 #define IDirect3DSurface9_Release(p) (p)->lpVtbl->Release(p)
1582 #define IDirect3DSurface9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1583 #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1584 #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1585 #define IDirect3DSurface9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1586 #define IDirect3DSurface9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1587 #define IDirect3DSurface9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1588 #define IDirect3DSurface9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1589 #define IDirect3DSurface9_GetType(p) (p)->lpVtbl->GetType(p)
1590 #define IDirect3DSurface9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
1591 #define IDirect3DSurface9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1592 #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
1593 #define IDirect3DSurface9_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
1594 #define IDirect3DSurface9_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
1595 #define IDirect3DSurface9_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
1596 #else
1597 #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1598 #define IDirect3DSurface9_AddRef(p) (p)->AddRef()
1599 #define IDirect3DSurface9_Release(p) (p)->Release()
1600 #define IDirect3DSurface9_GetDevice(p,a) (p)->GetDevice(a)
1601 #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1602 #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1603 #define IDirect3DSurface9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1604 #define IDirect3DSurface9_SetPriority(p,a) (p)->SetPriority(a)
1605 #define IDirect3DSurface9_GetPriority(p) (p)->GetPriority()
1606 #define IDirect3DSurface9_PreLoad(p) (p)->PreLoad()
1607 #define IDirect3DSurface9_GetType(p) (p)->GetType()
1608 #define IDirect3DSurface9_GetContainer(p,a,b) (p)->GetContainer(a,b)
1609 #define IDirect3DSurface9_GetDesc(p,a) (p)->GetDesc(a)
1610 #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->LockRect(a,b,c)
1611 #define IDirect3DSurface9_UnlockRect(p) (p)->UnlockRect()
1612 #define IDirect3DSurface9_GetDC(p,a) (p)->GetDC(a)
1613 #define IDirect3DSurface9_ReleaseDC(p,a) (p)->ReleaseDC(a)
1614 #endif
1620 #undef INTERFACE
1621 #define INTERFACE IDirect3DVolume9
1623 DECLARE_INTERFACE_(IDirect3DVolume9, IUnknown)
1625 /*** IUnknown methods ***/
1626 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
1627 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1628 STDMETHOD_(ULONG,Release)(THIS) PURE;
1630 /*** IDirect3DVolume9 methods ***/
1631 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1632 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;
1633 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;
1634 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1635 STDMETHOD(GetContainer)(THIS_ REFIID riid,void** ppContainer) PURE;
1636 STDMETHOD(GetDesc)(THIS_ D3DVOLUME_DESC *pDesc) PURE;
1637 STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX * pLockedVolume,CONST D3DBOX* pBox,DWORD Flags) PURE;
1638 STDMETHOD(UnlockBox)(THIS) PURE;
1640 #ifdef D3D_DEBUG_INFO
1641 LPCWSTR Name;
1642 UINT Width;
1643 UINT Height;
1644 UINT Depth;
1645 DWORD Usage;
1646 D3DFORMAT Format;
1647 D3DPOOL Pool;
1648 UINT LockCount;
1649 LPCWSTR CreationCallStack;
1650 #endif
1653 typedef struct IDirect3DVolume9 *LPDIRECT3DVOLUME9, *PDIRECT3DVOLUME9;
1655 #if !defined(__cplusplus) || defined(CINTERFACE)
1656 #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1657 #define IDirect3DVolume9_AddRef(p) (p)->lpVtbl->AddRef(p)
1658 #define IDirect3DVolume9_Release(p) (p)->lpVtbl->Release(p)
1659 #define IDirect3DVolume9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1660 #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1661 #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1662 #define IDirect3DVolume9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1663 #define IDirect3DVolume9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
1664 #define IDirect3DVolume9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
1665 #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
1666 #define IDirect3DVolume9_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
1667 #else
1668 #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1669 #define IDirect3DVolume9_AddRef(p) (p)->AddRef()
1670 #define IDirect3DVolume9_Release(p) (p)->Release()
1671 #define IDirect3DVolume9_GetDevice(p,a) (p)->GetDevice(a)
1672 #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1673 #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1674 #define IDirect3DVolume9_FreePrivateData(p,a) (p)->FreePrivateData(a)
1675 #define IDirect3DVolume9_GetContainer(p,a,b) (p)->GetContainer(a,b)
1676 #define IDirect3DVolume9_GetDesc(p,a) (p)->GetDesc(a)
1677 #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->LockBox(a,b,c)
1678 #define IDirect3DVolume9_UnlockBox(p) (p)->UnlockBox()
1679 #endif
1684 #undef INTERFACE
1685 #define INTERFACE IDirect3DQuery9
1687 DECLARE_INTERFACE_(IDirect3DQuery9, IUnknown)
1689 /*** IUnknown methods ***/
1690 STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;
1691 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1692 STDMETHOD_(ULONG,Release)(THIS) PURE;
1694 /*** IDirect3DQuery9 methods ***/
1695 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice9** ppDevice) PURE;
1696 STDMETHOD_(D3DQUERYTYPE, GetType)(THIS) PURE;
1697 STDMETHOD_(DWORD, GetDataSize)(THIS) PURE;
1698 STDMETHOD(Issue)(THIS_ DWORD dwIssueFlags) PURE;
1699 STDMETHOD(GetData)(THIS_ void* pData,DWORD dwSize,DWORD dwGetDataFlags) PURE;
1701 #ifdef D3D_DEBUG_INFO
1702 D3DQUERYTYPE Type;
1703 DWORD DataSize;
1704 LPCWSTR CreationCallStack;
1705 #endif
1708 typedef struct IDirect3DQuery9 *LPDIRECT3DQUERY9, *PDIRECT3DQUERY9;
1710 #if !defined(__cplusplus) || defined(CINTERFACE)
1711 #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1712 #define IDirect3DQuery9_AddRef(p) (p)->lpVtbl->AddRef(p)
1713 #define IDirect3DQuery9_Release(p) (p)->lpVtbl->Release(p)
1714 #define IDirect3DQuery9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1715 #define IDirect3DQuery9_GetType(p) (p)->lpVtbl->GetType(p)
1716 #define IDirect3DQuery9_GetDataSize(p) (p)->lpVtbl->GetDataSize(p)
1717 #define IDirect3DQuery9_Issue(p,a) (p)->lpVtbl->Issue(p,a)
1718 #define IDirect3DQuery9_GetData(p,a,b,c) (p)->lpVtbl->GetData(p,a,b,c)
1719 #else
1720 #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1721 #define IDirect3DQuery9_AddRef(p) (p)->AddRef()
1722 #define IDirect3DQuery9_Release(p) (p)->Release()
1723 #define IDirect3DQuery9_GetDevice(p,a) (p)->GetDevice(a)
1724 #define IDirect3DQuery9_GetType(p) (p)->GetType()
1725 #define IDirect3DQuery9_GetDataSize(p) (p)->GetDataSize()
1726 #define IDirect3DQuery9_Issue(p,a) (p)->Issue(a)
1727 #define IDirect3DQuery9_GetData(p,a,b,c) (p)->GetData(a,b,c)
1728 #endif
1731 /****************************************************************************
1732 * Flags for SetPrivateData method on all D3D9 interfaces
1734 * The passed pointer is an IUnknown ptr. The SizeOfData argument to SetPrivateData
1735 * must be set to sizeof(IUnknown*). Direct3D will call AddRef through this
1736 * pointer and Release when the private data is destroyed. The data will be
1737 * destroyed when another SetPrivateData with the same GUID is set, when
1738 * FreePrivateData is called, or when the D3D9 object is freed.
1739 ****************************************************************************/
1740 #define D3DSPD_IUNKNOWN 0x00000001L
1742 /****************************************************************************
1744 * Flags for IDirect3D9::CreateDevice's BehaviorFlags
1746 ****************************************************************************/
1748 #define D3DCREATE_FPU_PRESERVE 0x00000002L
1749 #define D3DCREATE_MULTITHREADED 0x00000004L
1751 #define D3DCREATE_PUREDEVICE 0x00000010L
1752 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L
1753 #define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L
1754 #define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L
1756 #define D3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100L
1757 #define D3DCREATE_ADAPTERGROUP_DEVICE 0x00000200L
1758 #define D3DCREATE_DISABLE_DRIVER_MANAGEMENT_EX 0x00000400L
1760 // This flag causes the D3D runtime not to alter the focus
1761 // window in any way. Use with caution- the burden of supporting
1762 // focus management events (alt-tab, etc.) falls on the
1763 // application, and appropriate responses (switching display
1764 // mode, etc.) should be coded.
1765 #define D3DCREATE_NOWINDOWCHANGES 0x00000800L
1768 /****************************************************************************
1770 * Parameter for IDirect3D9::CreateDevice's Adapter argument
1772 ****************************************************************************/
1774 #define D3DADAPTER_DEFAULT 0
1776 /****************************************************************************
1778 * Flags for IDirect3D9::EnumAdapters
1780 ****************************************************************************/
1782 #define D3DENUM_WHQL_LEVEL 0x00000002L
1784 /****************************************************************************
1786 * Maximum number of back-buffers supported in DX9
1788 ****************************************************************************/
1790 #define D3DPRESENT_BACK_BUFFERS_MAX 3L
1792 /****************************************************************************
1794 * Flags for IDirect3DDevice9::SetGammaRamp
1796 ****************************************************************************/
1798 #define D3DSGR_NO_CALIBRATION 0x00000000L
1799 #define D3DSGR_CALIBRATE 0x00000001L
1801 /****************************************************************************
1803 * Flags for IDirect3DDevice9::SetCursorPosition
1805 ****************************************************************************/
1807 #define D3DCURSOR_IMMEDIATE_UPDATE 0x00000001L
1809 /****************************************************************************
1811 * Flags for IDirect3DSwapChain9::Present
1813 ****************************************************************************/
1815 #define D3DPRESENT_DONOTWAIT 0x00000001L
1816 #define D3DPRESENT_LINEAR_CONTENT 0x00000002L
1818 /****************************************************************************
1820 * Flags for DrawPrimitive/DrawIndexedPrimitive
1821 * Also valid for Begin/BeginIndexed
1822 * Also valid for VertexBuffer::CreateVertexBuffer
1823 ****************************************************************************/
1827 * DirectDraw error codes
1829 #define _FACD3D 0x876
1830 #define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code )
1831 #define MAKE_D3DSTATUS( code ) MAKE_HRESULT( 0, _FACD3D, code )
1834 * Direct3D Errors
1836 #define D3D_OK S_OK
1838 #define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072)
1839 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073)
1840 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074)
1841 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075)
1842 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076)
1843 #define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077)
1844 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078)
1845 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079)
1846 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081)
1847 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082)
1848 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086)
1849 #define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087)
1851 #define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150)
1852 #define D3DERR_MOREDATA MAKE_D3DHRESULT(2151)
1853 #define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152)
1854 #define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153)
1855 #define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154)
1856 #define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380)
1857 #define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155)
1858 #define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156)
1859 #define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157)
1860 #define D3DERR_WASSTILLDRAWING MAKE_D3DHRESULT(540)
1861 #define D3DOK_NOAUTOGEN MAKE_D3DSTATUS(2159)
1864 #ifdef __cplusplus
1866 #endif
1868 #endif /* (DIRECT3D_VERSION >= 0x0900) */
1869 #endif /* _D3D_H_ */