- split logoff and shutdown resources
[reactos.git] / reactos / w32api / include / d3d8.h
1 /*
2 * Copyright (C) 2002 Jason Edmeades
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19 #ifndef __WINE_D3D8_H
20 #define __WINE_D3D8_H
21
22 #ifndef DIRECT3D_VERSION
23 #define DIRECT3D_VERSION 0x0800
24 #endif
25
26 #include <objbase.h>
27
28 #include <d3d8types.h>
29 #include <d3d8caps.h>
30
31 /*****************************************************************************
32 * Behavior Flags for IDirect3D8::CreateDevice
33 */
34 #define D3DCREATE_FPU_PRESERVE 0x00000002L
35 #define D3DCREATE_MULTITHREADED 0x00000004L
36 #define D3DCREATE_PUREDEVICE 0x00000010L
37 #define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L
38 #define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L
39 #define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L
40
41 /*****************************************************************************
42 * #defines and error codes
43 */
44 #define D3DADAPTER_DEFAULT 0
45 #define D3DENUM_NO_WHQL_LEVEL 2
46
47 #define _FACD3D 0x876
48 #define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code )
49
50 /*
51 * Direct3D Errors
52 */
53 #define D3D_OK S_OK
54 #define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072)
55 #define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073)
56 #define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074)
57 #define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075)
58 #define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076)
59 #define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077)
60 #define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078)
61 #define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079)
62 #define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081)
63 #define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082)
64 #define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086)
65 #define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087)
66
67 #define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150)
68 #define D3DERR_MOREDATA MAKE_D3DHRESULT(2151)
69 #define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152)
70 #define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153)
71 #define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154)
72 #define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380)
73 #define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155)
74 #define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156)
75 #define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157)
76
77 /*****************************************************************************
78 * Predeclare the interfaces
79 */
80 DEFINE_GUID(IID_IDirect3D8, 0x1DD9E8DA,0x1C77,0x4D40,0xB0,0xCF,0x98,0xFE,0xFD,0xFF,0x95,0x12);
81 typedef struct IDirect3D8 IDirect3D8, *LPDIRECT3D8;
82
83 DEFINE_GUID(IID_IDirect3DDevice8, 0x7385E5DF,0x8FE8,0x41D5,0x86,0xB6,0xD7,0xB4,0x85,0x47,0xB6,0xCF);
84 typedef struct IDirect3DDevice8 IDirect3DDevice8, *LPDIRECT3DDEVICE8;
85
86 DEFINE_GUID(IID_IDirect3DResource8, 0x1B36BB7B,0x09B7,0x410A,0xB4,0x45,0x7D,0x14,0x30,0xD7,0xB3,0x3F);
87 typedef struct IDirect3DResource8 IDirect3DResource8, *LPDIRECT3DRESOURCE8, *PDIRECT3DRESOURCE8;
88
89 DEFINE_GUID(IID_IDirect3DVertexBuffer8, 0x8AEEEAC7,0x05F9,0x44D4,0xB5,0x91,0x00,0x0B,0x0D,0xF1,0xCB,0x95);
90 typedef struct IDirect3DVertexBuffer8 IDirect3DVertexBuffer8, *LPDIRECT3DVERTEXBUFFER8, *PDIRECT3DVERTEXBUFFER8;
91
92 DEFINE_GUID(IID_IDirect3DVolume8, 0xBD7349F5,0x14F1,0x42E4,0x9C,0x79,0x97,0x23,0x80,0xDB,0x40,0xC0);
93 typedef struct IDirect3DVolume8 IDirect3DVolume8, *LPDIRECT3DVOLUME8, *PDIRECT3DVOLUME8;
94
95 DEFINE_GUID(IID_IDirect3DSwapChain8, 0x928C088B,0x76B9,0x4C6B,0xA5,0x36,0xA5,0x90,0x85,0x38,0x76,0xCD);
96 typedef struct IDirect3DSwapChain8 IDirect3DSwapChain8, *LPDIRECT3DSWAPCHAIN8, *PDIRECT3DSWAPCHAIN8;
97
98 DEFINE_GUID(IID_IDirect3DSurface8, 0xB96EEBCA,0xB326,0x4EA5,0x88,0x2F,0x2F,0xF5,0xBA,0xE0,0x21,0xDD);
99 typedef struct IDirect3DSurface8 IDirect3DSurface8, *LPDIRECT3DSURFACE8, *PDIRECT3DSURFACE8;
100
101 DEFINE_GUID(IID_IDirect3DIndexBuffer8, 0x0E689C9A,0x053D,0x44A0,0x9D,0x92,0xDB,0x0E,0x3D,0x75,0x0F,0x86);
102 typedef struct IDirect3DIndexBuffer8 IDirect3DIndexBuffer8, *LPDIRECT3DINDEXBUFFER8, *PDIRECT3DINDEXBUFFER8;
103
104 DEFINE_GUID(IID_IDirect3DBaseTexture8, 0xB4211CFA,0x51B9,0x4A9F,0xAB,0x78,0xDB,0x99,0xB2,0xBB,0x67,0x8E);
105 typedef struct IDirect3DBaseTexture8 IDirect3DBaseTexture8, *LPDIRECT3DBASETEXTURE8, *PDIRECT3DBASETEXTURE8;
106
107 DEFINE_GUID(IID_IDirect3DTexture8, 0xE4CDD575,0x2866,0x4F01,0xB1,0x2E,0x7E,0xEC,0xE1,0xEC,0x93,0x58);
108 typedef struct IDirect3DTexture8 IDirect3DTexture8, *LPDIRECT3DTEXTURE8, *PDIRECT3DTEXTURE8;
109
110 DEFINE_GUID(IID_IDirect3DCubeTexture8, 0x3EE5B968,0x2ACA,0x4C34,0x8B,0xB5,0x7E,0x0C,0x3D,0x19,0xB7,0x50);
111 typedef struct IDirect3DCubeTexture8 IDirect3DCubeTexture8, *LPDIRECT3DCUBETEXTURE8, *PDIRECT3DCUBETEXTURE8;
112
113 DEFINE_GUID(IID_IDirect3DVolumeTexture8, 0x4B8AAAFA,0x140F,0x42BA,0x91,0x31,0x59,0x7E,0xAF,0xAA,0x2E,0xAD);
114 typedef struct IDirect3DVolumeTexture8 IDirect3DVolumeTexture8, *LPDIRECT3DVOLUMETEXTURE8, *PDIRECT3DVOLUMETEXTURE8;
115
116 /*****************************************************************************
117 * IDirect3D8 interface
118 */
119 #define INTERFACE IDirect3D8
120 DECLARE_INTERFACE_(IDirect3D8,IUnknown)
121 {
122 /*** IUnknown methods ***/
123 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
124 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
125 STDMETHOD_(ULONG,Release)(THIS) PURE;
126 /*** IDirect3D8 methods ***/
127 STDMETHOD(RegisterSoftwareDevice)(THIS_ void * pInitializeFunction) PURE;
128 STDMETHOD_(UINT,GetAdapterCount )(THIS) PURE;
129 STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, D3DADAPTER_IDENTIFIER8 * pIdentifier) PURE;
130 STDMETHOD_(UINT,GetAdapterModeCount)(THIS_ UINT Adapter) PURE;
131 STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, UINT Mode, D3DDISPLAYMODE * pMode) PURE;
132 STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, D3DDISPLAYMODE * pMode) PURE;
133 STDMETHOD(CheckDeviceType)(THIS_ UINT Adapter, D3DDEVTYPE CheckType, D3DFORMAT DisplayFormat, D3DFORMAT BackBufferFormat, BOOL Windowed) PURE;
134 STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, DWORD Usage, D3DRESOURCETYPE RType, D3DFORMAT CheckFormat) PURE;
135 STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT SurfaceFormat, BOOL Windowed, D3DMULTISAMPLE_TYPE MultiSampleType) PURE;
136 STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DFORMAT AdapterFormat, D3DFORMAT RenderTargetFormat, D3DFORMAT DepthStencilFormat) PURE;
137 STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType, D3DCAPS8 * pCaps) PURE;
138 STDMETHOD_(HMONITOR,GetAdapterMonitor)(THIS_ UINT Adapter) PURE;
139 STDMETHOD(CreateDevice)(THIS_ UINT Adapter, D3DDEVTYPE DeviceType,HWND hFocusWindow, DWORD BehaviorFlags, D3DPRESENT_PARAMETERS * pPresentationParameters, IDirect3DDevice8 ** ppReturnedDeviceInterface) PURE;
140 };
141 #undef INTERFACE
142
143 #if !defined(__cplusplus) || defined(CINTERFACE)
144 /*** IUnknown methods ***/
145 #define IDirect3D8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
146 #define IDirect3D8_AddRef(p) (p)->lpVtbl->AddRef(p)
147 #define IDirect3D8_Release(p) (p)->lpVtbl->Release(p)
148 /*** IDirect3D8 methods ***/
149 #define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
150 #define IDirect3D8_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
151 #define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
152 #define IDirect3D8_GetAdapterModeCount(p,a) (p)->lpVtbl->GetAdapterModeCount(p,a)
153 #define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->lpVtbl->EnumAdapterModes(p,a,b,c)
154 #define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
155 #define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
156 #define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
157 #define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e)
158 #define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
159 #define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
160 #define IDirect3D8_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
161 #define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
162 #else
163 /*** IUnknown methods ***/
164 #define IDirect3D8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
165 #define IDirect3D8_AddRef(p) (p)->AddRef()
166 #define IDirect3D8_Release(p) (p)->Release()
167 /*** IDirect3D8 methods ***/
168 #define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a)
169 #define IDirect3D8_GetAdapterCount(p) (p)->GetAdapterCount()
170 #define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c)
171 #define IDirect3D8_GetAdapterModeCount(p,a) (p)->GetAdapterModeCount(a)
172 #define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->EnumAdapterModes(a,b,c)
173 #define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b)
174 #define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e)
175 #define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f)
176 #define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->CheckDeviceMultiSampleType(a,b,c,d,e)
177 #define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e)
178 #define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c)
179 #define IDirect3D8_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a)
180 #define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f)
181 #endif
182
183 /*****************************************************************************
184 * IDirect3DDevice8 interface
185 */
186 #define INTERFACE IDirect3DDevice8
187 DECLARE_INTERFACE_(IDirect3DDevice8,IUnknown)
188 {
189 /*** IUnknown methods ***/
190 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
191 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
192 STDMETHOD_(ULONG,Release)(THIS) PURE;
193 /*** IDirect3DDevice8 methods ***/
194 STDMETHOD(TestCooperativeLevel)(THIS) PURE;
195 STDMETHOD_(UINT,GetAvailableTextureMem)(THIS) PURE;
196 STDMETHOD(ResourceManagerDiscardBytes)(THIS_ DWORD Bytes) PURE;
197 STDMETHOD(GetDirect3D)(THIS_ IDirect3D8 ** ppD3D8) PURE;
198 STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS8 * pCaps) PURE;
199 STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE * pMode) PURE;
200 STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS * pParameters) PURE;
201 STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, IDirect3DSurface8 * pCursorBitmap) PURE;
202 STDMETHOD_(void,SetCursorPosition)(THIS_ UINT XScreenSpace, UINT YScreenSpace,DWORD Flags) PURE;
203 STDMETHOD_(BOOL,ShowCursor)(THIS_ BOOL bShow) PURE;
204 STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS * pPresentationParameters, IDirect3DSwapChain8 ** pSwapChain) PURE;
205 STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS * pPresentationParameters) PURE;
206 STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect,CONST RECT * pDestRect,HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE;
207 STDMETHOD(GetBackBuffer)(THIS_ UINT BackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface8 ** ppBackBuffer) PURE;
208 STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS * pRasterStatus) PURE;
209 STDMETHOD_(void,SetGammaRamp)(THIS_ DWORD Flags,CONST D3DGAMMARAMP * pRamp) PURE;
210 STDMETHOD_(void,GetGammaRamp)(THIS_ D3DGAMMARAMP * pRamp) PURE;
211 STDMETHOD(CreateTexture)(THIS_ UINT Width,UINT Height,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DTexture8 ** ppTexture) PURE;
212 STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width,UINT Height,UINT Depth,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DVolumeTexture8 ** ppVolumeTexture) PURE;
213 STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DCubeTexture8 ** ppCubeTexture) PURE;
214 STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length,DWORD Usage,DWORD FVF,D3DPOOL Pool,IDirect3DVertexBuffer8 ** ppVertexBuffer) PURE;
215 STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DIndexBuffer8 ** ppIndexBuffer) PURE;
216 STDMETHOD(CreateRenderTarget)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,BOOL Lockable,IDirect3DSurface8 ** ppSurface) PURE;
217 STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,IDirect3DSurface8 ** ppSurface) PURE;
218 STDMETHOD(CreateImageSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,IDirect3DSurface8 ** ppSurface) PURE;
219 STDMETHOD(CopyRects)(THIS_ IDirect3DSurface8 * pSourceSurface,CONST RECT * pSourceRectsArray,UINT cRects,IDirect3DSurface8 * pDestinationSurface,CONST POINT * pDestPointsArray) PURE;
220 STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture8 * pSourceTexture,IDirect3DBaseTexture8 * pDestinationTexture) PURE;
221 STDMETHOD(GetFrontBuffer)(THIS_ IDirect3DSurface8 * pDestSurface) PURE;
222 STDMETHOD(SetRenderTarget)(THIS_ IDirect3DSurface8 * pRenderTarget,IDirect3DSurface8 * pNewZStencil) PURE;
223 STDMETHOD(GetRenderTarget)(THIS_ IDirect3DSurface8 ** ppRenderTarget) PURE;
224 STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface8 ** ppZStencilSurface) PURE;
225 STDMETHOD(BeginScene)(THIS) PURE;
226 STDMETHOD(EndScene)(THIS) PURE;
227 STDMETHOD(Clear)(THIS_ DWORD Count,CONST D3DRECT * pRects,DWORD Flags,D3DCOLOR Color,float Z,DWORD Stencil) PURE;
228 STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,CONST D3DMATRIX * pMatrix) PURE;
229 STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,D3DMATRIX * pMatrix) PURE;
230 STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE State, CONST D3DMATRIX * pMatrix) PURE;
231 STDMETHOD(SetViewport)(THIS_ CONST D3DVIEWPORT8 * pViewport) PURE;
232 STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT8 * pViewport) PURE;
233 STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL8 * pMaterial) PURE;
234 STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL8 *pMaterial) PURE;
235 STDMETHOD(SetLight)(THIS_ DWORD Index,CONST D3DLIGHT8 * pLight) PURE;
236 STDMETHOD(GetLight)(THIS_ DWORD Index,D3DLIGHT8 * pLight) PURE;
237 STDMETHOD(LightEnable)(THIS_ DWORD Index,BOOL Enable) PURE;
238 STDMETHOD(GetLightEnable)(THIS_ DWORD Index,BOOL * pEnable) PURE;
239 STDMETHOD(SetClipPlane)(THIS_ DWORD Index,CONST float * pPlane) PURE;
240 STDMETHOD(GetClipPlane)(THIS_ DWORD Index,float * pPlane) PURE;
241 STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD Value) PURE;
242 STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD * pValue) PURE;
243 STDMETHOD(BeginStateBlock)(THIS) PURE;
244 STDMETHOD(EndStateBlock)(THIS_ DWORD * pToken) PURE;
245 STDMETHOD(ApplyStateBlock)(THIS_ DWORD Token) PURE;
246 STDMETHOD(CaptureStateBlock)(THIS_ DWORD Token) PURE;
247 STDMETHOD(DeleteStateBlock)(THIS_ DWORD Token) PURE;
248 STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type,DWORD * pToken) PURE;
249 STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS8 * pClipStatus) PURE;
250 STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS8 * pClipStatus) PURE;
251 STDMETHOD(GetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8 ** ppTexture) PURE;
252 STDMETHOD(SetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8 * pTexture) PURE;
253 STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD * pValue) PURE;
254 STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE;
255 STDMETHOD(ValidateDevice)(THIS_ DWORD * pNumPasses) PURE;
256 STDMETHOD(GetInfo)(THIS_ DWORD DevInfoID,void * pDevInfoStruct,DWORD DevInfoStructSize) PURE;
257 STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber,CONST PALETTEENTRY * pEntries) PURE;
258 STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY * pEntries) PURE;
259 STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE;
260 STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT * PaletteNumber) PURE;
261 STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE;
262 STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT minIndex,UINT NumVertices,UINT startIndex,UINT primCount) PURE;
263 STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT PrimitiveCount,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;
264 STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT MinVertexIndex,UINT NumVertexIndices,UINT PrimitiveCount,CONST void * pIndexData,D3DFORMAT IndexDataFormat,CONST void * pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;
265 STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex,UINT DestIndex,UINT VertexCount,IDirect3DVertexBuffer8 * pDestBuffer,DWORD Flags) PURE;
266 STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD * pDeclaration,CONST DWORD * pFunction,DWORD * pHandle,DWORD Usage) PURE;
267 STDMETHOD(SetVertexShader)(THIS_ DWORD Handle) PURE;
268 STDMETHOD(GetVertexShader)(THIS_ DWORD * pHandle) PURE;
269 STDMETHOD(DeleteVertexShader)(THIS_ DWORD Handle) PURE;
270 STDMETHOD(SetVertexShaderConstant)(THIS_ DWORD Register,CONST void * pConstantData,DWORD ConstantCount) PURE;
271 STDMETHOD(GetVertexShaderConstant)(THIS_ DWORD Register,void * pConstantData,DWORD ConstantCount) PURE;
272 STDMETHOD(GetVertexShaderDeclaration)(THIS_ DWORD Handle,void * pData,DWORD * pSizeOfData) PURE;
273 STDMETHOD(GetVertexShaderFunction)(THIS_ DWORD Handle,void * pData,DWORD * pSizeOfData) PURE;
274 STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8 * pStreamData,UINT Stride) PURE;
275 STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8 ** ppStreamData,UINT * pStride) PURE;
276 STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer8 * pIndexData,UINT BaseVertexIndex) PURE;
277 STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer8 ** ppIndexData,UINT * pBaseVertexIndex) PURE;
278 STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD * pFunction,DWORD * pHandle) PURE;
279 STDMETHOD(SetPixelShader)(THIS_ DWORD Handle) PURE;
280 STDMETHOD(GetPixelShader)(THIS_ DWORD * pHandle) PURE;
281 STDMETHOD(DeletePixelShader)(THIS_ DWORD Handle) PURE;
282 STDMETHOD(SetPixelShaderConstant)(THIS_ DWORD Register,CONST void * pConstantData,DWORD ConstantCount) PURE;
283 STDMETHOD(GetPixelShaderConstant)(THIS_ DWORD Register,void * pConstantData,DWORD ConstantCount) PURE;
284 STDMETHOD(GetPixelShaderFunction)(THIS_ DWORD Handle,void * pData,DWORD * pSizeOfData) PURE;
285 STDMETHOD(DrawRectPatch)(THIS_ UINT Handle,CONST float * pNumSegs,CONST D3DRECTPATCH_INFO * pRectPatchInfo) PURE;
286 STDMETHOD(DrawTriPatch)(THIS_ UINT Handle,CONST float * pNumSegs,CONST D3DTRIPATCH_INFO * pTriPatchInfo) PURE;
287 STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE;
288 };
289 #undef INTERFACE
290
291 #if !defined(__cplusplus) || defined(CINTERFACE)
292 /*** IUnknown methods ***/
293 #define IDirect3DDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
294 #define IDirect3DDevice8_AddRef(p) (p)->lpVtbl->AddRef(p)
295 #define IDirect3DDevice8_Release(p) (p)->lpVtbl->Release(p)
296 /*** IDirect3DDevice8 methods ***/
297 #define IDirect3DDevice8_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
298 #define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
299 #define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->lpVtbl->ResourceManagerDiscardBytes(p,a)
300 #define IDirect3DDevice8_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
301 #define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
302 #define IDirect3DDevice8_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
303 #define IDirect3DDevice8_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
304 #define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
305 #define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
306 #define IDirect3DDevice8_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
307 #define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
308 #define IDirect3DDevice8_Reset(p,a) (p)->lpVtbl->Reset(p,a)
309 #define IDirect3DDevice8_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
310 #define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
311 #define IDirect3DDevice8_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
312 #define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)
313 #define IDirect3DDevice8_GetGammaRamp(p,a) (p)->lpVtbl->GetGammaRamp(p,a)
314 #define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g)
315 #define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h)
316 #define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f)
317 #define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e)
318 #define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e)
319 #define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f)
320 #define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e)
321 #define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->lpVtbl->CreateImageSurface(p,a,b,c,d)
322 #define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->lpVtbl->CopyRects(p,a,b,c,d,e)
323 #define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
324 #define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->lpVtbl->GetFrontBuffer(p,a)
325 #define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
326 #define IDirect3DDevice8_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
327 #define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
328 #define IDirect3DDevice8_BeginScene(p) (p)->lpVtbl->BeginScene(p)
329 #define IDirect3DDevice8_EndScene(p) (p)->lpVtbl->EndScene(p)
330 #define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
331 #define IDirect3DDevice8_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
332 #define IDirect3DDevice8_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
333 #define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
334 #define IDirect3DDevice8_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
335 #define IDirect3DDevice8_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
336 #define IDirect3DDevice8_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
337 #define IDirect3DDevice8_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
338 #define IDirect3DDevice8_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
339 #define IDirect3DDevice8_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
340 #define IDirect3DDevice8_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
341 #define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
342 #define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
343 #define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
344 #define IDirect3DDevice8_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
345 #define IDirect3DDevice8_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
346 #define IDirect3DDevice8_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
347 #define IDirect3DDevice8_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
348 #define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a)
349 #define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a)
350 #define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a)
351 #define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
352 #define IDirect3DDevice8_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
353 #define IDirect3DDevice8_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
354 #define IDirect3DDevice8_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
355 #define IDirect3DDevice8_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
356 #define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
357 #define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
358 #define IDirect3DDevice8_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
359 #define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)
360 #define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
361 #define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
362 #define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
363 #define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
364 #define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
365 #define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e)
366 #define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
367 #define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
368 #define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->lpVtbl->processVertices(p,a,b,c,d,e)
369 #define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d)
370 #define IDirect3DDevice8_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
371 #define IDirect3DDevice8_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
372 #define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->lpVtbl->DeleteVertexShader(p,a)
373 #define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstant(p,a,b,c)
374 #define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstant(p,a,b,c)
375 #define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->lpVtbl->GetVertexShaderDeclaration(p,a,b,c)
376 #define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->lpVtbl->GetVertexShaderFunction(p,a,b,c)
377 #define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->lpVtbl->SetStreamSource(p,a,b,c)
378 #define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->lpVtbl->GetStreamSource(p,a,b,c)
379 #define IDirect3DDevice8_SetIndices(p,a,b) (p)->lpVtbl->SetIndices(p,a,b)
380 #define IDirect3DDevice8_GetIndices(p,a,b) (p)->lpVtbl->GetIndices(p,a,b)
381 #define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
382 #define IDirect3DDevice8_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
383 #define IDirect3DDevice8_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
384 #define IDirect3DDevice8_DeletePixelShader(p,a) (p)->lpVtbl->DeletePixelShader(p,a)
385 #define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstant(p,a,b,c)
386 #define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstant(p,a,b,c)
387 #define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->lpVtbl->GetPixelShaderFunction(p,a,b,c)
388 #define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
389 #define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
390 #define IDirect3DDevice8_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
391 #else
392 /*** IUnknown methods ***/
393 #define IDirect3DDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
394 #define IDirect3DDevice8_AddRef(p) (p)->AddRef()
395 #define IDirect3DDevice8_Release(p) (p)->Release()
396 /*** IDirect3DDevice8 methods ***/
397 #define IDirect3DDevice8_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
398 #define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
399 #define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->ResourceManagerDiscardBytes(a)
400 #define IDirect3DDevice8_GetDirect3D(p,a) (p)->GetDirect3D(a)
401 #define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
402 #define IDirect3DDevice8_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
403 #define IDirect3DDevice8_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
404 #define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
405 #define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
406 #define IDirect3DDevice8_ShowCursor(p,a) (p)->ShowCursor(a)
407 #define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
408 #define IDirect3DDevice8_Reset(p,a) (p)->Reset(a)
409 #define IDirect3DDevice8_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
410 #define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
411 #define IDirect3DDevice8_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
412 #define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->SetGammaRamp(a,b)
413 #define IDirect3DDevice8_GetGammaRamp(p,a) (p)->GetGammaRamp(a)
414 #define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->CreateTexture(a,b,c,d,e,f,g)
415 #define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h)
416 #define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->CreateCubeTexture(a,b,c,d,e,f)
417 #define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->CreateVertexBuffer(a,b,c,d,e)
418 #define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->CreateIndexBuffer(a,b,c,d,e)
419 #define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->CreateRenderTarget(a,b,c,d,e,f)
420 #define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->CreateDepthStencilSurface(a,b,c,d,e)
421 #define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->CreateImageSurface(a,b,c,d)
422 #define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->CopyRects(a,b,c,d,e)
423 #define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
424 #define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->GetFrontBuffer(a)
425 #define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
426 #define IDirect3DDevice8_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
427 #define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
428 #define IDirect3DDevice8_BeginScene(p) (p)->BeginScene()
429 #define IDirect3DDevice8_EndScene(p) (p)->EndScene()
430 #define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
431 #define IDirect3DDevice8_SetTransform(p,a,b) (p)->SetTransform(a,b)
432 #define IDirect3DDevice8_GetTransform(p,a,b) (p)->GetTransform(a,b)
433 #define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
434 #define IDirect3DDevice8_SetViewport(p,a) (p)->SetViewport(a)
435 #define IDirect3DDevice8_GetViewport(p,a) (p)->GetViewport(a)
436 #define IDirect3DDevice8_SetMaterial(p,a) (p)->SetMaterial(a)
437 #define IDirect3DDevice8_GetMaterial(p,a) (p)->GetMaterial(a)
438 #define IDirect3DDevice8_SetLight(p,a,b) (p)->SetLight(a,b)
439 #define IDirect3DDevice8_GetLight(p,a,b) (p)->GetLight(a,b)
440 #define IDirect3DDevice8_LightEnable(p,a,b) (p)->LightEnable(a,b)
441 #define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
442 #define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
443 #define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
444 #define IDirect3DDevice8_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
445 #define IDirect3DDevice8_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
446 #define IDirect3DDevice8_BeginStateBlock(p) (p)->BeginStateBlock()
447 #define IDirect3DDevice8_EndStateBlock(p,a) (p)->EndStateBlock(a)
448 #define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a)
449 #define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a)
450 #define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a)
451 #define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
452 #define IDirect3DDevice8_SetClipStatus(p,a) (p)->SetClipStatus(a)
453 #define IDirect3DDevice8_GetClipStatus(p,a) (p)->GetClipStatus(a)
454 #define IDirect3DDevice8_GetTexture(p,a,b) (p)->GetTexture(a,b)
455 #define IDirect3DDevice8_SetTexture(p,a,b) (p)->SetTexture(a,b)
456 #define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
457 #define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
458 #define IDirect3DDevice8_ValidateDevice(p,a) (p)->ValidateDevice(a)
459 #define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c)
460 #define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
461 #define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
462 #define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
463 #define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
464 #define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
465 #define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->DrawIndexedPrimitive(a,b,c,d,e)
466 #define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
467 #define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
468 #define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->processVertices(a,b,c,d,e)
469 #define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->CreateVertexShader(a,b,c,d)
470 #define IDirect3DDevice8_SetVertexShader(p,a) (p)->SetVertexShader(a)
471 #define IDirect3DDevice8_GetVertexShader(p,a) (p)->GetVertexShader(a)
472 #define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->DeleteVertexShader(a)
473 #define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->SetVertexShaderConstant(a,b,c)
474 #define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->GetVertexShaderConstant(a,b,c)
475 #define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->GetVertexShaderDeclaration(a,b,c)
476 #define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->GetVertexShaderFunction(a,b,c)
477 #define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->SetStreamSource(a,b,c)
478 #define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->GetStreamSource(a,b,c)
479 #define IDirect3DDevice8_SetIndices(p,a,b) (p)->SetIndices(a,b)
480 #define IDirect3DDevice8_GetIndices(p,a,b) (p)->GetIndices(a,b)
481 #define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
482 #define IDirect3DDevice8_SetPixelShader(p,a) (p)->SetPixelShader(a)
483 #define IDirect3DDevice8_GetPixelShader(p,a) (p)->GetPixelShader(a)
484 #define IDirect3DDevice8_DeletePixelShader(p,a) (p)->DeletePixelShader(a)
485 #define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->SetPixelShaderConstant(a,b,c)
486 #define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->GetPixelShaderConstant(a,b,c)
487 #define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->GetPixelShaderFunction(a,b,c)
488 #define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
489 #define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
490 #define IDirect3DDevice8_DeletePatch(p,a) (p)->DeletePatch(a)
491 #endif
492
493 /*****************************************************************************
494 * IDirect3DVolume8 interface
495 */
496 #define INTERFACE IDirect3DVolume8
497 DECLARE_INTERFACE_(IDirect3DVolume8,IUnknown)
498 {
499 /*** IUnknown methods ***/
500 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
501 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
502 STDMETHOD_(ULONG,Release)(THIS) PURE;
503 /*** IDirect3DVolume8 methods ***/
504 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8 ** ppDevice) PURE;
505 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
506 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void * pData, DWORD * pSizeOfData) PURE;
507 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
508 STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE;
509 STDMETHOD(GetDesc)(THIS_ D3DVOLUME_DESC * pDesc) PURE;
510 STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX * pLockedVolume,CONST D3DBOX * pBox, DWORD Flags) PURE;
511 STDMETHOD(UnlockBox)(THIS) PURE;
512 };
513 #undef INTERFACE
514
515 #if !defined(__cplusplus) || defined(CINTERFACE)
516 /*** IUnknown methods ***/
517 #define IDirect3DVolume8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
518 #define IDirect3DVolume8_AddRef(p) (p)->lpVtbl->AddRef(p)
519 #define IDirect3DVolume8_Release(p) (p)->lpVtbl->Release(p)
520 /*** IDirect3DVolume8 methods ***/
521 #define IDirect3DVolume8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
522 #define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
523 #define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
524 #define IDirect3DVolume8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
525 #define IDirect3DVolume8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
526 #define IDirect3DVolume8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
527 #define IDirect3DVolume8_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
528 #define IDirect3DVolume8_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
529 #else
530 /*** IUnknown methods ***/
531 #define IDirect3DVolume8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
532 #define IDirect3DVolume8_AddRef(p) (p)->AddRef()
533 #define IDirect3DVolume8_Release(p) (p)->Release()
534 /*** IDirect3DVolume8 methods ***/
535 #define IDirect3DVolume8_GetDevice(p,a) (p)->GetDevice(a)
536 #define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
537 #define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
538 #define IDirect3DVolume8_FreePrivateData(p,a) (p)->FreePrivateData(a)
539 #define IDirect3DVolume8_GetContainer(p,a,b) (p)->GetContainer(a,b)
540 #define IDirect3DVolume8_GetDesc(p,a) (p)->GetDesc(a)
541 #define IDirect3DVolume8_LockBox(p,a,b,c) (p)->LockBox(a,b,c)
542 #define IDirect3DVolume8_UnlockBox(p) (p)->UnlockBox()
543 #endif
544
545 /*****************************************************************************
546 * IDirect3DSwapChain8 interface
547 */
548 #define INTERFACE IDirect3DSwapChain8
549 DECLARE_INTERFACE_(IDirect3DSwapChain8,IUnknown)
550 {
551 /*** IUnknown methods ***/
552 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
553 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
554 STDMETHOD_(ULONG,Release)(THIS) PURE;
555 /*** IDirect3DSwapChain8 methods ***/
556 STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect, CONST RECT * pDestRect, HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE;
557 STDMETHOD(GetBackBuffer)(THIS_ UINT BackBuffer, D3DBACKBUFFER_TYPE Type,IDirect3DSurface8 ** ppBackBuffer) PURE;
558 };
559 #undef INTERFACE
560
561 #if !defined(__cplusplus) || defined(CINTERFACE)
562 /*** IUnknown methods ***/
563 #define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
564 #define IDirect3DSwapChain8_AddRef(p) (p)->lpVtbl->AddRef(p)
565 #define IDirect3DSwapChain8_Release(p) (p)->lpVtbl->Release(p)
566 /*** IDirect3DSwapChain8 methods ***/
567 #define IDirect3DSwapChain8_Present(p,a,b,c) (p)->lpVtbl->Present(p,a,b,c)
568 #define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
569 #else
570 /*** IUnknown methods ***/
571 #define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
572 #define IDirect3DSwapChain8_AddRef(p) (p)->AddRef()
573 #define IDirect3DSwapChain8_Release(p) (p)->Release()
574 /*** IDirect3DSwapChain8 methods ***/
575 #define IDirect3DSwapChain8_Present(p,a,b,c) (p)->Present(a,b,c)
576 #define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d)
577 #endif
578
579 /*****************************************************************************
580 * IDirect3DSurface8 interface
581 */
582 #define INTERFACE IDirect3DSurface8
583 DECLARE_INTERFACE_(IDirect3DSurface8,IUnknown)
584 {
585 /*** IUnknown methods ***/
586 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
587 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
588 STDMETHOD_(ULONG,Release)(THIS) PURE;
589 /*** IDirect3DSurface8 methods ***/
590 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8 ** ppDevice) PURE;
591 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void * pData,DWORD SizeOfData,DWORD Flags) PURE;
592 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void * pData,DWORD * pSizeOfData) PURE;
593 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
594 STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE;
595 STDMETHOD(GetDesc)(THIS_ D3DSURFACE_DESC * pDesc) PURE;
596 STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT * pLockedRect, CONST RECT * pRect,DWORD Flags) PURE;
597 STDMETHOD(UnlockRect)(THIS) PURE;
598 };
599 #undef INTERFACE
600
601 #if !defined(__cplusplus) || defined(CINTERFACE)
602 /*** IUnknown methods ***/
603 #define IDirect3DSurface8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
604 #define IDirect3DSurface8_AddRef(p) (p)->lpVtbl->AddRef(p)
605 #define IDirect3DSurface8_Release(p) (p)->lpVtbl->Release(p)
606 /*** IDirect3DSurface8 methods ***/
607 #define IDirect3DSurface8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
608 #define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
609 #define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
610 #define IDirect3DSurface8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
611 #define IDirect3DSurface8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
612 #define IDirect3DSurface8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
613 #define IDirect3DSurface8_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
614 #define IDirect3DSurface8_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
615 #else
616 /*** IUnknown methods ***/
617 #define IDirect3DSurface8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
618 #define IDirect3DSurface8_AddRef(p) (p)->AddRef()
619 #define IDirect3DSurface8_Release(p) (p)->Release()
620 /*** IDirect3DSurface8 methods ***/
621 #define IDirect3DSurface8_GetDevice(p,a) (p)->GetDevice(a)
622 #define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
623 #define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
624 #define IDirect3DSurface8_FreePrivateData(p,a) (p)->FreePrivateData(a)
625 #define IDirect3DSurface8_GetContainer(p,a,b) (p)->GetContainer(a,b)
626 #define IDirect3DSurface8_GetDesc(p,a) (p)->GetDesc(a)
627 #define IDirect3DSurface8_LockRect(p,a,b,c) (p)->LockRect(a,b,c)
628 #define IDirect3DSurface8_UnlockRect(p) (p)->UnlockRect()
629 #endif
630
631 /*****************************************************************************
632 * IDirect3DResource8 interface
633 */
634 #define INTERFACE IDirect3DResource8
635 DECLARE_INTERFACE_(IDirect3DResource8,IUnknown)
636 {
637 /*** IUnknown methods ***/
638 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
639 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
640 STDMETHOD_(ULONG,Release)(THIS) PURE;
641 /*** IDirect3DResource8 methods ***/
642 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8 ** ppDevice) PURE;
643 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
644 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
645 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
646 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
647 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
648 STDMETHOD_(void,PreLoad)(THIS) PURE;
649 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
650 };
651 #undef INTERFACE
652
653 #if !defined(__cplusplus) || defined(CINTERFACE)
654 /*** IUnknown methods ***/
655 #define IDirect3DResource8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
656 #define IDirect3DResource8_AddRef(p) (p)->lpVtbl->AddRef(p)
657 #define IDirect3DResource8_Release(p) (p)->lpVtbl->Release(p)
658 /*** IDirect3DResource8 methods ***/
659 #define IDirect3DResource8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
660 #define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
661 #define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
662 #define IDirect3DResource8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
663 #define IDirect3DResource8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
664 #define IDirect3DResource8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
665 #define IDirect3DResource8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
666 #define IDirect3DResource8_GetType(p) (p)->lpVtbl->GetType(p)
667 #else
668 /*** IUnknown methods ***/
669 #define IDirect3DResource8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
670 #define IDirect3DResource8_AddRef(p) (p)->AddRef()
671 #define IDirect3DResource8_Release(p) (p)->Release()
672 /*** IDirect3DResource8 methods ***/
673 #define IDirect3DResource8_GetDevice(p,a) (p)->GetDevice(a)
674 #define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
675 #define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
676 #define IDirect3DResource8_FreePrivateData(p,a) (p)->FreePrivateData(a)
677 #define IDirect3DResource8_SetPriority(p,a) (p)->SetPriority(a)
678 #define IDirect3DResource8_GetPriority(p) (p)->GetPriority()
679 #define IDirect3DResource8_PreLoad(p) (p)->PreLoad()
680 #define IDirect3DResource8_GetType(p) (p)->GetType()
681 #endif
682
683 /*****************************************************************************
684 * IDirect3DVertexBuffer8 interface
685 */
686 #define INTERFACE IDirect3DVertexBuffer8
687 DECLARE_INTERFACE_(IDirect3DVertexBuffer8,IDirect3DResource8)
688 {
689 /*** IUnknown methods ***/
690 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
691 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
692 STDMETHOD_(ULONG,Release)(THIS) PURE;
693 /*** IDirect3DResource8 methods ***/
694 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8 ** ppDevice) PURE;
695 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
696 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
697 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
698 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
699 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
700 STDMETHOD_(void,PreLoad)(THIS) PURE;
701 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
702 /*** IDirect3DVertexBuffer8 methods ***/
703 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE;
704 STDMETHOD(Unlock)(THIS) PURE;
705 STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC * pDesc) PURE;
706 };
707 #undef INTERFACE
708
709 #if !defined(__cplusplus) || defined(CINTERFACE)
710 /*** IUnknown methods ***/
711 #define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
712 #define IDirect3DVertexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
713 #define IDirect3DVertexBuffer8_Release(p) (p)->lpVtbl->Release(p)
714 /*** IDirect3DVertexBuffer8 methods: IDirect3DResource8 ***/
715 #define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
716 #define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
717 #define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
718 #define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
719 #define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
720 #define IDirect3DVertexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
721 #define IDirect3DVertexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
722 #define IDirect3DVertexBuffer8_GetType(p) (p)->lpVtbl->GetType(p)
723 /*** IDirect3DVertexBuffer8 methods ***/
724 #define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
725 #define IDirect3DVertexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p)
726 #define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
727 #else
728 /*** IUnknown methods ***/
729 #define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
730 #define IDirect3DVertexBuffer8_AddRef(p) (p)->AddRef()
731 #define IDirect3DVertexBuffer8_Release(p) (p)->Release()
732 /*** IDirect3DVertexBuffer8 methods: IDirect3DResource8 ***/
733 #define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->GetDevice(a)
734 #define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
735 #define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
736 #define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a)
737 #define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->SetPriority(a)
738 #define IDirect3DVertexBuffer8_GetPriority(p) (p)->GetPriority()
739 #define IDirect3DVertexBuffer8_PreLoad(p) (p)->PreLoad()
740 #define IDirect3DVertexBuffer8_GetType(p) (p)->GetType()
741 /*** IDirect3DVertexBuffer8 methods ***/
742 #define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
743 #define IDirect3DVertexBuffer8_Unlock(p) (p)->Unlock()
744 #define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->GetDesc(a)
745 #endif
746
747 /*****************************************************************************
748 * IDirect3DIndexBuffer8 interface
749 */
750 #define INTERFACE IDirect3DIndexBuffer8
751 DECLARE_INTERFACE_(IDirect3DIndexBuffer8,IDirect3DResource8)
752 {
753 /*** IUnknown methods ***/
754 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
755 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
756 STDMETHOD_(ULONG,Release)(THIS) PURE;
757 /*** IDirect3DResource8 methods ***/
758 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8 ** ppDevice) PURE;
759 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
760 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
761 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
762 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
763 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
764 STDMETHOD_(void,PreLoad)(THIS) PURE;
765 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
766 /*** IDirect3DIndexBuffer8 methods ***/
767 STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE;
768 STDMETHOD(Unlock)(THIS) PURE;
769 STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC * pDesc) PURE;
770 };
771 #undef INTERFACE
772
773 #if !defined(__cplusplus) || defined(CINTERFACE)
774 /*** IUnknown methods ***/
775 #define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
776 #define IDirect3DIndexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)
777 #define IDirect3DIndexBuffer8_Release(p) (p)->lpVtbl->Release(p)
778 /*** IDirect3DIndexBuffer8 methods: IDirect3DResource8 ***/
779 #define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
780 #define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
781 #define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
782 #define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
783 #define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
784 #define IDirect3DIndexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
785 #define IDirect3DIndexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
786 #define IDirect3DIndexBuffer8_GetType(p) (p)->lpVtbl->GetType(p)
787 /*** IDirect3DIndexBuffer8 methods ***/
788 #define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
789 #define IDirect3DIndexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p)
790 #define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
791 #else
792 /*** IUnknown methods ***/
793 #define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
794 #define IDirect3DIndexBuffer8_AddRef(p) (p)->AddRef()
795 #define IDirect3DIndexBuffer8_Release(p) (p)->Release()
796 /*** IDirect3DIndexBuffer8 methods: IDirect3DResource8 ***/
797 #define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->GetDevice(a)
798 #define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
799 #define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
800 #define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a)
801 #define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->SetPriority(a)
802 #define IDirect3DIndexBuffer8_GetPriority(p) (p)->GetPriority()
803 #define IDirect3DIndexBuffer8_PreLoad(p) (p)->PreLoad()
804 #define IDirect3DIndexBuffer8_GetType(p) (p)->GetType()
805 /*** IDirect3DIndexBuffer8 methods ***/
806 #define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)
807 #define IDirect3DIndexBuffer8_Unlock(p) (p)->Unlock()
808 #define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->GetDesc(a)
809 #endif
810
811 /*****************************************************************************
812 * IDirect3DBaseTexture8 interface
813 */
814 #define INTERFACE IDirect3DBaseTexture8
815 DECLARE_INTERFACE_(IDirect3DBaseTexture8,IDirect3DResource8)
816 {
817 /*** IUnknown methods ***/
818 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
819 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
820 STDMETHOD_(ULONG,Release)(THIS) PURE;
821 /*** IDirect3DResource8 methods ***/
822 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8 ** ppDevice) PURE;
823 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
824 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
825 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
826 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
827 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
828 STDMETHOD_(void,PreLoad)(THIS) PURE;
829 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
830 /*** IDirect3DBaseTexture8 methods ***/
831 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE;
832 STDMETHOD_(DWORD,GetLOD)(THIS) PURE;
833 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE;
834 };
835 #undef INTERFACE
836
837 #if !defined(__cplusplus) || defined(CINTERFACE)
838 /*** IUnknown methods ***/
839 #define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
840 #define IDirect3DBaseTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)
841 #define IDirect3DBaseTexture8_Release(p) (p)->lpVtbl->Release(p)
842 /*** IDirect3DBaseTexture8 methods: IDirect3DResource8 ***/
843 #define IDirect3DBaseTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
844 #define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
845 #define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
846 #define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
847 #define IDirect3DBaseTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
848 #define IDirect3DBaseTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
849 #define IDirect3DBaseTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
850 #define IDirect3DBaseTexture8_GetType(p) (p)->lpVtbl->GetType(p)
851 /*** IDirect3DBaseTexture8 methods ***/
852 #define IDirect3DBaseTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
853 #define IDirect3DBaseTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)
854 #define IDirect3DBaseTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
855 #else
856 /*** IUnknown methods ***/
857 #define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
858 #define IDirect3DBaseTexture8_AddRef(p) (p)->AddRef()
859 #define IDirect3DBaseTexture8_Release(p) (p)->Release()
860 /*** IDirect3DBaseTexture8 methods: IDirect3DResource8 ***/
861 #define IDirect3DBaseTexture8_GetDevice(p,a) (p)->GetDevice(a)
862 #define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
863 #define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
864 #define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)
865 #define IDirect3DBaseTexture8_SetPriority(p,a) (p)->SetPriority(a)
866 #define IDirect3DBaseTexture8_GetPriority(p) (p)->GetPriority()
867 #define IDirect3DBaseTexture8_PreLoad(p) (p)->PreLoad()
868 #define IDirect3DBaseTexture8_GetType(p) (p)->GetType()
869 /*** IDirect3DBaseTexture8 methods ***/
870 #define IDirect3DBaseTexture8_SetLOD(p,a) (p)->SetLOD(a)
871 #define IDirect3DBaseTexture8_GetLOD(p) (p)->GetLOD()
872 #define IDirect3DBaseTexture8_GetLevelCount(p) (p)->GetLevelCount()
873 #endif
874
875 /*****************************************************************************
876 * IDirect3DCubeTexture8 interface
877 */
878 #define INTERFACE IDirect3DCubeTexture8
879 DECLARE_INTERFACE_(IDirect3DCubeTexture8,IDirect3DBaseTexture8)
880 {
881 /*** IUnknown methods ***/
882 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
883 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
884 STDMETHOD_(ULONG,Release)(THIS) PURE;
885 /*** IDirect3DResource8 methods ***/
886 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8 ** ppDevice) PURE;
887 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
888 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
889 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
890 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
891 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
892 STDMETHOD_(void,PreLoad)(THIS) PURE;
893 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
894 /*** IDirect3DBaseTexture8 methods ***/
895 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE;
896 STDMETHOD_(DWORD,GetLOD)(THIS) PURE;
897 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE;
898 /*** IDirect3DCubeTexture8 methods ***/
899 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC * pDesc) PURE;
900 STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,IDirect3DSurface8 ** ppCubeMapSurface) PURE;
901 STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,D3DLOCKED_RECT * pLockedRect,CONST RECT * pRect,DWORD Flags) PURE;
902 STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level) PURE;
903 STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType,CONST RECT * pDirtyRect) PURE;
904 };
905 #undef INTERFACE
906
907 #if !defined(__cplusplus) || defined(CINTERFACE)
908 /*** IUnknown methods ***/
909 #define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
910 #define IDirect3DCubeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)
911 #define IDirect3DCubeTexture8_Release(p) (p)->lpVtbl->Release(p)
912 /*** IDirect3DCubeTexture8 methods: IDirect3DResource8 ***/
913 #define IDirect3DCubeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
914 #define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
915 #define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
916 #define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
917 #define IDirect3DCubeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
918 #define IDirect3DCubeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
919 #define IDirect3DCubeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
920 #define IDirect3DCubeTexture8_GetType(p) (p)->lpVtbl->GetType(p)
921 /*** IDirect3DCubeTexture8 methods: IDirect3DBaseTexture8 ***/
922 #define IDirect3DCubeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
923 #define IDirect3DCubeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)
924 #define IDirect3DCubeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
925 /*** IDirect3DCubeTexture8 methods ***/
926 #define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
927 #define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
928 #define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
929 #define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
930 #define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
931 #else
932 /*** IUnknown methods ***/
933 #define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
934 #define IDirect3DCubeTexture8_AddRef(p) (p)->AddRef()
935 #define IDirect3DCubeTexture8_Release(p) (p)->Release()
936 /*** IDirect3DCubeTexture8 methods: IDirect3DResource8 ***/
937 #define IDirect3DCubeTexture8_GetDevice(p,a) (p)->GetDevice(a)
938 #define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
939 #define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
940 #define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)
941 #define IDirect3DCubeTexture8_SetPriority(p,a) (p)->SetPriority(a)
942 #define IDirect3DCubeTexture8_GetPriority(p) (p)->GetPriority()
943 #define IDirect3DCubeTexture8_PreLoad(p) (p)->PreLoad()
944 #define IDirect3DCubeTexture8_GetType(p) (p)->GetType()
945 /*** IDirect3DCubeTexture8 methods: IDirect3DBaseTexture8 ***/
946 #define IDirect3DCubeTexture8_SetLOD(p,a) (p)->SetLOD(a)
947 #define IDirect3DCubeTexture8_GetLOD(p) (p)->GetLOD()
948 #define IDirect3DCubeTexture8_GetLevelCount(p) (p)->GetLevelCount()
949 /*** IDirect3DCubeTexture8 methods ***/
950 #define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
951 #define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c)
952 #define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e)
953 #define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->UnlockRect(a,b)
954 #define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b)
955 #endif
956
957 /*****************************************************************************
958 * IDirect3DTexture8 interface
959 */
960 #define INTERFACE IDirect3DTexture8
961 DECLARE_INTERFACE_(IDirect3DTexture8,IDirect3DBaseTexture8)
962 {
963 /*** IUnknown methods ***/
964 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
965 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
966 STDMETHOD_(ULONG,Release)(THIS) PURE;
967 /*** IDirect3DResource8 methods ***/
968 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8 ** ppDevice) PURE;
969 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
970 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
971 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
972 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
973 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
974 STDMETHOD_(void,PreLoad)(THIS) PURE;
975 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
976 /*** IDirect3DBaseTexture8 methods ***/
977 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE;
978 STDMETHOD_(DWORD,GetLOD)(THIS) PURE;
979 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE;
980 /*** IDirect3DTexture8 methods ***/
981 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC * pDesc) PURE;
982 STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level,IDirect3DSurface8 ** ppSurfaceLevel) PURE;
983 STDMETHOD(LockRect)(THIS_ UINT Level,D3DLOCKED_RECT * pLockedRect,CONST RECT * pRect,DWORD Flags) PURE;
984 STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE;
985 STDMETHOD(AddDirtyRect)(THIS_ CONST RECT * pDirtyRect) PURE;
986 };
987 #undef INTERFACE
988
989 #if !defined(__cplusplus) || defined(CINTERFACE)
990 /*** IUnknown methods ***/
991 #define IDirect3DTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
992 #define IDirect3DTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)
993 #define IDirect3DTexture8_Release(p) (p)->lpVtbl->Release(p)
994 /*** IDirect3DTexture8 methods: IDirect3DResource8 ***/
995 #define IDirect3DTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
996 #define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
997 #define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
998 #define IDirect3DTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
999 #define IDirect3DTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1000 #define IDirect3DTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1001 #define IDirect3DTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1002 #define IDirect3DTexture8_GetType(p) (p)->lpVtbl->GetType(p)
1003 /*** IDirect3DTexture8 methods: IDirect3DBaseTexture8 ***/
1004 #define IDirect3DTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1005 #define IDirect3DTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1006 #define IDirect3DTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1007 /*** IDirect3DTexture8 methods ***/
1008 #define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1009 #define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
1010 #define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
1011 #define IDirect3DTexture8_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
1012 #define IDirect3DTexture8_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
1013 #else
1014 /*** IUnknown methods ***/
1015 #define IDirect3DTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1016 #define IDirect3DTexture8_AddRef(p) (p)->AddRef()
1017 #define IDirect3DTexture8_Release(p) (p)->Release()
1018 /*** IDirect3DTexture8 methods: IDirect3DResource8 ***/
1019 #define IDirect3DTexture8_GetDevice(p,a) (p)->GetDevice(a)
1020 #define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1021 #define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1022 #define IDirect3DTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)
1023 #define IDirect3DTexture8_SetPriority(p,a) (p)->SetPriority(a)
1024 #define IDirect3DTexture8_GetPriority(p) (p)->GetPriority()
1025 #define IDirect3DTexture8_PreLoad(p) (p)->PreLoad()
1026 #define IDirect3DTexture8_GetType(p) (p)->GetType()
1027 /*** IDirect3DTexture8 methods: IDirect3DBaseTexture8 ***/
1028 #define IDirect3DTexture8_SetLOD(p,a) (p)->SetLOD(a)
1029 #define IDirect3DTexture8_GetLOD(p) (p)->GetLOD()
1030 #define IDirect3DTexture8_GetLevelCount(p) (p)->GetLevelCount()
1031 /*** IDirect3DTexture8 methods ***/
1032 #define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1033 #define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b)
1034 #define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d)
1035 #define IDirect3DTexture8_UnlockRect(p,a) (p)->UnlockRect(a)
1036 #define IDirect3DTexture8_AddDirtyRect(p,a) (p)->AddDirtyRect(a)
1037 #endif
1038
1039 /*****************************************************************************
1040 * IDirect3DVolumeTexture8 interface
1041 */
1042 #define INTERFACE IDirect3DVolumeTexture8
1043 DECLARE_INTERFACE_(IDirect3DVolumeTexture8,IDirect3DBaseTexture8)
1044 {
1045 /*** IUnknown methods ***/
1046 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
1047 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
1048 STDMETHOD_(ULONG,Release)(THIS) PURE;
1049 /*** IDirect3DResource8 methods ***/
1050 STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8 ** ppDevice) PURE;
1051 STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
1052 STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
1053 STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
1054 STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
1055 STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
1056 STDMETHOD_(void,PreLoad)(THIS) PURE;
1057 STDMETHOD_(D3DRESOURCETYPE,GetType)(THIS) PURE;
1058 /*** IDirect3DBaseTexture8 methods ***/
1059 STDMETHOD_(DWORD,SetLOD)(THIS_ DWORD LODNew) PURE;
1060 STDMETHOD_(DWORD,GetLOD)(THIS) PURE;
1061 STDMETHOD_(DWORD,GetLevelCount)(THIS) PURE;
1062 /*** IDirect3DVolumeTexture8 methods ***/
1063 STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DVOLUME_DESC * pDesc) PURE;
1064 STDMETHOD(GetVolumeLevel)(THIS_ UINT Level,IDirect3DVolume8 ** ppVolumeLevel) PURE;
1065 STDMETHOD(LockBox)(THIS_ UINT Level,D3DLOCKED_BOX * pLockedVolume,CONST D3DBOX * pBox,DWORD Flags) PURE;
1066 STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE;
1067 STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX * pDirtyBox) PURE;
1068 };
1069 #undef INTERFACE
1070
1071 #if !defined(__cplusplus) || defined(CINTERFACE)
1072 /*** IUnknown methods ***/
1073 #define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
1074 #define IDirect3DVolumeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)
1075 #define IDirect3DVolumeTexture8_Release(p) (p)->lpVtbl->Release(p)
1076 /*** IDirect3DVolumeTexture8 methods: IDirect3DResource8 ***/
1077 #define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
1078 #define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
1079 #define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
1080 #define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
1081 #define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
1082 #define IDirect3DVolumeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)
1083 #define IDirect3DVolumeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)
1084 #define IDirect3DVolumeTexture8_GetType(p) (p)->lpVtbl->GetType(p)
1085 /*** IDirect3DVolumeTexture8 methods: IDirect3DBaseTexture8 ***/
1086 #define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
1087 #define IDirect3DVolumeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)
1088 #define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
1089 /*** IDirect3DVolumeTexture8 methods ***/
1090 #define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
1091 #define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
1092 #define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
1093 #define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
1094 #define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
1095 #else
1096 /*** IUnknown methods ***/
1097 #define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
1098 #define IDirect3DVolumeTexture8_AddRef(p) (p)->AddRef()
1099 #define IDirect3DVolumeTexture8_Release(p) (p)->Release()
1100 /*** IDirect3DVolumeTexture8 methods: IDirect3DResource8 ***/
1101 #define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->GetDevice(a)
1102 #define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)
1103 #define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)
1104 #define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)
1105 #define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->SetPriority(a)
1106 #define IDirect3DVolumeTexture8_GetPriority(p) (p)->GetPriority()
1107 #define IDirect3DVolumeTexture8_PreLoad(p) (p)->PreLoad()
1108 #define IDirect3DVolumeTexture8_GetType(p) (p)->GetType()
1109 /*** IDirect3DVolumeTexture8 methods: IDirect3DBaseTexture8 ***/
1110 #define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->SetLOD(a)
1111 #define IDirect3DVolumeTexture8_GetLOD(p) (p)->GetLOD()
1112 #define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->GetLevelCount()
1113 /*** IDirect3DVolumeTexture8 methods ***/
1114 #define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)
1115 #define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b)
1116 #define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d)
1117 #define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->UnlockBox(a)
1118 #define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->AddDirtyBox(a)
1119 #endif
1120
1121 #ifdef __cplusplus
1122 extern "C" {
1123 #endif /* defined(__cplusplus) */
1124
1125 /* Define the main entrypoint as well */
1126 IDirect3D8* WINAPI Direct3DCreate8(UINT SDKVersion);
1127
1128 #ifdef __cplusplus
1129 } /* extern "C" */
1130 #endif /* defined(__cplusplus) */
1131
1132 #endif /* __WINE_D3D8_H */