2003-11-14 04:50:35 +01:00
|
|
|
|
/*
|
|
|
|
|
* Direct3D wine internal public interface file
|
|
|
|
|
*
|
|
|
|
|
* Copyright 2002-2003 The wine-d3d team
|
|
|
|
|
* Copyright 2002-2003 Raphael Junqueira
|
2005-03-02 13:16:10 +01:00
|
|
|
|
* Copyright 2005 Oliver Stieber
|
2006-04-17 17:51:21 +02:00
|
|
|
|
* Copyright 2006 Stefan D<EFBFBD>singer for CodeWeavers
|
2003-11-14 04:50:35 +01:00
|
|
|
|
*
|
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-11-14 04:50:35 +01:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef __WINE_WINED3D_INTERFACE_H
|
|
|
|
|
#define __WINE_WINED3D_INTERFACE_H
|
|
|
|
|
|
|
|
|
|
#if !defined( __WINE_CONFIG_H )
|
|
|
|
|
# error You must include config.h to use this header
|
|
|
|
|
#endif
|
|
|
|
|
|
2007-04-14 22:44:55 +02:00
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
|
#include <objbase.h>
|
|
|
|
|
|
|
|
|
|
/* Stupid DDraw Struct references surfaces */
|
|
|
|
|
struct IWineD3DSurface;
|
2006-04-14 19:15:46 +02:00
|
|
|
|
|
2005-03-03 14:57:15 +01:00
|
|
|
|
#include "wined3d_types.h"
|
2003-11-14 04:50:35 +01:00
|
|
|
|
/*****************************************************************
|
|
|
|
|
* THIS FILE MUST NOT CONTAIN X11 or MESA DEFINES
|
|
|
|
|
* PLEASE USE wine/wined3d_gl.h INSTEAD
|
|
|
|
|
*/
|
|
|
|
|
|
2006-04-07 12:51:12 +02:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* #defines and error codes
|
|
|
|
|
*/
|
|
|
|
|
#define _FACWINED3D 0x876
|
|
|
|
|
#define MAKE_WINED3DHRESULT( code ) MAKE_HRESULT( 1, _FACWINED3D, code )
|
|
|
|
|
#define MAKE_WINED3DSTATUS( code ) MAKE_HRESULT( 0, _FACWINED3D, code )
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* Direct3D Errors
|
|
|
|
|
*/
|
|
|
|
|
#define WINED3D_OK S_OK
|
|
|
|
|
#define WINED3DERR_WRONGTEXTUREFORMAT MAKE_WINED3DHRESULT(2072)
|
|
|
|
|
#define WINED3DERR_UNSUPPORTEDCOLOROPERATION MAKE_WINED3DHRESULT(2073)
|
|
|
|
|
#define WINED3DERR_UNSUPPORTEDCOLORARG MAKE_WINED3DHRESULT(2074)
|
|
|
|
|
#define WINED3DERR_UNSUPPORTEDALPHAOPERATION MAKE_WINED3DHRESULT(2075)
|
|
|
|
|
#define WINED3DERR_UNSUPPORTEDALPHAARG MAKE_WINED3DHRESULT(2076)
|
|
|
|
|
#define WINED3DERR_TOOMANYOPERATIONS MAKE_WINED3DHRESULT(2077)
|
|
|
|
|
#define WINED3DERR_CONFLICTINGTEXTUREFILTER MAKE_WINED3DHRESULT(2078)
|
|
|
|
|
#define WINED3DERR_UNSUPPORTEDFACTORVALUE MAKE_WINED3DHRESULT(2079)
|
|
|
|
|
#define WINED3DERR_CONFLICTINGRENDERSTATE MAKE_WINED3DHRESULT(2081)
|
|
|
|
|
#define WINED3DERR_UNSUPPORTEDTEXTUREFILTER MAKE_WINED3DHRESULT(2082)
|
|
|
|
|
#define WINED3DERR_CONFLICTINGTEXTUREPALETTE MAKE_WINED3DHRESULT(2086)
|
|
|
|
|
#define WINED3DERR_DRIVERINTERNALERROR MAKE_WINED3DHRESULT(2087)
|
|
|
|
|
#define WINED3DERR_NOTFOUND MAKE_WINED3DHRESULT(2150)
|
|
|
|
|
#define WINED3DERR_MOREDATA MAKE_WINED3DHRESULT(2151)
|
|
|
|
|
#define WINED3DERR_DEVICELOST MAKE_WINED3DHRESULT(2152)
|
|
|
|
|
#define WINED3DERR_DEVICENOTRESET MAKE_WINED3DHRESULT(2153)
|
|
|
|
|
#define WINED3DERR_NOTAVAILABLE MAKE_WINED3DHRESULT(2154)
|
|
|
|
|
#define WINED3DERR_OUTOFVIDEOMEMORY MAKE_WINED3DHRESULT(380)
|
|
|
|
|
#define WINED3DERR_INVALIDDEVICE MAKE_WINED3DHRESULT(2155)
|
|
|
|
|
#define WINED3DERR_INVALIDCALL MAKE_WINED3DHRESULT(2156)
|
|
|
|
|
#define WINED3DERR_DRIVERINVALIDCALL MAKE_WINED3DHRESULT(2157)
|
|
|
|
|
#define WINED3DERR_WASSTILLDRAWING MAKE_WINED3DHRESULT(540)
|
2007-04-14 22:44:55 +02:00
|
|
|
|
#define WINEDDERR_NOTAOVERLAYSURFACE MAKE_WINED3DHRESULT(580)
|
|
|
|
|
#define WINEDDERR_NODC MAKE_WINED3DHRESULT(586)
|
|
|
|
|
#define WINEDDERR_DCALREADYCREATED MAKE_WINED3DHRESULT(620)
|
|
|
|
|
#define WINEDDERR_NOTFLIPPABLE MAKE_WINED3DHRESULT(582)
|
|
|
|
|
#define WINEDDERR_SURFACEBUSY MAKE_WINED3DHRESULT(430)
|
|
|
|
|
#define WINEDDERR_INVALIDRECT MAKE_WINED3DHRESULT(150)
|
2007-04-28 17:59:37 +02:00
|
|
|
|
#define WINEDDERR_NOCLIPLIST MAKE_WINED3DHRESULT(205)
|
2006-04-07 12:51:12 +02:00
|
|
|
|
#define WINED3DOK_NOAUTOGEN MAKE_WINED3DSTATUS(2159)
|
2004-09-23 06:34:27 +02:00
|
|
|
|
|
2005-03-02 14:44:58 +01:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* Predeclare the interfaces
|
|
|
|
|
*/
|
2005-07-26 20:32:53 +02:00
|
|
|
|
|
|
|
|
|
struct IWineD3D;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
struct IWineD3DBase;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
struct IWineD3DDevice;
|
2006-04-17 17:04:59 +02:00
|
|
|
|
struct IWineD3DPalette;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
struct IWineD3DResource;
|
|
|
|
|
struct IWineD3DVertexBuffer;
|
|
|
|
|
struct IWineD3DIndexBuffer;
|
|
|
|
|
struct IWineD3DBaseTexture;
|
|
|
|
|
struct IWineD3DTexture;
|
|
|
|
|
struct IWineD3DCubeTexture;
|
|
|
|
|
struct IWineD3DVolumeTexture;
|
|
|
|
|
struct IWineD3DStateBlock;
|
|
|
|
|
struct IWineD3DVolume;
|
|
|
|
|
struct IWineD3DVertexDeclaration;
|
2006-03-28 21:10:51 +02:00
|
|
|
|
struct IWineD3DBaseShader;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
struct IWineD3DVertexShader;
|
|
|
|
|
struct IWineD3DPixelShader;
|
|
|
|
|
struct IWineD3DQuery;
|
|
|
|
|
struct IWineD3DSwapChain;
|
2007-04-28 17:59:37 +02:00
|
|
|
|
struct IWineD3DClipper;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
|
2005-03-02 14:44:58 +01:00
|
|
|
|
|
|
|
|
|
/* {108F9C44-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3D,
|
|
|
|
|
0x108f9c44, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
2006-01-17 15:58:22 +01:00
|
|
|
|
DEFINE_GUID(IID_IWineD3DBase,
|
|
|
|
|
0x46799311, 0x8e0e, 0x40ce, 0xb2, 0xec, 0xdd, 0xb9, 0x9f, 0x18, 0xfc, 0xb4);
|
|
|
|
|
|
2005-03-02 14:44:58 +01:00
|
|
|
|
/* {108F9C44-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DDevice,
|
|
|
|
|
0x108f9c44, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
2006-04-17 17:04:59 +02:00
|
|
|
|
/* {f756720c-32b9-4439-b5a3-1d6c97037d9e} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DPalette,
|
|
|
|
|
0xf756720c, 0x32b9, 0x4439, 0xb5, 0xa3, 0x1d, 0x6c, 0x97, 0x03, 0x7d, 0x9e);
|
2005-03-02 14:44:58 +01:00
|
|
|
|
|
|
|
|
|
/* {1F3BFB34-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DResource,
|
|
|
|
|
0x1f3bfb34, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {217F671E-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DVertexBuffer,
|
|
|
|
|
0x217f671e, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {24769ED8-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DVolume,
|
|
|
|
|
0x24769ed8, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* {34D01B10-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DSwapChain,
|
|
|
|
|
0x34d01b10, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {37CD5526-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DSurface,
|
|
|
|
|
0x37cd5526, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* {3A02A54E-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DIndexBuffer,
|
|
|
|
|
0x3a02a54e, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {3C2AEBF6-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DBaseTexture,
|
|
|
|
|
0x3c2aebf6, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {3E72CC1C-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DTexture,
|
|
|
|
|
0x3e72cc1c, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {41752900-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DCubeTexture,
|
|
|
|
|
0x41752900, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {7B39470C-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DVolumeTexture,
|
|
|
|
|
0x7b39470c, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {7CD55BE6-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DVertexDeclaration,
|
|
|
|
|
0x7cd55be6, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
2006-03-28 21:10:51 +02:00
|
|
|
|
/* {EAC93065-A4DF-446F-86A1-9EF2BCA40A3C} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DBaseShader,
|
|
|
|
|
0xeac93065, 0xa4df, 0x446f, 0x86, 0xa1, 0x9e, 0xf2, 0xbc, 0xa4, 0x0a, 0x3c);
|
|
|
|
|
|
2005-03-02 14:44:58 +01:00
|
|
|
|
/* {7F7A2B60-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DVertexShader,
|
|
|
|
|
0x7f7a2b60, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {818503DA-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DPixelShader,
|
|
|
|
|
0x818503da, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {83B073CE-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DStateBlock,
|
|
|
|
|
0x83b073ce, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
|
|
|
|
/* {905DDBAC-6F30-11d9-C687-00046142C14F} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DQuery,
|
|
|
|
|
0x905ddbac, 0x6f30, 0x11d9, 0xc6, 0x87, 0x0, 0x4, 0x61, 0x42, 0xc1, 0x4f);
|
|
|
|
|
|
2007-04-28 17:59:37 +02:00
|
|
|
|
/* {8f2bceb1-d338-488c-ab7f-0ec980bf5d2d} */
|
|
|
|
|
DEFINE_GUID(IID_IWineD3DClipper,
|
|
|
|
|
0x8f2bceb1, 0xd338, 0x488c, 0xab, 0x7f, 0x0e, 0xc9, 0x80, 0xbf, 0x5d, 0x2d);
|
|
|
|
|
|
2005-01-09 18:37:02 +01:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* Callback functions required for predefining surfaces / stencils
|
|
|
|
|
*/
|
2007-09-30 15:38:16 +02:00
|
|
|
|
typedef HRESULT (WINAPI *D3DCB_CREATERENDERTARGETFN) (IUnknown *pDevice,
|
2006-12-03 21:52:03 +01:00
|
|
|
|
IUnknown *pSuperior,
|
|
|
|
|
UINT Width,
|
|
|
|
|
UINT Height,
|
|
|
|
|
WINED3DFORMAT Format,
|
2006-03-24 17:34:26 +01:00
|
|
|
|
WINED3DMULTISAMPLE_TYPE MultiSample,
|
2005-01-09 18:37:02 +01:00
|
|
|
|
DWORD MultisampleQuality,
|
|
|
|
|
BOOL Lockable,
|
2005-07-26 20:32:53 +02:00
|
|
|
|
struct IWineD3DSurface **ppSurface,
|
2005-03-02 13:16:10 +01:00
|
|
|
|
HANDLE *pSharedHandle);
|
|
|
|
|
|
2007-09-30 15:38:16 +02:00
|
|
|
|
typedef HRESULT (WINAPI *D3DCB_CREATESURFACEFN) (IUnknown *pDevice,
|
2006-12-03 21:52:03 +01:00
|
|
|
|
IUnknown *pSuperior,
|
|
|
|
|
UINT Width,
|
2005-03-02 13:16:10 +01:00
|
|
|
|
UINT Height,
|
2005-03-29 21:01:00 +02:00
|
|
|
|
WINED3DFORMAT Format,
|
2005-03-02 13:16:10 +01:00
|
|
|
|
DWORD Usage,
|
2006-03-28 14:20:47 +02:00
|
|
|
|
WINED3DPOOL Pool,
|
2005-03-02 13:16:10 +01:00
|
|
|
|
UINT Level,
|
2007-04-24 10:29:22 +02:00
|
|
|
|
WINED3DCUBEMAP_FACES Face,
|
2005-07-26 20:32:53 +02:00
|
|
|
|
struct IWineD3DSurface **ppSurface,
|
2005-03-02 13:16:10 +01:00
|
|
|
|
HANDLE *pSharedHandle);
|
2004-09-29 23:26:47 +02:00
|
|
|
|
|
2007-09-30 15:38:16 +02:00
|
|
|
|
typedef HRESULT (WINAPI *D3DCB_CREATEDEPTHSTENCILSURFACEFN) (IUnknown *pDevice,
|
2006-12-03 21:52:03 +01:00
|
|
|
|
IUnknown *pSuperior,
|
|
|
|
|
UINT Width,
|
|
|
|
|
UINT Height,
|
|
|
|
|
WINED3DFORMAT Format,
|
2006-03-24 17:34:26 +01:00
|
|
|
|
WINED3DMULTISAMPLE_TYPE MultiSample,
|
2005-03-02 13:16:10 +01:00
|
|
|
|
DWORD MultisampleQuality,
|
|
|
|
|
BOOL Discard,
|
2005-07-26 20:32:53 +02:00
|
|
|
|
struct IWineD3DSurface **ppSurface,
|
2005-03-02 13:16:10 +01:00
|
|
|
|
HANDLE *pSharedHandle);
|
|
|
|
|
|
2005-01-17 14:44:57 +01:00
|
|
|
|
|
2007-09-30 15:38:16 +02:00
|
|
|
|
typedef HRESULT (WINAPI *D3DCB_CREATEVOLUMEFN) (IUnknown *pDevice,
|
2006-12-03 21:52:03 +01:00
|
|
|
|
IUnknown *pSuperior,
|
|
|
|
|
UINT Width,
|
|
|
|
|
UINT Height,
|
|
|
|
|
UINT Depth,
|
2005-03-29 21:01:00 +02:00
|
|
|
|
WINED3DFORMAT Format,
|
2006-03-28 14:20:47 +02:00
|
|
|
|
WINED3DPOOL Pool,
|
2005-01-17 14:44:57 +01:00
|
|
|
|
DWORD Usage,
|
2005-07-26 20:32:53 +02:00
|
|
|
|
struct IWineD3DVolume **ppVolume,
|
2005-03-02 13:16:10 +01:00
|
|
|
|
HANDLE *pSharedHandle);
|
2005-06-23 13:05:24 +02:00
|
|
|
|
|
2007-09-30 15:38:16 +02:00
|
|
|
|
typedef HRESULT (WINAPI *D3DCB_CREATEADDITIONALSWAPCHAIN) (IUnknown *pDevice,
|
2005-03-02 13:16:10 +01:00
|
|
|
|
WINED3DPRESENT_PARAMETERS *pPresentationParameters,
|
2005-07-26 20:32:53 +02:00
|
|
|
|
struct IWineD3DSwapChain **pSwapChain
|
2005-06-23 13:05:24 +02:00
|
|
|
|
);
|
2005-01-17 14:44:57 +01:00
|
|
|
|
|
2006-12-05 00:28:58 +01:00
|
|
|
|
/*****************************************************************************
|
2006-12-18 00:17:24 +01:00
|
|
|
|
* Callback functions for custom implicit object destruction.
|
2006-12-05 00:28:58 +01:00
|
|
|
|
*/
|
2007-09-30 15:38:16 +02:00
|
|
|
|
typedef ULONG (WINAPI *D3DCB_DESTROYSWAPCHAINFN) (struct IWineD3DSwapChain *pSwapChain);
|
2006-12-18 00:17:24 +01:00
|
|
|
|
|
2007-09-30 15:38:16 +02:00
|
|
|
|
typedef ULONG (WINAPI *D3DCB_DESTROYSURFACEFN) (struct IWineD3DSurface *pSurface);
|
2006-12-05 00:28:58 +01:00
|
|
|
|
|
2007-09-30 15:38:16 +02:00
|
|
|
|
typedef ULONG (WINAPI *D3DCB_DESTROYVOLUMEFN) (struct IWineD3DVolume *pVolume);
|
2006-12-05 00:29:21 +01:00
|
|
|
|
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DBase interface
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#define INTERFACE IWineD3DBase
|
|
|
|
|
DECLARE_INTERFACE_(IWineD3DBase, IUnknown)
|
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
|
|
|
|
/*** IWineD3DBase methods ***/
|
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DBase_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DBase_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DBase_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
|
/*** IWineD3DBase methods ***/
|
|
|
|
|
#define IWineD3DBase_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
|
|
|
|
#endif
|
|
|
|
|
|
2004-09-23 06:34:27 +02:00
|
|
|
|
/*****************************************************************************
|
2005-01-19 20:34:49 +01:00
|
|
|
|
* IWineD3D interface
|
2004-09-23 06:34:27 +02:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#define INTERFACE IWineD3D
|
2006-01-17 15:58:22 +01:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3D, IWineD3DBase)
|
2004-10-05 06:16:21 +02:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3D methods ***/
|
2004-10-05 06:16:21 +02:00
|
|
|
|
STDMETHOD_(UINT,GetAdapterCount)(THIS) PURE;
|
|
|
|
|
STDMETHOD(RegisterSoftwareDevice)(THIS_ void * pInitializeFunction) PURE;
|
|
|
|
|
STDMETHOD_(HMONITOR,GetAdapterMonitor)(THIS_ UINT Adapter) PURE;
|
2005-03-29 21:01:00 +02:00
|
|
|
|
STDMETHOD_(UINT,GetAdapterModeCount)(THIS_ UINT Adapter, WINED3DFORMAT Format) PURE;
|
2006-04-01 21:33:46 +02:00
|
|
|
|
STDMETHOD(EnumAdapterModes)(THIS_ UINT Adapter, UINT Mode, WINED3DFORMAT Format, WINED3DDISPLAYMODE * pMode) PURE;
|
|
|
|
|
STDMETHOD(GetAdapterDisplayMode)(THIS_ UINT Adapter, WINED3DDISPLAYMODE *pMode) PURE;
|
2004-10-05 06:16:21 +02:00
|
|
|
|
STDMETHOD(GetAdapterIdentifier)(THIS_ UINT Adapter, DWORD Flags, WINED3DADAPTER_IDENTIFIER* pIdentifier) PURE;
|
2006-03-30 00:16:08 +02:00
|
|
|
|
STDMETHOD(CheckDeviceMultiSampleType)(THIS_ UINT Adapter, WINED3DDEVTYPE DeviceType, WINED3DFORMAT SurfaceFormat, BOOL Windowed, WINED3DMULTISAMPLE_TYPE MultiSampleType, DWORD *pQuality) PURE;
|
|
|
|
|
STDMETHOD(CheckDepthStencilMatch)(THIS_ UINT Adapter, WINED3DDEVTYPE DeviceType, WINED3DFORMAT AdapterFormat, WINED3DFORMAT RenderTargetFormat, WINED3DFORMAT DepthStencilFormat) PURE;
|
|
|
|
|
STDMETHOD(CheckDeviceType)(THIS_ UINT Adapter, WINED3DDEVTYPE CheckType, WINED3DFORMAT DisplayFormat, WINED3DFORMAT BackBufferFormat, BOOL Windowed) PURE;
|
|
|
|
|
STDMETHOD(CheckDeviceFormat)(THIS_ UINT Adapter, WINED3DDEVTYPE DeviceType, WINED3DFORMAT AdapterFormat, DWORD Usage, WINED3DRESOURCETYPE RType, WINED3DFORMAT CheckFormat) PURE;
|
|
|
|
|
STDMETHOD(CheckDeviceFormatConversion)(THIS_ UINT Adapter, WINED3DDEVTYPE DeviceType, WINED3DFORMAT SourceFormat, WINED3DFORMAT TargetFormat) PURE;
|
|
|
|
|
STDMETHOD(GetDeviceCaps)(THIS_ UINT Adapter, WINED3DDEVTYPE DeviceType, WINED3DCAPS *pCaps) PURE;
|
2006-04-18 22:38:30 +02:00
|
|
|
|
STDMETHOD(CreateDevice)(THIS_ UINT Adapter, WINED3DDEVTYPE DeviceType,HWND hFocusWindow, DWORD BehaviorFlags, struct IWineD3DDevice **ppReturnedDeviceInterface, IUnknown *parent) PURE;
|
2005-06-23 13:05:24 +02:00
|
|
|
|
|
2004-10-05 06:16:21 +02:00
|
|
|
|
};
|
2004-09-23 06:34:27 +02:00
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
2004-10-04 22:38:32 +02:00
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
2004-09-23 06:34:27 +02:00
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3D_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3D_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3D_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
#define IWineD3D_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3D methods ***/
|
2004-09-23 06:34:27 +02:00
|
|
|
|
#define IWineD3D_GetAdapterCount(p) (p)->lpVtbl->GetAdapterCount(p)
|
2004-09-28 04:12:12 +02:00
|
|
|
|
#define IWineD3D_RegisterSoftwareDevice(p,a) (p)->lpVtbl->RegisterSoftwareDevice(p,a)
|
|
|
|
|
#define IWineD3D_GetAdapterMonitor(p,a) (p)->lpVtbl->GetAdapterMonitor(p,a)
|
|
|
|
|
#define IWineD3D_GetAdapterModeCount(p,a,b) (p)->lpVtbl->GetAdapterModeCount(p,a,b)
|
|
|
|
|
#define IWineD3D_EnumAdapterModes(p,a,b,c,d) (p)->lpVtbl->EnumAdapterModes(p,a,b,c,d)
|
|
|
|
|
#define IWineD3D_GetAdapterDisplayMode(p,a,b) (p)->lpVtbl->GetAdapterDisplayMode(p,a,b)
|
2004-09-29 23:26:47 +02:00
|
|
|
|
#define IWineD3D_GetAdapterIdentifier(p,a,b,c) (p)->lpVtbl->GetAdapterIdentifier(p,a,b,c)
|
2004-10-05 04:14:06 +02:00
|
|
|
|
#define IWineD3D_CheckDeviceMultiSampleType(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceMultiSampleType(p,a,b,c,d,e,f)
|
|
|
|
|
#define IWineD3D_CheckDepthStencilMatch(p,a,b,c,d,e) (p)->lpVtbl->CheckDepthStencilMatch(p,a,b,c,d,e)
|
|
|
|
|
#define IWineD3D_CheckDeviceType(p,a,b,c,d,e) (p)->lpVtbl->CheckDeviceType(p,a,b,c,d,e)
|
|
|
|
|
#define IWineD3D_CheckDeviceFormat(p,a,b,c,d,e,f) (p)->lpVtbl->CheckDeviceFormat(p,a,b,c,d,e,f)
|
|
|
|
|
#define IWineD3D_CheckDeviceFormatConversion(p,a,b,c,d) (p)->lpVtbl->CheckDeviceFormatConversion(p,a,b,c,d)
|
2004-10-06 02:05:29 +02:00
|
|
|
|
#define IWineD3D_GetDeviceCaps(p,a,b,c) (p)->lpVtbl->GetDeviceCaps(p,a,b,c)
|
2006-04-18 22:38:30 +02:00
|
|
|
|
#define IWineD3D_CreateDevice(p,a,b,c,d,e,f) (p)->lpVtbl->CreateDevice(p,a,b,c,d,e,f)
|
2004-09-23 06:34:27 +02:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Define the main WineD3D entrypoint */
|
2004-11-23 14:52:46 +01:00
|
|
|
|
IWineD3D* WINAPI WineDirect3DCreate(UINT SDKVersion, UINT dxVersion, IUnknown *parent);
|
2004-09-23 06:34:27 +02:00
|
|
|
|
|
2004-10-07 06:22:21 +02:00
|
|
|
|
/*****************************************************************************
|
2005-01-19 20:34:49 +01:00
|
|
|
|
* IWineD3DDevice interface
|
2004-10-07 06:22:21 +02:00
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DDevice
|
2006-01-17 15:58:22 +01:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DDevice,IWineD3DBase)
|
2005-01-19 20:34:49 +01:00
|
|
|
|
{
|
2004-10-07 06:22:21 +02:00
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DDevice methods ***/
|
2006-03-28 14:20:47 +02:00
|
|
|
|
STDMETHOD(CreateVertexBuffer)(THIS_ UINT Length,DWORD Usage,DWORD FVF,WINED3DPOOL Pool,struct IWineD3DVertexBuffer **ppVertexBuffer, HANDLE *sharedHandle, IUnknown *parent) PURE;
|
|
|
|
|
STDMETHOD(CreateIndexBuffer)(THIS_ UINT Length, DWORD Usage, WINED3DFORMAT Format, WINED3DPOOL Pool, struct IWineD3DIndexBuffer** ppIndexBuffer, HANDLE* pSharedHandle, IUnknown *parent) PURE;
|
2005-07-26 20:49:30 +02:00
|
|
|
|
STDMETHOD(CreateStateBlock)(THIS_ WINED3DSTATEBLOCKTYPE Type, struct IWineD3DStateBlock **ppStateBlock, IUnknown *parent) PURE;
|
2006-04-17 16:13:28 +02:00
|
|
|
|
STDMETHOD(CreateSurface)(THIS_ UINT Width, UINT Height, WINED3DFORMAT Format, BOOL Lockable, BOOL Discard, UINT Level, struct IWineD3DSurface** ppSurface, WINED3DRESOURCETYPE Type, DWORD Usage, WINED3DPOOL Pool, WINED3DMULTISAMPLE_TYPE MultiSample ,DWORD MultisampleQuality, HANDLE* pSharedHandle, WINED3DSURFTYPE Impl, IUnknown *parent) PURE;
|
2006-03-28 14:20:47 +02:00
|
|
|
|
STDMETHOD(CreateTexture)(THIS_ UINT Width, UINT Height, UINT Levels, DWORD Usage, WINED3DFORMAT Format, WINED3DPOOL Pool, struct IWineD3DTexture** ppTexture, HANDLE* pSharedHandle, IUnknown *parent, D3DCB_CREATESURFACEFN pFn) PURE;
|
|
|
|
|
STDMETHOD(CreateVolumeTexture)(THIS_ UINT Width, UINT Height, UINT Depth, UINT Levels, DWORD Usage, WINED3DFORMAT Format, WINED3DPOOL Pool, struct IWineD3DVolumeTexture** ppVolumeTexture, HANDLE* pSharedHandle, IUnknown *parent, D3DCB_CREATEVOLUMEFN pFn) PURE;
|
|
|
|
|
STDMETHOD(CreateVolume)(THIS_ UINT Width, UINT Height, UINT Depth, DWORD Usage, WINED3DFORMAT Format, WINED3DPOOL Pool, struct IWineD3DVolume** ppVolumeTexture, HANDLE* pSharedHandle, IUnknown *parent) PURE;
|
|
|
|
|
STDMETHOD(CreateCubeTexture)(THIS_ UINT EdgeLength, UINT Levels, DWORD Usage, WINED3DFORMAT Format, WINED3DPOOL Pool, struct IWineD3DCubeTexture** ppCubeTexture, HANDLE* pSharedHandle, IUnknown *parent, D3DCB_CREATESURFACEFN pFn) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(CreateQuery)(THIS_ WINED3DQUERYTYPE Type, struct IWineD3DQuery **ppQuery, IUnknown *pParent);
|
|
|
|
|
STDMETHOD(CreateAdditionalSwapChain)(THIS_ WINED3DPRESENT_PARAMETERS *pPresentationParameters, struct IWineD3DSwapChain **pSwapChain, IUnknown *pParent, D3DCB_CREATERENDERTARGETFN pFn, D3DCB_CREATEDEPTHSTENCILSURFACEFN pFn2);
|
2007-02-13 23:12:36 +01:00
|
|
|
|
STDMETHOD(CreateVertexDeclaration)(THIS_ struct IWineD3DVertexDeclaration** ppDecl, IUnknown* pParent, const WINED3DVERTEXELEMENT *elements, size_t element_count) PURE;
|
2007-04-22 11:52:11 +02:00
|
|
|
|
STDMETHOD(CreateVertexDeclarationFromFVF)(THIS_ struct IWineD3DVertexDeclaration** ppDecl, IUnknown* pParent, DWORD Fvf) PURE;
|
2007-02-13 23:12:29 +01:00
|
|
|
|
STDMETHOD(CreateVertexShader)(THIS_ struct IWineD3DVertexDeclaration *vertex_declaration, CONST DWORD* pFunction, struct IWineD3DVertexShader** ppShader, IUnknown *pParent) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(CreatePixelShader)(THIS_ CONST DWORD* pFunction, struct IWineD3DPixelShader** ppShader, IUnknown *pParent) PURE;
|
2006-04-17 17:04:59 +02:00
|
|
|
|
STDMETHOD_(HRESULT,CreatePalette)(THIS_ DWORD Flags, PALETTEENTRY *PalEnt, struct IWineD3DPalette **Palette, IUnknown *Parent);
|
2006-04-12 21:08:57 +02:00
|
|
|
|
STDMETHOD(Init3D)(THIS_ WINED3DPRESENT_PARAMETERS* pPresentationParameters, D3DCB_CREATEADDITIONALSWAPCHAIN D3DCB_CreateAdditionalSwapChain);
|
2006-12-18 00:17:24 +01:00
|
|
|
|
STDMETHOD(Uninit3D)(THIS, D3DCB_DESTROYSURFACEFN pFn, D3DCB_DESTROYSWAPCHAINFN pFn2);
|
2006-09-09 13:33:17 +02:00
|
|
|
|
STDMETHOD_(void, SetFullscreen)(THIS_ BOOL fullscreen);
|
2007-03-04 17:03:03 +01:00
|
|
|
|
STDMETHOD_(void, SetMultithreaded)(THIS);
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(EvictManagedResources)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(UINT, GetAvailableTextureMem)(THIS) PURE;
|
2006-04-01 22:06:57 +02:00
|
|
|
|
STDMETHOD(GetBackBuffer)(THIS_ UINT iSwapChain, UINT BackBuffer, WINED3DBACKBUFFER_TYPE, struct IWineD3DSurface** ppBackBuffer) PURE;
|
2006-04-03 14:54:16 +02:00
|
|
|
|
STDMETHOD(GetCreationParameters)(THIS_ WINED3DDEVICE_CREATION_PARAMETERS *pParameters) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(GetDeviceCaps)(THIS_ WINED3DCAPS* pCaps) PURE;
|
|
|
|
|
STDMETHOD(GetDirect3D)(THIS_ IWineD3D** ppD3D) PURE;
|
2006-04-01 21:33:46 +02:00
|
|
|
|
STDMETHOD(GetDisplayMode)(THIS_ UINT iSwapChain, WINED3DDISPLAYMODE* pMode) PURE;
|
2006-04-17 17:51:21 +02:00
|
|
|
|
STDMETHOD(SetDisplayMode)(THIS_ UINT iSwapChain, WINED3DDISPLAYMODE* pMode) PURE;
|
2006-04-13 23:37:47 +02:00
|
|
|
|
STDMETHOD(GetHWND)(THIS_ HWND *hwnd) PURE;
|
|
|
|
|
STDMETHOD(SetHWND)(THIS_ HWND hwnd) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD_(UINT, GetNumberOfSwapChains)(THIS) PURE;
|
2006-04-04 00:27:28 +02:00
|
|
|
|
STDMETHOD(GetRasterStatus)(THIS_ UINT iSwapChain, WINED3DRASTER_STATUS* pRasterStatus) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(GetSwapChain)(THIS_ UINT iSwapChain, struct IWineD3DSwapChain **pSwapChain) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(Reset)(THIS_ WINED3DPRESENT_PARAMETERS* pPresentationParameters) PURE;
|
|
|
|
|
STDMETHOD(SetDialogBoxMode)(THIS_ BOOL bEnableDialogs) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot, UINT YHotSpot, struct IWineD3DSurface* pCursorBitmap) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD_(void, SetCursorPosition)(THIS_ int XScreenSpace, int YScreenSpace, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD_(BOOL, ShowCursor)(THIS_ BOOL bShow) PURE;
|
|
|
|
|
STDMETHOD(TestCooperativeLevel)(THIS) PURE;
|
|
|
|
|
STDMETHOD(SetClipPlane)(THIS_ DWORD Index,CONST float * pPlane) PURE;
|
|
|
|
|
STDMETHOD(GetClipPlane)(THIS_ DWORD Index,float * pPlane) PURE;
|
|
|
|
|
STDMETHOD(SetClipStatus)(THIS_ CONST WINED3DCLIPSTATUS * pClipStatus) PURE;
|
|
|
|
|
STDMETHOD(GetClipStatus)(THIS_ WINED3DCLIPSTATUS * pClipStatus) PURE;
|
|
|
|
|
STDMETHOD(SetCurrentTexturePalette)(THIS_ UINT PaletteNumber) PURE;
|
|
|
|
|
STDMETHOD(GetCurrentTexturePalette)(THIS_ UINT *PaletteNumber) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(SetDepthStencilSurface)(THIS_ struct IWineD3DSurface* pNewZStencil) PURE;
|
|
|
|
|
STDMETHOD(GetDepthStencilSurface)(THIS_ struct IWineD3DSurface** ppZStencilSurface) PURE;
|
2004-10-21 22:59:12 +02:00
|
|
|
|
STDMETHOD(SetFVF)(THIS_ DWORD fvf) PURE;
|
|
|
|
|
STDMETHOD(GetFVF)(THIS_ DWORD * pfvf) PURE;
|
2006-04-04 13:44:17 +02:00
|
|
|
|
STDMETHOD_(void, SetGammaRamp)(THIS_ UINT iSwapChain, DWORD Flags, CONST WINED3DGAMMARAMP* pRamp) PURE;
|
|
|
|
|
STDMETHOD_(void, GetGammaRamp)(THIS_ UINT iSwapChain, WINED3DGAMMARAMP* pRamp) PURE;
|
2007-06-05 18:52:21 +02:00
|
|
|
|
STDMETHOD(SetIndices)(THIS_ struct IWineD3DIndexBuffer * pIndexData) PURE;
|
2007-06-06 18:40:09 +02:00
|
|
|
|
STDMETHOD(GetIndices)(THIS_ struct IWineD3DIndexBuffer ** ppIndexData) PURE;
|
2007-08-25 00:09:33 +02:00
|
|
|
|
STDMETHOD(SetBaseVertexIndex)(THIS_ INT baseIndex);
|
|
|
|
|
STDMETHOD(GetBaseVertexIndex)(THIS_ INT *baseIndex);
|
2004-11-29 18:53:42 +01:00
|
|
|
|
STDMETHOD(SetLight)(THIS_ DWORD Index,CONST WINED3DLIGHT * pLight) PURE;
|
|
|
|
|
STDMETHOD(GetLight)(THIS_ DWORD Index,WINED3DLIGHT * pLight) PURE;
|
|
|
|
|
STDMETHOD(SetLightEnable)(THIS_ DWORD Index,BOOL Enable) PURE;
|
|
|
|
|
STDMETHOD(GetLightEnable)(THIS_ DWORD Index,BOOL * pEnable) PURE;
|
|
|
|
|
STDMETHOD(SetMaterial)(THIS_ CONST WINED3DMATERIAL * pMaterial) PURE;
|
|
|
|
|
STDMETHOD(GetMaterial)(THIS_ WINED3DMATERIAL *pMaterial) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(SetNPatchMode)(THIS_ float nSegments) PURE;
|
|
|
|
|
STDMETHOD_(float, GetNPatchMode)(THIS) PURE;
|
|
|
|
|
STDMETHOD(SetPaletteEntries)(THIS_ UINT PaletteNumber, CONST PALETTEENTRY* pEntries) PURE;
|
|
|
|
|
STDMETHOD(GetPaletteEntries)(THIS_ UINT PaletteNumber,PALETTEENTRY* pEntries) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(SetPixelShader)(THIS_ struct IWineD3DPixelShader *pShader) PURE;
|
|
|
|
|
STDMETHOD(GetPixelShader)(THIS_ struct IWineD3DPixelShader **ppShader) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(SetPixelShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) PURE;
|
|
|
|
|
STDMETHOD(GetPixelShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE;
|
|
|
|
|
STDMETHOD(SetPixelShaderConstantI)(THIS_ UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) PURE;
|
|
|
|
|
STDMETHOD(GetPixelShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE;
|
|
|
|
|
STDMETHOD(SetPixelShaderConstantF)(THIS_ UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) PURE;
|
|
|
|
|
STDMETHOD(GetPixelShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE;
|
2006-10-12 08:19:57 +02:00
|
|
|
|
STDMETHOD(SetRenderState)(THIS_ WINED3DRENDERSTATETYPE State, DWORD Value) PURE;
|
|
|
|
|
STDMETHOD(GetRenderState)(THIS_ WINED3DRENDERSTATETYPE State, DWORD * pValue) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(SetRenderTarget)(THIS_ DWORD RenderTargetIndex, struct IWineD3DSurface* pRenderTarget) PURE;
|
|
|
|
|
STDMETHOD(GetRenderTarget)(THIS_ DWORD RenderTargetIndex, struct IWineD3DSurface** ppRenderTarget) PURE;
|
2006-04-15 22:40:14 +02:00
|
|
|
|
STDMETHOD(SetFrontBackBuffers)(THIS_ struct IWineD3DSurface *Front, struct IWineD3DSurface *Back) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(SetSamplerState)(THIS_ DWORD Sampler, WINED3DSAMPLERSTATETYPE Type, DWORD Value) PURE;
|
|
|
|
|
STDMETHOD(GetSamplerState)(THIS_ DWORD Sampler, WINED3DSAMPLERSTATETYPE Type, DWORD* Value) PURE;
|
|
|
|
|
STDMETHOD(SetScissorRect)(THIS_ CONST RECT* pRect) PURE;
|
|
|
|
|
STDMETHOD(GetScissorRect)(THIS_ RECT* pRect) PURE;
|
|
|
|
|
STDMETHOD(SetSoftwareVertexProcessing)(THIS_ BOOL bSoftware) PURE;
|
|
|
|
|
STDMETHOD_(BOOL, GetSoftwareVertexProcessing)(THIS) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(SetStreamSource)(THIS_ UINT StreamNumber,struct IWineD3DVertexBuffer * pStreamData,UINT Offset,UINT Stride) PURE;
|
|
|
|
|
STDMETHOD(GetStreamSource)(THIS_ UINT StreamNumber,struct IWineD3DVertexBuffer ** ppStreamData,UINT *pOffset, UINT * pStride) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(SetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT Divider) PURE;
|
|
|
|
|
STDMETHOD(GetStreamSourceFreq)(THIS_ UINT StreamNumber, UINT* Divider) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(SetTexture)(THIS_ DWORD Stage, struct IWineD3DBaseTexture* pTexture) PURE;
|
|
|
|
|
STDMETHOD(GetTexture)(THIS_ DWORD Stage, struct IWineD3DBaseTexture** ppTexture) PURE;
|
2005-06-24 13:53:07 +02:00
|
|
|
|
STDMETHOD(SetTextureStageState)(THIS_ DWORD Stage, WINED3DTEXTURESTAGESTATETYPE Type,DWORD Value) PURE;
|
|
|
|
|
STDMETHOD(GetTextureStageState)(THIS_ DWORD Stage, WINED3DTEXTURESTAGESTATETYPE Type,DWORD *pValue) PURE;
|
2006-10-12 08:21:39 +02:00
|
|
|
|
STDMETHOD(SetTransform)(THIS_ WINED3DTRANSFORMSTATETYPE State, CONST WINED3DMATRIX * pMatrix) PURE;
|
|
|
|
|
STDMETHOD(GetTransform)(THIS_ WINED3DTRANSFORMSTATETYPE State, WINED3DMATRIX * pMatrix) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(SetVertexDeclaration)(THIS_ struct IWineD3DVertexDeclaration* pDecl) PURE;
|
|
|
|
|
STDMETHOD(GetVertexDeclaration)(THIS_ struct IWineD3DVertexDeclaration** ppDecl) PURE;
|
|
|
|
|
STDMETHOD(SetVertexShader)(THIS_ struct IWineD3DVertexShader* pShader) PURE;
|
|
|
|
|
STDMETHOD(GetVertexShader)(THIS_ struct IWineD3DVertexShader** ppShader) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(SetVertexShaderConstantB)(THIS_ UINT StartRegister, CONST BOOL* pConstantData, UINT BoolCount) PURE;
|
|
|
|
|
STDMETHOD(GetVertexShaderConstantB)(THIS_ UINT StartRegister, BOOL* pConstantData, UINT BoolCount) PURE;
|
|
|
|
|
STDMETHOD(SetVertexShaderConstantI)(THIS_ UINT StartRegister, CONST int* pConstantData, UINT Vector4iCount) PURE;
|
|
|
|
|
STDMETHOD(GetVertexShaderConstantI)(THIS_ UINT StartRegister, int* pConstantData, UINT Vector4iCount) PURE;
|
|
|
|
|
STDMETHOD(SetVertexShaderConstantF)(THIS_ UINT StartRegister, CONST float* pConstantData, UINT Vector4fCount) PURE;
|
|
|
|
|
STDMETHOD(GetVertexShaderConstantF)(THIS_ UINT StartRegister, float* pConstantData, UINT Vector4fCount) PURE;
|
|
|
|
|
STDMETHOD(SetViewport)(THIS_ CONST WINED3DVIEWPORT * pViewport) PURE;
|
|
|
|
|
STDMETHOD(GetViewport)(THIS_ WINED3DVIEWPORT * pViewport) PURE;
|
2006-10-12 08:21:39 +02:00
|
|
|
|
STDMETHOD(MultiplyTransform)(THIS_ WINED3DTRANSFORMSTATETYPE State, CONST WINED3DMATRIX * pMatrix) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(ValidateDevice)(THIS_ DWORD* pNumPasses) PURE;
|
2007-04-22 18:06:07 +02:00
|
|
|
|
STDMETHOD(ProcessVertices)(THIS_ UINT SrcStartIndex, UINT DestIndex, UINT VertexCount, struct IWineD3DVertexBuffer* pDestBuffer, struct IWineD3DVertexDeclaration* pVertexDecl, DWORD Flags) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(BeginStateBlock)(THIS) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(EndStateBlock)(THIS_ struct IWineD3DStateBlock** ppStateBlock) PURE;
|
2004-11-28 16:04:41 +01:00
|
|
|
|
STDMETHOD(BeginScene)(THIS) PURE;
|
2004-12-14 12:54:27 +01:00
|
|
|
|
STDMETHOD(EndScene)(THIS) PURE;
|
|
|
|
|
STDMETHOD(Present)(THIS_ CONST RECT * pSourceRect,CONST RECT * pDestRect,HWND hDestWindowOverride,CONST RGNDATA * pDirtyRegion) PURE;
|
2006-10-12 08:22:59 +02:00
|
|
|
|
STDMETHOD(Clear)(THIS_ DWORD Count, CONST WINED3DRECT * pRects, DWORD Flags, WINED3DCOLOR Color, float Z, DWORD Stencil) PURE;
|
2006-10-12 08:23:55 +02:00
|
|
|
|
STDMETHOD(DrawPrimitive)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType, UINT StartVertex, UINT PrimitiveCount) PURE;
|
2007-01-02 21:07:39 +01:00
|
|
|
|
STDMETHOD(DrawIndexedPrimitive)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType, UINT minIndex, UINT NumVertices, UINT startIndex, UINT primCount) PURE;
|
2006-10-12 08:23:55 +02:00
|
|
|
|
STDMETHOD(DrawPrimitiveUP)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, CONST void * pVertexStreamZeroData, UINT VertexStreamZeroStride) PURE;
|
|
|
|
|
STDMETHOD(DrawIndexedPrimitiveUP)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType, UINT MinVertexIndex, UINT NumVertexIndices, UINT PrimitiveCount, CONST void * pIndexData, WINED3DFORMAT IndexDataFormat, CONST void * pVertexStreamZeroData, UINT VertexStreamZeroStride) PURE;
|
|
|
|
|
STDMETHOD(DrawPrimitiveStrided)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, WineDirect3DVertexStridedData *DrawPrimStrideData) PURE;
|
2007-07-27 14:39:55 +02:00
|
|
|
|
STDMETHOD(DrawIndexedPrimitiveStrided)(THIS_ WINED3DPRIMITIVETYPE PrimitiveType, UINT PrimitiveCount, WineDirect3DVertexStridedData *DrawPrimStrideData, UINT NumVertices, CONST void *pIndexData, WINED3DFORMAT IndexDataFormat) PURE;
|
2006-03-23 19:31:34 +01:00
|
|
|
|
STDMETHOD(DrawRectPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST WINED3DRECTPATCH_INFO* pRectPatchInfo) PURE;
|
2006-03-24 16:06:28 +01:00
|
|
|
|
STDMETHOD(DrawTriPatch)(THIS_ UINT Handle, CONST float* pNumSegs, CONST WINED3DTRIPATCH_INFO* pTriPatchInfo) PURE;
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(DeletePatch)(THIS_ UINT Handle) PURE;
|
2006-10-12 08:22:59 +02:00
|
|
|
|
STDMETHOD(ColorFill)(THIS_ struct IWineD3DSurface* pSurface, CONST WINED3DRECT* pRect, WINED3DCOLOR color) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(UpdateTexture)(THIS_ struct IWineD3DBaseTexture *pSourceTexture, struct IWineD3DBaseTexture *pDestinationTexture) PURE;
|
|
|
|
|
STDMETHOD(UpdateSurface)(THIS_ struct IWineD3DSurface* pSourceSurface, CONST RECT* pSourceRect, struct IWineD3DSurface* pDestinationSurface, CONST POINT* pDestPoint) PURE;
|
|
|
|
|
STDMETHOD(GetFrontBufferData)(THIS_ UINT iSwapChain,struct IWineD3DSurface* pSurface) PURE;
|
2005-07-26 12:34:15 +02:00
|
|
|
|
/*** object tracking ***/
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD_(void, ResourceReleased)(THIS_ struct IWineD3DResource *resource);
|
2004-10-07 06:22:21 +02:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
2004-09-23 06:34:27 +02:00
|
|
|
|
|
2004-10-07 06:22:21 +02:00
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
2005-01-19 20:34:49 +01:00
|
|
|
|
#define IWineD3DDevice_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DDevice_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
#define IWineD3DDevice_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DDevice methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
#define IWineD3DDevice_CreateVertexBuffer(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f,g)
|
2004-11-24 19:13:41 +01:00
|
|
|
|
#define IWineD3DDevice_CreateIndexBuffer(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f,g)
|
2004-11-23 14:52:46 +01:00
|
|
|
|
#define IWineD3DDevice_CreateStateBlock(p,a,b,c) (p)->lpVtbl->CreateStateBlock(p,a,b,c)
|
2006-04-17 16:13:28 +02:00
|
|
|
|
#define IWineD3DDevice_CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o) (p)->lpVtbl->CreateSurface(p,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DDevice_CreateTexture(p,a,b,c,d,e,f,g,h,i,j) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h,i,j)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i,j,k) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i,j,k)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DDevice_CreateVolume(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolume(p,a,b,c,d,e,f,g,h,i)
|
|
|
|
|
#define IWineD3DDevice_CreateCubeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g,h,i)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_CreateQuery(p,a,b,c) (p)->lpVtbl->CreateQuery(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_CreateAdditionalSwapChain(p,a,b,c,d,e) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b,c,d,e)
|
2007-02-13 23:12:36 +01:00
|
|
|
|
#define IWineD3DDevice_CreateVertexDeclaration(p,a,b,c,d) (p)->lpVtbl->CreateVertexDeclaration(p,a,b,c,d)
|
2007-04-22 11:52:11 +02:00
|
|
|
|
#define IWineD3DDevice_CreateVertexDeclarationFromFVF(p,a,b,c) (p)->lpVtbl->CreateVertexDeclarationFromFVF(p,a,b,c)
|
2005-12-09 11:23:52 +01:00
|
|
|
|
#define IWineD3DDevice_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_CreatePixelShader(p,a,b,c) (p)->lpVtbl->CreatePixelShader(p,a,b,c)
|
2006-04-17 17:04:59 +02:00
|
|
|
|
#define IWineD3DDevice_CreatePalette(p, a, b, c, d) (p)->lpVtbl->CreatePalette(p, a, b, c, d)
|
2006-04-13 18:35:59 +02:00
|
|
|
|
#define IWineD3DDevice_Init3D(p, a, b) (p)->lpVtbl->Init3D(p, a, b)
|
2006-12-18 00:17:24 +01:00
|
|
|
|
#define IWineD3DDevice_Uninit3D(p, a, b) (p)->lpVtbl->Uninit3D(p, a, b)
|
2006-09-09 13:33:17 +02:00
|
|
|
|
#define IWineD3DDevice_SetFullscreen(p, a) (p)->lpVtbl->SetFullscreen(p, a)
|
2007-03-04 17:03:03 +01:00
|
|
|
|
#define IWineD3DDevice_SetMultithreaded(p) (p)->lpVtbl->SetMultithreaded(p)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
|
|
|
|
|
#define IWineD3DDevice_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
|
|
|
|
|
#define IWineD3DDevice_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DDevice_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
|
2006-04-17 17:51:21 +02:00
|
|
|
|
#define IWineD3DDevice_SetDisplayMode(p,a,b) (p)->lpVtbl->SetDisplayMode(p,a,b)
|
2006-04-13 23:37:47 +02:00
|
|
|
|
#define IWineD3DDevice_GetHWND(p, a) (p)->lpVtbl->GetHWND(p, a)
|
|
|
|
|
#define IWineD3DDevice_SetHWND(p, a) (p)->lpVtbl->SetHWND(p, a)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
|
|
|
|
|
#define IWineD3DDevice_Reset(p,a) (p)->lpVtbl->Reset(p,a)
|
|
|
|
|
#define IWineD3DDevice_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
|
|
|
|
|
#define IWineD3DDevice_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
|
|
|
|
|
#define IWineD3DDevice_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
|
2004-10-21 22:59:12 +02:00
|
|
|
|
#define IWineD3DDevice_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
|
2004-11-29 18:53:42 +01:00
|
|
|
|
#define IWineD3DDevice_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
|
|
|
|
|
#define IWineD3DDevice_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
|
|
|
|
|
#define IWineD3DDevice_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
|
2007-06-05 18:52:21 +02:00
|
|
|
|
#define IWineD3DDevice_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
|
2007-06-06 18:40:09 +02:00
|
|
|
|
#define IWineD3DDevice_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
|
2007-01-02 21:07:39 +01:00
|
|
|
|
#define IWineD3DDevice_SetBaseVertexIndex(p, a) (p)->lpVtbl->SetBaseVertexIndex(p, a)
|
2007-06-06 18:40:02 +02:00
|
|
|
|
#define IWineD3DDevice_GetBaseVertexIndex(p,a) (p)->lpVtbl->GetBaseVertexIndex(p,a)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_SetLightEnable(p,a,b) (p)->lpVtbl->SetLightEnable(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
|
|
|
|
|
#define IWineD3DDevice_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
|
|
|
|
|
#define IWineD3DDevice_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
|
|
|
|
|
#define IWineD3DDevice_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
|
2004-12-13 14:35:38 +01:00
|
|
|
|
#define IWineD3DDevice_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
|
2006-04-15 22:40:14 +02:00
|
|
|
|
#define IWineD3DDevice_SetFrontBackBuffers(p, a, b) (p)->lpVtbl->SetFrontBackBuffers(p,a,b);
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
|
|
|
|
|
#define IWineD3DDevice_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
|
|
|
|
|
#define IWineD3DDevice_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DDevice_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DDevice_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
|
2004-12-13 14:35:38 +01:00
|
|
|
|
#define IWineD3DDevice_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
|
2005-01-18 12:42:29 +01:00
|
|
|
|
#define IWineD3DDevice_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
|
|
|
|
|
#define IWineD3DDevice_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
|
|
|
|
|
#define IWineD3DDevice_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
|
|
|
|
|
#define IWineD3DDevice_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
|
|
|
|
|
#define IWineD3DDevice_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
|
|
|
|
|
#define IWineD3DDevice_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
|
|
|
|
|
#define IWineD3DDevice_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
|
|
|
|
|
#define IWineD3DDevice_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
|
2004-11-28 16:04:41 +01:00
|
|
|
|
#define IWineD3DDevice_BeginScene(p) (p)->lpVtbl->BeginScene(p)
|
2004-12-14 12:54:27 +01:00
|
|
|
|
#define IWineD3DDevice_EndScene(p) (p)->lpVtbl->EndScene(p)
|
|
|
|
|
#define IWineD3DDevice_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DDevice_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
|
2004-12-09 12:42:34 +01:00
|
|
|
|
#define IWineD3DDevice_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
|
2007-01-02 21:07:39 +01:00
|
|
|
|
#define IWineD3DDevice_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e)
|
2004-12-09 12:42:34 +01:00
|
|
|
|
#define IWineD3DDevice_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DDevice_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
|
2006-05-06 16:58:57 +02:00
|
|
|
|
#define IWineD3DDevice_DrawPrimitiveStrided(p,a,b,c) (p)->lpVtbl->DrawPrimitiveStrided(p,a,b,c)
|
2007-07-27 14:39:55 +02:00
|
|
|
|
#define IWineD3DDevice_DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitiveStrided(p,a,b,c,d,e,f)
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DDevice_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
|
|
|
|
|
#define IWineD3DDevice_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
|
|
|
|
|
#define IWineD3DDevice_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
|
|
|
|
|
#define IWineD3DDevice_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DDevice_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
|
2005-07-26 12:34:15 +02:00
|
|
|
|
#define IWineD3DDevice_ResourceReleased(p,a) (p)->lpVtbl->ResourceReleased(p,a)
|
2004-10-14 02:32:04 +02:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* WineD3DResource interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DResource
|
2006-01-17 15:58:22 +01:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DResource,IWineD3DBase)
|
2004-10-14 02:32:04 +02:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2004-10-14 02:32:04 +02:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
|
|
|
|
|
STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void,PreLoad)(THIS) PURE;
|
2006-03-09 23:21:16 +01:00
|
|
|
|
STDMETHOD_(WINED3DRESOURCETYPE,GetType)(THIS) PURE;
|
2004-10-14 02:32:04 +02:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DResource_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DResource_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DResource_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
#define IWineD3DResource_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2004-10-14 02:32:04 +02:00
|
|
|
|
#define IWineD3DResource_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DResource_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DResource_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
|
|
|
|
#define IWineD3DResource_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
|
|
|
|
#define IWineD3DResource_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
|
|
|
|
#define IWineD3DResource_GetPriority(p) (p)->lpVtbl->GetPriority(p)
|
|
|
|
|
#define IWineD3DResource_PreLoad(p) (p)->lpVtbl->PreLoad(p)
|
|
|
|
|
#define IWineD3DResource_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* WineD3DVertexBuffer interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DVertexBuffer
|
2004-12-07 15:29:12 +01:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DVertexBuffer,IWineD3DResource)
|
2004-10-14 02:32:04 +02:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2004-10-14 02:32:04 +02:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
|
|
|
|
|
STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void,PreLoad)(THIS) PURE;
|
2006-03-09 23:21:16 +01:00
|
|
|
|
STDMETHOD_(WINED3DRESOURCETYPE,GetType)(THIS) PURE;
|
2004-10-14 02:32:04 +02:00
|
|
|
|
/*** IWineD3DVertexBuffer methods ***/
|
|
|
|
|
STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(Unlock)(THIS) PURE;
|
2006-03-11 00:15:38 +01:00
|
|
|
|
STDMETHOD(GetDesc)(THIS_ WINED3DVERTEXBUFFER_DESC * pDesc) PURE;
|
2004-10-14 02:32:04 +02:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DVertexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DVertexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DVertexBuffer_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
#define IWineD3DVertexBuffer_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2004-10-14 02:32:04 +02:00
|
|
|
|
#define IWineD3DVertexBuffer_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DVertexBuffer_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DVertexBuffer_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
|
|
|
|
#define IWineD3DVertexBuffer_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
|
|
|
|
#define IWineD3DVertexBuffer_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
|
|
|
|
#define IWineD3DVertexBuffer_GetPriority(p) (p)->lpVtbl->GetPriority(p)
|
|
|
|
|
#define IWineD3DVertexBuffer_PreLoad(p) (p)->lpVtbl->PreLoad(p)
|
|
|
|
|
#define IWineD3DVertexBuffer_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
/*** IWineD3DVertexBuffer methods ***/
|
|
|
|
|
#define IWineD3DVertexBuffer_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DVertexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
|
|
|
|
|
#define IWineD3DVertexBuffer_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
|
2004-10-07 06:22:21 +02:00
|
|
|
|
#endif
|
2004-09-23 06:34:27 +02:00
|
|
|
|
|
2004-11-24 19:13:41 +01:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* WineD3DIndexBuffer interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DIndexBuffer
|
2004-12-07 15:29:12 +01:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DIndexBuffer,IWineD3DResource)
|
2004-11-24 19:13:41 +01:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-24 19:13:41 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2004-11-24 19:13:41 +01:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
|
|
|
|
|
STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void,PreLoad)(THIS) PURE;
|
2006-03-09 23:21:16 +01:00
|
|
|
|
STDMETHOD_(WINED3DRESOURCETYPE,GetType)(THIS) PURE;
|
2004-11-24 19:13:41 +01:00
|
|
|
|
/*** IWineD3DIndexBuffer methods ***/
|
|
|
|
|
STDMETHOD(Lock)(THIS_ UINT OffsetToLock, UINT SizeToLock, BYTE ** ppbData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(Unlock)(THIS) PURE;
|
2006-03-14 23:14:40 +01:00
|
|
|
|
STDMETHOD(GetDesc)(THIS_ WINED3DINDEXBUFFER_DESC * pDesc) PURE;
|
2004-11-24 19:13:41 +01:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DIndexBuffer_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DIndexBuffer_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DIndexBuffer_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-24 19:13:41 +01:00
|
|
|
|
#define IWineD3DIndexBuffer_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2004-11-24 19:13:41 +01:00
|
|
|
|
#define IWineD3DIndexBuffer_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DIndexBuffer_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DIndexBuffer_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
|
|
|
|
#define IWineD3DIndexBuffer_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
|
|
|
|
#define IWineD3DIndexBuffer_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
|
|
|
|
#define IWineD3DIndexBuffer_GetPriority(p) (p)->lpVtbl->GetPriority(p)
|
|
|
|
|
#define IWineD3DIndexBuffer_PreLoad(p) (p)->lpVtbl->PreLoad(p)
|
|
|
|
|
#define IWineD3DIndexBuffer_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
/*** IWineD3DIndexBuffer methods ***/
|
|
|
|
|
#define IWineD3DIndexBuffer_Lock(p,a,b,c,d) (p)->lpVtbl->Lock(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DIndexBuffer_Unlock(p) (p)->lpVtbl->Unlock(p)
|
|
|
|
|
#define IWineD3DIndexBuffer_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
|
|
|
|
|
#endif
|
|
|
|
|
|
2004-12-07 15:29:12 +01:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DBaseTexture interface
|
|
|
|
|
* Note at d3d8 this does NOT extend Resource, but at d3d9 it does
|
|
|
|
|
* since most functions are common anyway, it makes sense to extend it
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DBaseTexture
|
|
|
|
|
DECLARE_INTERFACE_(IWineD3DBaseTexture,IWineD3DResource)
|
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-12-07 15:29:12 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2004-12-07 15:29:12 +01:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
|
|
|
|
|
STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void,PreLoad)(THIS) PURE;
|
2006-03-09 23:21:16 +01:00
|
|
|
|
STDMETHOD_(WINED3DRESOURCETYPE,GetType)(THIS) PURE;
|
2004-12-07 15:29:12 +01:00
|
|
|
|
/*** IWineD3DBaseTexture methods ***/
|
|
|
|
|
STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
|
2006-04-06 19:02:16 +02:00
|
|
|
|
STDMETHOD(SetAutoGenFilterType)(THIS_ WINED3DTEXTUREFILTERTYPE FilterType) PURE;
|
|
|
|
|
STDMETHOD_(WINED3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
|
2004-12-07 15:29:12 +01:00
|
|
|
|
STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
|
2005-01-09 18:37:02 +01:00
|
|
|
|
STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
|
2005-03-14 11:12:52 +01:00
|
|
|
|
STDMETHOD(BindTexture)(THIS) PURE;
|
|
|
|
|
STDMETHOD(UnBindTexture)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(UINT, GetTextureDimensions)(THIS) PURE;
|
2005-08-03 13:00:28 +02:00
|
|
|
|
STDMETHOD_(void, ApplyStateChanges)(THIS_ const DWORD textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1]) PURE;
|
2005-01-09 18:37:02 +01:00
|
|
|
|
|
2004-12-07 15:29:12 +01:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DBaseTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DBaseTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DBaseTexture_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-12-07 15:29:12 +01:00
|
|
|
|
#define IWineD3DBaseTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBaseTexture methods: IWineD3DResource ***/
|
2004-12-07 15:29:12 +01:00
|
|
|
|
#define IWineD3DBaseTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DBaseTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DBaseTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
|
|
|
|
#define IWineD3DBaseTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
|
|
|
|
#define IWineD3DBaseTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
|
|
|
|
#define IWineD3DBaseTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
|
|
|
|
|
#define IWineD3DBaseTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
|
|
|
|
|
#define IWineD3DBaseTexture_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
/*** IWineD3DBaseTexture methods ***/
|
|
|
|
|
#define IWineD3DBaseTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
|
|
|
|
|
#define IWineD3DBaseTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
|
|
|
|
|
#define IWineD3DBaseTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
|
|
|
|
|
#define IWineD3DBaseTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
|
|
|
|
|
#define IWineD3DBaseTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
|
|
|
|
|
#define IWineD3DBaseTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
|
2005-01-09 18:37:02 +01:00
|
|
|
|
#define IWineD3DBaseTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DBaseTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
|
2005-03-14 11:12:52 +01:00
|
|
|
|
/*** internal methods ***/
|
|
|
|
|
#define IWineD3DBaseTexture_BindTexture(p) (p)->lpVtbl->BindTexture(p)
|
|
|
|
|
#define IWineD3DBaseTexture_UnBindTexture(p) (p)->lpVtbl->UnBindTexture(p)
|
|
|
|
|
#define IWineD3DBaseTexture_GetTextureDimensions(p) (p)->lpVtbl->GetTextureDimensions(p)
|
2005-08-03 13:00:28 +02:00
|
|
|
|
#define IWineD3DBaseTexture_ApplyStateChanges(p,a,b) (p)->lpVtbl->ApplyStateChanges(p,a,b)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DTexture interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DTexture
|
|
|
|
|
DECLARE_INTERFACE_(IWineD3DTexture,IWineD3DBaseTexture)
|
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
|
|
|
|
|
STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void,PreLoad)(THIS) PURE;
|
2006-03-09 23:21:16 +01:00
|
|
|
|
STDMETHOD_(WINED3DRESOURCETYPE,GetType)(THIS) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*** IWineD3DBaseTexture methods ***/
|
|
|
|
|
STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
|
2006-04-06 19:02:16 +02:00
|
|
|
|
STDMETHOD(SetAutoGenFilterType)(THIS_ WINED3DTEXTUREFILTERTYPE FilterType) PURE;
|
|
|
|
|
STDMETHOD_(WINED3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
|
|
|
|
|
STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
|
2005-03-14 11:12:52 +01:00
|
|
|
|
STDMETHOD(BindTexture)(THIS) PURE;
|
|
|
|
|
STDMETHOD(UnBindTexture)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(UINT, GetTextureDimensions)(THIS) PURE;
|
2005-08-03 13:00:28 +02:00
|
|
|
|
STDMETHOD_(void, ApplyStateChanges)(THIS_ const DWORD textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1]) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*** IWineD3DTexture methods ***/
|
2006-12-05 00:28:58 +01:00
|
|
|
|
STDMETHOD_(void, Destroy)(THIS_ D3DCB_DESTROYSURFACEFN pFn) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetLevelDesc)(THIS_ UINT Level, WINED3DSURFACE_DESC* pDesc) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(GetSurfaceLevel)(THIS_ UINT Level, struct IWineD3DSurface** ppSurfaceLevel) PURE;
|
2006-04-06 19:36:02 +02:00
|
|
|
|
STDMETHOD(LockRect)(THIS_ UINT Level, WINED3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(UnlockRect)(THIS_ UINT Level) PURE;
|
|
|
|
|
STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pDirtyRect) PURE;
|
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DTexture_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DTexture methods: IWineD3DResource ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
|
|
|
|
#define IWineD3DTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
|
|
|
|
#define IWineD3DTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
|
|
|
|
#define IWineD3DTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
|
|
|
|
|
#define IWineD3DTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
|
|
|
|
|
#define IWineD3DTexture_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
/*** IWineD3DTexture methods: IWineD3DBaseTexture ***/
|
|
|
|
|
#define IWineD3DTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
|
|
|
|
|
#define IWineD3DTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
|
|
|
|
|
#define IWineD3DTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
|
|
|
|
|
#define IWineD3DTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
|
|
|
|
|
#define IWineD3DTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
|
|
|
|
|
#define IWineD3DTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
|
|
|
|
|
#define IWineD3DTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
|
|
|
|
|
#define IWineD3DTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
|
2005-03-14 11:12:52 +01:00
|
|
|
|
#define IWineD3DTexture_BindTexture(p) (p)->lpVtbl->BindTexture(p)
|
|
|
|
|
#define IWineD3DTexture_UnBindTexture(p) (p)->lpVtbl->UnBindTexture(p)
|
|
|
|
|
#define IWineD3DTexture_GetTextureDimensions(p) (p)->lpVtbl->GetTextureDimensions(p)
|
2005-08-03 13:00:28 +02:00
|
|
|
|
#define IWineD3DTexture_ApplyStateChanges(p,a,b) (p)->lpVtbl->ApplyStateChanges(p,a,b)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*** IWineD3DTexture methods ***/
|
2006-12-05 00:28:58 +01:00
|
|
|
|
#define IWineD3DTexture_Destroy(p,a) (p)->lpVtbl->Destroy(p,a)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DTexture_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
|
|
|
|
|
#define IWineD3DTexture_GetSurfaceLevel(p,a,b) (p)->lpVtbl->GetSurfaceLevel(p,a,b)
|
|
|
|
|
#define IWineD3DTexture_LockRect(p,a,b,c,d) (p)->lpVtbl->LockRect(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DTexture_UnlockRect(p,a) (p)->lpVtbl->UnlockRect(p,a)
|
|
|
|
|
#define IWineD3DTexture_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DCubeTexture interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DCubeTexture
|
|
|
|
|
DECLARE_INTERFACE_(IWineD3DCubeTexture,IWineD3DBaseTexture)
|
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
|
|
|
|
|
STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void,PreLoad)(THIS) PURE;
|
2006-03-09 23:21:16 +01:00
|
|
|
|
STDMETHOD_(WINED3DRESOURCETYPE,GetType)(THIS) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*** IWineD3DBaseTexture methods ***/
|
|
|
|
|
STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
|
2006-04-06 19:02:16 +02:00
|
|
|
|
STDMETHOD(SetAutoGenFilterType)(THIS_ WINED3DTEXTUREFILTERTYPE FilterType) PURE;
|
|
|
|
|
STDMETHOD_(WINED3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
|
|
|
|
|
STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
|
2005-03-14 11:12:52 +01:00
|
|
|
|
STDMETHOD(BindTexture)(THIS) PURE;
|
|
|
|
|
STDMETHOD(UnBindTexture)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(UINT, GetTextureDimensions)(THIS) PURE;
|
2005-08-03 13:00:28 +02:00
|
|
|
|
STDMETHOD_(void, ApplyStateChanges)(THIS_ DWORD const textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1]) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*** IWineD3DCubeTexture methods ***/
|
2006-12-05 00:29:08 +01:00
|
|
|
|
STDMETHOD_(void, Destroy)(THIS_ D3DCB_DESTROYSURFACEFN pFn) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetLevelDesc)(THIS_ UINT Level,WINED3DSURFACE_DESC* pDesc) PURE;
|
2006-04-04 15:51:28 +02:00
|
|
|
|
STDMETHOD(GetCubeMapSurface)(THIS_ WINED3DCUBEMAP_FACES FaceType, UINT Level, struct IWineD3DSurface** ppCubeMapSurface) PURE;
|
2006-04-06 19:36:02 +02:00
|
|
|
|
STDMETHOD(LockRect)(THIS_ WINED3DCUBEMAP_FACES FaceType, UINT Level, WINED3DLOCKED_RECT* pLockedRect, CONST RECT* pRect, DWORD Flags) PURE;
|
2006-04-04 15:51:28 +02:00
|
|
|
|
STDMETHOD(UnlockRect)(THIS_ WINED3DCUBEMAP_FACES FaceType, UINT Level) PURE;
|
|
|
|
|
STDMETHOD(AddDirtyRect)(THIS_ WINED3DCUBEMAP_FACES FaceType, CONST RECT* pDirtyRect) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DCubeTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DCubeTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DCubeTexture_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DCubeTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DCubeTexture methods: IWineD3DResource ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DCubeTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DCubeTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DCubeTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
|
|
|
|
#define IWineD3DCubeTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
|
|
|
|
#define IWineD3DCubeTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
|
|
|
|
#define IWineD3DCubeTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
|
|
|
|
|
#define IWineD3DCubeTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
|
|
|
|
|
#define IWineD3DCubeTexture_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
/*** IWineD3DCubeTexture methods: IWineD3DBaseTexture ***/
|
|
|
|
|
#define IWineD3DCubeTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
|
|
|
|
|
#define IWineD3DCubeTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
|
|
|
|
|
#define IWineD3DCubeTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
|
|
|
|
|
#define IWineD3DCubeTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
|
|
|
|
|
#define IWineD3DCubeTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
|
|
|
|
|
#define IWineD3DCubeTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
|
|
|
|
|
#define IWineD3DCubeTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
|
|
|
|
|
#define IWineD3DCubeTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
|
2005-03-14 11:12:52 +01:00
|
|
|
|
#define IWineD3DCubeTexture_BindTexture(p) (p)->lpVtbl->BindTexture(p)
|
|
|
|
|
#define IWineD3DCubeTexture_UnBindTexture(p) (p)->lpVtbl->UnBindTexture(p)
|
|
|
|
|
#define IWineD3DCubeTexture_GetTextureDimensions(p) (p)->lpVtbl->GetTextureDimensions(p)
|
2005-08-03 13:00:28 +02:00
|
|
|
|
#define IWineD3DCubeTexture_ApplyStateChanges(p,a,b) (p)->lpVtbl->ApplyStateChanges(p,a,b)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*** IWineD3DCubeTexture methods ***/
|
2006-12-05 00:29:08 +01:00
|
|
|
|
#define IWineD3DCubeTexture_Destroy(p,a) (p)->lpVtbl->Destroy(p,a)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DCubeTexture_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
|
|
|
|
|
#define IWineD3DCubeTexture_GetCubeMapSurface(p,a,b,c) (p)->lpVtbl->GetCubeMapSurface(p,a,b,c)
|
|
|
|
|
#define IWineD3DCubeTexture_LockRect(p,a,b,c,d,e) (p)->lpVtbl->LockRect(p,a,b,c,d,e)
|
|
|
|
|
#define IWineD3DCubeTexture_UnlockRect(p,a,b) (p)->lpVtbl->UnlockRect(p,a,b)
|
|
|
|
|
#define IWineD3DCubeTexture_AddDirtyRect(p,a,b) (p)->lpVtbl->AddDirtyRect(p,a,b)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DVolumeTexture interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DVolumeTexture
|
|
|
|
|
DECLARE_INTERFACE_(IWineD3DVolumeTexture,IWineD3DBaseTexture)
|
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
|
|
|
|
|
STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void,PreLoad)(THIS) PURE;
|
2006-03-09 23:21:16 +01:00
|
|
|
|
STDMETHOD_(WINED3DRESOURCETYPE,GetType)(THIS) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*** IWineD3DBaseTexture methods ***/
|
|
|
|
|
STDMETHOD_(DWORD, SetLOD)(THIS_ DWORD LODNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD, GetLOD)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(DWORD, GetLevelCount)(THIS) PURE;
|
2006-04-06 19:02:16 +02:00
|
|
|
|
STDMETHOD(SetAutoGenFilterType)(THIS_ WINED3DTEXTUREFILTERTYPE FilterType) PURE;
|
|
|
|
|
STDMETHOD_(WINED3DTEXTUREFILTERTYPE, GetAutoGenFilterType)(THIS) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD_(void, GenerateMipSubLevels)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(BOOL, SetDirty)(THIS_ BOOL) PURE;
|
|
|
|
|
STDMETHOD_(BOOL, GetDirty)(THIS) PURE;
|
2005-03-14 11:12:52 +01:00
|
|
|
|
STDMETHOD(BindTexture)(THIS) PURE;
|
|
|
|
|
STDMETHOD(UnBindTexture)(THIS) PURE;
|
2005-08-03 13:00:28 +02:00
|
|
|
|
STDMETHOD_(UINT, GetTextureDimensions)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void, ApplyStateChanges)(THIS_ const DWORD textureStates[WINED3D_HIGHEST_TEXTURE_STATE + 1], const DWORD samplerStates[WINED3D_HIGHEST_SAMPLER_STATE + 1]) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*** IWineD3DVolumeTexture methods ***/
|
2006-12-05 00:29:21 +01:00
|
|
|
|
STDMETHOD_(void, Destroy)(THIS_ D3DCB_DESTROYVOLUMEFN pFn) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetLevelDesc)(THIS_ UINT Level, WINED3DVOLUME_DESC *pDesc) PURE;
|
2005-07-26 20:32:53 +02:00
|
|
|
|
STDMETHOD(GetVolumeLevel)(THIS_ UINT Level, struct IWineD3DVolume** ppVolumeLevel) PURE;
|
2006-04-07 13:12:22 +02:00
|
|
|
|
STDMETHOD(LockBox)(THIS_ UINT Level, WINED3DLOCKED_BOX* pLockedVolume, CONST WINED3DBOX* pBox, DWORD Flags) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(UnlockBox)(THIS_ UINT Level) PURE;
|
2006-04-07 13:12:22 +02:00
|
|
|
|
STDMETHOD(AddDirtyBox)(THIS_ CONST WINED3DBOX* pDirtyBox) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DVolumeTexture_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DVolumeTexture_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DVolumeTexture_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DVolumeTexture_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DVolumeTexture methods: IWineD3DResource ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DVolumeTexture_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DVolumeTexture_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DVolumeTexture_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
|
|
|
|
#define IWineD3DVolumeTexture_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
|
|
|
|
#define IWineD3DVolumeTexture_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
|
|
|
|
#define IWineD3DVolumeTexture_GetPriority(p) (p)->lpVtbl->GetPriority(p)
|
|
|
|
|
#define IWineD3DVolumeTexture_PreLoad(p) (p)->lpVtbl->PreLoad(p)
|
|
|
|
|
#define IWineD3DVolumeTexture_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
/*** IWineD3DVolumeTexture methods: IWineD3DBaseTexture ***/
|
|
|
|
|
#define IWineD3DVolumeTexture_SetLOD(p,a) (p)->lpVtbl->SetLOD(p,a)
|
|
|
|
|
#define IWineD3DVolumeTexture_GetLOD(p) (p)->lpVtbl->GetLOD(p)
|
|
|
|
|
#define IWineD3DVolumeTexture_GetLevelCount(p) (p)->lpVtbl->GetLevelCount(p)
|
|
|
|
|
#define IWineD3DVolumeTexture_SetAutoGenFilterType(p,a) (p)->lpVtbl->SetAutoGenFilterType(p,a)
|
|
|
|
|
#define IWineD3DVolumeTexture_GetAutoGenFilterType(p) (p)->lpVtbl->GetAutoGenFilterType(p)
|
|
|
|
|
#define IWineD3DVolumeTexture_GenerateMipSubLevels(p) (p)->lpVtbl->GenerateMipSubLevels(p)
|
|
|
|
|
#define IWineD3DVolumeTexture_SetDirty(p,a) (p)->lpVtbl->SetDirty(p,a)
|
|
|
|
|
#define IWineD3DVolumeTexture_GetDirty(p) (p)->lpVtbl->GetDirty(p)
|
2005-03-14 11:12:52 +01:00
|
|
|
|
#define IWineD3DVolumeTexture_BindTexture(p) (p)->lpVtbl->BindTexture(p)
|
|
|
|
|
#define IWineD3DVolumeTexture_UnBindTexture(p) (p)->lpVtbl->UnBindTexture(p)
|
|
|
|
|
#define IWineD3DVolumeTexture_GetTextureDimensions(p) (p)->lpVtbl->GetTextureDimensions(p)
|
2005-08-03 13:00:28 +02:00
|
|
|
|
#define IWineD3DVolumeTexture_ApplyStateChanges(p,a,b) (p)->lpVtbl->ApplyStateChanges(p,a,b)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*** IWineD3DVolumeTexture methods ***/
|
2006-12-05 00:29:21 +01:00
|
|
|
|
#define IWineD3DVolumeTexture_Destroy(p,a) (p)->lpVtbl->Destroy(p,a)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DVolumeTexture_GetLevelDesc(p,a,b) (p)->lpVtbl->GetLevelDesc(p,a,b)
|
|
|
|
|
#define IWineD3DVolumeTexture_GetVolumeLevel(p,a,b) (p)->lpVtbl->GetVolumeLevel(p,a,b)
|
|
|
|
|
#define IWineD3DVolumeTexture_LockBox(p,a,b,c,d) (p)->lpVtbl->LockBox(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DVolumeTexture_UnlockBox(p,a) (p)->lpVtbl->UnlockBox(p,a)
|
|
|
|
|
#define IWineD3DVolumeTexture_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
|
2005-01-09 18:37:02 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DSurface interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DSurface
|
|
|
|
|
DECLARE_INTERFACE_(IWineD3DSurface,IWineD3DResource)
|
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-09 18:37:02 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2005-01-09 18:37:02 +01:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
|
|
|
|
|
STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void,PreLoad)(THIS) PURE;
|
2006-03-09 23:21:16 +01:00
|
|
|
|
STDMETHOD_(WINED3DRESOURCETYPE,GetType)(THIS) PURE;
|
2005-01-09 18:37:02 +01:00
|
|
|
|
/*** IWineD3DSurface methods ***/
|
|
|
|
|
STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE;
|
|
|
|
|
STDMETHOD(GetDesc)(THIS_ WINED3DSURFACE_DESC * pDesc) PURE;
|
2006-04-06 19:36:02 +02:00
|
|
|
|
STDMETHOD(LockRect)(THIS_ WINED3DLOCKED_RECT * pLockedRect, CONST RECT * pRect,DWORD Flags) PURE;
|
2005-01-09 18:37:02 +01:00
|
|
|
|
STDMETHOD(UnlockRect)(THIS) PURE;
|
|
|
|
|
STDMETHOD(GetDC)(THIS_ HDC *pHdc) PURE;
|
|
|
|
|
STDMETHOD(ReleaseDC)(THIS_ HDC hdc) PURE;
|
2006-04-12 22:32:44 +02:00
|
|
|
|
STDMETHOD(Flip)(THIS_ IWineD3DSurface *Override, DWORD FLAGS) PURE;
|
2007-04-14 22:44:55 +02:00
|
|
|
|
STDMETHOD(Blt)(THIS_ RECT *DestRect, IWineD3DSurface *SrcSurface, RECT *SrcRect, DWORD Flags, WINEDDBLTFX *DDBltFx, WINED3DTEXTUREFILTERTYPE Filter) PURE;
|
2006-04-17 17:25:55 +02:00
|
|
|
|
STDMETHOD(GetBltStatus)(THIS_ DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetFlipStatus)(THIS_ DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(IsLost)(THIS) PURE;
|
|
|
|
|
STDMETHOD(Restore)(THIS) PURE;
|
|
|
|
|
STDMETHOD(BltFast)(THIS_ DWORD dstx, DWORD dsty, IWineD3DSurface *src, RECT *rsrc, DWORD trans) PURE;
|
|
|
|
|
STDMETHOD(GetPalette)(THIS_ struct IWineD3DPalette **Palette) PURE;
|
|
|
|
|
STDMETHOD(SetPalette)(THIS_ struct IWineD3DPalette *Palette) PURE;
|
|
|
|
|
STDMETHOD(RealizePalette)(THIS) PURE;
|
2007-04-14 22:44:55 +02:00
|
|
|
|
STDMETHOD(SetColorKey)(THIS_ DWORD Flags, WINEDDCOLORKEY *CKey) PURE;
|
2006-05-06 17:39:45 +02:00
|
|
|
|
STDMETHOD_(DWORD,GetPitch)(THIS) PURE;
|
2006-07-25 16:38:02 +02:00
|
|
|
|
STDMETHOD(SetMem)(THIS_ void *mem) PURE;
|
2006-10-05 16:37:42 +02:00
|
|
|
|
STDMETHOD(SetOverlayPosition)(THIS_ LONG X, LONG Y) PURE;
|
2006-10-05 16:40:56 +02:00
|
|
|
|
STDMETHOD(GetOverlayPosition)(THIS_ LONG *X, LONG *Y) PURE;
|
2006-10-05 16:41:19 +02:00
|
|
|
|
STDMETHOD(UpdateOverlayZOrder)(THIS_ DWORD Flags, IWineD3DSurface *Ref) PURE;
|
2006-10-05 16:43:26 +02:00
|
|
|
|
STDMETHOD(UpdateOverlay)(THIS_ RECT *SrcRect, IWineD3DSurface *DstSurface, RECT *DstRect, DWORD Flags, WINEDDOVERLAYFX *FX);
|
2007-04-28 17:59:37 +02:00
|
|
|
|
STDMETHOD(SetClipper)(THIS_ struct IWineD3DClipper *clipper);
|
|
|
|
|
STDMETHOD(GetClipper)(THIS_ struct IWineD3DClipper **clipper);
|
2005-01-09 18:37:02 +01:00
|
|
|
|
/* Internally used methods */
|
|
|
|
|
STDMETHOD(AddDirtyRect)(THIS_ CONST RECT* pRect) PURE;
|
2007-06-07 01:08:26 +02:00
|
|
|
|
STDMETHOD(LoadTexture)(THIS, BOOL srgb_mode) PURE;
|
2007-11-15 14:38:34 +01:00
|
|
|
|
STDMETHOD_(void, BindTexture)(THIS) PURE;
|
2005-01-09 18:37:02 +01:00
|
|
|
|
STDMETHOD(SaveSnapshot)(THIS_ const char *filename) PURE;
|
2006-02-06 11:30:48 +01:00
|
|
|
|
STDMETHOD(SetContainer)(THIS_ IWineD3DBase *container) PURE;
|
2005-07-11 22:38:27 +02:00
|
|
|
|
STDMETHOD_(void,SetGlTextureDesc)(THIS_ UINT textureName, int target) PURE;
|
|
|
|
|
STDMETHOD_(void,GetGlDesc)(THIS_ glDescriptor **glDescription) PURE;
|
|
|
|
|
STDMETHOD_(CONST void *, GetData)(THIS) PURE;
|
2005-11-02 21:01:54 +01:00
|
|
|
|
STDMETHOD(SetFormat)(THIS_ WINED3DFORMAT format) PURE;
|
2006-04-17 17:25:55 +02:00
|
|
|
|
STDMETHOD(PrivateSetup)(THIS) PURE;
|
2007-10-09 22:17:59 +02:00
|
|
|
|
STDMETHOD_(void,ModifyLocation)(THIS_ DWORD flag, BOOL persistent);
|
2007-09-25 00:02:14 +02:00
|
|
|
|
STDMETHOD(LoadLocation)(THIS_ DWORD flag, const RECT *rect);
|
2005-01-09 18:37:02 +01:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DSurface_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DSurface_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DSurface_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-09 18:37:02 +01:00
|
|
|
|
#define IWineD3DSurface_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2005-01-09 18:37:02 +01:00
|
|
|
|
#define IWineD3DSurface_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DSurface_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DSurface_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
|
|
|
|
#define IWineD3DSurface_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
|
|
|
|
#define IWineD3DSurface_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
|
|
|
|
#define IWineD3DSurface_GetPriority(p) (p)->lpVtbl->GetPriority(p)
|
|
|
|
|
#define IWineD3DSurface_PreLoad(p) (p)->lpVtbl->PreLoad(p)
|
|
|
|
|
#define IWineD3DSurface_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
/*** IWineD3DSurface methods ***/
|
|
|
|
|
#define IWineD3DSurface_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
|
|
|
|
|
#define IWineD3DSurface_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
|
|
|
|
|
#define IWineD3DSurface_LockRect(p,a,b,c) (p)->lpVtbl->LockRect(p,a,b,c)
|
|
|
|
|
#define IWineD3DSurface_UnlockRect(p) (p)->lpVtbl->UnlockRect(p)
|
|
|
|
|
#define IWineD3DSurface_GetDC(p,a) (p)->lpVtbl->GetDC(p,a)
|
|
|
|
|
#define IWineD3DSurface_ReleaseDC(p,a) (p)->lpVtbl->ReleaseDC(p,a)
|
2006-04-13 18:35:59 +02:00
|
|
|
|
#define IWineD3DSurface_Flip(p,a,b) (p)->lpVtbl->Flip(p,a,b)
|
2007-04-03 12:00:15 +02:00
|
|
|
|
#define IWineD3DSurface_Blt(p,a,b,c,d,e,f) (p)->lpVtbl->Blt(p,a,b,c,d,e,f)
|
2006-04-17 17:25:55 +02:00
|
|
|
|
#define IWineD3DSurface_GetBltStatus(p,a) (p)->lpVtbl->GetBltStatus(p,a)
|
|
|
|
|
#define IWineD3DSurface_GetFlipStatus(p,a) (p)->lpVtbl->GetFlipStatus(p,a)
|
|
|
|
|
#define IWineD3DSurface_IsLost(p) (p)->lpVtbl->IsLost(p)
|
|
|
|
|
#define IWineD3DSurface_Restore(p) (p)->lpVtbl->Restore(p)
|
|
|
|
|
#define IWineD3DSurface_BltFast(p,a,b,c,d,e) (p)->lpVtbl->BltFast(p,a,b,c,d,e)
|
|
|
|
|
#define IWineD3DSurface_GetPalette(p, a) (p)->lpVtbl->GetPalette(p, a)
|
|
|
|
|
#define IWineD3DSurface_SetPalette(p, a) (p)->lpVtbl->SetPalette(p, a)
|
|
|
|
|
#define IWineD3DSurface_RealizePalette(p) (p)->lpVtbl->RealizePalette(p)
|
|
|
|
|
#define IWineD3DSurface_SetColorKey(p, a, b) (p)->lpVtbl->SetColorKey(p, a, b)
|
2006-05-06 17:39:45 +02:00
|
|
|
|
#define IWineD3DSurface_GetPitch(p) (p)->lpVtbl->GetPitch(p)
|
2006-07-25 16:38:02 +02:00
|
|
|
|
#define IWineD3DSurface_SetMem(p, a) (p)->lpVtbl->SetMem(p, a)
|
2006-10-05 16:37:42 +02:00
|
|
|
|
#define IWineD3DSurface_SetOverlayPosition(p, a, b) (p)->lpVtbl->SetOverlayPosition(p, a, b)
|
2006-10-05 16:40:56 +02:00
|
|
|
|
#define IWineD3DSurface_GetOverlayPosition(p, a, b) (p)->lpVtbl->GetOverlayPosition(p, a, b)
|
2006-10-05 16:41:19 +02:00
|
|
|
|
#define IWineD3DSurface_UpdateOverlayZOrder(p, a, b) (p)->lpVtbl->UpdateOverlayZOrder(p, a, b)
|
2006-10-05 16:43:26 +02:00
|
|
|
|
#define IWineD3DSurface_UpdateOverlay(p, a, b, c, d, e) (p)->lpVtbl->UpdateOverlay(p, a, b, c, d, e)
|
2007-04-28 17:59:37 +02:00
|
|
|
|
#define IWineD3DSurface_SetClipper(p, a) (p)->lpVtbl->SetClipper(p, a)
|
|
|
|
|
#define IWineD3DSurface_GetClipper(p, a) (p)->lpVtbl->GetClipper(p, a)
|
2005-01-09 18:37:02 +01:00
|
|
|
|
/*** IWineD3DSurface (Internal, no d3d mapping) methods ***/
|
|
|
|
|
#define IWineD3DSurface_AddDirtyRect(p,a) (p)->lpVtbl->AddDirtyRect(p,a)
|
2007-06-07 01:08:26 +02:00
|
|
|
|
#define IWineD3DSurface_LoadTexture(p,a) (p)->lpVtbl->LoadTexture(p,a)
|
2007-11-15 14:38:34 +01:00
|
|
|
|
#define IWineD3DSurface_BindTexture(p) (p)->lpVtbl->BindTexture(p)
|
2005-01-09 18:37:02 +01:00
|
|
|
|
#define IWineD3DSurface_SaveSnapshot(p,a) (p)->lpVtbl->SaveSnapshot(p,a)
|
2005-03-14 11:12:52 +01:00
|
|
|
|
#define IWineD3DSurface_SetContainer(p,a) (p)->lpVtbl->SetContainer(p,a)
|
2005-07-11 22:38:27 +02:00
|
|
|
|
#define IWineD3DSurface_SetGlTextureDesc(p,a,b) (p)->lpVtbl->SetGlTextureDesc(p,a,b)
|
|
|
|
|
#define IWineD3DSurface_GetGlDesc(p,a) (p)->lpVtbl->GetGlDesc(p,a)
|
|
|
|
|
#define IWineD3DSurface_GetData(p) (p)->lpVtbl->GetData(p)
|
2005-11-02 21:01:54 +01:00
|
|
|
|
#define IWineD3DSurface_SetFormat(p,a) (p)->lpVtbl->SetFormat(p,a)
|
2006-04-17 17:25:55 +02:00
|
|
|
|
#define IWineD3DSurface_PrivateSetup(p) (p)->lpVtbl->PrivateSetup(p)
|
2007-10-09 22:17:59 +02:00
|
|
|
|
#define IWineD3DSurface_ModifyLocation(p,a,b) (p)->lpVtbl->ModifyLocation(p,a,b)
|
2007-09-25 00:02:14 +02:00
|
|
|
|
#define IWineD3DSurface_LoadLocation(p,a,b) (p)->lpVtbl->LoadLocation(p,a,b)
|
2004-12-07 15:29:12 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
2005-01-17 14:44:57 +01:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DVolume interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DVolume
|
2005-03-29 21:01:00 +02:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DVolume,IWineD3DResource)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice ** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(SetPrivateData)(THIS_ REFGUID refguid, CONST void * pData, DWORD SizeOfData, DWORD Flags) PURE;
|
|
|
|
|
STDMETHOD(GetPrivateData)(THIS_ REFGUID refguid, void * pData, DWORD * pSizeOfData) PURE;
|
|
|
|
|
STDMETHOD(FreePrivateData)(THIS_ REFGUID refguid) PURE;
|
2005-03-29 21:01:00 +02:00
|
|
|
|
STDMETHOD_(DWORD,SetPriority)(THIS_ DWORD PriorityNew) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetPriority)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(void,PreLoad)(THIS) PURE;
|
2006-03-09 23:21:16 +01:00
|
|
|
|
STDMETHOD_(WINED3DRESOURCETYPE, GetType)(THIS) PURE;
|
2005-03-29 21:01:00 +02:00
|
|
|
|
/*** IWineD3DVolume methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(GetContainer)(THIS_ REFIID riid, void ** ppContainer) PURE;
|
|
|
|
|
STDMETHOD(GetDesc)(THIS_ WINED3DVOLUME_DESC * pDesc) PURE;
|
2006-04-07 13:12:22 +02:00
|
|
|
|
STDMETHOD(LockBox)(THIS_ WINED3DLOCKED_BOX* pLockedVolume, CONST WINED3DBOX* pBox, DWORD Flags) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(UnlockBox)(THIS) PURE;
|
2006-04-07 13:12:22 +02:00
|
|
|
|
STDMETHOD(AddDirtyBox)(THIS_ CONST WINED3DBOX* pDirtyBox) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
STDMETHOD(CleanDirtyBox)(THIS) PURE;
|
2007-06-07 01:08:26 +02:00
|
|
|
|
STDMETHOD(LoadTexture)(THIS_ int gl_level, BOOL srgb_mode) PURE;
|
2006-02-06 11:30:48 +01:00
|
|
|
|
STDMETHOD(SetContainer)(THIS_ IWineD3DBase *container) PURE;
|
2005-01-17 14:44:57 +01:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DVolume_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DVolume_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DVolume_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DVolume_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DResource methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DVolume_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DVolume_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
|
|
|
|
|
#define IWineD3DVolume_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
|
|
|
|
|
#define IWineD3DVolume_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
|
2005-03-29 21:01:00 +02:00
|
|
|
|
#define IWineD3DVolume_SetPriority(p,a) (p)->lpVtbl->SetPriority(p,a)
|
|
|
|
|
#define IWineD3DVolume_GetPriority(p) (p)->lpVtbl->GetPriority(p)
|
|
|
|
|
#define IWineD3DVolume_PreLoad(p) (p)->lpVtbl->PreLoad(p)
|
|
|
|
|
#define IWineD3DVolume_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
/*** IWineD3DVolume methods ***/
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#define IWineD3DVolume_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
|
|
|
|
|
#define IWineD3DVolume_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
|
|
|
|
|
#define IWineD3DVolume_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
|
|
|
|
|
#define IWineD3DVolume_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
|
|
|
|
|
#define IWineD3DVolume_AddDirtyBox(p,a) (p)->lpVtbl->AddDirtyBox(p,a)
|
|
|
|
|
#define IWineD3DVolume_CleanDirtyBox(p) (p)->lpVtbl->CleanDirtyBox(p)
|
2007-06-07 01:08:26 +02:00
|
|
|
|
#define IWineD3DVolume_LoadTexture(p,a,b) (p)->lpVtbl->LoadTexture(p,a,b)
|
2005-03-14 11:12:52 +01:00
|
|
|
|
#define IWineD3DVolume_SetContainer(p,a) (p)->lpVtbl->SetContainer(p,a)
|
2005-01-17 14:44:57 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
2005-01-19 20:34:49 +01:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DVertexDeclaration interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DVertexDeclaration
|
2006-01-17 15:58:22 +01:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DVertexDeclaration,IWineD3DBase)
|
2005-01-19 20:34:49 +01:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
2005-07-07 22:45:39 +02:00
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
|
2005-01-19 20:34:49 +01:00
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-07-07 22:45:39 +02:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DVertexDeclaration methods ***/
|
2005-07-07 22:45:39 +02:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice **ppDevice) PURE;
|
2007-02-13 23:12:36 +01:00
|
|
|
|
STDMETHOD(GetDeclaration)(THIS_ WINED3DVERTEXELEMENT *elements, size_t *elements_count) PURE;
|
|
|
|
|
STDMETHOD(SetDeclaration)(THIS_ const WINED3DVERTEXELEMENT *elements, size_t element_count) PURE;
|
2005-01-19 20:34:49 +01:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DVertexDeclaration_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DVertexDeclaration_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DVertexDeclaration_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-07-07 22:45:39 +02:00
|
|
|
|
#define IWineD3DVertexDeclaration_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DVertexDeclaration methods ***/
|
2005-01-19 20:34:49 +01:00
|
|
|
|
#define IWineD3DVertexDeclaration_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
2005-07-07 22:45:39 +02:00
|
|
|
|
#define IWineD3DVertexDeclaration_GetDeclaration(p,a,b) (p)->lpVtbl->GetDeclaration(p,a,b)
|
2007-02-13 23:12:36 +01:00
|
|
|
|
#define IWineD3DVertexDeclaration_SetDeclaration(p,a,b) (p)->lpVtbl->SetDeclaration(p,a,b)
|
2005-01-19 20:34:49 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
2004-10-21 22:59:12 +02:00
|
|
|
|
/*****************************************************************************
|
2005-01-26 21:54:00 +01:00
|
|
|
|
* IWineD3DStateBlock interface
|
2004-10-21 22:59:12 +02:00
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DStateBlock
|
2006-01-17 15:58:22 +01:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DStateBlock,IWineD3DBase)
|
2004-10-21 22:59:12 +02:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DStateBlock methods ***/
|
2005-07-05 16:05:18 +02:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice **pDevice) PURE;
|
|
|
|
|
STDMETHOD(Capture)(THIS) PURE;
|
|
|
|
|
STDMETHOD(Apply)(THIS) PURE;
|
2004-10-21 22:59:12 +02:00
|
|
|
|
STDMETHOD(InitStartupStateBlock)(THIS) PURE;
|
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DStateBlock_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DStateBlock_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DStateBlock_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2004-11-23 14:52:46 +01:00
|
|
|
|
#define IWineD3DStateBlock_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DStateBlock methods ***/
|
2005-07-05 16:05:18 +02:00
|
|
|
|
#define IWineD3DStateBlock_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DStateBlock_Capture(p) (p)->lpVtbl->Capture(p)
|
|
|
|
|
#define IWineD3DStateBlock_Apply(p) (p)->lpVtbl->Apply(p)
|
2004-10-21 22:59:12 +02:00
|
|
|
|
#define IWineD3DStateBlock_InitStartupStateBlock(p) (p)->lpVtbl->InitStartupStateBlock(p)
|
|
|
|
|
#endif
|
|
|
|
|
|
2005-03-03 14:57:15 +01:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* WineD3DQuery interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DQuery
|
2006-01-17 15:58:22 +01:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DQuery,IWineD3DBase)
|
2005-03-03 14:57:15 +01:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-03-03 14:57:15 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DQuery methods ***/
|
2005-03-03 14:57:15 +01:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice **ppDevice) PURE;
|
|
|
|
|
STDMETHOD(GetData)(THIS_ void *pData, DWORD dwSize, DWORD dwGetDataFlags) PURE;
|
|
|
|
|
STDMETHOD_(DWORD,GetDataSize)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(WINED3DQUERYTYPE, GetType)(THIS) PURE;
|
|
|
|
|
STDMETHOD(Issue)(THIS_ DWORD dwIssueFlags) PURE;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DQuery_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DQuery_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DQuery_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-03-03 14:57:15 +01:00
|
|
|
|
#define IWineD3DQuery_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DQuery methods ***/
|
2005-03-03 14:57:15 +01:00
|
|
|
|
#define IWineD3DQuery_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DQuery_GetData(p,a,b,c) (p)->lpVtbl->GetData(p,a,b,c)
|
|
|
|
|
#define IWineD3DQuery_GetDataSize(p) (p)->lpVtbl->GetDataSize(p)
|
|
|
|
|
#define IWineD3DQuery_GetType(p) (p)->lpVtbl->GetType(p)
|
|
|
|
|
#define IWineD3DQuery_Issue(p,a) (p)->lpVtbl->Issue(p,a)
|
|
|
|
|
|
|
|
|
|
#endif
|
2004-10-21 22:59:12 +02:00
|
|
|
|
|
2005-06-23 13:05:24 +02:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DSwapChain interface
|
|
|
|
|
* TODO: add gamma-ramp setting functions to make life easier
|
|
|
|
|
* (There kinda missing from Microsofts DirectX!)
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DSwapChain
|
2006-01-17 15:58:22 +01:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DSwapChain,IWineD3DBase)
|
2005-06-23 13:05:24 +02:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void **ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-06-23 13:05:24 +02:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IDirect3DSwapChain9 methods ***/
|
2006-12-05 00:29:14 +01:00
|
|
|
|
STDMETHOD_(void, Destroy)(THIS_ D3DCB_DESTROYSURFACEFN pFn) PURE;
|
2005-06-23 13:05:24 +02:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice **ppDevice) PURE;
|
|
|
|
|
STDMETHOD(Present)(THIS_ CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion, DWORD dwFlags) PURE;
|
|
|
|
|
STDMETHOD(GetFrontBufferData)(THIS_ IWineD3DSurface *pDestSurface) PURE;
|
2006-04-01 22:06:57 +02:00
|
|
|
|
STDMETHOD(GetBackBuffer)(THIS_ UINT iBackBuffer, WINED3DBACKBUFFER_TYPE Type, IWineD3DSurface **ppBackBuffer) PURE;
|
2006-04-04 00:27:28 +02:00
|
|
|
|
STDMETHOD(GetRasterStatus)(THIS_ WINED3DRASTER_STATUS *pRasterStatus) PURE;
|
2006-04-01 21:33:46 +02:00
|
|
|
|
STDMETHOD(GetDisplayMode)(THIS_ WINED3DDISPLAYMODE *pMode) PURE;
|
2006-03-09 00:49:11 +01:00
|
|
|
|
STDMETHOD(GetPresentParameters)(THIS_ WINED3DPRESENT_PARAMETERS *pPresentationParameters) PURE;
|
2006-04-04 13:44:17 +02:00
|
|
|
|
STDMETHOD(SetGammaRamp)(THIS_ DWORD Flags, const WINED3DGAMMARAMP *pRamp) PURE;
|
|
|
|
|
STDMETHOD(GetGammaRamp)(THIS_ WINED3DGAMMARAMP *pRamp) PURE;
|
2005-06-23 13:05:24 +02:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DSwapChain_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DSwapChain_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DSwapChain_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
|
|
|
|
#define IWineD3DSwapChain_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2005-06-23 13:05:24 +02:00
|
|
|
|
/*** IWineD3DSwapChain methods ***/
|
2006-12-05 00:29:14 +01:00
|
|
|
|
#define IWineD3DSwapChain_Destroy(p,a) (p)->lpVtbl->Destroy(p,a)
|
2005-06-23 13:05:24 +02:00
|
|
|
|
#define IWineD3DSwapChain_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DSwapChain_Present(p,a,b,c,d,e) (p)->lpVtbl->Present(p,a,b,c,d,e)
|
|
|
|
|
#define IWineD3DSwapChain_GetFrontBufferData(p,a) (p)->lpVtbl->GetFrontBufferData(p,a)
|
|
|
|
|
#define IWineD3DSwapChain_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
|
|
|
|
|
#define IWineD3DSwapChain_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
|
|
|
|
|
#define IWineD3DSwapChain_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
|
|
|
|
|
#define IWineD3DSwapChain_GetPresentParameters(p,a) (p)->lpVtbl->GetPresentParameters(p,a)
|
|
|
|
|
#define IWineD3DSwapChain_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)
|
|
|
|
|
#define IWineD3DSwapChain_GetGammaRamp(p,a) (p)->lpVtbl->GetGammaRamp(p,a)
|
|
|
|
|
#endif
|
|
|
|
|
|
2006-03-28 21:10:51 +02:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DBaseShader interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DBaseShader
|
|
|
|
|
DECLARE_INTERFACE_(IWineD3DBaseShader,IWineD3DBase)
|
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
|
|
|
|
/*** IWineD3DBase methods ***/
|
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
|
|
|
|
/*** IWineD3DBaseShader methods ***/
|
|
|
|
|
STDMETHOD(SetFunction)(THIS_ CONST DWORD *pFunction) PURE;
|
2006-08-05 18:15:35 +02:00
|
|
|
|
STDMETHOD(CompileShader)(THIS) PURE;
|
2006-03-28 21:10:51 +02:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DBaseShader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DBaseShader_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DBaseShader_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
|
/*** IWineD3DBase methods ***/
|
|
|
|
|
#define IWineD3DBaseShader_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
|
|
|
|
/*** IWineD3DBaseShader methods ***/
|
|
|
|
|
#define IWineD3DBaseShader_SetFunction(p,a) (p)->lpVtbl->SetFunction(p,a)
|
2006-08-05 18:15:35 +02:00
|
|
|
|
#define IWineD3DBaseShader_CompileShader(p) (p)->lpVtbl->CompileShader(p)
|
2006-03-28 21:10:51 +02:00
|
|
|
|
#endif
|
|
|
|
|
|
2005-01-26 21:54:00 +01:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DVertexShader interface
|
2003-11-14 04:50:35 +01:00
|
|
|
|
*/
|
2005-01-26 21:54:00 +01:00
|
|
|
|
#define INTERFACE IWineD3DVertexShader
|
2006-03-28 21:10:51 +02:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DVertexShader,IWineD3DBaseShader)
|
2005-01-26 21:54:00 +01:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-03-28 21:10:51 +02:00
|
|
|
|
/*** IWineD3DBaseShader methods ***/
|
|
|
|
|
STDMETHOD(SetFunction)(THIS_ CONST DWORD *pFunction) PURE;
|
2006-08-05 18:15:35 +02:00
|
|
|
|
STDMETHOD(CompileShader)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DVertexShader methods ***/
|
2005-08-17 13:34:03 +02:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice** ppDevice) PURE;
|
|
|
|
|
STDMETHOD(GetFunction)(THIS_ VOID *pData, UINT *pSizeOfData) PURE;
|
2007-02-13 23:12:29 +01:00
|
|
|
|
STDMETHOD_(void, FakeSemantics)(THIS_ struct IWineD3DVertexDeclaration *vertex_declaration) PURE;
|
2007-02-13 23:12:40 +01:00
|
|
|
|
STDMETHOD(SetLocalConstantsF)(THIS_ UINT start_idx, const float *src_data, UINT count) PURE;
|
2005-01-26 21:54:00 +01:00
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
2003-11-14 04:50:35 +01:00
|
|
|
|
|
2005-01-26 21:54:00 +01:00
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
2007-02-13 23:12:40 +01:00
|
|
|
|
#define IWineD3DVertexShader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DVertexShader_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DVertexShader_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2007-02-13 23:12:40 +01:00
|
|
|
|
#define IWineD3DVertexShader_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-03-28 21:10:51 +02:00
|
|
|
|
/*** IWineD3DBaseShader methods ***/
|
2007-02-13 23:12:40 +01:00
|
|
|
|
#define IWineD3DVertexShader_SetFunction(p,a) (p)->lpVtbl->SetFunction(p,a)
|
|
|
|
|
#define IWineD3DVertexShader_CompileShader(p) (p)->lpVtbl->CompileShader(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DVertexShader methods ***/
|
2007-02-13 23:12:40 +01:00
|
|
|
|
#define IWineD3DVertexShader_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DVertexShader_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
|
|
|
|
|
#define IWineD3DVertexShader_FakeSemantics(p,a) (p)->lpVtbl->FakeSemantics(p,a)
|
|
|
|
|
#define IWineD3DVertexShader_SetLocalConstantsF(p,a,b,c) (p)->lpVtbl->SetLocalConstantsF(p,a,b,c)
|
2005-01-26 21:54:00 +01:00
|
|
|
|
#endif
|
2003-11-14 04:50:35 +01:00
|
|
|
|
|
2005-01-26 21:54:00 +01:00
|
|
|
|
/*****************************************************************************
|
2005-11-21 17:27:55 +01:00
|
|
|
|
* IWineD3DPixelShader interface
|
2003-11-14 04:50:35 +01:00
|
|
|
|
*/
|
2005-01-26 21:54:00 +01:00
|
|
|
|
#define INTERFACE IWineD3DPixelShader
|
2006-03-28 21:10:51 +02:00
|
|
|
|
DECLARE_INTERFACE_(IWineD3DPixelShader,IWineD3DBaseShader)
|
2005-01-26 21:54:00 +01:00
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(GetParent)(THIS_ IUnknown **pParent) PURE;
|
2006-03-28 21:10:51 +02:00
|
|
|
|
/*** IWineD3DBaseShader methods ***/
|
|
|
|
|
STDMETHOD(SetFunction)(THIS_ CONST DWORD *pFunction) PURE;
|
2006-08-05 18:15:35 +02:00
|
|
|
|
STDMETHOD(CompileShader)(THIS) PURE;
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DPixelShader methods ***/
|
2005-03-02 13:16:10 +01:00
|
|
|
|
STDMETHOD(GetDevice)(THIS_ IWineD3DDevice** ppDevice) PURE;
|
2005-01-26 21:54:00 +01:00
|
|
|
|
STDMETHOD(GetFunction)(THIS_ VOID* pData, UINT* pSizeOfData) PURE;
|
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
2003-11-14 04:50:35 +01:00
|
|
|
|
|
2005-01-26 21:54:00 +01:00
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DPixelShader_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DPixelShader_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DPixelShader_Release(p) (p)->lpVtbl->Release(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DBase methods ***/
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DPixelShader_GetParent(p,a) (p)->lpVtbl->GetParent(p,a)
|
2006-03-28 21:10:51 +02:00
|
|
|
|
/*** IWineD3DBaseShader methods ***/
|
|
|
|
|
#define IWineD3DPixelShader_SetFunction(p,a) (p)->lpVtbl->SetFunction(p,a)
|
2006-08-05 18:15:35 +02:00
|
|
|
|
#define IWineD3DPixelShader_CompileShader(p) (p)->lpVtbl->CompileShader(p)
|
2006-01-17 15:58:22 +01:00
|
|
|
|
/*** IWineD3DPixelShader methods ***/
|
2005-03-02 13:16:10 +01:00
|
|
|
|
#define IWineD3DPixelShader_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
|
|
|
|
|
#define IWineD3DPixelShader_GetFunction(p,a,b) (p)->lpVtbl->GetFunction(p,a,b)
|
2005-01-26 21:54:00 +01:00
|
|
|
|
#endif
|
2003-11-14 04:50:35 +01:00
|
|
|
|
|
2006-04-17 17:04:59 +02:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IWineD3DPalette interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DPalette
|
|
|
|
|
DECLARE_INTERFACE_(IWineD3DPalette,IUnknown)
|
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
|
|
|
|
/*** IWineD3DPalette methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,GetParent)(THIS_ IUnknown **Parent);
|
|
|
|
|
STDMETHOD_(HRESULT,GetEntries)(THIS_ DWORD Flags, DWORD Start, DWORD Count, PALETTEENTRY *PalEnt);
|
|
|
|
|
STDMETHOD_(HRESULT,GetCaps)(THIS_ DWORD *Caps);
|
|
|
|
|
STDMETHOD_(HRESULT,SetEntries)(THIS_ DWORD Flags, DWORD Start, DWORD Count, PALETTEENTRY *PalEnt);
|
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DPalette_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DPalette_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DPalette_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
|
/*** IWineD3DPalette methods ***/
|
|
|
|
|
#define IWineD3DPalette_GetParent(p, a) (p)->lpVtbl->GetParent(p, a)
|
|
|
|
|
#define IWineD3DPalette_GetEntries(p, a, b, c, d) (p)->lpVtbl->GetEntries(p, a, b, c, d)
|
|
|
|
|
#define IWineD3DPalette_GetCaps(p, a) (p)->lpVtbl->GetCaps(p, a)
|
|
|
|
|
#define IWineD3DPalette_SetEntries(p, a, b, c, d) (p)->lpVtbl->SetEntries(p, a, b, c, d)
|
|
|
|
|
#endif
|
|
|
|
|
|
2007-04-28 17:59:37 +02:00
|
|
|
|
/*****************************************************************************
|
|
|
|
|
* IDirectDrawClipper interface
|
|
|
|
|
*/
|
|
|
|
|
#define INTERFACE IWineD3DClipper
|
|
|
|
|
DECLARE_INTERFACE_(IWineD3DClipper,IUnknown)
|
|
|
|
|
{
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,AddRef)(THIS) PURE;
|
|
|
|
|
STDMETHOD_(ULONG,Release)(THIS) PURE;
|
|
|
|
|
/*** WineD3DBase methods ***/
|
|
|
|
|
STDMETHOD_(HRESULT,GetParent)(THIS_ IUnknown **parent) PURE;
|
|
|
|
|
/*** IWineD3DClipper methods ***/
|
|
|
|
|
STDMETHOD(GetClipList)(THIS_ LPRECT lpRect, LPRGNDATA lpClipList, LPDWORD lpdwSize) PURE;
|
|
|
|
|
STDMETHOD(GetHWnd)(THIS_ HWND *lphWnd) PURE;
|
|
|
|
|
STDMETHOD(IsClipListChanged)(THIS_ BOOL *lpbChanged) PURE;
|
|
|
|
|
STDMETHOD(SetClipList)(THIS_ LPRGNDATA lpClipList, DWORD dwFlags) PURE;
|
|
|
|
|
STDMETHOD(SetHWnd)(THIS_ DWORD dwFlags, HWND hWnd) PURE;
|
|
|
|
|
};
|
|
|
|
|
#undef INTERFACE
|
|
|
|
|
|
|
|
|
|
#if !defined(__cplusplus) || defined(CINTERFACE)
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DClipper_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
|
|
|
|
#define IWineD3DClipper_AddRef(p) (p)->lpVtbl->AddRef(p)
|
|
|
|
|
#define IWineD3DClipper_Release(p) (p)->lpVtbl->Release(p)
|
|
|
|
|
/*** IWineD3DClipper methods ***/
|
|
|
|
|
#define IWineD3DClipper_GetClipList(p,a,b,c) (p)->lpVtbl->GetClipList(p,a,b,c)
|
|
|
|
|
#define IWineD3DClipper_GetHWnd(p,a) (p)->lpVtbl->GetHWnd(p,a)
|
|
|
|
|
#define IWineD3DClipper_IsClipListChanged(p,a) (p)->lpVtbl->IsClipListChanged(p,a)
|
|
|
|
|
#define IWineD3DClipper_SetClipList(p,a,b) (p)->lpVtbl->SetClipList(p,a,b)
|
|
|
|
|
#define IWineD3DClipper_SetHWnd(p,a,b) (p)->lpVtbl->SetHWnd(p,a,b)
|
|
|
|
|
#else
|
|
|
|
|
/*** IUnknown methods ***/
|
|
|
|
|
#define IWineD3DClipper_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
|
|
|
|
#define IWineD3DClipper_AddRef(p) (p)->AddRef()
|
|
|
|
|
#define IWineD3DClipper_Release(p) (p)->Release()
|
|
|
|
|
/*** IWineD3DClipper methods ***/
|
|
|
|
|
#define IWineD3DClipper_GetClipList(p,a,b,c) (p)->GetClipList(a,b,c)
|
|
|
|
|
#define IWineD3DClipper_GetHWnd(p,a) (p)->GetHWnd(a)
|
|
|
|
|
#define IWineD3DClipper_IsClipListChanged(p,a) (p)->IsClipListChanged(a)
|
|
|
|
|
#define IWineD3DClipper_SetClipList(p,a,b) (p)->SetClipList(a,b)
|
|
|
|
|
#define IWineD3DClipper_SetHWnd(p,a,b) (p)->SetHWnd(a,b)
|
|
|
|
|
#endif
|
|
|
|
|
|
2007-06-07 11:48:55 +02:00
|
|
|
|
/* DDraw Clippers are not created from DDraw objects, they have a separate creation function */
|
2007-04-28 17:59:37 +02:00
|
|
|
|
IWineD3DClipper* WINAPI WineDirect3DCreateClipper(IUnknown *parent);
|
|
|
|
|
|
2005-01-26 21:54:00 +01:00
|
|
|
|
#if 0 /* FIXME: During porting in from d3d8 - the following will be used */
|
2003-11-14 04:50:35 +01:00
|
|
|
|
extern HRESULT WINAPI IDirect3DVertexShaderImpl_ParseProgram(IDirect3DVertexShaderImpl* This, CONST DWORD* pFunction);
|
|
|
|
|
/* internal Interfaces */
|
|
|
|
|
extern HRESULT WINAPI IDirect3DVertexShaderImpl_ExecuteSW(IDirect3DVertexShaderImpl* This, VSHADERINPUTDATA* input, VSHADEROUTPUTDATA* output);
|
2004-09-23 06:34:27 +02:00
|
|
|
|
#endif /* Temporary #if 0 */
|
2003-11-14 04:50:35 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|