2 * Copyright (C) 2002-2003 Jason Edmeades
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #ifndef DIRECT3D_VERSION
24 #define DIRECT3D_VERSION 0x0900
29 #include <d3d9types.h>
32 /*****************************************************************************
33 * Behavior Flags for IDirect3D8::CreateDevice
35 #define D3DCREATE_FPU_PRESERVE 0x00000002L
36 #define D3DCREATE_MULTITHREADED 0x00000004L
37 #define D3DCREATE_PUREDEVICE 0x00000010L
38 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L
39 #define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L
40 #define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L
41 #define D3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100L
42 #define D3DCREATE_ADAPTERGROUP_DEVICE 0x00000200L
44 /*****************************************************************************
45 * Flags for SetPrivateData
47 #define D3DSPD_IUNKNOWN 0x00000001L
50 /*****************************************************************************
51 * #defines and error codes
53 #define D3DADAPTER_DEFAULT 0
54 #define D3DENUM_NO_WHQL_LEVEL 0x00000002L
55 #define D3DPRESENT_BACK_BUFFERS_MAX 3L
56 #define D3DSGR_NO_CALIBRATION 0x00000000L
57 #define D3DSGR_CALIBRATE 0x00000001L
60 #define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code )
61 #define MAKE_D3DSTATUS( code ) MAKE_HRESULT( 0, _FACD3D, code )
63 /*****************************************************************************
67 #define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072)
68 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073)
69 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074)
70 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075)
71 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076)
72 #define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077)
73 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078)
74 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079)
75 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081)
76 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082)
77 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086)
78 #define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087)
79 #define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150)
80 #define D3DERR_MOREDATA MAKE_D3DHRESULT(2151)
81 #define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152)
82 #define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153)
83 #define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154)
84 #define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380)
85 #define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155)
86 #define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156)
87 #define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157)
88 #define D3DERR_WASSTILLDRAWING MAKE_D3DHRESULT(540)
89 #define D3DOK_NOAUTOGEN MAKE_D3DSTATUS(2159)
92 /*****************************************************************************
93 * Predeclare the interfaces
95 DEFINE_GUID(IID_IDirect3D9
, 0x81BDCBCA, 0x64D4, 0x426D, 0xAE, 0x8D, 0xAD, 0x1, 0x47, 0xF4, 0x27, 0x5C);
96 typedef struct IDirect3D9
*LPDIRECT3D9
, *PDIRECT3D9
;
98 DEFINE_GUID(IID_IDirect3DDevice9
, 0xd0223b96, 0xbf7a, 0x43fd, 0x92, 0xbd, 0xa4, 0x3b, 0xd, 0x82, 0xb9, 0xeb);
99 typedef struct IDirect3DDevice9
*LPDIRECT3DDEVICE9
;
101 DEFINE_GUID(IID_IDirect3DResource9
, 0x5eec05d, 0x8f7d, 0x4362, 0xb9, 0x99, 0xd1, 0xba, 0xf3, 0x57, 0xc7, 0x4);
102 typedef struct IDirect3DResource9
*LPDIRECT3DRESOURCE9
, *PDIRECT3DRESOURCE9
;
104 DEFINE_GUID(IID_IDirect3DVertexBuffer9
, 0xb64bb1b5, 0xfd70, 0x4df6, 0xbf, 0x91, 0x19, 0xd0, 0xa1, 0x24, 0x55, 0xe3);
105 typedef struct IDirect3DVertexBuffer9
*LPDIRECT3DVERTEXBUFFER9
, *PDIRECT3DVERTEXBUFFER9
;
107 DEFINE_GUID(IID_IDirect3DVolume9
, 0x24f416e6, 0x1f67, 0x4aa7, 0xb8, 0x8e, 0xd3, 0x3f, 0x6f, 0x31, 0x28, 0xa1);
108 typedef struct IDirect3DVolume9
*LPDIRECT3DVOLUME9
, *PDIRECT3DVOLUME9
;
110 DEFINE_GUID(IID_IDirect3DSwapChain9
, 0x794950f2, 0xadfc, 0x458a, 0x90, 0x5e, 0x10, 0xa1, 0xb, 0xb, 0x50, 0x3b);
111 typedef struct IDirect3DSwapChain9
*LPDIRECT3DSWAPCHAIN9
, *PDIRECT3DSWAPCHAIN9
;
113 DEFINE_GUID(IID_IDirect3DSurface9
, 0xcfbaf3a, 0x9ff6, 0x429a, 0x99, 0xb3, 0xa2, 0x79, 0x6a, 0xf8, 0xb8, 0x9b);
114 typedef struct IDirect3DSurface9
*LPDIRECT3DSURFACE9
, *PDIRECT3DSURFACE9
;
116 DEFINE_GUID(IID_IDirect3DIndexBuffer9
, 0x7c9dd65e, 0xd3f7, 0x4529, 0xac, 0xee, 0x78, 0x58, 0x30, 0xac, 0xde, 0x35);
117 typedef struct IDirect3DIndexBuffer9
*LPDIRECT3DINDEXBUFFER9
, *PDIRECT3DINDEXBUFFER9
;
119 DEFINE_GUID(IID_IDirect3DBaseTexture9
, 0x580ca87e, 0x1d3c, 0x4d54, 0x99, 0x1d, 0xb7, 0xd3, 0xe3, 0xc2, 0x98, 0xce);
120 typedef struct IDirect3DBaseTexture9
*LPDIRECT3DBASETEXTURE9
, *PDIRECT3DBASETEXTURE9
;
122 DEFINE_GUID(IID_IDirect3DTexture9
, 0x85c31227, 0x3de5, 0x4f00, 0x9b, 0x3a, 0xf1, 0x1a, 0xc3, 0x8c, 0x18, 0xb5);
123 typedef struct IDirect3DTexture9
*LPDIRECT3DTEXTURE9
, *PDIRECT3DTEXTURE9
;
125 DEFINE_GUID(IID_IDirect3DCubeTexture9
, 0xfff32f81, 0xd953, 0x473a, 0x92, 0x23, 0x93, 0xd6, 0x52, 0xab, 0xa9, 0x3f);
126 typedef struct IDirect3DCubeTexture9
*LPDIRECT3DCUBETEXTURE9
, *PDIRECT3DCUBETEXTURE9
;
128 DEFINE_GUID(IID_IDirect3DVolumeTexture9
, 0x2518526c, 0xe789, 0x4111, 0xa7, 0xb9, 0x47, 0xef, 0x32, 0x8d, 0x13, 0xe6);
129 typedef struct IDirect3DVolumeTexture9
*LPDIRECT3DVOLUMETEXTURE9
, *PDIRECT3DVOLUMETEXTURE9
;
131 DEFINE_GUID(IID_IDirect3DVertexDeclaration9
, 0xdd13c59c, 0x36fa, 0x4098, 0xa8, 0xfb, 0xc7, 0xed, 0x39, 0xdc, 0x85, 0x46);
132 typedef struct IDirect3DVertexDeclaration9
*LPDIRECT3DVERTEXDECLARATION9
;
134 DEFINE_GUID(IID_IDirect3DVertexShader9
, 0xefc5557e, 0x6265, 0x4613, 0x8a, 0x94, 0x43, 0x85, 0x78, 0x89, 0xeb, 0x36);
135 typedef struct IDirect3DVertexShader9
*LPDIRECT3DVERTEXSHADER9
;
137 DEFINE_GUID(IID_IDirect3DPixelShader9
, 0x6d3bdbdc, 0x5b02, 0x4415, 0xb8, 0x52, 0xce, 0x5e, 0x8b, 0xcc, 0xb2, 0x89);
138 typedef struct IDirect3DPixelShader9
*LPDIRECT3DPIXELSHADER9
;
140 DEFINE_GUID(IID_IDirect3DStateBlock9
, 0xb07c4fe5, 0x310d, 0x4ba8, 0xa2, 0x3c, 0x4f, 0xf, 0x20, 0x6f, 0x21, 0x8b);
141 typedef struct IDirect3DStateBlock9
*LPDIRECT3DSTATEBLOCK9
;
143 DEFINE_GUID(IID_IDirect3DQuery9
, 0xd9771460, 0xa695, 0x4f26, 0xbb, 0xd3, 0x27, 0xb8, 0x40, 0xb5, 0x41, 0xcc);
144 typedef struct IDirect3DQuery9
*LPDIRECT3DQUERY9
, *PDIRECT3DQUERY9
;
146 /*****************************************************************************
147 * IDirect3D9 interface
149 #define INTERFACE IDirect3D9
150 DECLARE_INTERFACE_(IDirect3D9
,IUnknown
)
152 /*** IUnknown methods ***/
153 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
154 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
155 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
156 /*** IDirect3D9 methods ***/
157 STDMETHOD(RegisterSoftwareDevice
)(THIS_
void* pInitializeFunction
) PURE
;
158 STDMETHOD_(UINT
, GetAdapterCount
)(THIS
) PURE
;
159 STDMETHOD(GetAdapterIdentifier
)(THIS_ UINT Adapter
, DWORD Flags
, D3DADAPTER_IDENTIFIER9
* pIdentifier
) PURE
;
160 STDMETHOD_(UINT
, GetAdapterModeCount
)(THIS_ UINT Adapter
, D3DFORMAT Format
) PURE
;
161 STDMETHOD(EnumAdapterModes
)(THIS_ UINT Adapter
, D3DFORMAT Format
, UINT Mode
, D3DDISPLAYMODE
* pMode
) PURE
;
162 STDMETHOD(GetAdapterDisplayMode
)(THIS_ UINT Adapter
, D3DDISPLAYMODE
* pMode
) PURE
;
163 STDMETHOD(CheckDeviceType
)(THIS_ UINT iAdapter
, D3DDEVTYPE DevType
, D3DFORMAT DisplayFormat
, D3DFORMAT BackBufferFormat
, BOOL bWindowed
) PURE
;
164 STDMETHOD(CheckDeviceFormat
)(THIS_ UINT Adapter
, D3DDEVTYPE DeviceType
, D3DFORMAT AdapterFormat
, DWORD Usage
, D3DRESOURCETYPE RType
, D3DFORMAT CheckFormat
) PURE
;
165 STDMETHOD(CheckDeviceMultiSampleType
)(THIS_ UINT Adapter
, D3DDEVTYPE DeviceType
, D3DFORMAT SurfaceFormat
, BOOL Windowed
, D3DMULTISAMPLE_TYPE MultiSampleType
, DWORD
* pQualityLevels
) PURE
;
166 STDMETHOD(CheckDepthStencilMatch
)(THIS_ UINT Adapter
, D3DDEVTYPE DeviceType
, D3DFORMAT AdapterFormat
, D3DFORMAT RenderTargetFormat
, D3DFORMAT DepthStencilFormat
) PURE
;
167 STDMETHOD(CheckDeviceFormatConversion
)(THIS_ UINT Adapter
, D3DDEVTYPE DeviceType
, D3DFORMAT SourceFormat
, D3DFORMAT TargetFormat
) PURE
;
168 STDMETHOD(GetDeviceCaps
)(THIS_ UINT Adapter
, D3DDEVTYPE DeviceType
, D3DCAPS9
* pCaps
) PURE
;
169 STDMETHOD_(HMONITOR
, GetAdapterMonitor
)(THIS_ UINT Adapter
) PURE
;
170 STDMETHOD(CreateDevice
)(THIS_ UINT Adapter
, D3DDEVTYPE DeviceType
, HWND hFocusWindow
, DWORD BehaviorFlags
, D3DPRESENT_PARAMETERS
* pPresentationParameters
, struct IDirect3DDevice9
** ppReturnedDeviceInterface
) PURE
;
174 #if !defined(__cplusplus) || defined(CINTERFACE)
175 /*** IUnknown methods ***/
176 #define IDirect3D9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
177 #define IDirect3D9_AddRef(p) (p)->lpVtbl->AddRef(p)
178 #define IDirect3D9_Release(p) (p)->lpVtbl->Release(p)
179 /*** IDirect3D9 methods ***/
180 #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
181 #define IDirect3D9_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
182 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
183 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
184 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
185 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
186 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
187 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
188 #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
189 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
190 #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
191 #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
192 #define IDirect3D9_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
193 #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
195 /*** IUnknown methods ***/
196 #define IDirect3D9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
197 #define IDirect3D9_AddRef(p) (p)->AddRef()
198 #define IDirect3D9_Release(p) (p)->Release()
199 /*** IDirect3D9 methods ***/
200 #define IDirect3D9_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a)
201 #define IDirect3D9_GetAdapterCount(p) (p)->GetAdapterCount()
202 #define IDirect3D9_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c)
203 #define IDirect3D9_GetAdapterModeCount(p,a,b) (p)->GetAdapterModeCount(a,b)
204 #define IDirect3D9_EnumAdapterModes(p,a,b,c,d) (p)->EnumAdapterModes(a,b,c,d)
205 #define IDirect3D9_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b)
206 #define IDirect3D9_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e)
207 #define IDirect3D9_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f)
208 #define IDirect3D9_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->CheckDeviceMultiSampleType(a,b,c,d,e,f)
209 #define IDirect3D9_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e)
210 #define IDirect3D9_CheckDeviceFormatConversion(p,a,b,c,d) (p)->CheckDeviceFormatConversion(a,b,c,d)
211 #define IDirect3D9_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c)
212 #define IDirect3D9_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a)
213 #define IDirect3D9_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f)
216 /*****************************************************************************
217 * IDirect3DVolume9 interface
219 #define INTERFACE IDirect3DVolume9
220 DECLARE_INTERFACE_(IDirect3DVolume9
,IUnknown
)
222 /*** IUnknown methods ***/
223 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
224 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
225 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
226 /*** IDirect3DVolume9 methods ***/
227 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
228 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void* pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
229 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void* pData
, DWORD
* pSizeOfData
) PURE
;
230 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
231 STDMETHOD(GetContainer
)(THIS_ REFIID riid
, void** ppContainer
) PURE
;
232 STDMETHOD(GetDesc
)(THIS_ D3DVOLUME_DESC
* pDesc
) PURE
;
233 STDMETHOD(LockBox
)(THIS_ D3DLOCKED_BOX
* pLockedVolume
, CONST D3DBOX
* pBox
, DWORD Flags
) PURE
;
234 STDMETHOD(UnlockBox
)(THIS
) PURE
;
238 #if !defined(__cplusplus) || defined(CINTERFACE)
239 /*** IUnknown methods ***/
240 #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
241 #define IDirect3DVolume9_AddRef(p) (p)->lpVtbl->AddRef(p)
242 #define IDirect3DVolume9_Release(p) (p)->lpVtbl->Release(p)
243 /*** IDirect3DVolume9 methods ***/
244 #define IDirect3DVolume9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
245 #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
246 #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
247 #define IDirect3DVolume9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
248 #define IDirect3DVolume9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
249 #define IDirect3DVolume9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
250 #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
251 #define IDirect3DVolume9_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
253 /*** IUnknown methods ***/
254 #define IDirect3DVolume9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
255 #define IDirect3DVolume9_AddRef(p) (p)->AddRef()
256 #define IDirect3DVolume9_Release(p) (p)->Release()
257 /*** IDirect3DVolume9 methods ***/
258 #define IDirect3DVolume9_GetDevice(p,a) (p)->GetDevice(a)
259 #define IDirect3DVolume9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
260 #define IDirect3DVolume9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
261 #define IDirect3DVolume9_FreePrivateData(p,a) (p)->FreePrivateData(a)
262 #define IDirect3DVolume9_GetContainer(p,a,b) (p)->GetContainer(a,b)
263 #define IDirect3DVolume9_GetDesc(p,a) (p)->GetDesc(a)
264 #define IDirect3DVolume9_LockBox(p,a,b,c) (p)->LockBox(a,b,c)
265 #define IDirect3DVolume9_UnlockBox(p) (p)->UnlockBox()
268 /*****************************************************************************
269 * IDirect3DSwapChain9 interface
271 #define INTERFACE IDirect3DSwapChain9
272 DECLARE_INTERFACE_(IDirect3DSwapChain9
,IUnknown
)
274 /*** IUnknown methods ***/
275 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
276 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
277 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
278 /*** IDirect3DSwapChain9 methods ***/
279 STDMETHOD(Present
)(THIS_ CONST RECT
* pSourceRect
, CONST RECT
* pDestRect
, HWND hDestWindowOverride
, CONST RGNDATA
* pDirtyRegion
, DWORD dwFlags
) PURE
;
280 STDMETHOD(GetFrontBufferData
)(THIS_
struct IDirect3DSurface9
* pDestSurface
) PURE
;
281 STDMETHOD(GetBackBuffer
)(THIS_ UINT iBackBuffer
, D3DBACKBUFFER_TYPE Type
, struct IDirect3DSurface9
** ppBackBuffer
) PURE
;
282 STDMETHOD(GetRasterStatus
)(THIS_ D3DRASTER_STATUS
* pRasterStatus
) PURE
;
283 STDMETHOD(GetDisplayMode
)(THIS_ D3DDISPLAYMODE
* pMode
) PURE
;
284 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
285 STDMETHOD(GetPresentParameters
)(THIS_ D3DPRESENT_PARAMETERS
* pPresentationParameters
) PURE
;
289 #if !defined(__cplusplus) || defined(CINTERFACE)
290 /*** IUnknown methods ***/
291 #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
292 #define IDirect3DSwapChain9_AddRef(p) (p)->lpVtbl->AddRef(p)
293 #define IDirect3DSwapChain9_Release(p) (p)->lpVtbl->Release(p)
294 /*** IDirect3DSwapChain9 methods ***/
295 #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
296 #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
297 #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
298 #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
299 #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
300 #define IDirect3DSwapChain9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
301 #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
303 /*** IUnknown methods ***/
304 #define IDirect3DSwapChain9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
305 #define IDirect3DSwapChain9_AddRef(p) (p)->AddRef()
306 #define IDirect3DSwapChain9_Release(p) (p)->Release()
307 /*** IDirect3DSwapChain9 methods ***/
308 #define IDirect3DSwapChain9_Present(p,a,b,c,d,e) (p)->Present(a,b,c,d,e)
309 #define IDirect3DSwapChain9_GetFrontBufferData(p,a) (p)->GetFrontBufferData(a)
310 #define IDirect3DSwapChain9_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
311 #define IDirect3DSwapChain9_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
312 #define IDirect3DSwapChain9_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
313 #define IDirect3DSwapChain9_GetDevice(p,a) (p)->GetDevice(a)
314 #define IDirect3DSwapChain9_GetPresentParameters(p,a) (p)->GetPresentParameters(a)
317 /*****************************************************************************
318 * IDirect3DResource9 interface
320 #define INTERFACE IDirect3DResource9
321 DECLARE_INTERFACE_(IDirect3DResource9
,IUnknown
)
323 /*** IUnknown methods ***/
324 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
325 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
326 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
327 /*** IDirect3DResource9 methods ***/
328 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
329 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void* pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
330 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void* pData
, DWORD
* pSizeOfData
) PURE
;
331 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
332 STDMETHOD_(DWORD
, SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
333 STDMETHOD_(DWORD
, GetPriority
)(THIS
) PURE
;
334 STDMETHOD_(void, PreLoad
)(THIS
) PURE
;
335 STDMETHOD_(D3DRESOURCETYPE
, GetType
)(THIS
) PURE
;
339 #if !defined(__cplusplus) || defined(CINTERFACE)
340 /*** IUnknown methods ***/
341 #define IDirect3DResource9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
342 #define IDirect3DResource9_AddRef(p) (p)->lpVtbl->AddRef(p)
343 #define IDirect3DResource9_Release(p) (p)->lpVtbl->Release(p)
344 /*** IDirect3DResource9 methods ***/
345 #define IDirect3DResource9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
346 #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
347 #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
348 #define IDirect3DResource9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
349 #define IDirect3DResource9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
350 #define IDirect3DResource9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
351 #define IDirect3DResource9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
352 #define IDirect3DResource9_GetType(p) (p)->lpVtbl->GetType(p)
354 /*** IUnknown methods ***/
355 #define IDirect3DResource9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
356 #define IDirect3DResource9_AddRef(p) (p)->AddRef()
357 #define IDirect3DResource9_Release(p) (p)->Release()
358 /*** IDirect3DResource9 methods ***/
359 #define IDirect3DResource9_GetDevice(p,a) (p)->GetDevice(a)
360 #define IDirect3DResource9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
361 #define IDirect3DResource9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
362 #define IDirect3DResource9_FreePrivateData(p,a) (p)->FreePrivateData(a)
363 #define IDirect3DResource9_SetPriority(p,a) (p)->SetPriority(a)
364 #define IDirect3DResource9_GetPriority(p) (p)->GetPriority()
365 #define IDirect3DResource9_PreLoad(p) (p)->PreLoad()
366 #define IDirect3DResource9_GetType(p) (p)->GetType()
369 /*****************************************************************************
370 * IDirect3DSurface9 interface
372 #define INTERFACE IDirect3DSurface9
373 DECLARE_INTERFACE_(IDirect3DSurface9
,IDirect3DResource9
)
375 /*** IUnknown methods ***/
376 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
377 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
378 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
379 /*** IDirect3DResource9 methods ***/
380 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
381 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void* pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
382 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void* pData
, DWORD
* pSizeOfData
) PURE
;
383 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
384 STDMETHOD_(DWORD
, SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
385 STDMETHOD_(DWORD
, GetPriority
)(THIS
) PURE
;
386 STDMETHOD_(void, PreLoad
)(THIS
) PURE
;
387 STDMETHOD_(D3DRESOURCETYPE
, GetType
)(THIS
) PURE
;
388 /*** IDirect3DSurface9 methods ***/
389 STDMETHOD(GetContainer
)(THIS_ REFIID riid
, void** ppContainer
) PURE
;
390 STDMETHOD(GetDesc
)(THIS_ D3DSURFACE_DESC
* pDesc
) PURE
;
391 STDMETHOD(LockRect
)(THIS_ D3DLOCKED_RECT
* pLockedRect
, CONST RECT
* pRect
, DWORD Flags
) PURE
;
392 STDMETHOD(UnlockRect
)(THIS
) PURE
;
393 STDMETHOD(GetDC
)(THIS_ HDC
* phdc
) PURE
;
394 STDMETHOD(ReleaseDC
)(THIS_ HDC hdc
) PURE
;
398 #if !defined(__cplusplus) || defined(CINTERFACE)
399 /*** IUnknown methods ***/
400 #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
401 #define IDirect3DSurface9_AddRef(p) (p)->lpVtbl->AddRef(p)
402 #define IDirect3DSurface9_Release(p) (p)->lpVtbl->Release(p)
403 /*** IDirect3DSurface9 methods: IDirect3DResource9 ***/
404 #define IDirect3DSurface9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
405 #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
406 #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
407 #define IDirect3DSurface9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
408 #define IDirect3DSurface9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
409 #define IDirect3DSurface9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
410 #define IDirect3DSurface9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
411 #define IDirect3DSurface9_GetType(p) (p)->lpVtbl->GetType(p)
412 /*** IDirect3DSurface9 methods ***/
413 #define IDirect3DSurface9_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
414 #define IDirect3DSurface9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
415 #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
416 #define IDirect3DSurface9_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
417 #define IDirect3DSurface9_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
418 #define IDirect3DSurface9_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
420 /*** IUnknown methods ***/
421 #define IDirect3DSurface9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
422 #define IDirect3DSurface9_AddRef(p) (p)->AddRef()
423 #define IDirect3DSurface9_Release(p) (p)->Release()
424 /*** IDirect3DSurface9 methods: IDirect3DResource9 ***/
425 #define IDirect3DSurface9_GetDevice(p,a) (p)->GetDevice(a)
426 #define IDirect3DSurface9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
427 #define IDirect3DSurface9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
428 #define IDirect3DSurface9_FreePrivateData(p,a) (p)->FreePrivateData(a)
429 #define IDirect3DSurface9_SetPriority(p,a) (p)->SetPriority(a)
430 #define IDirect3DSurface9_GetPriority(p) (p)->GetPriority()
431 #define IDirect3DSurface9_PreLoad(p) (p)->PreLoad()
432 #define IDirect3DSurface9_GetType(p) (p)->GetType()
433 /*** IDirect3DSurface9 methods ***/
434 #define IDirect3DSurface9_GetContainer(p,a,b) (p)->GetContainer(a,b)
435 #define IDirect3DSurface9_GetDesc(p,a) (p)->GetDesc(a)
436 #define IDirect3DSurface9_LockRect(p,a,b,c) (p)->LockRect(a,b,c)
437 #define IDirect3DSurface9_UnlockRect(p) (p)->UnlockRect()
438 #define IDirect3DSurface9_GetDC(p,a) (p)->GetDC(a)
439 #define IDirect3DSurface9_ReleaseDC(p,a) (p)->ReleaseDC(a)
442 /*****************************************************************************
443 * IDirect3DVertexBuffer9 interface
445 #define INTERFACE IDirect3DVertexBuffer9
446 DECLARE_INTERFACE_(IDirect3DVertexBuffer9
,IDirect3DResource9
)
448 /*** IUnknown methods ***/
449 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
450 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
451 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
452 /*** IDirect3DResource9 methods ***/
453 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
454 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void* pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
455 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void* pData
, DWORD
* pSizeOfData
) PURE
;
456 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
457 STDMETHOD_(DWORD
, SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
458 STDMETHOD_(DWORD
, GetPriority
)(THIS
) PURE
;
459 STDMETHOD_(void, PreLoad
)(THIS
) PURE
;
460 STDMETHOD_(D3DRESOURCETYPE
, GetType
)(THIS
) PURE
;
461 /*** IDirect3DVertexBuffer9 methods ***/
462 STDMETHOD(Lock
)(THIS_ UINT OffsetToLock
, UINT SizeToLock
, void** ppbData
, DWORD Flags
) PURE
;
463 STDMETHOD(Unlock
)(THIS
) PURE
;
464 STDMETHOD(GetDesc
)(THIS_ D3DVERTEXBUFFER_DESC
* pDesc
) PURE
;
468 #if !defined(__cplusplus) || defined(CINTERFACE)
469 /*** IUnknown methods ***/
470 #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
471 #define IDirect3DVertexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
472 #define IDirect3DVertexBuffer9_Release(p) (p)->lpVtbl->Release(p)
473 /*** IDirect3DVertexBuffer9 methods: IDirect3DResource9 ***/
474 #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
475 #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
476 #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
477 #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
478 #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
479 #define IDirect3DVertexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
480 #define IDirect3DVertexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
481 #define IDirect3DVertexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
482 /*** IDirect3DVertexBuffer9 methods ***/
483 #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
484 #define IDirect3DVertexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
485 #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
487 /*** IUnknown methods ***/
488 #define IDirect3DVertexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
489 #define IDirect3DVertexBuffer9_AddRef(p) (p)->AddRef()
490 #define IDirect3DVertexBuffer9_Release(p) (p)->Release()
491 /*** IDirect3DVertexBuffer9 methods: IDirect3DResource9 ***/
492 #define IDirect3DVertexBuffer9_GetDevice(p,a) (p)->GetDevice(a)
493 #define IDirect3DVertexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
494 #define IDirect3DVertexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
495 #define IDirect3DVertexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a)
496 #define IDirect3DVertexBuffer9_SetPriority(p,a) (p)->SetPriority(a)
497 #define IDirect3DVertexBuffer9_GetPriority(p) (p)->GetPriority()
498 #define IDirect3DVertexBuffer9_PreLoad(p) (p)->PreLoad()
499 #define IDirect3DVertexBuffer9_GetType(p) (p)->GetType()
500 /*** IDirect3DVertexBuffer9 methods ***/
501 #define IDirect3DVertexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
502 #define IDirect3DVertexBuffer9_Unlock(p) (p)->Unlock()
503 #define IDirect3DVertexBuffer9_GetDesc(p,a) (p)->GetDesc(a)
506 /*****************************************************************************
507 * IDirect3DIndexBuffer9 interface
509 #define INTERFACE IDirect3DIndexBuffer9
510 DECLARE_INTERFACE_(IDirect3DIndexBuffer9
,IDirect3DResource9
)
512 /*** IUnknown methods ***/
513 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
514 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
515 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
516 /*** IDirect3DResource9 methods ***/
517 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
518 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void* pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
519 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void* pData
, DWORD
* pSizeOfData
) PURE
;
520 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
521 STDMETHOD_(DWORD
, SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
522 STDMETHOD_(DWORD
, GetPriority
)(THIS
) PURE
;
523 STDMETHOD_(void, PreLoad
)(THIS
) PURE
;
524 STDMETHOD_(D3DRESOURCETYPE
, GetType
)(THIS
) PURE
;
525 /*** IDirect3DIndexBuffer9 methods ***/
526 STDMETHOD(Lock
)(THIS_ UINT OffsetToLock
, UINT SizeToLock
, void** ppbData
, DWORD Flags
) PURE
;
527 STDMETHOD(Unlock
)(THIS
) PURE
;
528 STDMETHOD(GetDesc
)(THIS_ D3DINDEXBUFFER_DESC
* pDesc
) PURE
;
532 #if !defined(__cplusplus) || defined(CINTERFACE)
533 /*** IUnknown methods ***/
534 #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
535 #define IDirect3DIndexBuffer9_AddRef(p) (p)->lpVtbl->AddRef(p)
536 #define IDirect3DIndexBuffer9_Release(p) (p)->lpVtbl->Release(p)
537 /*** IDirect3DIndexBuffer9 methods: IDirect3DResource9 ***/
538 #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
539 #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
540 #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
541 #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
542 #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
543 #define IDirect3DIndexBuffer9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
544 #define IDirect3DIndexBuffer9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
545 #define IDirect3DIndexBuffer9_GetType(p) (p)->lpVtbl->GetType(p)
546 /*** IDirect3DIndexBuffer9 methods ***/
547 #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
548 #define IDirect3DIndexBuffer9_Unlock(p) (p)->lpVtbl->Unlock(p)
549 #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
551 /*** IUnknown methods ***/
552 #define IDirect3DIndexBuffer9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
553 #define IDirect3DIndexBuffer9_AddRef(p) (p)->AddRef()
554 #define IDirect3DIndexBuffer9_Release(p) (p)->Release()
555 /*** IDirect3DIndexBuffer9 methods: IDirect3DResource9 ***/
556 #define IDirect3DIndexBuffer9_GetDevice(p,a) (p)->GetDevice(a)
557 #define IDirect3DIndexBuffer9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
558 #define IDirect3DIndexBuffer9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
559 #define IDirect3DIndexBuffer9_FreePrivateData(p,a) (p)->FreePrivateData(a)
560 #define IDirect3DIndexBuffer9_SetPriority(p,a) (p)->SetPriority(a)
561 #define IDirect3DIndexBuffer9_GetPriority(p) (p)->GetPriority()
562 #define IDirect3DIndexBuffer9_PreLoad(p) (p)->PreLoad()
563 #define IDirect3DIndexBuffer9_GetType(p) (p)->GetType()
564 /*** IDirect3DIndexBuffer9 methods ***/
565 #define IDirect3DIndexBuffer9_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
566 #define IDirect3DIndexBuffer9_Unlock(p) (p)->Unlock()
567 #define IDirect3DIndexBuffer9_GetDesc(p,a) (p)->GetDesc(a)
570 /*****************************************************************************
571 * IDirect3DBaseTexture9 interface
573 #define INTERFACE IDirect3DBaseTexture9
574 DECLARE_INTERFACE_(IDirect3DBaseTexture9
,IDirect3DResource9
)
576 /*** IUnknown methods ***/
577 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
578 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
579 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
580 /*** IDirect3DResource9 methods ***/
581 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
582 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void* pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
583 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void* pData
, DWORD
* pSizeOfData
) PURE
;
584 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
585 STDMETHOD_(DWORD
, SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
586 STDMETHOD_(DWORD
, GetPriority
)(THIS
) PURE
;
587 STDMETHOD_(void, PreLoad
)(THIS
) PURE
;
588 STDMETHOD_(D3DRESOURCETYPE
, GetType
)(THIS
) PURE
;
589 /*** IDirect3DBaseTexture9 methods ***/
590 STDMETHOD_(DWORD
, SetLOD
)(THIS_ DWORD LODNew
) PURE
;
591 STDMETHOD_(DWORD
, GetLOD
)(THIS
) PURE
;
592 STDMETHOD_(DWORD
, GetLevelCount
)(THIS
) PURE
;
593 STDMETHOD(SetAutoGenFilterType
)(THIS_ D3DTEXTUREFILTERTYPE FilterType
) PURE
;
594 STDMETHOD_(D3DTEXTUREFILTERTYPE
, GetAutoGenFilterType
)(THIS
) PURE
;
595 STDMETHOD_(void, GenerateMipSubLevels
)(THIS
) PURE
;
599 #if !defined(__cplusplus) || defined(CINTERFACE)
600 /*** IUnknown methods ***/
601 #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
602 #define IDirect3DBaseTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
603 #define IDirect3DBaseTexture9_Release(p) (p)->lpVtbl->Release(p)
604 /*** IDirect3DBaseTexture9 methods: IDirect3DResource9 ***/
605 #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
606 #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
607 #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
608 #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
609 #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
610 #define IDirect3DBaseTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
611 #define IDirect3DBaseTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
612 #define IDirect3DBaseTexture9_GetType(p) (p)->lpVtbl->GetType(p)
613 /*** IDirect3DBaseTexture9 methods ***/
614 #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
615 #define IDirect3DBaseTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
616 #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
617 #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
618 #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
619 #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
621 /*** IUnknown methods ***/
622 #define IDirect3DBaseTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
623 #define IDirect3DBaseTexture9_AddRef(p) (p)->AddRef()
624 #define IDirect3DBaseTexture9_Release(p) (p)->Release()
625 /*** IDirect3DBaseTexture9 methods: IDirect3DResource9 ***/
626 #define IDirect3DBaseTexture9_GetDevice(p,a) (p)->GetDevice(a)
627 #define IDirect3DBaseTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
628 #define IDirect3DBaseTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
629 #define IDirect3DBaseTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
630 #define IDirect3DBaseTexture9_SetPriority(p,a) (p)->SetPriority(a)
631 #define IDirect3DBaseTexture9_GetPriority(p) (p)->GetPriority()
632 #define IDirect3DBaseTexture9_PreLoad(p) (p)->PreLoad()
633 #define IDirect3DBaseTexture9_GetType(p) (p)->GetType()
634 /*** IDirect3DBaseTexture9 methods ***/
635 #define IDirect3DBaseTexture9_SetLOD(p,a) (p)->SetLOD(a)
636 #define IDirect3DBaseTexture9_GetLOD(p) (p)->GetLOD()
637 #define IDirect3DBaseTexture9_GetLevelCount(p) (p)->GetLevelCount()
638 #define IDirect3DBaseTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
639 #define IDirect3DBaseTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
640 #define IDirect3DBaseTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
643 /*****************************************************************************
644 * IDirect3DCubeTexture9 interface
646 #define INTERFACE IDirect3DCubeTexture9
647 DECLARE_INTERFACE_(IDirect3DCubeTexture9
,IDirect3DBaseTexture9
)
649 /*** IUnknown methods ***/
650 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
651 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
652 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
653 /*** IDirect3DResource9 methods ***/
654 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
655 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void* pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
656 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void* pData
, DWORD
* pSizeOfData
) PURE
;
657 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
658 STDMETHOD_(DWORD
, SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
659 STDMETHOD_(DWORD
, GetPriority
)(THIS
) PURE
;
660 STDMETHOD_(void, PreLoad
)(THIS
) PURE
;
661 STDMETHOD_(D3DRESOURCETYPE
, GetType
)(THIS
) PURE
;
662 /*** IDirect3DBaseTexture9 methods ***/
663 STDMETHOD_(DWORD
, SetLOD
)(THIS_ DWORD LODNew
) PURE
;
664 STDMETHOD_(DWORD
, GetLOD
)(THIS
) PURE
;
665 STDMETHOD_(DWORD
, GetLevelCount
)(THIS
) PURE
;
666 STDMETHOD(SetAutoGenFilterType
)(THIS_ D3DTEXTUREFILTERTYPE FilterType
) PURE
;
667 STDMETHOD_(D3DTEXTUREFILTERTYPE
, GetAutoGenFilterType
)(THIS
) PURE
;
668 STDMETHOD_(void, GenerateMipSubLevels
)(THIS
) PURE
;
669 /*** IDirect3DCubeTexture9 methods ***/
670 STDMETHOD(GetLevelDesc
)(THIS_ UINT Level
,D3DSURFACE_DESC
* pDesc
) PURE
;
671 STDMETHOD(GetCubeMapSurface
)(THIS_ D3DCUBEMAP_FACES FaceType
, UINT Level
, IDirect3DSurface9
** ppCubeMapSurface
) PURE
;
672 STDMETHOD(LockRect
)(THIS_ D3DCUBEMAP_FACES FaceType
, UINT Level
, D3DLOCKED_RECT
* pLockedRect
, CONST RECT
* pRect
, DWORD Flags
) PURE
;
673 STDMETHOD(UnlockRect
)(THIS_ D3DCUBEMAP_FACES FaceType
, UINT Level
) PURE
;
674 STDMETHOD(AddDirtyRect
)(THIS_ D3DCUBEMAP_FACES FaceType
, CONST RECT
* pDirtyRect
) PURE
;
678 #if !defined(__cplusplus) || defined(CINTERFACE)
679 /*** IUnknown methods ***/
680 #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
681 #define IDirect3DCubeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
682 #define IDirect3DCubeTexture9_Release(p) (p)->lpVtbl->Release(p)
683 /*** IDirect3DCubeTexture9 methods: IDirect3DResource9 ***/
684 #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
685 #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
686 #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
687 #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
688 #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
689 #define IDirect3DCubeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
690 #define IDirect3DCubeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
691 #define IDirect3DCubeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
692 /*** IDirect3DCubeTexture9 methods: IDirect3DBaseTexture9 ***/
693 #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
694 #define IDirect3DCubeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
695 #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
696 #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
697 #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
698 #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
699 /*** IDirect3DCubeTexture9 methods ***/
700 #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
701 #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
702 #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
703 #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
704 #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
706 /*** IUnknown methods ***/
707 #define IDirect3DCubeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
708 #define IDirect3DCubeTexture9_AddRef(p) (p)->AddRef()
709 #define IDirect3DCubeTexture9_Release(p) (p)->Release()
710 /*** IDirect3DCubeTexture9 methods: IDirect3DResource9 ***/
711 #define IDirect3DCubeTexture9_GetDevice(p,a) (p)->GetDevice(a)
712 #define IDirect3DCubeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
713 #define IDirect3DCubeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
714 #define IDirect3DCubeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
715 #define IDirect3DCubeTexture9_SetPriority(p,a) (p)->SetPriority(a)
716 #define IDirect3DCubeTexture9_GetPriority(p) (p)->GetPriority()
717 #define IDirect3DCubeTexture9_PreLoad(p) (p)->PreLoad()
718 #define IDirect3DCubeTexture9_GetType(p) (p)->GetType()
719 /*** IDirect3DCubeTexture9 methods: IDirect3DBaseTexture9 ***/
720 #define IDirect3DCubeTexture9_SetLOD(p,a) (p)->SetLOD(a)
721 #define IDirect3DCubeTexture9_GetLOD(p) (p)->GetLOD()
722 #define IDirect3DCubeTexture9_GetLevelCount(p) (p)->GetLevelCount()
723 #define IDirect3DCubeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
724 #define IDirect3DCubeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
725 #define IDirect3DCubeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
726 /*** IDirect3DCubeTexture9 methods ***/
727 #define IDirect3DCubeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
728 #define IDirect3DCubeTexture9_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c)
729 #define IDirect3DCubeTexture9_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e)
730 #define IDirect3DCubeTexture9_UnlockRect(p,a,b) (p)->UnlockRect(a,b)
731 #define IDirect3DCubeTexture9_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b)
734 /*****************************************************************************
735 * IDirect3DTexture9 interface
737 #define INTERFACE IDirect3DTexture9
738 DECLARE_INTERFACE_(IDirect3DTexture9
,IDirect3DBaseTexture9
)
740 /*** IUnknown methods ***/
741 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
742 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
743 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
744 /*** IDirect3DResource9 methods ***/
745 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
746 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void* pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
747 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void* pData
, DWORD
* pSizeOfData
) PURE
;
748 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
749 STDMETHOD_(DWORD
, SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
750 STDMETHOD_(DWORD
, GetPriority
)(THIS
) PURE
;
751 STDMETHOD_(void, PreLoad
)(THIS
) PURE
;
752 STDMETHOD_(D3DRESOURCETYPE
, GetType
)(THIS
) PURE
;
753 /*** IDirect3DBaseTexture9 methods ***/
754 STDMETHOD_(DWORD
, SetLOD
)(THIS_ DWORD LODNew
) PURE
;
755 STDMETHOD_(DWORD
, GetLOD
)(THIS
) PURE
;
756 STDMETHOD_(DWORD
, GetLevelCount
)(THIS
) PURE
;
757 STDMETHOD(SetAutoGenFilterType
)(THIS_ D3DTEXTUREFILTERTYPE FilterType
) PURE
;
758 STDMETHOD_(D3DTEXTUREFILTERTYPE
, GetAutoGenFilterType
)(THIS
) PURE
;
759 STDMETHOD_(void, GenerateMipSubLevels
)(THIS
) PURE
;
760 /*** IDirect3DTexture9 methods ***/
761 STDMETHOD(GetLevelDesc
)(THIS_ UINT Level
, D3DSURFACE_DESC
* pDesc
) PURE
;
762 STDMETHOD(GetSurfaceLevel
)(THIS_ UINT Level
, IDirect3DSurface9
** ppSurfaceLevel
) PURE
;
763 STDMETHOD(LockRect
)(THIS_ UINT Level
, D3DLOCKED_RECT
* pLockedRect
, CONST RECT
* pRect
, DWORD Flags
) PURE
;
764 STDMETHOD(UnlockRect
)(THIS_ UINT Level
) PURE
;
765 STDMETHOD(AddDirtyRect
)(THIS_ CONST RECT
* pDirtyRect
) PURE
;
769 #if !defined(__cplusplus) || defined(CINTERFACE)
770 /*** IUnknown methods ***/
771 #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
772 #define IDirect3DTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
773 #define IDirect3DTexture9_Release(p) (p)->lpVtbl->Release(p)
774 /*** IDirect3DTexture9 methods: IDirect3DResource9 ***/
775 #define IDirect3DTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
776 #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
777 #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
778 #define IDirect3DTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
779 #define IDirect3DTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
780 #define IDirect3DTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
781 #define IDirect3DTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
782 #define IDirect3DTexture9_GetType(p) (p)->lpVtbl->GetType(p)
783 /*** IDirect3DTexture9 methods: IDirect3DBaseTexture9 ***/
784 #define IDirect3DTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
785 #define IDirect3DTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
786 #define IDirect3DTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
787 #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
788 #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
789 #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
790 /*** IDirect3DTexture9 methods ***/
791 #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
792 #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
793 #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
794 #define IDirect3DTexture9_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
795 #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
797 /*** IUnknown methods ***/
798 #define IDirect3DTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
799 #define IDirect3DTexture9_AddRef(p) (p)->AddRef()
800 #define IDirect3DTexture9_Release(p) (p)->Release()
801 /*** IDirect3DTexture9 methods: IDirect3DResource9 ***/
802 #define IDirect3DTexture9_GetDevice(p,a) (p)->GetDevice(a)
803 #define IDirect3DTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
804 #define IDirect3DTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
805 #define IDirect3DTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
806 #define IDirect3DTexture9_SetPriority(p,a) (p)->SetPriority(a)
807 #define IDirect3DTexture9_GetPriority(p) (p)->GetPriority()
808 #define IDirect3DTexture9_PreLoad(p) (p)->PreLoad()
809 #define IDirect3DTexture9_GetType(p) (p)->GetType()
810 /*** IDirect3DTexture9 methods: IDirect3DBaseTexture9 ***/
811 #define IDirect3DTexture9_SetLOD(p,a) (p)->SetLOD(a)
812 #define IDirect3DTexture9_GetLOD(p) (p)->GetLOD()
813 #define IDirect3DTexture9_GetLevelCount(p) (p)->GetLevelCount()
814 #define IDirect3DTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
815 #define IDirect3DTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
816 #define IDirect3DTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
817 /*** IDirect3DTexture9 methods ***/
818 #define IDirect3DTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
819 #define IDirect3DTexture9_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b)
820 #define IDirect3DTexture9_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d)
821 #define IDirect3DTexture9_UnlockRect(p,a) (p)->UnlockRect(a)
822 #define IDirect3DTexture9_AddDirtyRect(p,a) (p)->AddDirtyRect(a)
825 /*****************************************************************************
826 * IDirect3DVolumeTexture9 interface
828 #define INTERFACE IDirect3DVolumeTexture9
829 DECLARE_INTERFACE_(IDirect3DVolumeTexture9
,IDirect3DBaseTexture9
)
831 /*** IUnknown methods ***/
832 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
833 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
834 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
835 /*** IDirect3DResource9 methods ***/
836 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
837 STDMETHOD(SetPrivateData
)(THIS_ REFGUID refguid
, CONST
void* pData
, DWORD SizeOfData
, DWORD Flags
) PURE
;
838 STDMETHOD(GetPrivateData
)(THIS_ REFGUID refguid
, void* pData
, DWORD
* pSizeOfData
) PURE
;
839 STDMETHOD(FreePrivateData
)(THIS_ REFGUID refguid
) PURE
;
840 STDMETHOD_(DWORD
, SetPriority
)(THIS_ DWORD PriorityNew
) PURE
;
841 STDMETHOD_(DWORD
, GetPriority
)(THIS
) PURE
;
842 STDMETHOD_(void, PreLoad
)(THIS
) PURE
;
843 STDMETHOD_(D3DRESOURCETYPE
, GetType
)(THIS
) PURE
;
844 /*** IDirect3DBaseTexture9 methods ***/
845 STDMETHOD_(DWORD
, SetLOD
)(THIS_ DWORD LODNew
) PURE
;
846 STDMETHOD_(DWORD
, GetLOD
)(THIS
) PURE
;
847 STDMETHOD_(DWORD
, GetLevelCount
)(THIS
) PURE
;
848 STDMETHOD(SetAutoGenFilterType
)(THIS_ D3DTEXTUREFILTERTYPE FilterType
) PURE
;
849 STDMETHOD_(D3DTEXTUREFILTERTYPE
, GetAutoGenFilterType
)(THIS
) PURE
;
850 STDMETHOD_(void, GenerateMipSubLevels
)(THIS
) PURE
;
851 /*** IDirect3DVolumeTexture9 methods ***/
852 STDMETHOD(GetLevelDesc
)(THIS_ UINT Level
, D3DVOLUME_DESC
*pDesc
) PURE
;
853 STDMETHOD(GetVolumeLevel
)(THIS_ UINT Level
, IDirect3DVolume9
** ppVolumeLevel
) PURE
;
854 STDMETHOD(LockBox
)(THIS_ UINT Level
, D3DLOCKED_BOX
* pLockedVolume
, CONST D3DBOX
* pBox
, DWORD Flags
) PURE
;
855 STDMETHOD(UnlockBox
)(THIS_ UINT Level
) PURE
;
856 STDMETHOD(AddDirtyBox
)(THIS_ CONST D3DBOX
* pDirtyBox
) PURE
;
860 #if !defined(__cplusplus) || defined(CINTERFACE)
861 /*** IUnknown methods ***/
862 #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
863 #define IDirect3DVolumeTexture9_AddRef(p) (p)->lpVtbl->AddRef(p)
864 #define IDirect3DVolumeTexture9_Release(p) (p)->lpVtbl->Release(p)
865 /*** IDirect3DVolumeTexture9 methods: IDirect3DResource9 ***/
866 #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
867 #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
868 #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
869 #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
870 #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
871 #define IDirect3DVolumeTexture9_GetPriority(p) (p)->lpVtbl->GetPriority(p)
872 #define IDirect3DVolumeTexture9_PreLoad(p) (p)->lpVtbl->PreLoad(p)
873 #define IDirect3DVolumeTexture9_GetType(p) (p)->lpVtbl->GetType(p)
874 /*** IDirect3DVolumeTexture9 methods: IDirect3DBaseTexture9 ***/
875 #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
876 #define IDirect3DVolumeTexture9_GetLOD(p) (p)->lpVtbl->GetLOD(p)
877 #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
878 #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
879 #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
880 #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
881 /*** IDirect3DVolumeTexture9 methods ***/
882 #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
883 #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
884 #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
885 #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
886 #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
888 /*** IUnknown methods ***/
889 #define IDirect3DVolumeTexture9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
890 #define IDirect3DVolumeTexture9_AddRef(p) (p)->AddRef()
891 #define IDirect3DVolumeTexture9_Release(p) (p)->Release()
892 /*** IDirect3DVolumeTexture9 methods: IDirect3DResource9 ***/
893 #define IDirect3DVolumeTexture9_GetDevice(p,a) (p)->GetDevice(a)
894 #define IDirect3DVolumeTexture9_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
895 #define IDirect3DVolumeTexture9_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
896 #define IDirect3DVolumeTexture9_FreePrivateData(p,a) (p)->FreePrivateData(a)
897 #define IDirect3DVolumeTexture9_SetPriority(p,a) (p)->SetPriority(a)
898 #define IDirect3DVolumeTexture9_GetPriority(p) (p)->GetPriority()
899 #define IDirect3DVolumeTexture9_PreLoad(p) (p)->PreLoad()
900 #define IDirect3DVolumeTexture9_GetType(p) (p)->GetType()
901 /*** IDirect3DVolumeTexture9 methods: IDirect3DBaseTexture9 ***/
902 #define IDirect3DVolumeTexture9_SetLOD(p,a) (p)->SetLOD(a)
903 #define IDirect3DVolumeTexture9_GetLOD(p) (p)->GetLOD()
904 #define IDirect3DVolumeTexture9_GetLevelCount(p) (p)->GetLevelCount()
905 #define IDirect3DVolumeTexture9_SetAutoGenFilterType(p,a) (p)->SetAutoGenFilterType(a)
906 #define IDirect3DVolumeTexture9_GetAutoGenFilterType(p) (p)->GetAutoGenFilterType()
907 #define IDirect3DVolumeTexture9_GenerateMipSubLevels(p) (p)->GenerateMipSubLevels()
908 /*** IDirect3DVolumeTexture9 methods ***/
909 #define IDirect3DVolumeTexture9_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
910 #define IDirect3DVolumeTexture9_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b)
911 #define IDirect3DVolumeTexture9_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d)
912 #define IDirect3DVolumeTexture9_UnlockBox(p,a) (p)->UnlockBox(a)
913 #define IDirect3DVolumeTexture9_AddDirtyBox(p,a) (p)->AddDirtyBox(a)
916 /*****************************************************************************
917 * IDirect3DVertexDeclaration9 interface
919 #define INTERFACE IDirect3DVertexDeclaration9
920 DECLARE_INTERFACE_(IDirect3DVertexDeclaration9
,IUnknown
)
922 /*** IUnknown methods ***/
923 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
924 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
925 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
926 /*** IDirect3DVertexDeclaration9 methods ***/
927 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
928 STDMETHOD(GetDeclaration
)(THIS_ D3DVERTEXELEMENT9
*, UINT
* pNumElements
) PURE
;
932 #if !defined(__cplusplus) || defined(CINTERFACE)
933 /*** IUnknown methods ***/
934 #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
935 #define IDirect3DVertexDeclaration9_AddRef(p) (p)->lpVtbl->AddRef(p)
936 #define IDirect3DVertexDeclaration9_Release(p) (p)->lpVtbl->Release(p)
937 /*** IDirect3DVertexShader9 methods ***/
938 #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
939 #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->lpVtbl->GetDeclaration(p,a,b)
941 /*** IUnknown methods ***/
942 #define IDirect3DVertexDeclaration9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
943 #define IDirect3DVertexDeclaration9_AddRef(p) (p)->AddRef()
944 #define IDirect3DVertexDeclaration9_Release(p) (p)->Release()
945 /*** IDirect3DVertexShader9 methods ***/
946 #define IDirect3DVertexDeclaration9_GetDevice(p,a) (p)->GetDevice(a)
947 #define IDirect3DVertexDeclaration9_GetDeclaration(p,a,b) (p)->GetDeclaration(a,b)
950 /*****************************************************************************
951 * IDirect3DVertexShader9 interface
953 #define INTERFACE IDirect3DVertexShader9
954 DECLARE_INTERFACE_(IDirect3DVertexShader9
,IUnknown
)
956 /*** IUnknown methods ***/
957 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
958 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
959 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
960 /*** IDirect3DVertexShader9 methods ***/
961 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
962 STDMETHOD(GetFunction
)(THIS_
void*, UINT
* pSizeOfData
) PURE
;
966 #if !defined(__cplusplus) || defined(CINTERFACE)
967 /*** IUnknown methods ***/
968 #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
969 #define IDirect3DVertexShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
970 #define IDirect3DVertexShader9_Release(p) (p)->lpVtbl->Release(p)
971 /*** IDirect3DVertexShader9 methods ***/
972 #define IDirect3DVertexShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
973 #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
975 /*** IUnknown methods ***/
976 #define IDirect3DVertexShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
977 #define IDirect3DVertexShader9_AddRef(p) (p)->AddRef()
978 #define IDirect3DVertexShader9_Release(p) (p)->Release()
979 /*** IDirect3DVertexShader9 methods ***/
980 #define IDirect3DVertexShader9_GetDevice(p,a) (p)->GetDevice(a)
981 #define IDirect3DVertexShader9_GetFunction(p,a,b) (p)->GetFunction(a,b)
984 /*****************************************************************************
985 * IDirect3DPixelShader9 interface
987 #define INTERFACE IDirect3DPixelShader9
988 DECLARE_INTERFACE_(IDirect3DPixelShader9
,IUnknown
)
990 /*** IUnknown methods ***/
991 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
992 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
993 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
994 /*** IDirect3DPixelShader9 methods ***/
995 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
996 STDMETHOD(GetFunction
)(THIS_
void*, UINT
* pSizeOfData
) PURE
;
1000 #if !defined(__cplusplus) || defined(CINTERFACE)
1001 /*** IUnknown methods ***/
1002 #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1003 #define IDirect3DPixelShader9_AddRef(p) (p)->lpVtbl->AddRef(p)
1004 #define IDirect3DPixelShader9_Release(p) (p)->lpVtbl->Release(p)
1005 /*** IDirect3DPixelShader9 methods ***/
1006 #define IDirect3DPixelShader9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1007 #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
1009 /*** IUnknown methods ***/
1010 #define IDirect3DPixelShader9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1011 #define IDirect3DPixelShader9_AddRef(p) (p)->AddRef()
1012 #define IDirect3DPixelShader9_Release(p) (p)->Release()
1013 /*** IDirect3DPixelShader9 methods ***/
1014 #define IDirect3DPixelShader9_GetDevice(p,a) (p)->GetDevice(a)
1015 #define IDirect3DPixelShader9_GetFunction(p,a,b) (p)->GetFunction(a,b)
1018 /*****************************************************************************
1019 * IDirect3DStateBlock9 interface
1021 #define INTERFACE IDirect3DStateBlock9
1022 DECLARE_INTERFACE_(IDirect3DStateBlock9
,IUnknown
)
1024 /*** IUnknown methods ***/
1025 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1026 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1027 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1028 /*** IDirect3DStateBlock9 methods ***/
1029 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
1030 STDMETHOD(Capture
)(THIS
) PURE
;
1031 STDMETHOD(Apply
)(THIS
) PURE
;
1035 #if !defined(__cplusplus) || defined(CINTERFACE)
1036 /*** IUnknown methods ***/
1037 #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1038 #define IDirect3DStateBlock9_AddRef(p) (p)->lpVtbl->AddRef(p)
1039 #define IDirect3DStateBlock9_Release(p) (p)->lpVtbl->Release(p)
1040 /*** IDirect3DStateBlock9 methods ***/
1041 #define IDirect3DStateBlock9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1042 #define IDirect3DStateBlock9_Capture(p) (p)->lpVtbl->Capture(p)
1043 #define IDirect3DStateBlock9_Apply(p) (p)->lpVtbl->Apply(p)
1045 /*** IUnknown methods ***/
1046 #define IDirect3DStateBlock9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1047 #define IDirect3DStateBlock9_AddRef(p) (p)->AddRef()
1048 #define IDirect3DStateBlock9_Release(p) (p)->Release()
1049 /*** IDirect3DStateBlock9 methods ***/
1050 #define IDirect3DStateBlock9_GetDevice(p,a) (p)->GetDevice(a)
1051 #define IDirect3DStateBlock9_Capture(p) (p)->Capture()
1052 #define IDirect3DStateBlock9_Apply(p) (p)->Apply()
1055 /*****************************************************************************
1056 * IDirect3DQuery9 interface
1058 #define INTERFACE IDirect3DQuery9
1059 DECLARE_INTERFACE_(IDirect3DQuery9
,IUnknown
)
1061 /*** IUnknown methods ***/
1062 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1063 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1064 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1065 /*** IDirect3DQuery9 methods ***/
1066 STDMETHOD(GetDevice
)(THIS_
struct IDirect3DDevice9
** ppDevice
) PURE
;
1067 STDMETHOD_(D3DQUERYTYPE
, GetType
)(THIS
) PURE
;
1068 STDMETHOD_(DWORD
, GetDataSize
)(THIS
) PURE
;
1069 STDMETHOD(Issue
)(THIS_ DWORD dwIssueFlags
) PURE
;
1070 STDMETHOD(GetData
)(THIS_
void* pData
, DWORD dwSize
, DWORD dwGetDataFlags
) PURE
;
1074 #if !defined(__cplusplus) || defined(CINTERFACE)
1075 /*** IUnknown methods ***/
1076 #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1077 #define IDirect3DQuery9_AddRef(p) (p)->lpVtbl->AddRef(p)
1078 #define IDirect3DQuery9_Release(p) (p)->lpVtbl->Release(p)
1079 /*** IDirect3DQuery9 ***/
1080 #define IDirect3DQuery9_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1081 #define IDirect3DQuery9_GetType(p) (p)->lpVtbl->GetType(p)
1082 #define IDirect3DQuery9_GetDataSize(p) (p)->lpVtbl->GetDataSize(p)
1083 #define IDirect3DQuery9_Issue(p,a) (p)->lpVtbl->Issue(p,a)
1084 #define IDirect3DQuery9_GetData(p,a,b,c) (p)->lpVtbl->GetData(p,a,b,c)
1086 /*** IUnknown methods ***/
1087 #define IDirect3DQuery9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1088 #define IDirect3DQuery9_AddRef(p) (p)->AddRef()
1089 #define IDirect3DQuery9_Release(p) (p)->Release()
1090 /*** IDirect3DQuery9 ***/
1091 #define IDirect3DQuery9_GetDevice(p,a) (p)->GetDevice(a)
1092 #define IDirect3DQuery9_GetType(p) (p)->GetType()
1093 #define IDirect3DQuery9_GetDataSize(p) (p)->GetDataSize()
1094 #define IDirect3DQuery9_Issue(p,a) (p)->Issue(a)
1095 #define IDirect3DQuery9_GetData(p,a,b,c) (p)->GetData(a,b,c)
1098 /*****************************************************************************
1099 * IDirect3DDevice9 interface
1101 #define INTERFACE IDirect3DDevice9
1102 DECLARE_INTERFACE_(IDirect3DDevice9
,IUnknown
)
1104 /*** IUnknown methods ***/
1105 STDMETHOD_(HRESULT
,QueryInterface
)(THIS_ REFIID riid
, void** ppvObject
) PURE
;
1106 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
1107 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
1108 /*** IDirect3DDevice9 methods ***/
1109 STDMETHOD(TestCooperativeLevel
)(THIS
) PURE
;
1110 STDMETHOD_(UINT
, GetAvailableTextureMem
)(THIS
) PURE
;
1111 STDMETHOD(EvictManagedResources
)(THIS
) PURE
;
1112 STDMETHOD(GetDirect3D
)(THIS_ IDirect3D9
** ppD3D9
) PURE
;
1113 STDMETHOD(GetDeviceCaps
)(THIS_ D3DCAPS9
* pCaps
) PURE
;
1114 STDMETHOD(GetDisplayMode
)(THIS_ UINT iSwapChain
, D3DDISPLAYMODE
* pMode
) PURE
;
1115 STDMETHOD(GetCreationParameters
)(THIS_ D3DDEVICE_CREATION_PARAMETERS
*pParameters
) PURE
;
1116 STDMETHOD(SetCursorProperties
)(THIS_ UINT XHotSpot
, UINT YHotSpot
, IDirect3DSurface9
* pCursorBitmap
) PURE
;
1117 STDMETHOD_(void, SetCursorPosition
)(THIS_
int X
,int Y
, DWORD Flags
) PURE
;
1118 STDMETHOD_(BOOL
, ShowCursor
)(THIS_ BOOL bShow
) PURE
;
1119 STDMETHOD(CreateAdditionalSwapChain
)(THIS_ D3DPRESENT_PARAMETERS
* pPresentationParameters
, IDirect3DSwapChain9
** pSwapChain
) PURE
;
1120 STDMETHOD(GetSwapChain
)(THIS_ UINT iSwapChain
, IDirect3DSwapChain9
** pSwapChain
) PURE
;
1121 STDMETHOD_(UINT
, GetNumberOfSwapChains
)(THIS
) PURE
;
1122 STDMETHOD(Reset
)(THIS_ D3DPRESENT_PARAMETERS
* pPresentationParameters
) PURE
;
1123 STDMETHOD(Present
)(THIS_ CONST RECT
* pSourceRect
, CONST RECT
* pDestRect
, HWND hDestWindowOverride
, CONST RGNDATA
* pDirtyRegion
) PURE
;
1124 STDMETHOD(GetBackBuffer
)(THIS_ UINT iSwapChain
, UINT iBackBuffer
, D3DBACKBUFFER_TYPE Type
, IDirect3DSurface9
** ppBackBuffer
) PURE
;
1125 STDMETHOD(GetRasterStatus
)(THIS_ UINT iSwapChain
, D3DRASTER_STATUS
* pRasterStatus
) PURE
;
1126 STDMETHOD(SetDialogBoxMode
)(THIS_ BOOL bEnableDialogs
) PURE
;
1127 STDMETHOD_(void, SetGammaRamp
)(THIS_ UINT iSwapChain
, DWORD Flags
, CONST D3DGAMMARAMP
* pRamp
) PURE
;
1128 STDMETHOD_(void, GetGammaRamp
)(THIS_ UINT iSwapChain
, D3DGAMMARAMP
* pRamp
) PURE
;
1129 STDMETHOD(CreateTexture
)(THIS_ UINT Width
, UINT Height
, UINT Levels
, DWORD Usage
, D3DFORMAT Format
, D3DPOOL Pool
, IDirect3DTexture9
** ppTexture
, HANDLE
* pSharedHandle
) PURE
;
1130 STDMETHOD(CreateVolumeTexture
)(THIS_ UINT Width
, UINT Height
, UINT Depth
, UINT Levels
, DWORD Usage
, D3DFORMAT Format
, D3DPOOL Pool
, IDirect3DVolumeTexture9
** ppVolumeTexture
, HANDLE
* pSharedHandle
) PURE
;
1131 STDMETHOD(CreateCubeTexture
)(THIS_ UINT EdgeLength
, UINT Levels
, DWORD Usage
, D3DFORMAT Format
, D3DPOOL Pool
, IDirect3DCubeTexture9
** ppCubeTexture
, HANDLE
* pSharedHandle
) PURE
;
1132 STDMETHOD(CreateVertexBuffer
)(THIS_ UINT Length
, DWORD Usage
, DWORD FVF
, D3DPOOL Pool
, IDirect3DVertexBuffer9
** ppVertexBuffer
, HANDLE
* pSharedHandle
) PURE
;
1133 STDMETHOD(CreateIndexBuffer
)(THIS_ UINT Length
, DWORD Usage
, D3DFORMAT Format
, D3DPOOL Pool
, IDirect3DIndexBuffer9
** ppIndexBuffer
, HANDLE
* pSharedHandle
) PURE
;
1134 STDMETHOD(CreateRenderTarget
)(THIS_ UINT Width
, UINT Height
, D3DFORMAT Format
, D3DMULTISAMPLE_TYPE MultiSample
, DWORD MultisampleQuality
, BOOL Lockable
, IDirect3DSurface9
** ppSurface
, HANDLE
* pSharedHandle
) PURE
;
1135 STDMETHOD(CreateDepthStencilSurface
)(THIS_ UINT Width
, UINT Height
, D3DFORMAT Format
, D3DMULTISAMPLE_TYPE MultiSample
, DWORD MultisampleQuality
, BOOL Discard
, IDirect3DSurface9
** ppSurface
, HANDLE
* pSharedHandle
) PURE
;
1136 STDMETHOD(UpdateSurface
)(THIS_ IDirect3DSurface9
* pSourceSurface
, CONST RECT
* pSourceRect
, IDirect3DSurface9
* pDestinationSurface
, CONST POINT
* pDestPoint
) PURE
;
1137 STDMETHOD(UpdateTexture
)(THIS_ IDirect3DBaseTexture9
* pSourceTexture
, IDirect3DBaseTexture9
* pDestinationTexture
) PURE
;
1138 STDMETHOD(GetRenderTargetData
)(THIS_ IDirect3DSurface9
* pRenderTarget
, IDirect3DSurface9
* pDestSurface
) PURE
;
1139 STDMETHOD(GetFrontBufferData
)(THIS_ UINT iSwapChain
, IDirect3DSurface9
* pDestSurface
) PURE
;
1140 STDMETHOD(StretchRect
)(THIS_ IDirect3DSurface9
* pSourceSurface
, CONST RECT
* pSourceRect
, IDirect3DSurface9
* pDestSurface
, CONST RECT
* pDestRect
, D3DTEXTUREFILTERTYPE Filter
) PURE
;
1141 STDMETHOD(ColorFill
)(THIS_ IDirect3DSurface9
* pSurface
, CONST RECT
* pRect
, D3DCOLOR color
) PURE
;
1142 STDMETHOD(CreateOffscreenPlainSurface
)(THIS_ UINT Width
, UINT Height
, D3DFORMAT Format
, D3DPOOL Pool
, IDirect3DSurface9
** ppSurface
, HANDLE
* pSharedHandle
) PURE
;
1143 STDMETHOD(SetRenderTarget
)(THIS_ DWORD RenderTargetIndex
, IDirect3DSurface9
* pRenderTarget
) PURE
;
1144 STDMETHOD(GetRenderTarget
)(THIS_ DWORD RenderTargetIndex
, IDirect3DSurface9
** ppRenderTarget
) PURE
;
1145 STDMETHOD(SetDepthStencilSurface
)(THIS_ IDirect3DSurface9
* pNewZStencil
) PURE
;
1146 STDMETHOD(GetDepthStencilSurface
)(THIS_ IDirect3DSurface9
** ppZStencilSurface
) PURE
;
1147 STDMETHOD(BeginScene
)(THIS
) PURE
;
1148 STDMETHOD(EndScene
)(THIS
) PURE
;
1149 STDMETHOD(Clear
)(THIS_ DWORD Count
, CONST D3DRECT
* pRects
, DWORD Flags
, D3DCOLOR Color
, float Z
, DWORD Stencil
) PURE
;
1150 STDMETHOD(SetTransform
)(THIS_ D3DTRANSFORMSTATETYPE State
, CONST D3DMATRIX
* pMatrix
) PURE
;
1151 STDMETHOD(GetTransform
)(THIS_ D3DTRANSFORMSTATETYPE State
, D3DMATRIX
* pMatrix
) PURE
;
1152 STDMETHOD(MultiplyTransform
)(THIS_ D3DTRANSFORMSTATETYPE
, CONST D3DMATRIX
*) PURE
;
1153 STDMETHOD(SetViewport
)(THIS_ CONST D3DVIEWPORT9
* pViewport
) PURE
;
1154 STDMETHOD(GetViewport
)(THIS_ D3DVIEWPORT9
* pViewport
) PURE
;
1155 STDMETHOD(SetMaterial
)(THIS_ CONST D3DMATERIAL9
* pMaterial
) PURE
;
1156 STDMETHOD(GetMaterial
)(THIS_ D3DMATERIAL9
* pMaterial
) PURE
;
1157 STDMETHOD(SetLight
)(THIS_ DWORD Index
, CONST D3DLIGHT9
*) PURE
;
1158 STDMETHOD(GetLight
)(THIS_ DWORD Index
, D3DLIGHT9
*) PURE
;
1159 STDMETHOD(LightEnable
)(THIS_ DWORD Index
, BOOL Enable
) PURE
;
1160 STDMETHOD(GetLightEnable
)(THIS_ DWORD Index
, BOOL
* pEnable
) PURE
;
1161 STDMETHOD(SetClipPlane
)(THIS_ DWORD Index
, CONST
float* pPlane
) PURE
;
1162 STDMETHOD(GetClipPlane
)(THIS_ DWORD Index
, float* pPlane
) PURE
;
1163 STDMETHOD(SetRenderState
)(THIS_ D3DRENDERSTATETYPE State
, DWORD Value
) PURE
;
1164 STDMETHOD(GetRenderState
)(THIS_ D3DRENDERSTATETYPE State
, DWORD
* pValue
) PURE
;
1165 STDMETHOD(CreateStateBlock
)(THIS_ D3DSTATEBLOCKTYPE Type
, IDirect3DStateBlock9
** ppSB
) PURE
;
1166 STDMETHOD(BeginStateBlock
)(THIS
) PURE
;
1167 STDMETHOD(EndStateBlock
)(THIS_ IDirect3DStateBlock9
** ppSB
) PURE
;
1168 STDMETHOD(SetClipStatus
)(THIS_ CONST D3DCLIPSTATUS9
* pClipStatus
) PURE
;
1169 STDMETHOD(GetClipStatus
)(THIS_ D3DCLIPSTATUS9
* pClipStatus
) PURE
;
1170 STDMETHOD(GetTexture
)(THIS_ DWORD Stage
, IDirect3DBaseTexture9
** ppTexture
) PURE
;
1171 STDMETHOD(SetTexture
)(THIS_ DWORD Stage
, IDirect3DBaseTexture9
* pTexture
) PURE
;
1172 STDMETHOD(GetTextureStageState
)(THIS_ DWORD Stage
, D3DTEXTURESTAGESTATETYPE Type
, DWORD
* pValue
) PURE
;
1173 STDMETHOD(SetTextureStageState
)(THIS_ DWORD Stage
, D3DTEXTURESTAGESTATETYPE Type
, DWORD Value
) PURE
;
1174 STDMETHOD(GetSamplerState
)(THIS_ DWORD Sampler
, D3DSAMPLERSTATETYPE Type
, DWORD
* pValue
) PURE
;
1175 STDMETHOD(SetSamplerState
)(THIS_ DWORD Sampler
, D3DSAMPLERSTATETYPE Type
, DWORD Value
) PURE
;
1176 STDMETHOD(ValidateDevice
)(THIS_ DWORD
* pNumPasses
) PURE
;
1177 STDMETHOD(SetPaletteEntries
)(THIS_ UINT PaletteNumber
, CONST PALETTEENTRY
* pEntries
) PURE
;
1178 STDMETHOD(GetPaletteEntries
)(THIS_ UINT PaletteNumber
,PALETTEENTRY
* pEntries
) PURE
;
1179 STDMETHOD(SetCurrentTexturePalette
)(THIS_ UINT PaletteNumber
) PURE
;
1180 STDMETHOD(GetCurrentTexturePalette
)(THIS_ UINT
*PaletteNumber
) PURE
;
1181 STDMETHOD(SetScissorRect
)(THIS_ CONST RECT
* pRect
) PURE
;
1182 STDMETHOD(GetScissorRect
)(THIS_ RECT
* pRect
) PURE
;
1183 STDMETHOD(SetSoftwareVertexProcessing
)(THIS_ BOOL bSoftware
) PURE
;
1184 STDMETHOD_(BOOL
, GetSoftwareVertexProcessing
)(THIS
) PURE
;
1185 STDMETHOD(SetNPatchMode
)(THIS_
float nSegments
) PURE
;
1186 STDMETHOD_(float, GetNPatchMode
)(THIS
) PURE
;
1187 STDMETHOD(DrawPrimitive
)(THIS_ D3DPRIMITIVETYPE PrimitiveType
, UINT StartVertex
, UINT PrimitiveCount
) PURE
;
1188 STDMETHOD(DrawIndexedPrimitive
)(THIS_ D3DPRIMITIVETYPE
, INT BaseVertexIndex
, UINT MinVertexIndex
, UINT NumVertices
, UINT startIndex
, UINT primCount
) PURE
;
1189 STDMETHOD(DrawPrimitiveUP
)(THIS_ D3DPRIMITIVETYPE PrimitiveType
, UINT PrimitiveCount
, CONST
void* pVertexStreamZeroData
, UINT VertexStreamZeroStride
) PURE
;
1190 STDMETHOD(DrawIndexedPrimitiveUP
)(THIS_ D3DPRIMITIVETYPE PrimitiveType
, UINT MinVertexIndex
, UINT NumVertices
, UINT PrimitiveCount
, CONST
void* pIndexData
, D3DFORMAT IndexDataFormat
, CONST
void* pVertexStreamZeroData
, UINT VertexStreamZeroStride
) PURE
;
1191 STDMETHOD(ProcessVertices
)(THIS_ UINT SrcStartIndex
, UINT DestIndex
, UINT VertexCount
, IDirect3DVertexBuffer9
* pDestBuffer
, IDirect3DVertexDeclaration9
* pVertexDecl
, DWORD Flags
) PURE
;
1192 STDMETHOD(CreateVertexDeclaration
)(THIS_ CONST D3DVERTEXELEMENT9
* pVertexElements
, IDirect3DVertexDeclaration9
** ppDecl
) PURE
;
1193 STDMETHOD(SetVertexDeclaration
)(THIS_ IDirect3DVertexDeclaration9
* pDecl
) PURE
;
1194 STDMETHOD(GetVertexDeclaration
)(THIS_ IDirect3DVertexDeclaration9
** ppDecl
) PURE
;
1195 STDMETHOD(SetFVF
)(THIS_ DWORD FVF
) PURE
;
1196 STDMETHOD(GetFVF
)(THIS_ DWORD
* pFVF
) PURE
;
1197 STDMETHOD(CreateVertexShader
)(THIS_ CONST DWORD
* pFunction
, IDirect3DVertexShader9
** ppShader
) PURE
;
1198 STDMETHOD(SetVertexShader
)(THIS_ IDirect3DVertexShader9
* pShader
) PURE
;
1199 STDMETHOD(GetVertexShader
)(THIS_ IDirect3DVertexShader9
** ppShader
) PURE
;
1200 STDMETHOD(SetVertexShaderConstantF
)(THIS_ UINT StartRegister
, CONST
float* pConstantData
, UINT Vector4fCount
) PURE
;
1201 STDMETHOD(GetVertexShaderConstantF
)(THIS_ UINT StartRegister
, float* pConstantData
, UINT Vector4fCount
) PURE
;
1202 STDMETHOD(SetVertexShaderConstantI
)(THIS_ UINT StartRegister
, CONST
int* pConstantData
, UINT Vector4iCount
) PURE
;
1203 STDMETHOD(GetVertexShaderConstantI
)(THIS_ UINT StartRegister
, int* pConstantData
, UINT Vector4iCount
) PURE
;
1204 STDMETHOD(SetVertexShaderConstantB
)(THIS_ UINT StartRegister
, CONST BOOL
* pConstantData
, UINT BoolCount
) PURE
;
1205 STDMETHOD(GetVertexShaderConstantB
)(THIS_ UINT StartRegister
, BOOL
* pConstantData
, UINT BoolCount
) PURE
;
1206 STDMETHOD(SetStreamSource
)(THIS_ UINT StreamNumber
, IDirect3DVertexBuffer9
* pStreamData
, UINT OffsetInBytes
, UINT Stride
) PURE
;
1207 STDMETHOD(GetStreamSource
)(THIS_ UINT StreamNumber
, IDirect3DVertexBuffer9
** ppStreamData
, UINT
* OffsetInBytes
, UINT
* pStride
) PURE
;
1208 STDMETHOD(SetStreamSourceFreq
)(THIS_ UINT StreamNumber
, UINT Divider
) PURE
;
1209 STDMETHOD(GetStreamSourceFreq
)(THIS_ UINT StreamNumber
, UINT
* Divider
) PURE
;
1210 STDMETHOD(SetIndices
)(THIS_ IDirect3DIndexBuffer9
* pIndexData
) PURE
;
1211 STDMETHOD(GetIndices
)(THIS_ IDirect3DIndexBuffer9
** ppIndexData
) PURE
;
1212 STDMETHOD(CreatePixelShader
)(THIS_ CONST DWORD
* pFunction
, IDirect3DPixelShader9
** ppShader
) PURE
;
1213 STDMETHOD(SetPixelShader
)(THIS_ IDirect3DPixelShader9
* pShader
) PURE
;
1214 STDMETHOD(GetPixelShader
)(THIS_ IDirect3DPixelShader9
** ppShader
) PURE
;
1215 STDMETHOD(SetPixelShaderConstantF
)(THIS_ UINT StartRegister
, CONST
float* pConstantData
, UINT Vector4fCount
) PURE
;
1216 STDMETHOD(GetPixelShaderConstantF
)(THIS_ UINT StartRegister
, float* pConstantData
, UINT Vector4fCount
) PURE
;
1217 STDMETHOD(SetPixelShaderConstantI
)(THIS_ UINT StartRegister
, CONST
int* pConstantData
, UINT Vector4iCount
) PURE
;
1218 STDMETHOD(GetPixelShaderConstantI
)(THIS_ UINT StartRegister
, int* pConstantData
, UINT Vector4iCount
) PURE
;
1219 STDMETHOD(SetPixelShaderConstantB
)(THIS_ UINT StartRegister
, CONST BOOL
* pConstantData
, UINT BoolCount
) PURE
;
1220 STDMETHOD(GetPixelShaderConstantB
)(THIS_ UINT StartRegister
, BOOL
* pConstantData
, UINT BoolCount
) PURE
;
1221 STDMETHOD(DrawRectPatch
)(THIS_ UINT Handle
, CONST
float* pNumSegs
, CONST D3DRECTPATCH_INFO
* pRectPatchInfo
) PURE
;
1222 STDMETHOD(DrawTriPatch
)(THIS_ UINT Handle
, CONST
float* pNumSegs
, CONST D3DTRIPATCH_INFO
* pTriPatchInfo
) PURE
;
1223 STDMETHOD(DeletePatch
)(THIS_ UINT Handle
) PURE
;
1224 STDMETHOD(CreateQuery
)(THIS_ D3DQUERYTYPE Type
, IDirect3DQuery9
** ppQuery
) PURE
;
1228 #if !defined(__cplusplus) || defined(CINTERFACE)
1229 /*** IUnknown methods ***/
1230 #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1231 #define IDirect3DDevice9_AddRef(p) (p)->lpVtbl->AddRef(p)
1232 #define IDirect3DDevice9_Release(p) (p)->lpVtbl->Release(p)
1233 /*** IDirect3DDevice9 methods ***/
1234 #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
1235 #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
1236 #define IDirect3DDevice9_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
1237 #define IDirect3DDevice9_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
1238 #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
1239 #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
1240 #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
1241 #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
1242 #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
1243 #define IDirect3DDevice9_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
1244 #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
1245 #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
1246 #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
1247 #define IDirect3DDevice9_Reset(p,a) (p)->lpVtbl->Reset(p,a)
1248 #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
1249 #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
1250 #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
1251 #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
1252 #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
1253 #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
1254 #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h)
1255 #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)
1256 #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g)
1257 #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f)
1258 #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f)
1259 #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h)
1260 #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h)
1261 #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
1262 #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
1263 #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
1264 #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
1265 #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
1266 #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
1267 #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f)
1268 #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
1269 #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
1270 #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
1271 #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
1272 #define IDirect3DDevice9_BeginScene(p) (p)->lpVtbl->BeginScene(p)
1273 #define IDirect3DDevice9_EndScene(p) (p)->lpVtbl->EndScene(p)
1274 #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
1275 #define IDirect3DDevice9_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
1276 #define IDirect3DDevice9_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
1277 #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
1278 #define IDirect3DDevice9_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
1279 #define IDirect3DDevice9_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
1280 #define IDirect3DDevice9_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
1281 #define IDirect3DDevice9_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
1282 #define IDirect3DDevice9_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
1283 #define IDirect3DDevice9_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
1284 #define IDirect3DDevice9_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
1285 #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
1286 #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
1287 #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
1288 #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
1289 #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
1290 #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
1291 #define IDirect3DDevice9_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
1292 #define IDirect3DDevice9_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
1293 #define IDirect3DDevice9_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
1294 #define IDirect3DDevice9_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
1295 #define IDirect3DDevice9_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
1296 #define IDirect3DDevice9_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
1297 #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
1298 #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
1299 #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
1300 #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
1301 #define IDirect3DDevice9_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
1302 #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
1303 #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
1304 #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
1305 #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
1306 #define IDirect3DDevice9_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
1307 #define IDirect3DDevice9_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
1308 #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
1309 #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
1310 #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
1311 #define IDirect3DDevice9_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
1312 #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
1313 #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
1314 #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
1315 #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
1316 #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
1317 #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b)
1318 #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
1319 #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
1320 #define IDirect3DDevice9_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
1321 #define IDirect3DDevice9_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
1322 #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b)
1323 #define IDirect3DDevice9_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
1324 #define IDirect3DDevice9_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
1325 #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
1326 #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
1327 #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
1328 #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
1329 #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
1330 #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
1331 #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
1332 #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
1333 #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
1334 #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
1335 #define IDirect3DDevice9_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
1336 #define IDirect3DDevice9_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
1337 #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
1338 #define IDirect3DDevice9_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
1339 #define IDirect3DDevice9_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
1340 #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
1341 #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
1342 #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
1343 #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
1344 #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
1345 #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
1346 #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
1347 #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
1348 #define IDirect3DDevice9_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
1349 #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b)
1351 /*** IUnknown methods ***/
1352 #define IDirect3DDevice9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1353 #define IDirect3DDevice9_AddRef(p) (p)->AddRef()
1354 #define IDirect3DDevice9_Release(p) (p)->Release()
1355 /*** IDirect3DDevice9 methods ***/
1356 #define IDirect3DDevice9_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
1357 #define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
1358 #define IDirect3DDevice9_EvictManagedResources(p) (p)->EvictManagedResources()
1359 #define IDirect3DDevice9_GetDirect3D(p,a) (p)->GetDirect3D(a)
1360 #define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
1361 #define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b)
1362 #define IDirect3DDevice9_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
1363 #define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
1364 #define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
1365 #define IDirect3DDevice9_ShowCursor(p,a) (p)->ShowCursor(a)
1366 #define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
1367 #define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b)
1368 #define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains()
1369 #define IDirect3DDevice9_Reset(p,a) (p)->Reset(a)
1370 #define IDirect3DDevice9_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
1371 #define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d)
1372 #define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b)
1373 #define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a)
1374 #define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c)
1375 #define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b)
1376 #define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h)
1377 #define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i)
1378 #define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g)
1379 #define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f)
1380 #define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f)
1381 #define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h)
1382 #define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h)
1383 #define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d)
1384 #define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
1385 #define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b)
1386 #define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b)
1387 #define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e)
1388 #define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c)
1389 #define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f)
1390 #define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
1391 #define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b)
1392 #define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a)
1393 #define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
1394 #define IDirect3DDevice9_BeginScene(p) (p)->BeginScene()
1395 #define IDirect3DDevice9_EndScene(p) (p)->EndScene()
1396 #define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
1397 #define IDirect3DDevice9_SetTransform(p,a,b) (p)->SetTransform(a,b)
1398 #define IDirect3DDevice9_GetTransform(p,a,b) (p)->GetTransform(a,b)
1399 #define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
1400 #define IDirect3DDevice9_SetViewport(p,a) (p)->SetViewport(a)
1401 #define IDirect3DDevice9_GetViewport(p,a) (p)->GetViewport(a)
1402 #define IDirect3DDevice9_SetMaterial(p,a) (p)->SetMaterial(a)
1403 #define IDirect3DDevice9_GetMaterial(p,a) (p)->GetMaterial(a)
1404 #define IDirect3DDevice9_SetLight(p,a,b) (p)->SetLight(a,b)
1405 #define IDirect3DDevice9_GetLight(p,a,b) (p)->GetLight(a,b)
1406 #define IDirect3DDevice9_LightEnable(p,a,b) (p)->LightEnable(a,b)
1407 #define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
1408 #define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
1409 #define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
1410 #define IDirect3DDevice9_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
1411 #define IDirect3DDevice9_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
1412 #define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
1413 #define IDirect3DDevice9_BeginStateBlock(p) (p)->BeginStateBlock()
1414 #define IDirect3DDevice9_EndStateBlock(p,a) (p)->EndStateBlock(a)
1415 #define IDirect3DDevice9_SetClipStatus(p,a) (p)->SetClipStatus(a)
1416 #define IDirect3DDevice9_GetClipStatus(p,a) (p)->GetClipStatus(a)
1417 #define IDirect3DDevice9_GetTexture(p,a,b) (p)->GetTexture(a,b)
1418 #define IDirect3DDevice9_SetTexture(p,a,b) (p)->SetTexture(a,b)
1419 #define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
1420 #define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
1421 #define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c)
1422 #define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c)
1423 #define IDirect3DDevice9_ValidateDevice(p,a) (p)->ValidateDevice(a)
1424 #define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
1425 #define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
1426 #define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
1427 #define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
1428 #define IDirect3DDevice9_SetScissorRect(p,a) (p)->SetScissorRect(a)
1429 #define IDirect3DDevice9_GetScissorRect(p,a) (p)->GetScissorRect(a)
1430 #define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a)
1431 #define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing()
1432 #define IDirect3DDevice9_SetNPatchMode(p,a) (p)->SetNPatchMode(a)
1433 #define IDirect3DDevice9_GetNPatchMode(p) (p)->GetNPatchMode()
1434 #define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
1435 #define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f)
1436 #define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
1437 #define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
1438 #define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f)
1439 #define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b)
1440 #define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a)
1441 #define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a)
1442 #define IDirect3DDevice9_SetFVF(p,a) (p)->SetFVF(a)
1443 #define IDirect3DDevice9_GetFVF(p,a) (p)->GetFVF(a)
1444 #define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b)
1445 #define IDirect3DDevice9_SetVertexShader(p,a) (p)->SetVertexShader(a)
1446 #define IDirect3DDevice9_GetVertexShader(p,a) (p)->GetVertexShader(a)
1447 #define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c)
1448 #define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c)
1449 #define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c)
1450 #define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c)
1451 #define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c)
1452 #define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c)
1453 #define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d)
1454 #define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d)
1455 #define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b)
1456 #define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b)
1457 #define IDirect3DDevice9_SetIndices(p,a) (p)->SetIndices(a)
1458 #define IDirect3DDevice9_GetIndices(p,a) (p)->GetIndices(a)
1459 #define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
1460 #define IDirect3DDevice9_SetPixelShader(p,a) (p)->SetPixelShader(a)
1461 #define IDirect3DDevice9_GetPixelShader(p,a) (p)->GetPixelShader(a)
1462 #define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c)
1463 #define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c)
1464 #define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c)
1465 #define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c)
1466 #define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c)
1467 #define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c)
1468 #define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
1469 #define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
1470 #define IDirect3DDevice9_DeletePatch(p,a) (p)->DeletePatch(a)
1471 #define IDirect3DDevice9_CreateQuery(p,a,b) (p)->CreateQuery(a,b)
1476 #endif /* defined(__cplusplus) */
1478 /* Define the main entrypoint as well */
1479 IDirect3D9
* WINAPI
Direct3DCreate9(UINT SDKVersion
);
1483 #endif /* defined(__cplusplus) */
1486 #endif /* __WINE_D3D9_H */