Path: blob/master/libmupen64plus/D3D8Interceptor/D3D8Base/d3d8.h
2 views
/*==========================================================================;1*2* Copyright (C) Microsoft Corporation. All Rights Reserved.3*4* File: d3d8.h5* Content: Direct3D include file6*7****************************************************************************/89#ifndef _D3D8_H_10#define _D3D8_H_1112#ifndef DIRECT3D_VERSION13#define DIRECT3D_VERSION 0x080014#endif //DIRECT3D_VERSION1516// include this file content only if compiling for DX8 interfaces17#if(DIRECT3D_VERSION >= 0x0800)181920/* This identifier is passed to Direct3DCreate8 in order to ensure that an21* application was built against the correct header files. This number is22* incremented whenever a header (or other) change would require applications23* to be rebuilt. If the version doesn't match, Direct3DCreate8 will fail.24* (The number itself has no meaning.)*/2526#define D3D_SDK_VERSION 220272829#include <stdlib.h>3031#define COM_NO_WINDOWS_H32#include <objbase.h>3334#include <windows.h>3536#if !defined(HMONITOR_DECLARED) && (WINVER < 0x0500)37#define HMONITOR_DECLARED38DECLARE_HANDLE(HMONITOR);39#endif4041#define D3DAPI WINAPI4243/*44* Interface IID's45*/46#if defined( _WIN32 ) && !defined( _NO_COM)4748/* IID_IDirect3D8 */49/* {1DD9E8DA-1C77-4d40-B0CF-98FEFDFF9512} */50DEFINE_GUID(IID_IDirect3D8, 0x1dd9e8da, 0x1c77, 0x4d40, 0xb0, 0xcf, 0x98, 0xfe, 0xfd, 0xff, 0x95, 0x12);5152/* IID_IDirect3DDevice8 */53/* {7385E5DF-8FE8-41D5-86B6-D7B48547B6CF} */54DEFINE_GUID(IID_IDirect3DDevice8, 0x7385e5df, 0x8fe8, 0x41d5, 0x86, 0xb6, 0xd7, 0xb4, 0x85, 0x47, 0xb6, 0xcf);5556/* IID_IDirect3DResource8 */57/* {1B36BB7B-09B7-410a-B445-7D1430D7B33F} */58DEFINE_GUID(IID_IDirect3DResource8, 0x1b36bb7b, 0x9b7, 0x410a, 0xb4, 0x45, 0x7d, 0x14, 0x30, 0xd7, 0xb3, 0x3f);5960/* IID_IDirect3DBaseTexture8 */61/* {B4211CFA-51B9-4a9f-AB78-DB99B2BB678E} */62DEFINE_GUID(IID_IDirect3DBaseTexture8, 0xb4211cfa, 0x51b9, 0x4a9f, 0xab, 0x78, 0xdb, 0x99, 0xb2, 0xbb, 0x67, 0x8e);6364/* IID_IDirect3DTexture8 */65/* {E4CDD575-2866-4f01-B12E-7EECE1EC9358} */66DEFINE_GUID(IID_IDirect3DTexture8, 0xe4cdd575, 0x2866, 0x4f01, 0xb1, 0x2e, 0x7e, 0xec, 0xe1, 0xec, 0x93, 0x58);6768/* IID_IDirect3DCubeTexture8 */69/* {3EE5B968-2ACA-4c34-8BB5-7E0C3D19B750} */70DEFINE_GUID(IID_IDirect3DCubeTexture8, 0x3ee5b968, 0x2aca, 0x4c34, 0x8b, 0xb5, 0x7e, 0x0c, 0x3d, 0x19, 0xb7, 0x50);7172/* IID_IDirect3DVolumeTexture8 */73/* {4B8AAAFA-140F-42ba-9131-597EAFAA2EAD} */74DEFINE_GUID(IID_IDirect3DVolumeTexture8, 0x4b8aaafa, 0x140f, 0x42ba, 0x91, 0x31, 0x59, 0x7e, 0xaf, 0xaa, 0x2e, 0xad);7576/* IID_IDirect3DVertexBuffer8 */77/* {8AEEEAC7-05F9-44d4-B591-000B0DF1CB95} */78DEFINE_GUID(IID_IDirect3DVertexBuffer8, 0x8aeeeac7, 0x05f9, 0x44d4, 0xb5, 0x91, 0x00, 0x0b, 0x0d, 0xf1, 0xcb, 0x95);7980/* IID_IDirect3DIndexBuffer8 */81/* {0E689C9A-053D-44a0-9D92-DB0E3D750F86} */82DEFINE_GUID(IID_IDirect3DIndexBuffer8, 0x0e689c9a, 0x053d, 0x44a0, 0x9d, 0x92, 0xdb, 0x0e, 0x3d, 0x75, 0x0f, 0x86);8384/* IID_IDirect3DSurface8 */85/* {B96EEBCA-B326-4ea5-882F-2FF5BAE021DD} */86DEFINE_GUID(IID_IDirect3DSurface8, 0xb96eebca, 0xb326, 0x4ea5, 0x88, 0x2f, 0x2f, 0xf5, 0xba, 0xe0, 0x21, 0xdd);8788/* IID_IDirect3DVolume8 */89/* {BD7349F5-14F1-42e4-9C79-972380DB40C0} */90DEFINE_GUID(IID_IDirect3DVolume8, 0xbd7349f5, 0x14f1, 0x42e4, 0x9c, 0x79, 0x97, 0x23, 0x80, 0xdb, 0x40, 0xc0);9192/* IID_IDirect3DSwapChain8 */93/* {928C088B-76B9-4C6B-A536-A590853876CD} */94DEFINE_GUID(IID_IDirect3DSwapChain8, 0x928c088b, 0x76b9, 0x4c6b, 0xa5, 0x36, 0xa5, 0x90, 0x85, 0x38, 0x76, 0xcd);9596#endif9798#ifdef __cplusplus99100interface IDirect3D8;101interface IDirect3DDevice8;102103interface IDirect3DResource8;104interface IDirect3DBaseTexture8;105interface IDirect3DTexture8;106interface IDirect3DVolumeTexture8;107interface IDirect3DCubeTexture8;108109interface IDirect3DVertexBuffer8;110interface IDirect3DIndexBuffer8;111112interface IDirect3DSurface8;113interface IDirect3DVolume8;114115interface IDirect3DSwapChain8;116117#endif118119120typedef interface IDirect3D8 IDirect3D8;121typedef interface IDirect3DDevice8 IDirect3DDevice8;122typedef interface IDirect3DResource8 IDirect3DResource8;123typedef interface IDirect3DBaseTexture8 IDirect3DBaseTexture8;124typedef interface IDirect3DTexture8 IDirect3DTexture8;125typedef interface IDirect3DVolumeTexture8 IDirect3DVolumeTexture8;126typedef interface IDirect3DCubeTexture8 IDirect3DCubeTexture8;127typedef interface IDirect3DVertexBuffer8 IDirect3DVertexBuffer8;128typedef interface IDirect3DIndexBuffer8 IDirect3DIndexBuffer8;129typedef interface IDirect3DSurface8 IDirect3DSurface8;130typedef interface IDirect3DVolume8 IDirect3DVolume8;131typedef interface IDirect3DSwapChain8 IDirect3DSwapChain8;132133#include "d3d8types.h"134#include "d3d8caps.h"135136137#ifdef __cplusplus138extern "C" {139#endif140141/*142* DLL Function for creating a Direct3D8 object. This object supports143* enumeration and allows the creation of Direct3DDevice8 objects.144* Pass the value of the constant D3D_SDK_VERSION to this function, so145* that the run-time can validate that your application was compiled146* against the right headers.147*/148149IDirect3D8 * WINAPI Direct3DCreate8(UINT SDKVersion);150151152/*153* Direct3D interfaces154*/155156157158159160161#undef INTERFACE162#define INTERFACE IDirect3D8163164DECLARE_INTERFACE_(IDirect3D8, IUnknown)165{166/*** IUnknown methods ***/167STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;168STDMETHOD_(ULONG,AddRef)(THIS) PURE;169STDMETHOD_(ULONG,Release)(THIS) PURE;170171/*** IDirect3D8 methods ***/172STDMETHOD(RegisterSoftwareDevice)(THIS_ void* pInitializeFunction) PURE;173STDMETHOD_(UINT, GetAdapterCount)(THIS) PURE;174STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter,DWORD Flags,D3DADAPTER_IDENTIFIER8* pIdentifier) PURE;175STDMETHOD_(UINT, GetAdapterModeCount)(THIS_ UINT Adapter) PURE;176STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter,UINT Mode,D3DDISPLAYMODE* pMode) PURE;177STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter,D3DDISPLAYMODE* pMode) PURE;178STDMETHOD(CheckDeviceType)(THIS_ UINT Adapter,D3DDEVTYPE CheckType,D3DFORMAT DisplayFormat,D3DFORMAT BackBufferFormat,BOOL Windowed) PURE;179STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT AdapterFormat,DWORD Usage,D3DRESOURCETYPE RType,D3DFORMAT CheckFormat) PURE;180STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT SurfaceFormat,BOOL Windowed,D3DMULTISAMPLE_TYPE MultiSampleType) PURE;181STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT AdapterFormat,D3DFORMAT RenderTargetFormat,D3DFORMAT DepthStencilFormat) PURE;182STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,D3DCAPS8* pCaps) PURE;183STDMETHOD_(HMONITOR, GetAdapterMonitor)(THIS_ UINT Adapter) PURE;184STDMETHOD(CreateDevice)(THIS_ UINT Adapter,D3DDEVTYPE DeviceType,HWND hFocusWindow,DWORD BehaviorFlags,D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DDevice8** ppReturnedDeviceInterface) PURE;185};186187typedef struct IDirect3D8 *LPDIRECT3D8, *PDIRECT3D8;188189#if !defined(__cplusplus) || defined(CINTERFACE)190#define IDirect3D8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)191#define IDirect3D8_AddRef(p) (p)->lpVtbl->AddRef(p)192#define IDirect3D8_Release(p) (p)->lpVtbl->Release(p)193#define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)194#define IDirect3D8_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)195#define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)196#define IDirect3D8_GetAdapterModeCount(p,a) (p)->lpVtbl->GetAdapterModeCount(p,a)197#define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->lpVtbl->EnumAdapterModes(p,a,b,c)198#define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)199#define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)200#define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)201#define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e)202#define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)203#define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)204#define IDirect3D8_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)205#define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)206#else207#define IDirect3D8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)208#define IDirect3D8_AddRef(p) (p)->AddRef()209#define IDirect3D8_Release(p) (p)->Release()210#define IDirect3D8_RegisterSoftwareDevice(p,a) (p)->RegisterSoftwareDevice(a)211#define IDirect3D8_GetAdapterCount(p) (p)->GetAdapterCount()212#define IDirect3D8_GetAdapterIdentifier(p,a,b,c) (p)->GetAdapterIdentifier(a,b,c)213#define IDirect3D8_GetAdapterModeCount(p,a) (p)->GetAdapterModeCount(a)214#define IDirect3D8_EnumAdapterModes(p,a,b,c) (p)->EnumAdapterModes(a,b,c)215#define IDirect3D8_GetAdapterDisplayMode(p,a,b) (p)->GetAdapterDisplayMode(a,b)216#define IDirect3D8_CheckDeviceType(p,a,b,c,d,e) (p)->CheckDeviceType(a,b,c,d,e)217#define IDirect3D8_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->CheckDeviceFormat(a,b,c,d,e,f)218#define IDirect3D8_CheckDeviceMultiSampleType(p,a,b,c,d,e) (p)->CheckDeviceMultiSampleType(a,b,c,d,e)219#define IDirect3D8_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->CheckDepthStencilMatch(a,b,c,d,e)220#define IDirect3D8_GetDeviceCaps(p,a,b,c) (p)->GetDeviceCaps(a,b,c)221#define IDirect3D8_GetAdapterMonitor(p,a) (p)->GetAdapterMonitor(a)222#define IDirect3D8_CreateDevice(p,a,b,c,d,e,f) (p)->CreateDevice(a,b,c,d,e,f)223#endif224225226227228229230231232233234235236237238239240241242243#undef INTERFACE244#define INTERFACE IDirect3DDevice8245246DECLARE_INTERFACE_(IDirect3DDevice8, IUnknown)247{248/*** IUnknown methods ***/249STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;250STDMETHOD_(ULONG,AddRef)(THIS) PURE;251STDMETHOD_(ULONG,Release)(THIS) PURE;252253/*** IDirect3DDevice8 methods ***/254STDMETHOD(TestCooperativeLevel)(THIS) PURE;255STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE;256STDMETHOD(ResourceManagerDiscardBytes)(THIS_ DWORD Bytes) PURE;257STDMETHOD(GetDirect3D)(THIS_ IDirect3D8** ppD3D8) PURE;258STDMETHOD(GetDeviceCaps)(THIS_ D3DCAPS8* pCaps) PURE;259STDMETHOD(GetDisplayMode)(THIS_ D3DDISPLAYMODE* pMode) PURE;260STDMETHOD(GetCreationParameters)(THIS_ D3DDEVICE_CREATION_PARAMETERS *pParameters) PURE;261STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot,UINT YHotSpot,IDirect3DSurface8* pCursorBitmap) PURE;262STDMETHOD_(void, SetCursorPosition)(THIS_ int X,int Y,DWORD Flags) PURE;263STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE;264STDMETHOD(CreateAdditionalSwapChain)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters,IDirect3DSwapChain8** pSwapChain) PURE;265STDMETHOD(Reset)(THIS_ D3DPRESENT_PARAMETERS* pPresentationParameters) PURE;266STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion) PURE;267STDMETHOD(GetBackBuffer)(THIS_ UINT BackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface8** ppBackBuffer) PURE;268STDMETHOD(GetRasterStatus)(THIS_ D3DRASTER_STATUS* pRasterStatus) PURE;269STDMETHOD_(void, SetGammaRamp)(THIS_ DWORD Flags,CONST D3DGAMMARAMP* pRamp) PURE;270STDMETHOD_(void, GetGammaRamp)(THIS_ D3DGAMMARAMP* pRamp) PURE;271STDMETHOD(CreateTexture)(THIS_ UINT Width,UINT Height,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DTexture8** ppTexture) PURE;272STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width,UINT Height,UINT Depth,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DVolumeTexture8** ppVolumeTexture) PURE;273STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength,UINT Levels,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DCubeTexture8** ppCubeTexture) PURE;274STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length,DWORD Usage,DWORD FVF,D3DPOOL Pool,IDirect3DVertexBuffer8** ppVertexBuffer) PURE;275STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length,DWORD Usage,D3DFORMAT Format,D3DPOOL Pool,IDirect3DIndexBuffer8** ppIndexBuffer) PURE;276STDMETHOD(CreateRenderTarget)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,BOOL Lockable,IDirect3DSurface8** ppSurface) PURE;277STDMETHOD(CreateDepthStencilSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,D3DMULTISAMPLE_TYPE MultiSample,IDirect3DSurface8** ppSurface) PURE;278STDMETHOD(CreateImageSurface)(THIS_ UINT Width,UINT Height,D3DFORMAT Format,IDirect3DSurface8** ppSurface) PURE;279STDMETHOD(CopyRects)(THIS_ IDirect3DSurface8* pSourceSurface,CONST RECT* pSourceRectsArray,UINT cRects,IDirect3DSurface8* pDestinationSurface,CONST POINT* pDestPointsArray) PURE;280STDMETHOD(UpdateTexture)(THIS_ IDirect3DBaseTexture8* pSourceTexture,IDirect3DBaseTexture8* pDestinationTexture) PURE;281STDMETHOD(GetFrontBuffer)(THIS_ IDirect3DSurface8* pDestSurface) PURE;282STDMETHOD(SetRenderTarget)(THIS_ IDirect3DSurface8* pRenderTarget,IDirect3DSurface8* pNewZStencil) PURE;283STDMETHOD(GetRenderTarget)(THIS_ IDirect3DSurface8** ppRenderTarget) PURE;284STDMETHOD(GetDepthStencilSurface)(THIS_ IDirect3DSurface8** ppZStencilSurface) PURE;285STDMETHOD(BeginScene)(THIS) PURE;286STDMETHOD(EndScene)(THIS) PURE;287STDMETHOD(Clear)(THIS_ DWORD Count,CONST D3DRECT* pRects,DWORD Flags,D3DCOLOR Color,float Z,DWORD Stencil) PURE;288STDMETHOD(SetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,CONST D3DMATRIX* pMatrix) PURE;289STDMETHOD(GetTransform)(THIS_ D3DTRANSFORMSTATETYPE State,D3DMATRIX* pMatrix) PURE;290STDMETHOD(MultiplyTransform)(THIS_ D3DTRANSFORMSTATETYPE,CONST D3DMATRIX*) PURE;291STDMETHOD(SetViewport)(THIS_ CONST D3DVIEWPORT8* pViewport) PURE;292STDMETHOD(GetViewport)(THIS_ D3DVIEWPORT8* pViewport) PURE;293STDMETHOD(SetMaterial)(THIS_ CONST D3DMATERIAL8* pMaterial) PURE;294STDMETHOD(GetMaterial)(THIS_ D3DMATERIAL8* pMaterial) PURE;295STDMETHOD(SetLight)(THIS_ DWORD Index,CONST D3DLIGHT8*) PURE;296STDMETHOD(GetLight)(THIS_ DWORD Index,D3DLIGHT8*) PURE;297STDMETHOD(LightEnable)(THIS_ DWORD Index,BOOL Enable) PURE;298STDMETHOD(GetLightEnable)(THIS_ DWORD Index,BOOL* pEnable) PURE;299STDMETHOD(SetClipPlane)(THIS_ DWORD Index,CONST float* pPlane) PURE;300STDMETHOD(GetClipPlane)(THIS_ DWORD Index,float* pPlane) PURE;301STDMETHOD(SetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD Value) PURE;302STDMETHOD(GetRenderState)(THIS_ D3DRENDERSTATETYPE State,DWORD* pValue) PURE;303STDMETHOD(BeginStateBlock)(THIS) PURE;304STDMETHOD(EndStateBlock)(THIS_ DWORD* pToken) PURE;305STDMETHOD(ApplyStateBlock)(THIS_ DWORD Token) PURE;306STDMETHOD(CaptureStateBlock)(THIS_ DWORD Token) PURE;307STDMETHOD(DeleteStateBlock)(THIS_ DWORD Token) PURE;308STDMETHOD(CreateStateBlock)(THIS_ D3DSTATEBLOCKTYPE Type,DWORD* pToken) PURE;309STDMETHOD(SetClipStatus)(THIS_ CONST D3DCLIPSTATUS8* pClipStatus) PURE;310STDMETHOD(GetClipStatus)(THIS_ D3DCLIPSTATUS8* pClipStatus) PURE;311STDMETHOD(GetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8** ppTexture) PURE;312STDMETHOD(SetTexture)(THIS_ DWORD Stage,IDirect3DBaseTexture8* pTexture) PURE;313STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD* pValue) PURE;314STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage,D3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE;315STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE;316STDMETHOD(GetInfo)(THIS_ DWORD DevInfoID,void* pDevInfoStruct,DWORD DevInfoStructSize) PURE;317STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber,CONST PALETTEENTRY* pEntries) PURE;318STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE;319STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE;320STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE;321STDMETHOD(DrawPrimitive)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT StartVertex,UINT PrimitiveCount) PURE;322STDMETHOD(DrawIndexedPrimitive)(THIS_ D3DPRIMITIVETYPE,UINT minIndex,UINT NumVertices,UINT startIndex,UINT primCount) PURE;323STDMETHOD(DrawPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT PrimitiveCount,CONST void* pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;324STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ D3DPRIMITIVETYPE PrimitiveType,UINT MinVertexIndex,UINT NumVertexIndices,UINT PrimitiveCount,CONST void* pIndexData,D3DFORMAT IndexDataFormat,CONST void* pVertexStreamZeroData,UINT VertexStreamZeroStride) PURE;325STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex,UINT DestIndex,UINT VertexCount,IDirect3DVertexBuffer8* pDestBuffer,DWORD Flags) PURE;326STDMETHOD(CreateVertexShader)(THIS_ CONST DWORD* pDeclaration,CONST DWORD* pFunction,DWORD* pHandle,DWORD Usage) PURE;327STDMETHOD(SetVertexShader)(THIS_ DWORD Handle) PURE;328STDMETHOD(GetVertexShader)(THIS_ DWORD* pHandle) PURE;329STDMETHOD(DeleteVertexShader)(THIS_ DWORD Handle) PURE;330STDMETHOD(SetVertexShaderConstant)(THIS_ DWORD Register,CONST void* pConstantData,DWORD ConstantCount) PURE;331STDMETHOD(GetVertexShaderConstant)(THIS_ DWORD Register,void* pConstantData,DWORD ConstantCount) PURE;332STDMETHOD(GetVertexShaderDeclaration)(THIS_ DWORD Handle,void* pData,DWORD* pSizeOfData) PURE;333STDMETHOD(GetVertexShaderFunction)(THIS_ DWORD Handle,void* pData,DWORD* pSizeOfData) PURE;334STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8* pStreamData,UINT Stride) PURE;335STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber,IDirect3DVertexBuffer8** ppStreamData,UINT* pStride) PURE;336STDMETHOD(SetIndices)(THIS_ IDirect3DIndexBuffer8* pIndexData,UINT BaseVertexIndex) PURE;337STDMETHOD(GetIndices)(THIS_ IDirect3DIndexBuffer8** ppIndexData,UINT* pBaseVertexIndex) PURE;338STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD* pFunction,DWORD* pHandle) PURE;339STDMETHOD(SetPixelShader)(THIS_ DWORD Handle) PURE;340STDMETHOD(GetPixelShader)(THIS_ DWORD* pHandle) PURE;341STDMETHOD(DeletePixelShader)(THIS_ DWORD Handle) PURE;342STDMETHOD(SetPixelShaderConstant)(THIS_ DWORD Register,CONST void* pConstantData,DWORD ConstantCount) PURE;343STDMETHOD(GetPixelShaderConstant)(THIS_ DWORD Register,void* pConstantData,DWORD ConstantCount) PURE;344STDMETHOD(GetPixelShaderFunction)(THIS_ DWORD Handle,void* pData,DWORD* pSizeOfData) PURE;345STDMETHOD(DrawRectPatch)(THIS_ UINT Handle,CONST float* pNumSegs,CONST D3DRECTPATCH_INFO* pRectPatchInfo) PURE;346STDMETHOD(DrawTriPatch)(THIS_ UINT Handle,CONST float* pNumSegs,CONST D3DTRIPATCH_INFO* pTriPatchInfo) PURE;347STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE;348};349350typedef struct IDirect3DDevice8 *LPDIRECT3DDEVICE8, *PDIRECT3DDEVICE8;351352#if !defined(__cplusplus) || defined(CINTERFACE)353#define IDirect3DDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)354#define IDirect3DDevice8_AddRef(p) (p)->lpVtbl->AddRef(p)355#define IDirect3DDevice8_Release(p) (p)->lpVtbl->Release(p)356#define IDirect3DDevice8_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)357#define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)358#define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->lpVtbl->ResourceManagerDiscardBytes(p,a)359#define IDirect3DDevice8_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)360#define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)361#define IDirect3DDevice8_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)362#define IDirect3DDevice8_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)363#define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)364#define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)365#define IDirect3DDevice8_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)366#define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)367#define IDirect3DDevice8_Reset(p,a) (p)->lpVtbl->Reset(p,a)368#define IDirect3DDevice8_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)369#define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)370#define IDirect3DDevice8_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)371#define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)372#define IDirect3DDevice8_GetGammaRamp(p,a) (p)->lpVtbl->GetGammaRamp(p,a)373#define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g)374#define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h)375#define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f)376#define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e)377#define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e)378#define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f)379#define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e)380#define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->lpVtbl->CreateImageSurface(p,a,b,c,d)381#define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->lpVtbl->CopyRects(p,a,b,c,d,e)382#define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)383#define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->lpVtbl->GetFrontBuffer(p,a)384#define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)385#define IDirect3DDevice8_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)386#define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)387#define IDirect3DDevice8_BeginScene(p) (p)->lpVtbl->BeginScene(p)388#define IDirect3DDevice8_EndScene(p) (p)->lpVtbl->EndScene(p)389#define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)390#define IDirect3DDevice8_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)391#define IDirect3DDevice8_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)392#define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)393#define IDirect3DDevice8_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)394#define IDirect3DDevice8_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)395#define IDirect3DDevice8_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)396#define IDirect3DDevice8_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)397#define IDirect3DDevice8_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)398#define IDirect3DDevice8_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)399#define IDirect3DDevice8_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)400#define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)401#define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)402#define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)403#define IDirect3DDevice8_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)404#define IDirect3DDevice8_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)405#define IDirect3DDevice8_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)406#define IDirect3DDevice8_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)407#define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a)408#define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a)409#define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a)410#define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)411#define IDirect3DDevice8_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)412#define IDirect3DDevice8_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)413#define IDirect3DDevice8_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)414#define IDirect3DDevice8_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)415#define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)416#define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)417#define IDirect3DDevice8_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)418#define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)419#define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)420#define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)421#define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)422#define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)423#define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)424#define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e)425#define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)426#define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)427#define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e)428#define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d)429#define IDirect3DDevice8_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)430#define IDirect3DDevice8_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)431#define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->lpVtbl->DeleteVertexShader(p,a)432#define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstant(p,a,b,c)433#define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstant(p,a,b,c)434#define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->lpVtbl->GetVertexShaderDeclaration(p,a,b,c)435#define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->lpVtbl->GetVertexShaderFunction(p,a,b,c)436#define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->lpVtbl->SetStreamSource(p,a,b,c)437#define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->lpVtbl->GetStreamSource(p,a,b,c)438#define IDirect3DDevice8_SetIndices(p,a,b) (p)->lpVtbl->SetIndices(p,a,b)439#define IDirect3DDevice8_GetIndices(p,a,b) (p)->lpVtbl->GetIndices(p,a,b)440#define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)441#define IDirect3DDevice8_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)442#define IDirect3DDevice8_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)443#define IDirect3DDevice8_DeletePixelShader(p,a) (p)->lpVtbl->DeletePixelShader(p,a)444#define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstant(p,a,b,c)445#define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstant(p,a,b,c)446#define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->lpVtbl->GetPixelShaderFunction(p,a,b,c)447#define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)448#define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)449#define IDirect3DDevice8_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)450#else451#define IDirect3DDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)452#define IDirect3DDevice8_AddRef(p) (p)->AddRef()453#define IDirect3DDevice8_Release(p) (p)->Release()454#define IDirect3DDevice8_TestCooperativeLevel(p) (p)->TestCooperativeLevel()455#define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()456#define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->ResourceManagerDiscardBytes(a)457#define IDirect3DDevice8_GetDirect3D(p,a) (p)->GetDirect3D(a)458#define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)459#define IDirect3DDevice8_GetDisplayMode(p,a) (p)->GetDisplayMode(a)460#define IDirect3DDevice8_GetCreationParameters(p,a) (p)->GetCreationParameters(a)461#define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)462#define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)463#define IDirect3DDevice8_ShowCursor(p,a) (p)->ShowCursor(a)464#define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)465#define IDirect3DDevice8_Reset(p,a) (p)->Reset(a)466#define IDirect3DDevice8_Present(p,a,b,c,d) (p)->Present(a,b,c,d)467#define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)468#define IDirect3DDevice8_GetRasterStatus(p,a) (p)->GetRasterStatus(a)469#define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->SetGammaRamp(a,b)470#define IDirect3DDevice8_GetGammaRamp(p,a) (p)->GetGammaRamp(a)471#define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->CreateTexture(a,b,c,d,e,f,g)472#define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h)473#define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->CreateCubeTexture(a,b,c,d,e,f)474#define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->CreateVertexBuffer(a,b,c,d,e)475#define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->CreateIndexBuffer(a,b,c,d,e)476#define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->CreateRenderTarget(a,b,c,d,e,f)477#define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->CreateDepthStencilSurface(a,b,c,d,e)478#define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->CreateImageSurface(a,b,c,d)479#define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->CopyRects(a,b,c,d,e)480#define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)481#define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->GetFrontBuffer(a)482#define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)483#define IDirect3DDevice8_GetRenderTarget(p,a) (p)->GetRenderTarget(a)484#define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)485#define IDirect3DDevice8_BeginScene(p) (p)->BeginScene()486#define IDirect3DDevice8_EndScene(p) (p)->EndScene()487#define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)488#define IDirect3DDevice8_SetTransform(p,a,b) (p)->SetTransform(a,b)489#define IDirect3DDevice8_GetTransform(p,a,b) (p)->GetTransform(a,b)490#define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)491#define IDirect3DDevice8_SetViewport(p,a) (p)->SetViewport(a)492#define IDirect3DDevice8_GetViewport(p,a) (p)->GetViewport(a)493#define IDirect3DDevice8_SetMaterial(p,a) (p)->SetMaterial(a)494#define IDirect3DDevice8_GetMaterial(p,a) (p)->GetMaterial(a)495#define IDirect3DDevice8_SetLight(p,a,b) (p)->SetLight(a,b)496#define IDirect3DDevice8_GetLight(p,a,b) (p)->GetLight(a,b)497#define IDirect3DDevice8_LightEnable(p,a,b) (p)->LightEnable(a,b)498#define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)499#define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)500#define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)501#define IDirect3DDevice8_SetRenderState(p,a,b) (p)->SetRenderState(a,b)502#define IDirect3DDevice8_GetRenderState(p,a,b) (p)->GetRenderState(a,b)503#define IDirect3DDevice8_BeginStateBlock(p) (p)->BeginStateBlock()504#define IDirect3DDevice8_EndStateBlock(p,a) (p)->EndStateBlock(a)505#define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a)506#define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a)507#define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a)508#define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)509#define IDirect3DDevice8_SetClipStatus(p,a) (p)->SetClipStatus(a)510#define IDirect3DDevice8_GetClipStatus(p,a) (p)->GetClipStatus(a)511#define IDirect3DDevice8_GetTexture(p,a,b) (p)->GetTexture(a,b)512#define IDirect3DDevice8_SetTexture(p,a,b) (p)->SetTexture(a,b)513#define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)514#define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)515#define IDirect3DDevice8_ValidateDevice(p,a) (p)->ValidateDevice(a)516#define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c)517#define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)518#define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)519#define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)520#define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)521#define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)522#define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->DrawIndexedPrimitive(a,b,c,d,e)523#define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)524#define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)525#define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->ProcessVertices(a,b,c,d,e)526#define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->CreateVertexShader(a,b,c,d)527#define IDirect3DDevice8_SetVertexShader(p,a) (p)->SetVertexShader(a)528#define IDirect3DDevice8_GetVertexShader(p,a) (p)->GetVertexShader(a)529#define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->DeleteVertexShader(a)530#define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->SetVertexShaderConstant(a,b,c)531#define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->GetVertexShaderConstant(a,b,c)532#define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->GetVertexShaderDeclaration(a,b,c)533#define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->GetVertexShaderFunction(a,b,c)534#define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->SetStreamSource(a,b,c)535#define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->GetStreamSource(a,b,c)536#define IDirect3DDevice8_SetIndices(p,a,b) (p)->SetIndices(a,b)537#define IDirect3DDevice8_GetIndices(p,a,b) (p)->GetIndices(a,b)538#define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)539#define IDirect3DDevice8_SetPixelShader(p,a) (p)->SetPixelShader(a)540#define IDirect3DDevice8_GetPixelShader(p,a) (p)->GetPixelShader(a)541#define IDirect3DDevice8_DeletePixelShader(p,a) (p)->DeletePixelShader(a)542#define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->SetPixelShaderConstant(a,b,c)543#define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->GetPixelShaderConstant(a,b,c)544#define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->GetPixelShaderFunction(a,b,c)545#define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)546#define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)547#define IDirect3DDevice8_DeletePatch(p,a) (p)->DeletePatch(a)548#endif549550551552#undef INTERFACE553#define INTERFACE IDirect3DSwapChain8554555DECLARE_INTERFACE_(IDirect3DSwapChain8, IUnknown)556{557/*** IUnknown methods ***/558STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;559STDMETHOD_(ULONG,AddRef)(THIS) PURE;560STDMETHOD_(ULONG,Release)(THIS) PURE;561562/*** IDirect3DSwapChain8 methods ***/563STDMETHOD(Present)(THIS_ CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion) PURE;564STDMETHOD(GetBackBuffer)(THIS_ UINT BackBuffer,D3DBACKBUFFER_TYPE Type,IDirect3DSurface8** ppBackBuffer) PURE;565};566567typedef struct IDirect3DSwapChain8 *LPDIRECT3DSWAPCHAIN8, *PDIRECT3DSWAPCHAIN8;568569#if !defined(__cplusplus) || defined(CINTERFACE)570#define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)571#define IDirect3DSwapChain8_AddRef(p) (p)->lpVtbl->AddRef(p)572#define IDirect3DSwapChain8_Release(p) (p)->lpVtbl->Release(p)573#define IDirect3DSwapChain8_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)574#define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)575#else576#define IDirect3DSwapChain8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)577#define IDirect3DSwapChain8_AddRef(p) (p)->AddRef()578#define IDirect3DSwapChain8_Release(p) (p)->Release()579#define IDirect3DSwapChain8_Present(p,a,b,c,d) (p)->Present(a,b,c,d)580#define IDirect3DSwapChain8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)581#endif582583584585#undef INTERFACE586#define INTERFACE IDirect3DResource8587588DECLARE_INTERFACE_(IDirect3DResource8, IUnknown)589{590/*** IUnknown methods ***/591STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;592STDMETHOD_(ULONG,AddRef)(THIS) PURE;593STDMETHOD_(ULONG,Release)(THIS) PURE;594595/*** IDirect3DResource8 methods ***/596STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** ppDevice) PURE;597STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;598STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;599STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;600STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;601STDMETHOD_(DWORD, GetPriority)(THIS) PURE;602STDMETHOD_(void, PreLoad)(THIS) PURE;603STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;604};605606typedef struct IDirect3DResource8 *LPDIRECT3DRESOURCE8, *PDIRECT3DRESOURCE8;607608#if !defined(__cplusplus) || defined(CINTERFACE)609#define IDirect3DResource8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)610#define IDirect3DResource8_AddRef(p) (p)->lpVtbl->AddRef(p)611#define IDirect3DResource8_Release(p) (p)->lpVtbl->Release(p)612#define IDirect3DResource8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)613#define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)614#define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)615#define IDirect3DResource8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)616#define IDirect3DResource8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)617#define IDirect3DResource8_GetPriority(p) (p)->lpVtbl->GetPriority(p)618#define IDirect3DResource8_PreLoad(p) (p)->lpVtbl->PreLoad(p)619#define IDirect3DResource8_GetType(p) (p)->lpVtbl->GetType(p)620#else621#define IDirect3DResource8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)622#define IDirect3DResource8_AddRef(p) (p)->AddRef()623#define IDirect3DResource8_Release(p) (p)->Release()624#define IDirect3DResource8_GetDevice(p,a) (p)->GetDevice(a)625#define IDirect3DResource8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)626#define IDirect3DResource8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)627#define IDirect3DResource8_FreePrivateData(p,a) (p)->FreePrivateData(a)628#define IDirect3DResource8_SetPriority(p,a) (p)->SetPriority(a)629#define IDirect3DResource8_GetPriority(p) (p)->GetPriority()630#define IDirect3DResource8_PreLoad(p) (p)->PreLoad()631#define IDirect3DResource8_GetType(p) (p)->GetType()632#endif633634635636637#undef INTERFACE638#define INTERFACE IDirect3DBaseTexture8639640DECLARE_INTERFACE_(IDirect3DBaseTexture8, IDirect3DResource8)641{642/*** IUnknown methods ***/643STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;644STDMETHOD_(ULONG,AddRef)(THIS) PURE;645STDMETHOD_(ULONG,Release)(THIS) PURE;646647/*** IDirect3DResource8 methods ***/648STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** ppDevice) PURE;649STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;650STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;651STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;652STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;653STDMETHOD_(DWORD, GetPriority)(THIS) PURE;654STDMETHOD_(void, PreLoad)(THIS) PURE;655STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;656STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;657STDMETHOD_(DWORD, GetLOD)(THIS) PURE;658STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;659};660661typedef struct IDirect3DBaseTexture8 *LPDIRECT3DBASETEXTURE8, *PDIRECT3DBASETEXTURE8;662663#if !defined(__cplusplus) || defined(CINTERFACE)664#define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)665#define IDirect3DBaseTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)666#define IDirect3DBaseTexture8_Release(p) (p)->lpVtbl->Release(p)667#define IDirect3DBaseTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)668#define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)669#define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)670#define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)671#define IDirect3DBaseTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)672#define IDirect3DBaseTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)673#define IDirect3DBaseTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)674#define IDirect3DBaseTexture8_GetType(p) (p)->lpVtbl->GetType(p)675#define IDirect3DBaseTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)676#define IDirect3DBaseTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)677#define IDirect3DBaseTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)678#else679#define IDirect3DBaseTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)680#define IDirect3DBaseTexture8_AddRef(p) (p)->AddRef()681#define IDirect3DBaseTexture8_Release(p) (p)->Release()682#define IDirect3DBaseTexture8_GetDevice(p,a) (p)->GetDevice(a)683#define IDirect3DBaseTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)684#define IDirect3DBaseTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)685#define IDirect3DBaseTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)686#define IDirect3DBaseTexture8_SetPriority(p,a) (p)->SetPriority(a)687#define IDirect3DBaseTexture8_GetPriority(p) (p)->GetPriority()688#define IDirect3DBaseTexture8_PreLoad(p) (p)->PreLoad()689#define IDirect3DBaseTexture8_GetType(p) (p)->GetType()690#define IDirect3DBaseTexture8_SetLOD(p,a) (p)->SetLOD(a)691#define IDirect3DBaseTexture8_GetLOD(p) (p)->GetLOD()692#define IDirect3DBaseTexture8_GetLevelCount(p) (p)->GetLevelCount()693#endif694695696697698699#undef INTERFACE700#define INTERFACE IDirect3DTexture8701702DECLARE_INTERFACE_(IDirect3DTexture8, IDirect3DBaseTexture8)703{704/*** IUnknown methods ***/705STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;706STDMETHOD_(ULONG,AddRef)(THIS) PURE;707STDMETHOD_(ULONG,Release)(THIS) PURE;708709/*** IDirect3DBaseTexture8 methods ***/710STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** ppDevice) PURE;711STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;712STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;713STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;714STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;715STDMETHOD_(DWORD, GetPriority)(THIS) PURE;716STDMETHOD_(void, PreLoad)(THIS) PURE;717STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;718STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;719STDMETHOD_(DWORD, GetLOD)(THIS) PURE;720STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;721STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC *pDesc) PURE;722STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level,IDirect3DSurface8** ppSurfaceLevel) PURE;723STDMETHOD(LockRect)(THIS_ UINT Level,D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE;724STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE;725STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pDirtyRect) PURE;726};727728typedef struct IDirect3DTexture8 *LPDIRECT3DTEXTURE8, *PDIRECT3DTEXTURE8;729730#if !defined(__cplusplus) || defined(CINTERFACE)731#define IDirect3DTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)732#define IDirect3DTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)733#define IDirect3DTexture8_Release(p) (p)->lpVtbl->Release(p)734#define IDirect3DTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)735#define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)736#define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)737#define IDirect3DTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)738#define IDirect3DTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)739#define IDirect3DTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)740#define IDirect3DTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)741#define IDirect3DTexture8_GetType(p) (p)->lpVtbl->GetType(p)742#define IDirect3DTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)743#define IDirect3DTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)744#define IDirect3DTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)745#define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)746#define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)747#define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)748#define IDirect3DTexture8_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)749#define IDirect3DTexture8_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)750#else751#define IDirect3DTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)752#define IDirect3DTexture8_AddRef(p) (p)->AddRef()753#define IDirect3DTexture8_Release(p) (p)->Release()754#define IDirect3DTexture8_GetDevice(p,a) (p)->GetDevice(a)755#define IDirect3DTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)756#define IDirect3DTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)757#define IDirect3DTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)758#define IDirect3DTexture8_SetPriority(p,a) (p)->SetPriority(a)759#define IDirect3DTexture8_GetPriority(p) (p)->GetPriority()760#define IDirect3DTexture8_PreLoad(p) (p)->PreLoad()761#define IDirect3DTexture8_GetType(p) (p)->GetType()762#define IDirect3DTexture8_SetLOD(p,a) (p)->SetLOD(a)763#define IDirect3DTexture8_GetLOD(p) (p)->GetLOD()764#define IDirect3DTexture8_GetLevelCount(p) (p)->GetLevelCount()765#define IDirect3DTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)766#define IDirect3DTexture8_GetSurfaceLevel(p,a,b) (p)->GetSurfaceLevel(a,b)767#define IDirect3DTexture8_LockRect(p,a,b,c,d) (p)->LockRect(a,b,c,d)768#define IDirect3DTexture8_UnlockRect(p,a) (p)->UnlockRect(a)769#define IDirect3DTexture8_AddDirtyRect(p,a) (p)->AddDirtyRect(a)770#endif771772773774775776#undef INTERFACE777#define INTERFACE IDirect3DVolumeTexture8778779DECLARE_INTERFACE_(IDirect3DVolumeTexture8, IDirect3DBaseTexture8)780{781/*** IUnknown methods ***/782STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;783STDMETHOD_(ULONG,AddRef)(THIS) PURE;784STDMETHOD_(ULONG,Release)(THIS) PURE;785786/*** IDirect3DBaseTexture8 methods ***/787STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** ppDevice) PURE;788STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;789STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;790STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;791STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;792STDMETHOD_(DWORD, GetPriority)(THIS) PURE;793STDMETHOD_(void, PreLoad)(THIS) PURE;794STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;795STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;796STDMETHOD_(DWORD, GetLOD)(THIS) PURE;797STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;798STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DVOLUME_DESC *pDesc) PURE;799STDMETHOD(GetVolumeLevel)(THIS_ UINT Level,IDirect3DVolume8** ppVolumeLevel) PURE;800STDMETHOD(LockBox)(THIS_ UINT Level,D3DLOCKED_BOX* pLockedVolume,CONST D3DBOX* pBox,DWORD Flags) PURE;801STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE;802STDMETHOD(AddDirtyBox)(THIS_ CONST D3DBOX* pDirtyBox) PURE;803};804805typedef struct IDirect3DVolumeTexture8 *LPDIRECT3DVOLUMETEXTURE8, *PDIRECT3DVOLUMETEXTURE8;806807#if !defined(__cplusplus) || defined(CINTERFACE)808#define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)809#define IDirect3DVolumeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)810#define IDirect3DVolumeTexture8_Release(p) (p)->lpVtbl->Release(p)811#define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)812#define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)813#define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)814#define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)815#define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)816#define IDirect3DVolumeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)817#define IDirect3DVolumeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)818#define IDirect3DVolumeTexture8_GetType(p) (p)->lpVtbl->GetType(p)819#define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)820#define IDirect3DVolumeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)821#define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)822#define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)823#define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)824#define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)825#define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)826#define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)827#else828#define IDirect3DVolumeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)829#define IDirect3DVolumeTexture8_AddRef(p) (p)->AddRef()830#define IDirect3DVolumeTexture8_Release(p) (p)->Release()831#define IDirect3DVolumeTexture8_GetDevice(p,a) (p)->GetDevice(a)832#define IDirect3DVolumeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)833#define IDirect3DVolumeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)834#define IDirect3DVolumeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)835#define IDirect3DVolumeTexture8_SetPriority(p,a) (p)->SetPriority(a)836#define IDirect3DVolumeTexture8_GetPriority(p) (p)->GetPriority()837#define IDirect3DVolumeTexture8_PreLoad(p) (p)->PreLoad()838#define IDirect3DVolumeTexture8_GetType(p) (p)->GetType()839#define IDirect3DVolumeTexture8_SetLOD(p,a) (p)->SetLOD(a)840#define IDirect3DVolumeTexture8_GetLOD(p) (p)->GetLOD()841#define IDirect3DVolumeTexture8_GetLevelCount(p) (p)->GetLevelCount()842#define IDirect3DVolumeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)843#define IDirect3DVolumeTexture8_GetVolumeLevel(p,a,b) (p)->GetVolumeLevel(a,b)844#define IDirect3DVolumeTexture8_LockBox(p,a,b,c,d) (p)->LockBox(a,b,c,d)845#define IDirect3DVolumeTexture8_UnlockBox(p,a) (p)->UnlockBox(a)846#define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->AddDirtyBox(a)847#endif848849850851852853#undef INTERFACE854#define INTERFACE IDirect3DCubeTexture8855856DECLARE_INTERFACE_(IDirect3DCubeTexture8, IDirect3DBaseTexture8)857{858/*** IUnknown methods ***/859STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;860STDMETHOD_(ULONG,AddRef)(THIS) PURE;861STDMETHOD_(ULONG,Release)(THIS) PURE;862863/*** IDirect3DBaseTexture8 methods ***/864STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** ppDevice) PURE;865STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;866STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;867STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;868STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;869STDMETHOD_(DWORD, GetPriority)(THIS) PURE;870STDMETHOD_(void, PreLoad)(THIS) PURE;871STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;872STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;873STDMETHOD_(DWORD, GetLOD)(THIS) PURE;874STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;875STDMETHOD(GetLevelDesc)(THIS_ UINT Level,D3DSURFACE_DESC *pDesc) PURE;876STDMETHOD(GetCubeMapSurface)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,IDirect3DSurface8** ppCubeMapSurface) PURE;877STDMETHOD(LockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level,D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE;878STDMETHOD(UnlockRect)(THIS_ D3DCUBEMAP_FACES FaceType,UINT Level) PURE;879STDMETHOD(AddDirtyRect)(THIS_ D3DCUBEMAP_FACES FaceType,CONST RECT* pDirtyRect) PURE;880};881882typedef struct IDirect3DCubeTexture8 *LPDIRECT3DCUBETEXTURE8, *PDIRECT3DCUBETEXTURE8;883884#if !defined(__cplusplus) || defined(CINTERFACE)885#define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)886#define IDirect3DCubeTexture8_AddRef(p) (p)->lpVtbl->AddRef(p)887#define IDirect3DCubeTexture8_Release(p) (p)->lpVtbl->Release(p)888#define IDirect3DCubeTexture8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)889#define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)890#define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)891#define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)892#define IDirect3DCubeTexture8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)893#define IDirect3DCubeTexture8_GetPriority(p) (p)->lpVtbl->GetPriority(p)894#define IDirect3DCubeTexture8_PreLoad(p) (p)->lpVtbl->PreLoad(p)895#define IDirect3DCubeTexture8_GetType(p) (p)->lpVtbl->GetType(p)896#define IDirect3DCubeTexture8_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)897#define IDirect3DCubeTexture8_GetLOD(p) (p)->lpVtbl->GetLOD(p)898#define IDirect3DCubeTexture8_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)899#define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)900#define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)901#define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)902#define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)903#define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)904#else905#define IDirect3DCubeTexture8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)906#define IDirect3DCubeTexture8_AddRef(p) (p)->AddRef()907#define IDirect3DCubeTexture8_Release(p) (p)->Release()908#define IDirect3DCubeTexture8_GetDevice(p,a) (p)->GetDevice(a)909#define IDirect3DCubeTexture8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)910#define IDirect3DCubeTexture8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)911#define IDirect3DCubeTexture8_FreePrivateData(p,a) (p)->FreePrivateData(a)912#define IDirect3DCubeTexture8_SetPriority(p,a) (p)->SetPriority(a)913#define IDirect3DCubeTexture8_GetPriority(p) (p)->GetPriority()914#define IDirect3DCubeTexture8_PreLoad(p) (p)->PreLoad()915#define IDirect3DCubeTexture8_GetType(p) (p)->GetType()916#define IDirect3DCubeTexture8_SetLOD(p,a) (p)->SetLOD(a)917#define IDirect3DCubeTexture8_GetLOD(p) (p)->GetLOD()918#define IDirect3DCubeTexture8_GetLevelCount(p) (p)->GetLevelCount()919#define IDirect3DCubeTexture8_GetLevelDesc(p,a,b) (p)->GetLevelDesc(a,b)920#define IDirect3DCubeTexture8_GetCubeMapSurface(p,a,b,c) (p)->GetCubeMapSurface(a,b,c)921#define IDirect3DCubeTexture8_LockRect(p,a,b,c,d,e) (p)->LockRect(a,b,c,d,e)922#define IDirect3DCubeTexture8_UnlockRect(p,a,b) (p)->UnlockRect(a,b)923#define IDirect3DCubeTexture8_AddDirtyRect(p,a,b) (p)->AddDirtyRect(a,b)924#endif925926927928929#undef INTERFACE930#define INTERFACE IDirect3DVertexBuffer8931932DECLARE_INTERFACE_(IDirect3DVertexBuffer8, IDirect3DResource8)933{934/*** IUnknown methods ***/935STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;936STDMETHOD_(ULONG,AddRef)(THIS) PURE;937STDMETHOD_(ULONG,Release)(THIS) PURE;938939/*** IDirect3DResource8 methods ***/940STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** ppDevice) PURE;941STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;942STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;943STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;944STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;945STDMETHOD_(DWORD, GetPriority)(THIS) PURE;946STDMETHOD_(void, PreLoad)(THIS) PURE;947STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;948STDMETHOD(Lock)(THIS_ UINT OffsetToLock,UINT SizeToLock,BYTE** ppbData,DWORD Flags) PURE;949STDMETHOD(Unlock)(THIS) PURE;950STDMETHOD(GetDesc)(THIS_ D3DVERTEXBUFFER_DESC *pDesc) PURE;951};952953typedef struct IDirect3DVertexBuffer8 *LPDIRECT3DVERTEXBUFFER8, *PDIRECT3DVERTEXBUFFER8;954955#if !defined(__cplusplus) || defined(CINTERFACE)956#define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)957#define IDirect3DVertexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)958#define IDirect3DVertexBuffer8_Release(p) (p)->lpVtbl->Release(p)959#define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)960#define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)961#define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)962#define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)963#define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)964#define IDirect3DVertexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p)965#define IDirect3DVertexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p)966#define IDirect3DVertexBuffer8_GetType(p) (p)->lpVtbl->GetType(p)967#define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)968#define IDirect3DVertexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p)969#define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)970#else971#define IDirect3DVertexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)972#define IDirect3DVertexBuffer8_AddRef(p) (p)->AddRef()973#define IDirect3DVertexBuffer8_Release(p) (p)->Release()974#define IDirect3DVertexBuffer8_GetDevice(p,a) (p)->GetDevice(a)975#define IDirect3DVertexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)976#define IDirect3DVertexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)977#define IDirect3DVertexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a)978#define IDirect3DVertexBuffer8_SetPriority(p,a) (p)->SetPriority(a)979#define IDirect3DVertexBuffer8_GetPriority(p) (p)->GetPriority()980#define IDirect3DVertexBuffer8_PreLoad(p) (p)->PreLoad()981#define IDirect3DVertexBuffer8_GetType(p) (p)->GetType()982#define IDirect3DVertexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)983#define IDirect3DVertexBuffer8_Unlock(p) (p)->Unlock()984#define IDirect3DVertexBuffer8_GetDesc(p,a) (p)->GetDesc(a)985#endif986987988989990#undef INTERFACE991#define INTERFACE IDirect3DIndexBuffer8992993DECLARE_INTERFACE_(IDirect3DIndexBuffer8, IDirect3DResource8)994{995/*** IUnknown methods ***/996STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;997STDMETHOD_(ULONG,AddRef)(THIS) PURE;998STDMETHOD_(ULONG,Release)(THIS) PURE;9991000/*** IDirect3DResource8 methods ***/1001STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** ppDevice) PURE;1002STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;1003STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;1004STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;1005STDMETHOD_(DWORD, SetPriority)(THIS_ DWORD PriorityNew) PURE;1006STDMETHOD_(DWORD, GetPriority)(THIS) PURE;1007STDMETHOD_(void, PreLoad)(THIS) PURE;1008STDMETHOD_(D3DRESOURCETYPE, GetType)(THIS) PURE;1009STDMETHOD(Lock)(THIS_ UINT OffsetToLock,UINT SizeToLock,BYTE** ppbData,DWORD Flags) PURE;1010STDMETHOD(Unlock)(THIS) PURE;1011STDMETHOD(GetDesc)(THIS_ D3DINDEXBUFFER_DESC *pDesc) PURE;1012};10131014typedef struct IDirect3DIndexBuffer8 *LPDIRECT3DINDEXBUFFER8, *PDIRECT3DINDEXBUFFER8;10151016#if !defined(__cplusplus) || defined(CINTERFACE)1017#define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)1018#define IDirect3DIndexBuffer8_AddRef(p) (p)->lpVtbl->AddRef(p)1019#define IDirect3DIndexBuffer8_Release(p) (p)->lpVtbl->Release(p)1020#define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)1021#define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)1022#define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)1023#define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)1024#define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)1025#define IDirect3DIndexBuffer8_GetPriority(p) (p)->lpVtbl->GetPriority(p)1026#define IDirect3DIndexBuffer8_PreLoad(p) (p)->lpVtbl->PreLoad(p)1027#define IDirect3DIndexBuffer8_GetType(p) (p)->lpVtbl->GetType(p)1028#define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)1029#define IDirect3DIndexBuffer8_Unlock(p) (p)->lpVtbl->Unlock(p)1030#define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)1031#else1032#define IDirect3DIndexBuffer8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)1033#define IDirect3DIndexBuffer8_AddRef(p) (p)->AddRef()1034#define IDirect3DIndexBuffer8_Release(p) (p)->Release()1035#define IDirect3DIndexBuffer8_GetDevice(p,a) (p)->GetDevice(a)1036#define IDirect3DIndexBuffer8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)1037#define IDirect3DIndexBuffer8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)1038#define IDirect3DIndexBuffer8_FreePrivateData(p,a) (p)->FreePrivateData(a)1039#define IDirect3DIndexBuffer8_SetPriority(p,a) (p)->SetPriority(a)1040#define IDirect3DIndexBuffer8_GetPriority(p) (p)->GetPriority()1041#define IDirect3DIndexBuffer8_PreLoad(p) (p)->PreLoad()1042#define IDirect3DIndexBuffer8_GetType(p) (p)->GetType()1043#define IDirect3DIndexBuffer8_Lock(p,a,b,c,d) (p)->Lock(a,b,c,d)1044#define IDirect3DIndexBuffer8_Unlock(p) (p)->Unlock()1045#define IDirect3DIndexBuffer8_GetDesc(p,a) (p)->GetDesc(a)1046#endif10471048104910501051#undef INTERFACE1052#define INTERFACE IDirect3DSurface810531054DECLARE_INTERFACE_(IDirect3DSurface8, IUnknown)1055{1056/*** IUnknown methods ***/1057STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;1058STDMETHOD_(ULONG,AddRef)(THIS) PURE;1059STDMETHOD_(ULONG,Release)(THIS) PURE;10601061/*** IDirect3DSurface8 methods ***/1062STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** ppDevice) PURE;1063STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;1064STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;1065STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;1066STDMETHOD(GetContainer)(THIS_ REFIID riid,void** ppContainer) PURE;1067STDMETHOD(GetDesc)(THIS_ D3DSURFACE_DESC *pDesc) PURE;1068STDMETHOD(LockRect)(THIS_ D3DLOCKED_RECT* pLockedRect,CONST RECT* pRect,DWORD Flags) PURE;1069STDMETHOD(UnlockRect)(THIS) PURE;1070};10711072typedef struct IDirect3DSurface8 *LPDIRECT3DSURFACE8, *PDIRECT3DSURFACE8;10731074#if !defined(__cplusplus) || defined(CINTERFACE)1075#define IDirect3DSurface8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)1076#define IDirect3DSurface8_AddRef(p) (p)->lpVtbl->AddRef(p)1077#define IDirect3DSurface8_Release(p) (p)->lpVtbl->Release(p)1078#define IDirect3DSurface8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)1079#define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)1080#define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)1081#define IDirect3DSurface8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)1082#define IDirect3DSurface8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)1083#define IDirect3DSurface8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)1084#define IDirect3DSurface8_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)1085#define IDirect3DSurface8_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)1086#else1087#define IDirect3DSurface8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)1088#define IDirect3DSurface8_AddRef(p) (p)->AddRef()1089#define IDirect3DSurface8_Release(p) (p)->Release()1090#define IDirect3DSurface8_GetDevice(p,a) (p)->GetDevice(a)1091#define IDirect3DSurface8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)1092#define IDirect3DSurface8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)1093#define IDirect3DSurface8_FreePrivateData(p,a) (p)->FreePrivateData(a)1094#define IDirect3DSurface8_GetContainer(p,a,b) (p)->GetContainer(a,b)1095#define IDirect3DSurface8_GetDesc(p,a) (p)->GetDesc(a)1096#define IDirect3DSurface8_LockRect(p,a,b,c) (p)->LockRect(a,b,c)1097#define IDirect3DSurface8_UnlockRect(p) (p)->UnlockRect()1098#endif10991100110111021103#undef INTERFACE1104#define INTERFACE IDirect3DVolume811051106DECLARE_INTERFACE_(IDirect3DVolume8, IUnknown)1107{1108/*** IUnknown methods ***/1109STDMETHOD(QueryInterface)(THIS_ REFIID riid, void** ppvObj) PURE;1110STDMETHOD_(ULONG,AddRef)(THIS) PURE;1111STDMETHOD_(ULONG,Release)(THIS) PURE;11121113/*** IDirect3DVolume8 methods ***/1114STDMETHOD(GetDevice)(THIS_ IDirect3DDevice8** ppDevice) PURE;1115STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid,CONST void* pData,DWORD SizeOfData,DWORD Flags) PURE;1116STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid,void* pData,DWORD* pSizeOfData) PURE;1117STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;1118STDMETHOD(GetContainer)(THIS_ REFIID riid,void** ppContainer) PURE;1119STDMETHOD(GetDesc)(THIS_ D3DVOLUME_DESC *pDesc) PURE;1120STDMETHOD(LockBox)(THIS_ D3DLOCKED_BOX * pLockedVolume,CONST D3DBOX* pBox,DWORD Flags) PURE;1121STDMETHOD(UnlockBox)(THIS) PURE;1122};11231124typedef struct IDirect3DVolume8 *LPDIRECT3DVOLUME8, *PDIRECT3DVOLUME8;11251126#if !defined(__cplusplus) || defined(CINTERFACE)1127#define IDirect3DVolume8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)1128#define IDirect3DVolume8_AddRef(p) (p)->lpVtbl->AddRef(p)1129#define IDirect3DVolume8_Release(p) (p)->lpVtbl->Release(p)1130#define IDirect3DVolume8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)1131#define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)1132#define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)1133#define IDirect3DVolume8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)1134#define IDirect3DVolume8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)1135#define IDirect3DVolume8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)1136#define IDirect3DVolume8_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)1137#define IDirect3DVolume8_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)1138#else1139#define IDirect3DVolume8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)1140#define IDirect3DVolume8_AddRef(p) (p)->AddRef()1141#define IDirect3DVolume8_Release(p) (p)->Release()1142#define IDirect3DVolume8_GetDevice(p,a) (p)->GetDevice(a)1143#define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->SetPrivateData(a,b,c,d)1144#define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->GetPrivateData(a,b,c)1145#define IDirect3DVolume8_FreePrivateData(p,a) (p)->FreePrivateData(a)1146#define IDirect3DVolume8_GetContainer(p,a,b) (p)->GetContainer(a,b)1147#define IDirect3DVolume8_GetDesc(p,a) (p)->GetDesc(a)1148#define IDirect3DVolume8_LockBox(p,a,b,c) (p)->LockBox(a,b,c)1149#define IDirect3DVolume8_UnlockBox(p) (p)->UnlockBox()1150#endif11511152/****************************************************************************1153* Flags for SetPrivateData method on all D3D8 interfaces1154*1155* The passed pointer is an IUnknown ptr. The SizeOfData argument to SetPrivateData1156* must be set to sizeof(IUnknown*). Direct3D will call AddRef through this1157* pointer and Release when the private data is destroyed. The data will be1158* destroyed when another SetPrivateData with the same GUID is set, when1159* FreePrivateData is called, or when the D3D8 object is freed.1160****************************************************************************/1161#define D3DSPD_IUNKNOWN 0x00000001L11621163/****************************************************************************1164*1165* Parameter for IDirect3D8 Enum and GetCaps8 functions to get the info for1166* the current mode only.1167*1168****************************************************************************/11691170#define D3DCURRENT_DISPLAY_MODE 0x00EFFFFFL11711172/****************************************************************************1173*1174* Flags for IDirect3D8::CreateDevice's BehaviorFlags1175*1176****************************************************************************/11771178#define D3DCREATE_FPU_PRESERVE 0x00000002L1179#define D3DCREATE_MULTITHREADED 0x00000004L11801181#define D3DCREATE_PUREDEVICE 0x00000010L1182#define D3DCREATE_SOFTWARE_VERTEXPROCESSING 0x00000020L1183#define D3DCREATE_HARDWARE_VERTEXPROCESSING 0x00000040L1184#define D3DCREATE_MIXED_VERTEXPROCESSING 0x00000080L11851186#define D3DCREATE_DISABLE_DRIVER_MANAGEMENT 0x00000100L118711881189/****************************************************************************1190*1191* Parameter for IDirect3D8::CreateDevice's iAdapter1192*1193****************************************************************************/11941195#define D3DADAPTER_DEFAULT 011961197/****************************************************************************1198*1199* Flags for IDirect3D8::EnumAdapters1200*1201****************************************************************************/12021203#define D3DENUM_NO_WHQL_LEVEL 0x00000002L12041205/****************************************************************************1206*1207* Maximum number of back-buffers supported in DX81208*1209****************************************************************************/12101211#define D3DPRESENT_BACK_BUFFERS_MAX 3L12121213/****************************************************************************1214*1215* Flags for IDirect3DDevice8::SetGammaRamp1216*1217****************************************************************************/12181219#define D3DSGR_NO_CALIBRATION 0x00000000L1220#define D3DSGR_CALIBRATE 0x00000001L12211222/****************************************************************************1223*1224* Flags for IDirect3DDevice8::SetCursorPosition1225*1226****************************************************************************/12271228#define D3DCURSOR_IMMEDIATE_UPDATE 0x00000001L12291230/****************************************************************************1231*1232* Flags for DrawPrimitive/DrawIndexedPrimitive1233* Also valid for Begin/BeginIndexed1234* Also valid for VertexBuffer::CreateVertexBuffer1235****************************************************************************/123612371238/*1239* DirectDraw error codes1240*/1241#define _FACD3D 0x8761242#define MAKE_D3DHRESULT( code ) MAKE_HRESULT( 1, _FACD3D, code )12431244/*1245* Direct3D Errors1246*/1247#define D3D_OK S_OK12481249#define D3DERR_WRONGTEXTUREFORMAT MAKE_D3DHRESULT(2072)1250#define D3DERR_UNSUPPORTEDCOLOROPERATION MAKE_D3DHRESULT(2073)1251#define D3DERR_UNSUPPORTEDCOLORARG MAKE_D3DHRESULT(2074)1252#define D3DERR_UNSUPPORTEDALPHAOPERATION MAKE_D3DHRESULT(2075)1253#define D3DERR_UNSUPPORTEDALPHAARG MAKE_D3DHRESULT(2076)1254#define D3DERR_TOOMANYOPERATIONS MAKE_D3DHRESULT(2077)1255#define D3DERR_CONFLICTINGTEXTUREFILTER MAKE_D3DHRESULT(2078)1256#define D3DERR_UNSUPPORTEDFACTORVALUE MAKE_D3DHRESULT(2079)1257#define D3DERR_CONFLICTINGRENDERSTATE MAKE_D3DHRESULT(2081)1258#define D3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_D3DHRESULT(2082)1259#define D3DERR_CONFLICTINGTEXTUREPALETTE MAKE_D3DHRESULT(2086)1260#define D3DERR_DRIVERINTERNALERROR MAKE_D3DHRESULT(2087)12611262#define D3DERR_NOTFOUND MAKE_D3DHRESULT(2150)1263#define D3DERR_MOREDATA MAKE_D3DHRESULT(2151)1264#define D3DERR_DEVICELOST MAKE_D3DHRESULT(2152)1265#define D3DERR_DEVICENOTRESET MAKE_D3DHRESULT(2153)1266#define D3DERR_NOTAVAILABLE MAKE_D3DHRESULT(2154)1267#define D3DERR_OUTOFVIDEOMEMORY MAKE_D3DHRESULT(380)1268#define D3DERR_INVALIDDEVICE MAKE_D3DHRESULT(2155)1269#define D3DERR_INVALIDCALL MAKE_D3DHRESULT(2156)1270#define D3DERR_DRIVERINVALIDCALL MAKE_D3DHRESULT(2157)12711272#ifdef __cplusplus1273};1274#endif12751276#endif /* (DIRECT3D_VERSION >= 0x0800) */1277#endif /* _D3D_H_ */1278127912801281