Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b8d3075d
Commit
b8d3075d
authored
Jul 26, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Uncomment the typedef in the DECLARE_INTERFACE macro, and get rid of
duplicate typedefs.
parent
52cf1851
Show whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
1093 additions
and
1107 deletions
+1093
-1107
editstream.c
dlls/avifil32/editstream.c
+0
-1
segment.c
dlls/dmime/segment.c
+1
-1
dmloader_private.h
dlls/dmloader/dmloader_private.h
+3
-3
loader.c
dlls/dmloader/loader.c
+6
-6
loaderstream.c
dlls/dmloader/loaderstream.c
+5
-5
dplaysp.h
dlls/dplayx/dplaysp.h
+1
-1
lobbysp.h
dlls/dplayx/lobbysp.h
+1
-1
ifs.h
dlls/ole32/ifs.h
+4
-4
shellfolder.h
dlls/shell32/shellfolder.h
+0
-1
d3d.h
include/d3d.h
+20
-20
d3d8.h
include/d3d8.h
+356
-356
d3d9.h
include/d3d9.h
+422
-422
d3dx8core.h
include/d3dx8core.h
+2
-2
ddraw.h
include/ddraw.h
+13
-13
dinput.h
include/dinput.h
+19
-19
dmplugin.h
include/dmplugin.h
+24
-24
dmusicc.h
include/dmusicc.h
+15
-15
dmusici.h
include/dmusici.h
+32
-32
dmusics.h
include/dmusics.h
+5
-5
dpaddr.h
include/dpaddr.h
+2
-2
dplay.h
include/dplay.h
+4
-4
dplay8.h
include/dplay8.h
+3
-3
dplobby.h
include/dplobby.h
+3
-3
dsdriver.h
include/dsdriver.h
+6
-6
dsound.h
include/dsound.h
+12
-12
dxdiag.h
include/dxdiag.h
+36
-36
dxfile.h
include/dxfile.h
+7
-7
mapidefs.h
include/mapidefs.h
+5
-6
mapiutil.h
include/mapiutil.h
+2
-4
mapix.h
include/mapix.h
+1
-2
objbase.h
include/objbase.h
+2
-2
objsel.h
include/objsel.h
+0
-1
oledlg.h
include/oledlg.h
+6
-6
shlobj.h
include/shlobj.h
+2
-8
shlwapi.h
include/shlwapi.h
+1
-1
vfw.h
include/vfw.h
+4
-5
wined3d_interface.h
include/wine/wined3d_interface.h
+68
-68
No files found.
dlls/avifil32/editstream.c
View file @
b8d3075d
...
...
@@ -40,7 +40,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(avifile);
/***********************************************************************/
/* internal interface to get access to table of stream in an editable stream */
typedef
struct
IEditStreamInternal
IEditStreamInternal
;
typedef
struct
_EditStreamTable
{
PAVISTREAM
pStream
;
/* stream which contains the data */
...
...
dlls/dmime/segment.c
View file @
b8d3075d
...
...
@@ -252,7 +252,7 @@ static HRESULT WINAPI IDirectMusicSegment8Impl_IDirectMusicSegment8_InsertTrack
}
pNewSegTrack
->
dwGroupBits
=
dwGroupBits
;
pNewSegTrack
->
pTrack
=
pTrack
;
IDirectMusicTrack_Init
(
pTrack
,
iface
);
IDirectMusicTrack_Init
(
pTrack
,
(
IDirectMusicSegment
*
)
iface
);
IDirectMusicTrack_AddRef
(
pTrack
);
list_add_tail
(
&
This
->
Tracks
,
&
pNewSegTrack
->
entry
);
...
...
dlls/dmloader/dmloader_private.h
View file @
b8d3075d
...
...
@@ -200,7 +200,7 @@ struct IDirectMusicLoaderFileStream {
};
/* Custom: */
extern
HRESULT
WINAPI
IDirectMusicLoaderFileStream_Attach
(
LPSTREAM
iface
,
LPCWSTR
wzFile
,
LPDIRECTMUSICLOADER
pLoader
);
extern
HRESULT
WINAPI
IDirectMusicLoaderFileStream_Attach
(
LPSTREAM
iface
,
LPCWSTR
wzFile
,
LPDIRECTMUSICLOADER
8
pLoader
);
extern
void
WINAPI
IDirectMusicLoaderFileStream_Detach
(
LPSTREAM
iface
);
/* IUnknown/IStream: */
extern
HRESULT
WINAPI
IDirectMusicLoaderFileStream_IStream_QueryInterface
(
LPSTREAM
iface
,
REFIID
riid
,
void
**
ppobj
);
...
...
@@ -228,7 +228,7 @@ struct IDirectMusicLoaderResourceStream {
};
/* Custom: */
extern
HRESULT
WINAPI
IDirectMusicLoaderResourceStream_Attach
(
LPSTREAM
iface
,
LPBYTE
pbMemData
,
LONGLONG
llMemLength
,
LONGLONG
llPos
,
LPDIRECTMUSICLOADER
pLoader
);
extern
HRESULT
WINAPI
IDirectMusicLoaderResourceStream_Attach
(
LPSTREAM
iface
,
LPBYTE
pbMemData
,
LONGLONG
llMemLength
,
LONGLONG
llPos
,
LPDIRECTMUSICLOADER
8
pLoader
);
extern
void
WINAPI
IDirectMusicLoaderResourceStream_Detach
(
LPSTREAM
iface
);
/* IUnknown/IStream: */
extern
HRESULT
WINAPI
IDirectMusicLoaderResourceStream_IStream_QueryInterface
(
LPSTREAM
iface
,
REFIID
riid
,
void
**
ppobj
);
...
...
@@ -253,7 +253,7 @@ struct IDirectMusicLoaderGenericStream {
};
/* Custom: */
extern
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_Attach
(
LPSTREAM
iface
,
LPSTREAM
pStream
,
LPDIRECTMUSICLOADER
pLoader
);
extern
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_Attach
(
LPSTREAM
iface
,
LPSTREAM
pStream
,
LPDIRECTMUSICLOADER
8
pLoader
);
extern
void
WINAPI
IDirectMusicLoaderGenericStream_Detach
(
LPSTREAM
iface
);
/* IUnknown/IStream: */
extern
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_IStream_QueryInterface
(
LPSTREAM
iface
,
REFIID
riid
,
void
**
ppobj
);
...
...
dlls/dmloader/loader.c
View file @
b8d3075d
...
...
@@ -197,7 +197,7 @@ HRESULT WINAPI IDirectMusicLoaderImpl_IDirectMusicLoader_GetObject (LPDIRECTMUSI
ERR
(
": could not create loader stream
\n
"
);
return
result
;
}
result
=
IDirectMusicLoaderFileStream_Attach
(
pStream
,
wszFileName
,
(
LPDIRECTMUSICLOADER
)
iface
);
result
=
IDirectMusicLoaderFileStream_Attach
(
pStream
,
wszFileName
,
iface
);
if
(
FAILED
(
result
))
{
ERR
(
": could not attach stream to file
\n
"
);
return
result
;
...
...
@@ -213,7 +213,7 @@ HRESULT WINAPI IDirectMusicLoaderImpl_IDirectMusicLoader_GetObject (LPDIRECTMUSI
ERR
(
": could not create resource stream
\n
"
);
return
result
;
}
result
=
IDirectMusicLoaderResourceStream_Attach
(
pStream
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
,
0
,
(
LPDIRECTMUSICLOADER
)
iface
);
result
=
IDirectMusicLoaderResourceStream_Attach
(
pStream
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
,
0
,
iface
);
if
(
FAILED
(
result
))
{
ERR
(
": could not attach stream to resource
\n
"
);
return
result
;
...
...
@@ -228,7 +228,7 @@ HRESULT WINAPI IDirectMusicLoaderImpl_IDirectMusicLoader_GetObject (LPDIRECTMUSI
ERR
(
": could not create generic stream
\n
"
);
return
result
;
}
result
=
IDirectMusicLoaderGenericStream_Attach
(
pStream
,
pDesc
->
pStream
,
(
LPDIRECTMUSICLOADER
)
iface
);
result
=
IDirectMusicLoaderGenericStream_Attach
(
pStream
,
pDesc
->
pStream
,
iface
);
if
(
FAILED
(
result
))
{
ERR
(
": failed to attach stream
\n
"
);
return
result
;
...
...
@@ -346,19 +346,19 @@ HRESULT WINAPI IDirectMusicLoaderImpl_IDirectMusicLoader_SetObject (LPDIRECTMUSI
/* create stream */
DMUSIC_CreateDirectMusicLoaderFileStream
((
LPVOID
*
)
&
pStream
);
/* attach stream */
IDirectMusicLoaderFileStream_Attach
(
pStream
,
wszFileName
,
(
LPDIRECTMUSICLOADER
)
iface
);
IDirectMusicLoaderFileStream_Attach
(
pStream
,
wszFileName
,
iface
);
}
else
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_STREAM
)
{
/* create stream */
DMUSIC_CreateDirectMusicLoaderGenericStream
((
LPVOID
*
)
&
pStream
);
/* attach stream */
IDirectMusicLoaderGenericStream_Attach
(
pStream
,
pDesc
->
pStream
,
(
LPDIRECTMUSICLOADER
)
iface
);
IDirectMusicLoaderGenericStream_Attach
(
pStream
,
pDesc
->
pStream
,
iface
);
}
else
if
(
pDesc
->
dwValidData
&
DMUS_OBJ_MEMORY
)
{
/* create stream */
DMUSIC_CreateDirectMusicLoaderResourceStream
((
LPVOID
*
)
&
pStream
);
/* attach stream */
IDirectMusicLoaderResourceStream_Attach
(
pStream
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
,
0
,
(
LPDIRECTMUSICLOADER
)
iface
);
IDirectMusicLoaderResourceStream_Attach
(
pStream
,
pDesc
->
pbMemData
,
pDesc
->
llMemLength
,
0
,
iface
);
}
else
{
ERR
(
": no way to get additional info
\n
"
);
...
...
dlls/dmloader/loaderstream.c
View file @
b8d3075d
...
...
@@ -56,7 +56,7 @@ WINE_DECLARE_DEBUG_CHANNEL(dmfileraw);
* IDirectMusicLoaderFileStream implementation
*/
/* Custom : */
HRESULT
WINAPI
IDirectMusicLoaderFileStream_Attach
(
LPSTREAM
iface
,
LPCWSTR
wzFile
,
LPDIRECTMUSICLOADER
pLoader
)
{
HRESULT
WINAPI
IDirectMusicLoaderFileStream_Attach
(
LPSTREAM
iface
,
LPCWSTR
wzFile
,
LPDIRECTMUSICLOADER
8
pLoader
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderFileStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p, %s, %p)
\n
"
,
This
,
debugstr_w
(
wzFile
),
pLoader
);
IDirectMusicLoaderFileStream_Detach
(
iface
);
...
...
@@ -66,7 +66,7 @@ HRESULT WINAPI IDirectMusicLoaderFileStream_Attach (LPSTREAM iface, LPCWSTR wzFi
return
DMUS_E_LOADER_FAILEDOPEN
;
}
/* create IDirectMusicGetLoader */
This
->
pLoader
=
(
LPDIRECTMUSICLOADER8
)
pLoader
;
This
->
pLoader
=
pLoader
;
lstrcpynW
(
This
->
wzFileName
,
wzFile
,
MAX_PATH
);
TRACE
(
": succeeded
\n
"
);
return
S_OK
;
...
...
@@ -160,7 +160,7 @@ HRESULT WINAPI IDirectMusicLoaderFileStream_IStream_Clone (LPSTREAM iface, IStre
if
(
FAILED
(
result
))
return
result
;
if
(
This
->
hFile
!=
INVALID_HANDLE_VALUE
)
{
ULARGE_INTEGER
ullCurrentPosition
;
result
=
IDirectMusicLoaderFileStream_Attach
(
pOther
,
This
->
wzFileName
,
(
LPDIRECTMUSICLOADER
)
This
->
pLoader
);
result
=
IDirectMusicLoaderFileStream_Attach
(
pOther
,
This
->
wzFileName
,
This
->
pLoader
);
if
(
SUCCEEDED
(
result
))
{
LARGE_INTEGER
liZero
;
liZero
.
QuadPart
=
0
;
...
...
@@ -312,7 +312,7 @@ HRESULT WINAPI DMUSIC_DestroyDirectMusicLoaderFileStream (LPSTREAM iface) {
* IDirectMusicLoaderResourceStream implementation
*/
/* Custom : */
HRESULT
WINAPI
IDirectMusicLoaderResourceStream_Attach
(
LPSTREAM
iface
,
LPBYTE
pbMemData
,
LONGLONG
llMemLength
,
LONGLONG
llPos
,
LPDIRECTMUSICLOADER
pLoader
)
{
HRESULT
WINAPI
IDirectMusicLoaderResourceStream_Attach
(
LPSTREAM
iface
,
LPBYTE
pbMemData
,
LONGLONG
llMemLength
,
LONGLONG
llPos
,
LPDIRECTMUSICLOADER
8
pLoader
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderResourceStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p, %p, 0x%08llX, 0x%08llx, %p)
\n
"
,
This
,
pbMemData
,
llMemLength
,
llPos
,
pLoader
);
...
...
@@ -576,7 +576,7 @@ HRESULT WINAPI DMUSIC_DestroyDirectMusicLoaderResourceStream (LPSTREAM iface) {
* IDirectMusicLoaderGenericStream implementation
*/
/* Custom : */
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_Attach
(
LPSTREAM
iface
,
LPSTREAM
pStream
,
LPDIRECTMUSICLOADER
pLoader
)
{
HRESULT
WINAPI
IDirectMusicLoaderGenericStream_Attach
(
LPSTREAM
iface
,
LPSTREAM
pStream
,
LPDIRECTMUSICLOADER
8
pLoader
)
{
ICOM_THIS_MULTI
(
IDirectMusicLoaderGenericStream
,
StreamVtbl
,
iface
);
TRACE
(
"(%p, %p, %p)
\n
"
,
This
,
pStream
,
pLoader
);
...
...
dlls/dplayx/dplaysp.h
View file @
b8d3075d
...
...
@@ -29,7 +29,7 @@
/* GUID for IDirectPlaySP {0C9F6360-CC61-11cf-ACEC-00AA006886E3} */
DEFINE_GUID
(
IID_IDirectPlaySP
,
0xc9f6360
,
0xcc61
,
0x11cf
,
0xac
,
0xec
,
0x0
,
0xaa
,
0x0
,
0x68
,
0x86
,
0xe3
);
typedef
struct
IDirectPlaySP
IDirectPlaySP
,
*
LPDIRECTPLAYSP
;
typedef
struct
IDirectPlaySP
*
LPDIRECTPLAYSP
;
typedef
BOOL
(
CALLBACK
*
LPENUMMRUCALLBACK
)(
LPCVOID
lpData
,
...
...
dlls/dplayx/lobbysp.h
View file @
b8d3075d
...
...
@@ -28,7 +28,7 @@
/* GUID for IDPLobbySP {5A4E5A20-2CED-11d0-A889-00A0C905433C} */
DEFINE_GUID
(
IID_IDPLobbySP
,
0x5a4e5a20
,
0x2ced
,
0x11d0
,
0xa8
,
0x89
,
0x0
,
0xa0
,
0xc9
,
0x5
,
0x43
,
0x3c
);
typedef
struct
IDPLobbySP
IDPLobbySP
,
*
LPDPLOBBYSP
;
typedef
struct
IDPLobbySP
*
LPDPLOBBYSP
;
/* For SP. Top 16 bits is dplay, bottom 16 is SP */
#define DPLSP_MAJORVERSION 0x00050000
...
...
dlls/ole32/ifs.h
View file @
b8d3075d
...
...
@@ -38,7 +38,7 @@ typedef LPCSTR LPCOLESTR16;
* IMalloc16 interface
*/
typedef
struct
IMalloc16
IMalloc16
,
*
LPMALLOC16
;
typedef
struct
IMalloc16
*
LPMALLOC16
;
#define INTERFACE IMalloc16
DECLARE_INTERFACE_
(
IMalloc16
,
IUnknown
)
...
...
@@ -63,7 +63,7 @@ extern LPMALLOC16 IMalloc16_Constructor(void);
/**********************************************************************/
typedef
struct
ILockBytes16
*
LPLOCKBYTES16
,
ILockBytes16
;
typedef
struct
ILockBytes16
*
LPLOCKBYTES16
;
#define INTERFACE ILockBytes16
DECLARE_INTERFACE_
(
ILockBytes16
,
IUnknown
)
...
...
@@ -100,7 +100,7 @@ typedef struct tagSTATSTG16
DWORD
reserved
;
}
STATSTG16
;
typedef
struct
IStream16
IStream16
,
*
LPSTREAM16
;
typedef
struct
IStream16
*
LPSTREAM16
;
#define INTERFACE IStream16
DECLARE_INTERFACE_
(
IStream16
,
ISequentialStream
)
...
...
@@ -129,7 +129,7 @@ DECLARE_INTERFACE_(IStream16,ISequentialStream)
typedef
OLECHAR16
**
SNB16
;
typedef
struct
IStorage16
IStorage16
,
*
LPSTORAGE16
;
typedef
struct
IStorage16
*
LPSTORAGE16
;
#define INTERFACE IStorage16
DECLARE_INTERFACE_
(
IStorage16
,
IUnknown
)
...
...
dlls/shell32/shellfolder.h
View file @
b8d3075d
...
...
@@ -33,7 +33,6 @@
* Predeclare the interfaces
*/
DEFINE_GUID
(
IID_ISFHelper
,
0x1fe68efbL
,
0x1874
,
0x9812
,
0x56
,
0xdc
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
);
typedef
struct
ISFHelper
ISFHelper
,
*
LPISFHELPER
;
/*****************************************************************************
* ISFHelper interface
...
...
include/d3d.h
View file @
b8d3075d
...
...
@@ -64,33 +64,33 @@ DEFINE_GUID(IID_IDirect3DVertexBuffer, 0x7a503555,0x4a83,0x11d1,0xa5,0xdb,0x00,
DEFINE_GUID
(
IID_IDirect3DVertexBuffer7
,
0xf5049e7d
,
0x4861
,
0x11d2
,
0xa4
,
0x07
,
0x00
,
0xa0
,
0xc9
,
0x06
,
0x29
,
0xa8
);
typedef
struct
IDirect3D
IDirect3D
,
*
LPDIRECT3D
;
typedef
struct
IDirect3D2
IDirect3D2
,
*
LPDIRECT3D2
;
typedef
struct
IDirect3D3
IDirect3D3
,
*
LPDIRECT3D3
;
typedef
struct
IDirect3D7
IDirect3D7
,
*
LPDIRECT3D7
;
typedef
struct
IDirect3D
*
LPDIRECT3D
;
typedef
struct
IDirect3D2
*
LPDIRECT3D2
;
typedef
struct
IDirect3D3
*
LPDIRECT3D3
;
typedef
struct
IDirect3D7
*
LPDIRECT3D7
;
typedef
struct
IDirect3DLight
IDirect3DLight
,
*
LPDIRECT3DLIGHT
;
typedef
struct
IDirect3DLight
*
LPDIRECT3DLIGHT
;
typedef
struct
IDirect3DDevice
IDirect3DDevice
,
*
LPDIRECT3DDEVICE
;
typedef
struct
IDirect3DDevice2
IDirect3DDevice2
,
*
LPDIRECT3DDEVICE2
;
typedef
struct
IDirect3DDevice3
IDirect3DDevice3
,
*
LPDIRECT3DDEVICE3
;
typedef
struct
IDirect3DDevice7
IDirect3DDevice7
,
*
LPDIRECT3DDEVICE7
;
typedef
struct
IDirect3DDevice
*
LPDIRECT3DDEVICE
;
typedef
struct
IDirect3DDevice2
*
LPDIRECT3DDEVICE2
;
typedef
struct
IDirect3DDevice3
*
LPDIRECT3DDEVICE3
;
typedef
struct
IDirect3DDevice7
*
LPDIRECT3DDEVICE7
;
typedef
struct
IDirect3DViewport
IDirect3DViewport
,
*
LPDIRECT3DVIEWPORT
;
typedef
struct
IDirect3DViewport2
IDirect3DViewport2
,
*
LPDIRECT3DVIEWPORT2
;
typedef
struct
IDirect3DViewport3
IDirect3DViewport3
,
*
LPDIRECT3DVIEWPORT3
;
typedef
struct
IDirect3DViewport
*
LPDIRECT3DVIEWPORT
;
typedef
struct
IDirect3DViewport2
*
LPDIRECT3DVIEWPORT2
;
typedef
struct
IDirect3DViewport3
*
LPDIRECT3DVIEWPORT3
;
typedef
struct
IDirect3DMaterial
IDirect3DMaterial
,
*
LPDIRECT3DMATERIAL
;
typedef
struct
IDirect3DMaterial2
IDirect3DMaterial2
,
*
LPDIRECT3DMATERIAL2
;
typedef
struct
IDirect3DMaterial3
IDirect3DMaterial3
,
*
LPDIRECT3DMATERIAL3
;
typedef
struct
IDirect3DMaterial
*
LPDIRECT3DMATERIAL
;
typedef
struct
IDirect3DMaterial2
*
LPDIRECT3DMATERIAL2
;
typedef
struct
IDirect3DMaterial3
*
LPDIRECT3DMATERIAL3
;
typedef
struct
IDirect3DTexture
IDirect3DTexture
,
*
LPDIRECT3DTEXTURE
;
typedef
struct
IDirect3DTexture2
IDirect3DTexture2
,
*
LPDIRECT3DTEXTURE2
;
typedef
struct
IDirect3DTexture
*
LPDIRECT3DTEXTURE
;
typedef
struct
IDirect3DTexture2
*
LPDIRECT3DTEXTURE2
;
typedef
struct
IDirect3DExecuteBuffer
IDirect3DExecuteBuffer
,
*
LPDIRECT3DEXECUTEBUFFER
;
typedef
struct
IDirect3DExecuteBuffer
*
LPDIRECT3DEXECUTEBUFFER
;
typedef
struct
IDirect3DVertexBuffer
IDirect3DVertexBuffer
,
*
LPDIRECT3DVERTEXBUFFER
;
typedef
struct
IDirect3DVertexBuffer7
IDirect3DVertexBuffer7
,
*
LPDIRECT3DVERTEXBUFFER7
;
typedef
struct
IDirect3DVertexBuffer
*
LPDIRECT3DVERTEXBUFFER
;
typedef
struct
IDirect3DVertexBuffer7
*
LPDIRECT3DVERTEXBUFFER7
;
/* ********************************************************************
Error Codes
...
...
include/d3d8.h
View file @
b8d3075d
...
...
@@ -78,40 +78,40 @@
* Predeclare the interfaces
*/
DEFINE_GUID
(
IID_IDirect3D8
,
0x1DD9E8DA
,
0x1C77
,
0x4D40
,
0xB0
,
0xCF
,
0x98
,
0xFE
,
0xFD
,
0xFF
,
0x95
,
0x12
);
typedef
struct
IDirect3D8
IDirect3D8
,
*
LPDIRECT3D8
;
typedef
struct
IDirect3D8
*
LPDIRECT3D8
;
DEFINE_GUID
(
IID_IDirect3DDevice8
,
0x7385E5DF
,
0x8FE8
,
0x41D5
,
0x86
,
0xB6
,
0xD7
,
0xB4
,
0x85
,
0x47
,
0xB6
,
0xCF
);
typedef
struct
IDirect3DDevice8
IDirect3DDevice8
,
*
LPDIRECT3DDEVICE8
;
typedef
struct
IDirect3DDevice8
*
LPDIRECT3DDEVICE8
;
DEFINE_GUID
(
IID_IDirect3DResource8
,
0x1B36BB7B
,
0x09B7
,
0x410A
,
0xB4
,
0x45
,
0x7D
,
0x14
,
0x30
,
0xD7
,
0xB3
,
0x3F
);
typedef
struct
IDirect3DResource8
IDirect3DResource8
,
*
LPDIRECT3DRESOURCE8
,
*
PDIRECT3DRESOURCE8
;
typedef
struct
IDirect3DResource8
*
LPDIRECT3DRESOURCE8
,
*
PDIRECT3DRESOURCE8
;
DEFINE_GUID
(
IID_IDirect3DVertexBuffer8
,
0x8AEEEAC7
,
0x05F9
,
0x44D4
,
0xB5
,
0x91
,
0x00
,
0x0B
,
0x0D
,
0xF1
,
0xCB
,
0x95
);
typedef
struct
IDirect3DVertexBuffer8
IDirect3DVertexBuffer8
,
*
LPDIRECT3DVERTEXBUFFER8
,
*
PDIRECT3DVERTEXBUFFER8
;
typedef
struct
IDirect3DVertexBuffer8
*
LPDIRECT3DVERTEXBUFFER8
,
*
PDIRECT3DVERTEXBUFFER8
;
DEFINE_GUID
(
IID_IDirect3DVolume8
,
0xBD7349F5
,
0x14F1
,
0x42E4
,
0x9C
,
0x79
,
0x97
,
0x23
,
0x80
,
0xDB
,
0x40
,
0xC0
);
typedef
struct
IDirect3DVolume8
IDirect3DVolume8
,
*
LPDIRECT3DVOLUME8
,
*
PDIRECT3DVOLUME8
;
typedef
struct
IDirect3DVolume8
*
LPDIRECT3DVOLUME8
,
*
PDIRECT3DVOLUME8
;
DEFINE_GUID
(
IID_IDirect3DSwapChain8
,
0x928C088B
,
0x76B9
,
0x4C6B
,
0xA5
,
0x36
,
0xA5
,
0x90
,
0x85
,
0x38
,
0x76
,
0xCD
);
typedef
struct
IDirect3DSwapChain8
IDirect3DSwapChain8
,
*
LPDIRECT3DSWAPCHAIN8
,
*
PDIRECT3DSWAPCHAIN8
;
typedef
struct
IDirect3DSwapChain8
*
LPDIRECT3DSWAPCHAIN8
,
*
PDIRECT3DSWAPCHAIN8
;
DEFINE_GUID
(
IID_IDirect3DSurface8
,
0xB96EEBCA
,
0xB326
,
0x4EA5
,
0x88
,
0x2F
,
0x2F
,
0xF5
,
0xBA
,
0xE0
,
0x21
,
0xDD
);
typedef
struct
IDirect3DSurface8
IDirect3DSurface8
,
*
LPDIRECT3DSURFACE8
,
*
PDIRECT3DSURFACE8
;
typedef
struct
IDirect3DSurface8
*
LPDIRECT3DSURFACE8
,
*
PDIRECT3DSURFACE8
;
DEFINE_GUID
(
IID_IDirect3DIndexBuffer8
,
0x0E689C9A
,
0x053D
,
0x44A0
,
0x9D
,
0x92
,
0xDB
,
0x0E
,
0x3D
,
0x75
,
0x0F
,
0x86
);
typedef
struct
IDirect3DIndexBuffer8
IDirect3DIndexBuffer8
,
*
LPDIRECT3DINDEXBUFFER8
,
*
PDIRECT3DINDEXBUFFER8
;
typedef
struct
IDirect3DIndexBuffer8
*
LPDIRECT3DINDEXBUFFER8
,
*
PDIRECT3DINDEXBUFFER8
;
DEFINE_GUID
(
IID_IDirect3DBaseTexture8
,
0xB4211CFA
,
0x51B9
,
0x4A9F
,
0xAB
,
0x78
,
0xDB
,
0x99
,
0xB2
,
0xBB
,
0x67
,
0x8E
);
typedef
struct
IDirect3DBaseTexture8
IDirect3DBaseTexture8
,
*
LPDIRECT3DBASETEXTURE8
,
*
PDIRECT3DBASETEXTURE8
;
typedef
struct
IDirect3DBaseTexture8
*
LPDIRECT3DBASETEXTURE8
,
*
PDIRECT3DBASETEXTURE8
;
DEFINE_GUID
(
IID_IDirect3DTexture8
,
0xE4CDD575
,
0x2866
,
0x4F01
,
0xB1
,
0x2E
,
0x7E
,
0xEC
,
0xE1
,
0xEC
,
0x93
,
0x58
);
typedef
struct
IDirect3DTexture8
IDirect3DTexture8
,
*
LPDIRECT3DTEXTURE8
,
*
PDIRECT3DTEXTURE8
;
typedef
struct
IDirect3DTexture8
*
LPDIRECT3DTEXTURE8
,
*
PDIRECT3DTEXTURE8
;
DEFINE_GUID
(
IID_IDirect3DCubeTexture8
,
0x3EE5B968
,
0x2ACA
,
0x4C34
,
0x8B
,
0xB5
,
0x7E
,
0x0C
,
0x3D
,
0x19
,
0xB7
,
0x50
);
typedef
struct
IDirect3DCubeTexture8
IDirect3DCubeTexture8
,
*
LPDIRECT3DCUBETEXTURE8
,
*
PDIRECT3DCUBETEXTURE8
;
typedef
struct
IDirect3DCubeTexture8
*
LPDIRECT3DCUBETEXTURE8
,
*
PDIRECT3DCUBETEXTURE8
;
DEFINE_GUID
(
IID_IDirect3DVolumeTexture8
,
0x4B8AAAFA
,
0x140F
,
0x42BA
,
0x91
,
0x31
,
0x59
,
0x7E
,
0xAF
,
0xAA
,
0x2E
,
0xAD
);
typedef
struct
IDirect3DVolumeTexture8
IDirect3DVolumeTexture8
,
*
LPDIRECT3DVOLUMETEXTURE8
,
*
PDIRECT3DVOLUMETEXTURE8
;
typedef
struct
IDirect3DVolumeTexture8
*
LPDIRECT3DVOLUMETEXTURE8
,
*
PDIRECT3DVOLUMETEXTURE8
;
/*****************************************************************************
* IDirect3D8 interface
...
...
@@ -136,7 +136,7 @@ DECLARE_INTERFACE_(IDirect3D8,IUnknown)
STDMETHOD
(
CheckDepthStencilMatch
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DFORMAT
AdapterFormat
,
D3DFORMAT
RenderTargetFormat
,
D3DFORMAT
DepthStencilFormat
)
PURE
;
STDMETHOD
(
GetDeviceCaps
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DCAPS8
*
pCaps
)
PURE
;
STDMETHOD_
(
HMONITOR
,
GetAdapterMonitor
)(
THIS_
UINT
Adapter
)
PURE
;
STDMETHOD
(
CreateDevice
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviorFlags
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DDevice8
**
ppReturnedDeviceInterface
)
PURE
;
STDMETHOD
(
CreateDevice
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviorFlags
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
struct
IDirect3DDevice8
**
ppReturnedDeviceInterface
)
PURE
;
};
#undef INTERFACE
...
...
@@ -181,351 +181,41 @@ DECLARE_INTERFACE_(IDirect3D8,IUnknown)
#endif
/*****************************************************************************
* IDirect3D
Devic
e8 interface
* IDirect3D
Volum
e8 interface
*/
#define INTERFACE IDirect3D
Devic
e8
DECLARE_INTERFACE_
(
IDirect3D
Devic
e8
,
IUnknown
)
#define INTERFACE IDirect3D
Volum
e8
DECLARE_INTERFACE_
(
IDirect3D
Volum
e8
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DDevice8 methods ***/
STDMETHOD
(
TestCooperativeLevel
)(
THIS
)
PURE
;
STDMETHOD_
(
UINT
,
GetAvailableTextureMem
)(
THIS
)
PURE
;
STDMETHOD
(
ResourceManagerDiscardBytes
)(
THIS_
DWORD
Bytes
)
PURE
;
STDMETHOD
(
GetDirect3D
)(
THIS_
IDirect3D8
**
ppD3D8
)
PURE
;
STDMETHOD
(
GetDeviceCaps
)(
THIS_
D3DCAPS8
*
pCaps
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetCreationParameters
)(
THIS_
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
PURE
;
STDMETHOD
(
SetCursorProperties
)(
THIS_
UINT
XHotSpot
,
UINT
YHotSpot
,
IDirect3DSurface8
*
pCursorBitmap
)
PURE
;
STDMETHOD_
(
void
,
SetCursorPosition
)(
THIS_
UINT
XScreenSpace
,
UINT
YScreenSpace
,
DWORD
Flags
)
PURE
;
STDMETHOD_
(
BOOL
,
ShowCursor
)(
THIS_
BOOL
bShow
)
PURE
;
STDMETHOD
(
CreateAdditionalSwapChain
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DSwapChain8
**
pSwapChain
)
PURE
;
STDMETHOD
(
Reset
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
BackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface8
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD_
(
void
,
SetGammaRamp
)(
THIS_
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
GetGammaRamp
)(
THIS_
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
CreateTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DTexture8
**
ppTexture
)
PURE
;
STDMETHOD
(
CreateVolumeTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DVolumeTexture8
**
ppVolumeTexture
)
PURE
;
STDMETHOD
(
CreateCubeTexture
)(
THIS_
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DCubeTexture8
**
ppCubeTexture
)
PURE
;
STDMETHOD
(
CreateVertexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
DWORD
FVF
,
D3DPOOL
Pool
,
IDirect3DVertexBuffer8
**
ppVertexBuffer
)
PURE
;
STDMETHOD
(
CreateIndexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DIndexBuffer8
**
ppIndexBuffer
)
PURE
;
STDMETHOD
(
CreateRenderTarget
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
BOOL
Lockable
,
IDirect3DSurface8
**
ppSurface
)
PURE
;
STDMETHOD
(
CreateDepthStencilSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
IDirect3DSurface8
**
ppSurface
)
PURE
;
STDMETHOD
(
CreateImageSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
IDirect3DSurface8
**
ppSurface
)
PURE
;
STDMETHOD
(
CopyRects
)(
THIS_
IDirect3DSurface8
*
pSourceSurface
,
CONST
RECT
*
pSourceRectsArray
,
UINT
cRects
,
IDirect3DSurface8
*
pDestinationSurface
,
CONST
POINT
*
pDestPointsArray
)
PURE
;
STDMETHOD
(
UpdateTexture
)(
THIS_
IDirect3DBaseTexture8
*
pSourceTexture
,
IDirect3DBaseTexture8
*
pDestinationTexture
)
PURE
;
STDMETHOD
(
GetFrontBuffer
)(
THIS_
IDirect3DSurface8
*
pDestSurface
)
PURE
;
STDMETHOD
(
SetRenderTarget
)(
THIS_
IDirect3DSurface8
*
pRenderTarget
,
IDirect3DSurface8
*
pNewZStencil
)
PURE
;
STDMETHOD
(
GetRenderTarget
)(
THIS_
IDirect3DSurface8
**
ppRenderTarget
)
PURE
;
STDMETHOD
(
GetDepthStencilSurface
)(
THIS_
IDirect3DSurface8
**
ppZStencilSurface
)
PURE
;
STDMETHOD
(
BeginScene
)(
THIS
)
PURE
;
STDMETHOD
(
EndScene
)(
THIS
)
PURE
;
STDMETHOD
(
Clear
)(
THIS_
DWORD
Count
,
CONST
D3DRECT
*
pRects
,
DWORD
Flags
,
D3DCOLOR
Color
,
float
Z
,
DWORD
Stencil
)
PURE
;
STDMETHOD
(
SetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
GetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
MultiplyTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
SetViewport
)(
THIS_
CONST
D3DVIEWPORT8
*
pViewport
)
PURE
;
STDMETHOD
(
GetViewport
)(
THIS_
D3DVIEWPORT8
*
pViewport
)
PURE
;
STDMETHOD
(
SetMaterial
)(
THIS_
CONST
D3DMATERIAL8
*
pMaterial
)
PURE
;
STDMETHOD
(
GetMaterial
)(
THIS_
D3DMATERIAL8
*
pMaterial
)
PURE
;
STDMETHOD
(
SetLight
)(
THIS_
DWORD
Index
,
CONST
D3DLIGHT8
*
pLight
)
PURE
;
STDMETHOD
(
GetLight
)(
THIS_
DWORD
Index
,
D3DLIGHT8
*
pLight
)
PURE
;
STDMETHOD
(
LightEnable
)(
THIS_
DWORD
Index
,
BOOL
Enable
)
PURE
;
STDMETHOD
(
GetLightEnable
)(
THIS_
DWORD
Index
,
BOOL
*
pEnable
)
PURE
;
STDMETHOD
(
SetClipPlane
)(
THIS_
DWORD
Index
,
CONST
float
*
pPlane
)
PURE
;
STDMETHOD
(
GetClipPlane
)(
THIS_
DWORD
Index
,
float
*
pPlane
)
PURE
;
STDMETHOD
(
SetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
PURE
;
STDMETHOD
(
GetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
BeginStateBlock
)(
THIS
)
PURE
;
STDMETHOD
(
EndStateBlock
)(
THIS_
DWORD
*
pToken
)
PURE
;
STDMETHOD
(
ApplyStateBlock
)(
THIS_
DWORD
Token
)
PURE
;
STDMETHOD
(
CaptureStateBlock
)(
THIS_
DWORD
Token
)
PURE
;
STDMETHOD
(
DeleteStateBlock
)(
THIS_
DWORD
Token
)
PURE
;
STDMETHOD
(
CreateStateBlock
)(
THIS_
D3DSTATEBLOCKTYPE
Type
,
DWORD
*
pToken
)
PURE
;
STDMETHOD
(
SetClipStatus
)(
THIS_
CONST
D3DCLIPSTATUS8
*
pClipStatus
)
PURE
;
STDMETHOD
(
GetClipStatus
)(
THIS_
D3DCLIPSTATUS8
*
pClipStatus
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
DWORD
Stage
,
IDirect3DBaseTexture8
**
ppTexture
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
DWORD
Stage
,
IDirect3DBaseTexture8
*
pTexture
)
PURE
;
STDMETHOD
(
GetTextureStageState
)(
THIS_
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
SetTextureStageState
)(
THIS_
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
Value
)
PURE
;
STDMETHOD
(
ValidateDevice
)(
THIS_
DWORD
*
pNumPasses
)
PURE
;
STDMETHOD
(
GetInfo
)(
THIS_
DWORD
DevInfoID
,
void
*
pDevInfoStruct
,
DWORD
DevInfoStructSize
)
PURE
;
STDMETHOD
(
SetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
CONST
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
GetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
SetCurrentTexturePalette
)(
THIS_
UINT
PaletteNumber
)
PURE
;
STDMETHOD
(
GetCurrentTexturePalette
)(
THIS_
UINT
*
PaletteNumber
)
PURE
;
STDMETHOD
(
DrawPrimitive
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
StartVertex
,
UINT
PrimitiveCount
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitive
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
minIndex
,
UINT
NumVertices
,
UINT
startIndex
,
UINT
primCount
)
PURE
;
STDMETHOD
(
DrawPrimitiveUP
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
PrimitiveCount
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitiveUP
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
MinVertexIndex
,
UINT
NumVertexIndices
,
UINT
PrimitiveCount
,
CONST
void
*
pIndexData
,
D3DFORMAT
IndexDataFormat
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
PURE
;
STDMETHOD
(
ProcessVertices
)(
THIS_
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IDirect3DVertexBuffer8
*
pDestBuffer
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
CreateVertexShader
)(
THIS_
CONST
DWORD
*
pDeclaration
,
CONST
DWORD
*
pFunction
,
DWORD
*
pHandle
,
DWORD
Usage
)
PURE
;
STDMETHOD
(
SetVertexShader
)(
THIS_
DWORD
Handle
)
PURE
;
STDMETHOD
(
GetVertexShader
)(
THIS_
DWORD
*
pHandle
)
PURE
;
STDMETHOD
(
DeleteVertexShader
)(
THIS_
DWORD
Handle
)
PURE
;
STDMETHOD
(
SetVertexShaderConstant
)(
THIS_
DWORD
Register
,
CONST
void
*
pConstantData
,
DWORD
ConstantCount
)
PURE
;
STDMETHOD
(
GetVertexShaderConstant
)(
THIS_
DWORD
Register
,
void
*
pConstantData
,
DWORD
ConstantCount
)
PURE
;
STDMETHOD
(
GetVertexShaderDeclaration
)(
THIS_
DWORD
Handle
,
void
*
pData
,
DWORD
*
pSizeOfData
)
PURE
;
STDMETHOD
(
GetVertexShaderFunction
)(
THIS_
DWORD
Handle
,
void
*
pData
,
DWORD
*
pSizeOfData
)
PURE
;
STDMETHOD
(
SetStreamSource
)(
THIS_
UINT
StreamNumber
,
IDirect3DVertexBuffer8
*
pStreamData
,
UINT
Stride
)
PURE
;
STDMETHOD
(
GetStreamSource
)(
THIS_
UINT
StreamNumber
,
IDirect3DVertexBuffer8
**
ppStreamData
,
UINT
*
pStride
)
PURE
;
STDMETHOD
(
SetIndices
)(
THIS_
IDirect3DIndexBuffer8
*
pIndexData
,
UINT
BaseVertexIndex
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
IDirect3DIndexBuffer8
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
PURE
;
STDMETHOD
(
CreatePixelShader
)(
THIS_
CONST
DWORD
*
pFunction
,
DWORD
*
pHandle
)
PURE
;
STDMETHOD
(
SetPixelShader
)(
THIS_
DWORD
Handle
)
PURE
;
STDMETHOD
(
GetPixelShader
)(
THIS_
DWORD
*
pHandle
)
PURE
;
STDMETHOD
(
DeletePixelShader
)(
THIS_
DWORD
Handle
)
PURE
;
STDMETHOD
(
SetPixelShaderConstant
)(
THIS_
DWORD
Register
,
CONST
void
*
pConstantData
,
DWORD
ConstantCount
)
PURE
;
STDMETHOD
(
GetPixelShaderConstant
)(
THIS_
DWORD
Register
,
void
*
pConstantData
,
DWORD
ConstantCount
)
PURE
;
STDMETHOD
(
GetPixelShaderFunction
)(
THIS_
DWORD
Handle
,
void
*
pData
,
DWORD
*
pSizeOfData
)
PURE
;
STDMETHOD
(
DrawRectPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DRECTPATCH_INFO
*
pRectPatchInfo
)
PURE
;
STDMETHOD
(
DrawTriPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DTRIPATCH_INFO
*
pTriPatchInfo
)
PURE
;
STDMETHOD
(
DeletePatch
)(
THIS_
UINT
Handle
)
PURE
;
/*** IDirect3DVolume8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice8
**
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
(
GetContainer
)(
THIS_
REFIID
riid
,
void
**
ppContainer
)
PURE
;
STDMETHOD
(
GetDesc
)(
THIS_
D3DVOLUME_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
LockBox
)(
THIS_
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockBox
)(
THIS
)
PURE
;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define IDirect3DDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IDirect3DDevice8_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IDirect3DDevice8_Release(p) (p)->lpVtbl->Release(p)
/*** IDirect3DDevice8 methods ***/
#define IDirect3DDevice8_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
#define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
#define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->lpVtbl->ResourceManagerDiscardBytes(p,a)
#define IDirect3DDevice8_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
#define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
#define IDirect3DDevice8_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
#define IDirect3DDevice8_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
#define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
#define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
#define IDirect3DDevice8_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
#define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
#define IDirect3DDevice8_Reset(p,a) (p)->lpVtbl->Reset(p,a)
#define IDirect3DDevice8_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
#define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
#define IDirect3DDevice8_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
#define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)
#define IDirect3DDevice8_GetGammaRamp(p,a) (p)->lpVtbl->GetGammaRamp(p,a)
#define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g)
#define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f)
#define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e)
#define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e)
#define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f)
#define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e)
#define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->lpVtbl->CreateImageSurface(p,a,b,c,d)
#define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->lpVtbl->CopyRects(p,a,b,c,d,e)
#define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
#define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->lpVtbl->GetFrontBuffer(p,a)
#define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
#define IDirect3DDevice8_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
#define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
#define IDirect3DDevice8_BeginScene(p) (p)->lpVtbl->BeginScene(p)
#define IDirect3DDevice8_EndScene(p) (p)->lpVtbl->EndScene(p)
#define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
#define IDirect3DDevice8_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
#define IDirect3DDevice8_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
#define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
#define IDirect3DDevice8_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
#define IDirect3DDevice8_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
#define IDirect3DDevice8_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
#define IDirect3DDevice8_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
#define IDirect3DDevice8_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
#define IDirect3DDevice8_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
#define IDirect3DDevice8_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
#define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
#define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
#define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
#define IDirect3DDevice8_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
#define IDirect3DDevice8_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
#define IDirect3DDevice8_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
#define IDirect3DDevice8_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
#define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a)
#define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a)
#define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a)
#define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
#define IDirect3DDevice8_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
#define IDirect3DDevice8_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
#define IDirect3DDevice8_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
#define IDirect3DDevice8_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
#define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
#define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
#define IDirect3DDevice8_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
#define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)
#define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
#define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
#define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
#define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
#define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
#define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e)
#define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
#define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->lpVtbl->processVertices(p,a,b,c,d,e)
#define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d)
#define IDirect3DDevice8_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
#define IDirect3DDevice8_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
#define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->lpVtbl->DeleteVertexShader(p,a)
#define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstant(p,a,b,c)
#define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstant(p,a,b,c)
#define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->lpVtbl->GetVertexShaderDeclaration(p,a,b,c)
#define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->lpVtbl->GetVertexShaderFunction(p,a,b,c)
#define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->lpVtbl->SetStreamSource(p,a,b,c)
#define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->lpVtbl->GetStreamSource(p,a,b,c)
#define IDirect3DDevice8_SetIndices(p,a,b) (p)->lpVtbl->SetIndices(p,a,b)
#define IDirect3DDevice8_GetIndices(p,a,b) (p)->lpVtbl->GetIndices(p,a,b)
#define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
#define IDirect3DDevice8_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
#define IDirect3DDevice8_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
#define IDirect3DDevice8_DeletePixelShader(p,a) (p)->lpVtbl->DeletePixelShader(p,a)
#define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstant(p,a,b,c)
#define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstant(p,a,b,c)
#define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->lpVtbl->GetPixelShaderFunction(p,a,b,c)
#define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
#define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
#define IDirect3DDevice8_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
#else
/*** IUnknown methods ***/
#define IDirect3DDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
#define IDirect3DDevice8_AddRef(p) (p)->AddRef()
#define IDirect3DDevice8_Release(p) (p)->Release()
/*** IDirect3DDevice8 methods ***/
#define IDirect3DDevice8_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
#define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
#define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->ResourceManagerDiscardBytes(a)
#define IDirect3DDevice8_GetDirect3D(p,a) (p)->GetDirect3D(a)
#define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
#define IDirect3DDevice8_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
#define IDirect3DDevice8_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
#define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
#define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
#define IDirect3DDevice8_ShowCursor(p,a) (p)->ShowCursor(a)
#define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
#define IDirect3DDevice8_Reset(p,a) (p)->Reset(a)
#define IDirect3DDevice8_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
#define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
#define IDirect3DDevice8_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
#define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->SetGammaRamp(a,b)
#define IDirect3DDevice8_GetGammaRamp(p,a) (p)->GetGammaRamp(a)
#define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->CreateTexture(a,b,c,d,e,f,g)
#define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h)
#define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->CreateCubeTexture(a,b,c,d,e,f)
#define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->CreateVertexBuffer(a,b,c,d,e)
#define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->CreateIndexBuffer(a,b,c,d,e)
#define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->CreateRenderTarget(a,b,c,d,e,f)
#define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->CreateDepthStencilSurface(a,b,c,d,e)
#define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->CreateImageSurface(a,b,c,d)
#define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->CopyRects(a,b,c,d,e)
#define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
#define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->GetFrontBuffer(a)
#define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
#define IDirect3DDevice8_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
#define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
#define IDirect3DDevice8_BeginScene(p) (p)->BeginScene()
#define IDirect3DDevice8_EndScene(p) (p)->EndScene()
#define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
#define IDirect3DDevice8_SetTransform(p,a,b) (p)->SetTransform(a,b)
#define IDirect3DDevice8_GetTransform(p,a,b) (p)->GetTransform(a,b)
#define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
#define IDirect3DDevice8_SetViewport(p,a) (p)->SetViewport(a)
#define IDirect3DDevice8_GetViewport(p,a) (p)->GetViewport(a)
#define IDirect3DDevice8_SetMaterial(p,a) (p)->SetMaterial(a)
#define IDirect3DDevice8_GetMaterial(p,a) (p)->GetMaterial(a)
#define IDirect3DDevice8_SetLight(p,a,b) (p)->SetLight(a,b)
#define IDirect3DDevice8_GetLight(p,a,b) (p)->GetLight(a,b)
#define IDirect3DDevice8_LightEnable(p,a,b) (p)->LightEnable(a,b)
#define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
#define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
#define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
#define IDirect3DDevice8_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
#define IDirect3DDevice8_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
#define IDirect3DDevice8_BeginStateBlock(p) (p)->BeginStateBlock()
#define IDirect3DDevice8_EndStateBlock(p,a) (p)->EndStateBlock(a)
#define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a)
#define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a)
#define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a)
#define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
#define IDirect3DDevice8_SetClipStatus(p,a) (p)->SetClipStatus(a)
#define IDirect3DDevice8_GetClipStatus(p,a) (p)->GetClipStatus(a)
#define IDirect3DDevice8_GetTexture(p,a,b) (p)->GetTexture(a,b)
#define IDirect3DDevice8_SetTexture(p,a,b) (p)->SetTexture(a,b)
#define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
#define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
#define IDirect3DDevice8_ValidateDevice(p,a) (p)->ValidateDevice(a)
#define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c)
#define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
#define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
#define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
#define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
#define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
#define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->DrawIndexedPrimitive(a,b,c,d,e)
#define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
#define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
#define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->processVertices(a,b,c,d,e)
#define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->CreateVertexShader(a,b,c,d)
#define IDirect3DDevice8_SetVertexShader(p,a) (p)->SetVertexShader(a)
#define IDirect3DDevice8_GetVertexShader(p,a) (p)->GetVertexShader(a)
#define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->DeleteVertexShader(a)
#define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->SetVertexShaderConstant(a,b,c)
#define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->GetVertexShaderConstant(a,b,c)
#define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->GetVertexShaderDeclaration(a,b,c)
#define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->GetVertexShaderFunction(a,b,c)
#define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->SetStreamSource(a,b,c)
#define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->GetStreamSource(a,b,c)
#define IDirect3DDevice8_SetIndices(p,a,b) (p)->SetIndices(a,b)
#define IDirect3DDevice8_GetIndices(p,a,b) (p)->GetIndices(a,b)
#define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
#define IDirect3DDevice8_SetPixelShader(p,a) (p)->SetPixelShader(a)
#define IDirect3DDevice8_GetPixelShader(p,a) (p)->GetPixelShader(a)
#define IDirect3DDevice8_DeletePixelShader(p,a) (p)->DeletePixelShader(a)
#define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->SetPixelShaderConstant(a,b,c)
#define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->GetPixelShaderConstant(a,b,c)
#define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->GetPixelShaderFunction(a,b,c)
#define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
#define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
#define IDirect3DDevice8_DeletePatch(p,a) (p)->DeletePatch(a)
#endif
/*****************************************************************************
* IDirect3DVolume8 interface
*/
#define INTERFACE IDirect3DVolume8
DECLARE_INTERFACE_
(
IDirect3DVolume8
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DVolume8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice8
**
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
(
GetContainer
)(
THIS_
REFIID
riid
,
void
**
ppContainer
)
PURE
;
STDMETHOD
(
GetDesc
)(
THIS_
D3DVOLUME_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
LockBox
)(
THIS_
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockBox
)(
THIS
)
PURE
;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define IDirect3DVolume8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IDirect3DVolume8_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IDirect3DVolume8_Release(p) (p)->lpVtbl->Release(p)
/*** IDirect3DVolume8 methods ***/
#define IDirect3DVolume8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
#define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
#define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
#define IDirect3DVolume8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
#define IDirect3DVolume8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
#define IDirect3DVolume8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
#define IDirect3DVolume8_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
#define IDirect3DVolume8_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
#define IDirect3DVolume8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IDirect3DVolume8_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IDirect3DVolume8_Release(p) (p)->lpVtbl->Release(p)
/*** IDirect3DVolume8 methods ***/
#define IDirect3DVolume8_GetDevice(p,a) (p)->lpVtbl->GetDevice(p,a)
#define IDirect3DVolume8_SetPrivateData(p,a,b,c,d) (p)->lpVtbl->SetPrivateData(p,a,b,c,d)
#define IDirect3DVolume8_GetPrivateData(p,a,b,c) (p)->lpVtbl->GetPrivateData(p,a,b,c)
#define IDirect3DVolume8_FreePrivateData(p,a) (p)->lpVtbl->FreePrivateData(p,a)
#define IDirect3DVolume8_GetContainer(p,a,b) (p)->lpVtbl->GetContainer(p,a,b)
#define IDirect3DVolume8_GetDesc(p,a) (p)->lpVtbl->GetDesc(p,a)
#define IDirect3DVolume8_LockBox(p,a,b,c) (p)->lpVtbl->LockBox(p,a,b,c)
#define IDirect3DVolume8_UnlockBox(p) (p)->lpVtbl->UnlockBox(p)
#else
/*** IUnknown methods ***/
#define IDirect3DVolume8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
...
...
@@ -554,7 +244,7 @@ DECLARE_INTERFACE_(IDirect3DSwapChain8,IUnknown)
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DSwapChain8 methods ***/
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
BackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface8
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
BackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
struct
IDirect3DSurface8
**
ppBackBuffer
)
PURE
;
};
#undef INTERFACE
...
...
@@ -587,7 +277,7 @@ DECLARE_INTERFACE_(IDirect3DSurface8,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DSurface8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice8
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice8
**
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
;
...
...
@@ -639,7 +329,7 @@ DECLARE_INTERFACE_(IDirect3DResource8,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice8
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice8
**
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
;
...
...
@@ -691,7 +381,7 @@ DECLARE_INTERFACE_(IDirect3DVertexBuffer8,IDirect3DResource8)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice8
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice8
**
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
;
...
...
@@ -755,7 +445,7 @@ DECLARE_INTERFACE_(IDirect3DIndexBuffer8,IDirect3DResource8)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice8
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice8
**
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
;
...
...
@@ -819,7 +509,7 @@ DECLARE_INTERFACE_(IDirect3DBaseTexture8,IDirect3DResource8)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice8
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice8
**
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
;
...
...
@@ -883,7 +573,7 @@ DECLARE_INTERFACE_(IDirect3DCubeTexture8,IDirect3DBaseTexture8)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice8
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice8
**
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
;
...
...
@@ -965,7 +655,7 @@ DECLARE_INTERFACE_(IDirect3DTexture8,IDirect3DBaseTexture8)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice8
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice8
**
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
;
...
...
@@ -1047,7 +737,7 @@ DECLARE_INTERFACE_(IDirect3DVolumeTexture8,IDirect3DBaseTexture8)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource8 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice8
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice8
**
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
;
...
...
@@ -1118,6 +808,316 @@ DECLARE_INTERFACE_(IDirect3DVolumeTexture8,IDirect3DBaseTexture8)
#define IDirect3DVolumeTexture8_AddDirtyBox(p,a) (p)->AddDirtyBox(a)
#endif
/*****************************************************************************
* IDirect3DDevice8 interface
*/
#define INTERFACE IDirect3DDevice8
DECLARE_INTERFACE_
(
IDirect3DDevice8
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DDevice8 methods ***/
STDMETHOD
(
TestCooperativeLevel
)(
THIS
)
PURE
;
STDMETHOD_
(
UINT
,
GetAvailableTextureMem
)(
THIS
)
PURE
;
STDMETHOD
(
ResourceManagerDiscardBytes
)(
THIS_
DWORD
Bytes
)
PURE
;
STDMETHOD
(
GetDirect3D
)(
THIS_
IDirect3D8
**
ppD3D8
)
PURE
;
STDMETHOD
(
GetDeviceCaps
)(
THIS_
D3DCAPS8
*
pCaps
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetCreationParameters
)(
THIS_
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
PURE
;
STDMETHOD
(
SetCursorProperties
)(
THIS_
UINT
XHotSpot
,
UINT
YHotSpot
,
IDirect3DSurface8
*
pCursorBitmap
)
PURE
;
STDMETHOD_
(
void
,
SetCursorPosition
)(
THIS_
UINT
XScreenSpace
,
UINT
YScreenSpace
,
DWORD
Flags
)
PURE
;
STDMETHOD_
(
BOOL
,
ShowCursor
)(
THIS_
BOOL
bShow
)
PURE
;
STDMETHOD
(
CreateAdditionalSwapChain
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DSwapChain8
**
pSwapChain
)
PURE
;
STDMETHOD
(
Reset
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
BackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface8
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD_
(
void
,
SetGammaRamp
)(
THIS_
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
GetGammaRamp
)(
THIS_
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
CreateTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DTexture8
**
ppTexture
)
PURE
;
STDMETHOD
(
CreateVolumeTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DVolumeTexture8
**
ppVolumeTexture
)
PURE
;
STDMETHOD
(
CreateCubeTexture
)(
THIS_
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DCubeTexture8
**
ppCubeTexture
)
PURE
;
STDMETHOD
(
CreateVertexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
DWORD
FVF
,
D3DPOOL
Pool
,
IDirect3DVertexBuffer8
**
ppVertexBuffer
)
PURE
;
STDMETHOD
(
CreateIndexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DIndexBuffer8
**
ppIndexBuffer
)
PURE
;
STDMETHOD
(
CreateRenderTarget
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
BOOL
Lockable
,
IDirect3DSurface8
**
ppSurface
)
PURE
;
STDMETHOD
(
CreateDepthStencilSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
IDirect3DSurface8
**
ppSurface
)
PURE
;
STDMETHOD
(
CreateImageSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
IDirect3DSurface8
**
ppSurface
)
PURE
;
STDMETHOD
(
CopyRects
)(
THIS_
IDirect3DSurface8
*
pSourceSurface
,
CONST
RECT
*
pSourceRectsArray
,
UINT
cRects
,
IDirect3DSurface8
*
pDestinationSurface
,
CONST
POINT
*
pDestPointsArray
)
PURE
;
STDMETHOD
(
UpdateTexture
)(
THIS_
IDirect3DBaseTexture8
*
pSourceTexture
,
IDirect3DBaseTexture8
*
pDestinationTexture
)
PURE
;
STDMETHOD
(
GetFrontBuffer
)(
THIS_
IDirect3DSurface8
*
pDestSurface
)
PURE
;
STDMETHOD
(
SetRenderTarget
)(
THIS_
IDirect3DSurface8
*
pRenderTarget
,
IDirect3DSurface8
*
pNewZStencil
)
PURE
;
STDMETHOD
(
GetRenderTarget
)(
THIS_
IDirect3DSurface8
**
ppRenderTarget
)
PURE
;
STDMETHOD
(
GetDepthStencilSurface
)(
THIS_
IDirect3DSurface8
**
ppZStencilSurface
)
PURE
;
STDMETHOD
(
BeginScene
)(
THIS
)
PURE
;
STDMETHOD
(
EndScene
)(
THIS
)
PURE
;
STDMETHOD
(
Clear
)(
THIS_
DWORD
Count
,
CONST
D3DRECT
*
pRects
,
DWORD
Flags
,
D3DCOLOR
Color
,
float
Z
,
DWORD
Stencil
)
PURE
;
STDMETHOD
(
SetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
GetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
MultiplyTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
SetViewport
)(
THIS_
CONST
D3DVIEWPORT8
*
pViewport
)
PURE
;
STDMETHOD
(
GetViewport
)(
THIS_
D3DVIEWPORT8
*
pViewport
)
PURE
;
STDMETHOD
(
SetMaterial
)(
THIS_
CONST
D3DMATERIAL8
*
pMaterial
)
PURE
;
STDMETHOD
(
GetMaterial
)(
THIS_
D3DMATERIAL8
*
pMaterial
)
PURE
;
STDMETHOD
(
SetLight
)(
THIS_
DWORD
Index
,
CONST
D3DLIGHT8
*
pLight
)
PURE
;
STDMETHOD
(
GetLight
)(
THIS_
DWORD
Index
,
D3DLIGHT8
*
pLight
)
PURE
;
STDMETHOD
(
LightEnable
)(
THIS_
DWORD
Index
,
BOOL
Enable
)
PURE
;
STDMETHOD
(
GetLightEnable
)(
THIS_
DWORD
Index
,
BOOL
*
pEnable
)
PURE
;
STDMETHOD
(
SetClipPlane
)(
THIS_
DWORD
Index
,
CONST
float
*
pPlane
)
PURE
;
STDMETHOD
(
GetClipPlane
)(
THIS_
DWORD
Index
,
float
*
pPlane
)
PURE
;
STDMETHOD
(
SetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
PURE
;
STDMETHOD
(
GetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
BeginStateBlock
)(
THIS
)
PURE
;
STDMETHOD
(
EndStateBlock
)(
THIS_
DWORD
*
pToken
)
PURE
;
STDMETHOD
(
ApplyStateBlock
)(
THIS_
DWORD
Token
)
PURE
;
STDMETHOD
(
CaptureStateBlock
)(
THIS_
DWORD
Token
)
PURE
;
STDMETHOD
(
DeleteStateBlock
)(
THIS_
DWORD
Token
)
PURE
;
STDMETHOD
(
CreateStateBlock
)(
THIS_
D3DSTATEBLOCKTYPE
Type
,
DWORD
*
pToken
)
PURE
;
STDMETHOD
(
SetClipStatus
)(
THIS_
CONST
D3DCLIPSTATUS8
*
pClipStatus
)
PURE
;
STDMETHOD
(
GetClipStatus
)(
THIS_
D3DCLIPSTATUS8
*
pClipStatus
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
DWORD
Stage
,
IDirect3DBaseTexture8
**
ppTexture
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
DWORD
Stage
,
IDirect3DBaseTexture8
*
pTexture
)
PURE
;
STDMETHOD
(
GetTextureStageState
)(
THIS_
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
SetTextureStageState
)(
THIS_
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
Value
)
PURE
;
STDMETHOD
(
ValidateDevice
)(
THIS_
DWORD
*
pNumPasses
)
PURE
;
STDMETHOD
(
GetInfo
)(
THIS_
DWORD
DevInfoID
,
void
*
pDevInfoStruct
,
DWORD
DevInfoStructSize
)
PURE
;
STDMETHOD
(
SetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
CONST
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
GetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
SetCurrentTexturePalette
)(
THIS_
UINT
PaletteNumber
)
PURE
;
STDMETHOD
(
GetCurrentTexturePalette
)(
THIS_
UINT
*
PaletteNumber
)
PURE
;
STDMETHOD
(
DrawPrimitive
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
StartVertex
,
UINT
PrimitiveCount
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitive
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
minIndex
,
UINT
NumVertices
,
UINT
startIndex
,
UINT
primCount
)
PURE
;
STDMETHOD
(
DrawPrimitiveUP
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
PrimitiveCount
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitiveUP
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
MinVertexIndex
,
UINT
NumVertexIndices
,
UINT
PrimitiveCount
,
CONST
void
*
pIndexData
,
D3DFORMAT
IndexDataFormat
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
PURE
;
STDMETHOD
(
ProcessVertices
)(
THIS_
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IDirect3DVertexBuffer8
*
pDestBuffer
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
CreateVertexShader
)(
THIS_
CONST
DWORD
*
pDeclaration
,
CONST
DWORD
*
pFunction
,
DWORD
*
pHandle
,
DWORD
Usage
)
PURE
;
STDMETHOD
(
SetVertexShader
)(
THIS_
DWORD
Handle
)
PURE
;
STDMETHOD
(
GetVertexShader
)(
THIS_
DWORD
*
pHandle
)
PURE
;
STDMETHOD
(
DeleteVertexShader
)(
THIS_
DWORD
Handle
)
PURE
;
STDMETHOD
(
SetVertexShaderConstant
)(
THIS_
DWORD
Register
,
CONST
void
*
pConstantData
,
DWORD
ConstantCount
)
PURE
;
STDMETHOD
(
GetVertexShaderConstant
)(
THIS_
DWORD
Register
,
void
*
pConstantData
,
DWORD
ConstantCount
)
PURE
;
STDMETHOD
(
GetVertexShaderDeclaration
)(
THIS_
DWORD
Handle
,
void
*
pData
,
DWORD
*
pSizeOfData
)
PURE
;
STDMETHOD
(
GetVertexShaderFunction
)(
THIS_
DWORD
Handle
,
void
*
pData
,
DWORD
*
pSizeOfData
)
PURE
;
STDMETHOD
(
SetStreamSource
)(
THIS_
UINT
StreamNumber
,
IDirect3DVertexBuffer8
*
pStreamData
,
UINT
Stride
)
PURE
;
STDMETHOD
(
GetStreamSource
)(
THIS_
UINT
StreamNumber
,
IDirect3DVertexBuffer8
**
ppStreamData
,
UINT
*
pStride
)
PURE
;
STDMETHOD
(
SetIndices
)(
THIS_
IDirect3DIndexBuffer8
*
pIndexData
,
UINT
BaseVertexIndex
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
IDirect3DIndexBuffer8
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
PURE
;
STDMETHOD
(
CreatePixelShader
)(
THIS_
CONST
DWORD
*
pFunction
,
DWORD
*
pHandle
)
PURE
;
STDMETHOD
(
SetPixelShader
)(
THIS_
DWORD
Handle
)
PURE
;
STDMETHOD
(
GetPixelShader
)(
THIS_
DWORD
*
pHandle
)
PURE
;
STDMETHOD
(
DeletePixelShader
)(
THIS_
DWORD
Handle
)
PURE
;
STDMETHOD
(
SetPixelShaderConstant
)(
THIS_
DWORD
Register
,
CONST
void
*
pConstantData
,
DWORD
ConstantCount
)
PURE
;
STDMETHOD
(
GetPixelShaderConstant
)(
THIS_
DWORD
Register
,
void
*
pConstantData
,
DWORD
ConstantCount
)
PURE
;
STDMETHOD
(
GetPixelShaderFunction
)(
THIS_
DWORD
Handle
,
void
*
pData
,
DWORD
*
pSizeOfData
)
PURE
;
STDMETHOD
(
DrawRectPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DRECTPATCH_INFO
*
pRectPatchInfo
)
PURE
;
STDMETHOD
(
DrawTriPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DTRIPATCH_INFO
*
pTriPatchInfo
)
PURE
;
STDMETHOD
(
DeletePatch
)(
THIS_
UINT
Handle
)
PURE
;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define IDirect3DDevice8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IDirect3DDevice8_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IDirect3DDevice8_Release(p) (p)->lpVtbl->Release(p)
/*** IDirect3DDevice8 methods ***/
#define IDirect3DDevice8_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
#define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
#define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->lpVtbl->ResourceManagerDiscardBytes(p,a)
#define IDirect3DDevice8_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
#define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
#define IDirect3DDevice8_GetDisplayMode(p,a) (p)->lpVtbl->GetDisplayMode(p,a)
#define IDirect3DDevice8_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
#define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
#define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
#define IDirect3DDevice8_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
#define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
#define IDirect3DDevice8_Reset(p,a) (p)->lpVtbl->Reset(p,a)
#define IDirect3DDevice8_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
#define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->lpVtbl->GetBackBuffer(p,a,b,c)
#define IDirect3DDevice8_GetRasterStatus(p,a) (p)->lpVtbl->GetRasterStatus(p,a)
#define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->lpVtbl->SetGammaRamp(p,a,b)
#define IDirect3DDevice8_GetGammaRamp(p,a) (p)->lpVtbl->GetGammaRamp(p,a)
#define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g)
#define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f)
#define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e)
#define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e)
#define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f)
#define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e)
#define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->lpVtbl->CreateImageSurface(p,a,b,c,d)
#define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->lpVtbl->CopyRects(p,a,b,c,d,e)
#define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
#define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->lpVtbl->GetFrontBuffer(p,a)
#define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
#define IDirect3DDevice8_GetRenderTarget(p,a) (p)->lpVtbl->GetRenderTarget(p,a)
#define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
#define IDirect3DDevice8_BeginScene(p) (p)->lpVtbl->BeginScene(p)
#define IDirect3DDevice8_EndScene(p) (p)->lpVtbl->EndScene(p)
#define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
#define IDirect3DDevice8_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
#define IDirect3DDevice8_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
#define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
#define IDirect3DDevice8_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
#define IDirect3DDevice8_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
#define IDirect3DDevice8_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
#define IDirect3DDevice8_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
#define IDirect3DDevice8_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
#define IDirect3DDevice8_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
#define IDirect3DDevice8_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
#define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
#define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
#define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
#define IDirect3DDevice8_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
#define IDirect3DDevice8_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
#define IDirect3DDevice8_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
#define IDirect3DDevice8_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
#define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->lpVtbl->ApplyStateBlock(p,a)
#define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->lpVtbl->CaptureStateBlock(p,a)
#define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->lpVtbl->DeleteStateBlock(p,a)
#define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
#define IDirect3DDevice8_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
#define IDirect3DDevice8_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
#define IDirect3DDevice8_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
#define IDirect3DDevice8_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
#define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
#define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
#define IDirect3DDevice8_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
#define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->lpVtbl->GetInfo(p,a,b,c)
#define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
#define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
#define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
#define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
#define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
#define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e)
#define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
#define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->lpVtbl->processVertices(p,a,b,c,d,e)
#define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->lpVtbl->CreateVertexShader(p,a,b,c,d)
#define IDirect3DDevice8_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
#define IDirect3DDevice8_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
#define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->lpVtbl->DeleteVertexShader(p,a)
#define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstant(p,a,b,c)
#define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstant(p,a,b,c)
#define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->lpVtbl->GetVertexShaderDeclaration(p,a,b,c)
#define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->lpVtbl->GetVertexShaderFunction(p,a,b,c)
#define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->lpVtbl->SetStreamSource(p,a,b,c)
#define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->lpVtbl->GetStreamSource(p,a,b,c)
#define IDirect3DDevice8_SetIndices(p,a,b) (p)->lpVtbl->SetIndices(p,a,b)
#define IDirect3DDevice8_GetIndices(p,a,b) (p)->lpVtbl->GetIndices(p,a,b)
#define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
#define IDirect3DDevice8_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
#define IDirect3DDevice8_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
#define IDirect3DDevice8_DeletePixelShader(p,a) (p)->lpVtbl->DeletePixelShader(p,a)
#define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstant(p,a,b,c)
#define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstant(p,a,b,c)
#define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->lpVtbl->GetPixelShaderFunction(p,a,b,c)
#define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
#define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
#define IDirect3DDevice8_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
#else
/*** IUnknown methods ***/
#define IDirect3DDevice8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
#define IDirect3DDevice8_AddRef(p) (p)->AddRef()
#define IDirect3DDevice8_Release(p) (p)->Release()
/*** IDirect3DDevice8 methods ***/
#define IDirect3DDevice8_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
#define IDirect3DDevice8_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
#define IDirect3DDevice8_ResourceManagerDiscardBytes(p,a) (p)->ResourceManagerDiscardBytes(a)
#define IDirect3DDevice8_GetDirect3D(p,a) (p)->GetDirect3D(a)
#define IDirect3DDevice8_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
#define IDirect3DDevice8_GetDisplayMode(p,a) (p)->GetDisplayMode(a)
#define IDirect3DDevice8_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
#define IDirect3DDevice8_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
#define IDirect3DDevice8_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
#define IDirect3DDevice8_ShowCursor(p,a) (p)->ShowCursor(a)
#define IDirect3DDevice8_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
#define IDirect3DDevice8_Reset(p,a) (p)->Reset(a)
#define IDirect3DDevice8_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
#define IDirect3DDevice8_GetBackBuffer(p,a,b,c) (p)->GetBackBuffer(a,b,c)
#define IDirect3DDevice8_GetRasterStatus(p,a) (p)->GetRasterStatus(a)
#define IDirect3DDevice8_SetGammaRamp(p,a,b) (p)->SetGammaRamp(a,b)
#define IDirect3DDevice8_GetGammaRamp(p,a) (p)->GetGammaRamp(a)
#define IDirect3DDevice8_CreateTexture(p,a,b,c,d,e,f,g) (p)->CreateTexture(a,b,c,d,e,f,g)
#define IDirect3DDevice8_CreateVolumeTexture(p,a,b,c,d,e,f,g,h) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h)
#define IDirect3DDevice8_CreateCubeTexture(p,a,b,c,d,e,f) (p)->CreateCubeTexture(a,b,c,d,e,f)
#define IDirect3DDevice8_CreateVertexBuffer(p,a,b,c,d,e) (p)->CreateVertexBuffer(a,b,c,d,e)
#define IDirect3DDevice8_CreateIndexBuffer(p,a,b,c,d,e) (p)->CreateIndexBuffer(a,b,c,d,e)
#define IDirect3DDevice8_CreateRenderTarget(p,a,b,c,d,e,f) (p)->CreateRenderTarget(a,b,c,d,e,f)
#define IDirect3DDevice8_CreateDepthStencilSurface(p,a,b,c,d,e) (p)->CreateDepthStencilSurface(a,b,c,d,e)
#define IDirect3DDevice8_CreateImageSurface(p,a,b,c,d) (p)->CreateImageSurface(a,b,c,d)
#define IDirect3DDevice8_CopyRects(p,a,b,c,d,e) (p)->CopyRects(a,b,c,d,e)
#define IDirect3DDevice8_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
#define IDirect3DDevice8_GetFrontBuffer(p,a) (p)->GetFrontBuffer(a)
#define IDirect3DDevice8_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
#define IDirect3DDevice8_GetRenderTarget(p,a) (p)->GetRenderTarget(a)
#define IDirect3DDevice8_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
#define IDirect3DDevice8_BeginScene(p) (p)->BeginScene()
#define IDirect3DDevice8_EndScene(p) (p)->EndScene()
#define IDirect3DDevice8_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
#define IDirect3DDevice8_SetTransform(p,a,b) (p)->SetTransform(a,b)
#define IDirect3DDevice8_GetTransform(p,a,b) (p)->GetTransform(a,b)
#define IDirect3DDevice8_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
#define IDirect3DDevice8_SetViewport(p,a) (p)->SetViewport(a)
#define IDirect3DDevice8_GetViewport(p,a) (p)->GetViewport(a)
#define IDirect3DDevice8_SetMaterial(p,a) (p)->SetMaterial(a)
#define IDirect3DDevice8_GetMaterial(p,a) (p)->GetMaterial(a)
#define IDirect3DDevice8_SetLight(p,a,b) (p)->SetLight(a,b)
#define IDirect3DDevice8_GetLight(p,a,b) (p)->GetLight(a,b)
#define IDirect3DDevice8_LightEnable(p,a,b) (p)->LightEnable(a,b)
#define IDirect3DDevice8_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
#define IDirect3DDevice8_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
#define IDirect3DDevice8_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
#define IDirect3DDevice8_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
#define IDirect3DDevice8_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
#define IDirect3DDevice8_BeginStateBlock(p) (p)->BeginStateBlock()
#define IDirect3DDevice8_EndStateBlock(p,a) (p)->EndStateBlock(a)
#define IDirect3DDevice8_ApplyStateBlock(p,a) (p)->ApplyStateBlock(a)
#define IDirect3DDevice8_CaptureStateBlock(p,a) (p)->CaptureStateBlock(a)
#define IDirect3DDevice8_DeleteStateBlock(p,a) (p)->DeleteStateBlock(a)
#define IDirect3DDevice8_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
#define IDirect3DDevice8_SetClipStatus(p,a) (p)->SetClipStatus(a)
#define IDirect3DDevice8_GetClipStatus(p,a) (p)->GetClipStatus(a)
#define IDirect3DDevice8_GetTexture(p,a,b) (p)->GetTexture(a,b)
#define IDirect3DDevice8_SetTexture(p,a,b) (p)->SetTexture(a,b)
#define IDirect3DDevice8_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
#define IDirect3DDevice8_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
#define IDirect3DDevice8_ValidateDevice(p,a) (p)->ValidateDevice(a)
#define IDirect3DDevice8_GetInfo(p,a,b,c) (p)->GetInfo(a,b,c)
#define IDirect3DDevice8_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
#define IDirect3DDevice8_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
#define IDirect3DDevice8_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
#define IDirect3DDevice8_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
#define IDirect3DDevice8_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
#define IDirect3DDevice8_DrawIndexedPrimitive(p,a,b,c,d,e) (p)->DrawIndexedPrimitive(a,b,c,d,e)
#define IDirect3DDevice8_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
#define IDirect3DDevice8_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
#define IDirect3DDevice8_ProcessVertices(p,a,b,c,d,e) (p)->processVertices(a,b,c,d,e)
#define IDirect3DDevice8_CreateVertexShader(p,a,b,c,d) (p)->CreateVertexShader(a,b,c,d)
#define IDirect3DDevice8_SetVertexShader(p,a) (p)->SetVertexShader(a)
#define IDirect3DDevice8_GetVertexShader(p,a) (p)->GetVertexShader(a)
#define IDirect3DDevice8_DeleteVertexShader(p,a) (p)->DeleteVertexShader(a)
#define IDirect3DDevice8_SetVertexShaderConstant(p,a,b,c) (p)->SetVertexShaderConstant(a,b,c)
#define IDirect3DDevice8_GetVertexShaderConstant(p,a,b,c) (p)->GetVertexShaderConstant(a,b,c)
#define IDirect3DDevice8_GetVertexShaderDeclaration(p,a,b,c) (p)->GetVertexShaderDeclaration(a,b,c)
#define IDirect3DDevice8_GetVertexShaderFunction(p,a,b,c) (p)->GetVertexShaderFunction(a,b,c)
#define IDirect3DDevice8_SetStreamSource(p,a,b,c) (p)->SetStreamSource(a,b,c)
#define IDirect3DDevice8_GetStreamSource(p,a,b,c) (p)->GetStreamSource(a,b,c)
#define IDirect3DDevice8_SetIndices(p,a,b) (p)->SetIndices(a,b)
#define IDirect3DDevice8_GetIndices(p,a,b) (p)->GetIndices(a,b)
#define IDirect3DDevice8_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
#define IDirect3DDevice8_SetPixelShader(p,a) (p)->SetPixelShader(a)
#define IDirect3DDevice8_GetPixelShader(p,a) (p)->GetPixelShader(a)
#define IDirect3DDevice8_DeletePixelShader(p,a) (p)->DeletePixelShader(a)
#define IDirect3DDevice8_SetPixelShaderConstant(p,a,b,c) (p)->SetPixelShaderConstant(a,b,c)
#define IDirect3DDevice8_GetPixelShaderConstant(p,a,b,c) (p)->GetPixelShaderConstant(a,b,c)
#define IDirect3DDevice8_GetPixelShaderFunction(p,a,b,c) (p)->GetPixelShaderFunction(a,b,c)
#define IDirect3DDevice8_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
#define IDirect3DDevice8_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
#define IDirect3DDevice8_DeletePatch(p,a) (p)->DeletePatch(a)
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
/* defined(__cplusplus) */
...
...
include/d3d9.h
View file @
b8d3075d
...
...
@@ -93,55 +93,55 @@
* Predeclare the interfaces
*/
DEFINE_GUID
(
IID_IDirect3D9
,
0x81BDCBCA
,
0x64D4
,
0x426D
,
0xAE
,
0x8D
,
0xAD
,
0x1
,
0x47
,
0xF4
,
0x27
,
0x5C
);
typedef
struct
IDirect3D9
IDirect3D9
,
*
LPDIRECT3D9
,
*
PDIRECT3D9
;
typedef
struct
IDirect3D9
*
LPDIRECT3D9
,
*
PDIRECT3D9
;
DEFINE_GUID
(
IID_IDirect3DDevice9
,
0xd0223b96
,
0xbf7a
,
0x43fd
,
0x92
,
0xbd
,
0xa4
,
0x3b
,
0xd
,
0x82
,
0xb9
,
0xeb
);
typedef
struct
IDirect3DDevice9
IDirect3DDevice9
,
*
LPDIRECT3DDEVICE9
;
typedef
struct
IDirect3DDevice9
*
LPDIRECT3DDEVICE9
;
DEFINE_GUID
(
IID_IDirect3DResource9
,
0x5eec05d
,
0x8f7d
,
0x4362
,
0xb9
,
0x99
,
0xd1
,
0xba
,
0xf3
,
0x57
,
0xc7
,
0x4
);
typedef
struct
IDirect3DResource9
IDirect3DResource9
,
*
LPDIRECT3DRESOURCE9
,
*
PDIRECT3DRESOURCE9
;
typedef
struct
IDirect3DResource9
*
LPDIRECT3DRESOURCE9
,
*
PDIRECT3DRESOURCE9
;
DEFINE_GUID
(
IID_IDirect3DVertexBuffer9
,
0xb64bb1b5
,
0xfd70
,
0x4df6
,
0xbf
,
0x91
,
0x19
,
0xd0
,
0xa1
,
0x24
,
0x55
,
0xe3
);
typedef
struct
IDirect3DVertexBuffer9
IDirect3DVertexBuffer9
,
*
LPDIRECT3DVERTEXBUFFER9
,
*
PDIRECT3DVERTEXBUFFER9
;
typedef
struct
IDirect3DVertexBuffer9
*
LPDIRECT3DVERTEXBUFFER9
,
*
PDIRECT3DVERTEXBUFFER9
;
DEFINE_GUID
(
IID_IDirect3DVolume9
,
0x24f416e6
,
0x1f67
,
0x4aa7
,
0xb8
,
0x8e
,
0xd3
,
0x3f
,
0x6f
,
0x31
,
0x28
,
0xa1
);
typedef
struct
IDirect3DVolume9
IDirect3DVolume9
,
*
LPDIRECT3DVOLUME9
,
*
PDIRECT3DVOLUME9
;
typedef
struct
IDirect3DVolume9
*
LPDIRECT3DVOLUME9
,
*
PDIRECT3DVOLUME9
;
DEFINE_GUID
(
IID_IDirect3DSwapChain9
,
0x794950f2
,
0xadfc
,
0x458a
,
0x90
,
0x5e
,
0x10
,
0xa1
,
0xb
,
0xb
,
0x50
,
0x3b
);
typedef
struct
IDirect3DSwapChain9
IDirect3DSwapChain9
,
*
LPDIRECT3DSWAPCHAIN9
,
*
PDIRECT3DSWAPCHAIN9
;
typedef
struct
IDirect3DSwapChain9
*
LPDIRECT3DSWAPCHAIN9
,
*
PDIRECT3DSWAPCHAIN9
;
DEFINE_GUID
(
IID_IDirect3DSurface9
,
0xcfbaf3a
,
0x9ff6
,
0x429a
,
0x99
,
0xb3
,
0xa2
,
0x79
,
0x6a
,
0xf8
,
0xb8
,
0x9b
);
typedef
struct
IDirect3DSurface9
IDirect3DSurface9
,
*
LPDIRECT3DSURFACE9
,
*
PDIRECT3DSURFACE9
;
typedef
struct
IDirect3DSurface9
*
LPDIRECT3DSURFACE9
,
*
PDIRECT3DSURFACE9
;
DEFINE_GUID
(
IID_IDirect3DIndexBuffer9
,
0x7c9dd65e
,
0xd3f7
,
0x4529
,
0xac
,
0xee
,
0x78
,
0x58
,
0x30
,
0xac
,
0xde
,
0x35
);
typedef
struct
IDirect3DIndexBuffer9
IDirect3DIndexBuffer9
,
*
LPDIRECT3DINDEXBUFFER9
,
*
PDIRECT3DINDEXBUFFER9
;
typedef
struct
IDirect3DIndexBuffer9
*
LPDIRECT3DINDEXBUFFER9
,
*
PDIRECT3DINDEXBUFFER9
;
DEFINE_GUID
(
IID_IDirect3DBaseTexture9
,
0x580ca87e
,
0x1d3c
,
0x4d54
,
0x99
,
0x1d
,
0xb7
,
0xd3
,
0xe3
,
0xc2
,
0x98
,
0xce
);
typedef
struct
IDirect3DBaseTexture9
IDirect3DBaseTexture9
,
*
LPDIRECT3DBASETEXTURE9
,
*
PDIRECT3DBASETEXTURE9
;
typedef
struct
IDirect3DBaseTexture9
*
LPDIRECT3DBASETEXTURE9
,
*
PDIRECT3DBASETEXTURE9
;
DEFINE_GUID
(
IID_IDirect3DTexture9
,
0x85c31227
,
0x3de5
,
0x4f00
,
0x9b
,
0x3a
,
0xf1
,
0x1a
,
0xc3
,
0x8c
,
0x18
,
0xb5
);
typedef
struct
IDirect3DTexture9
IDirect3DTexture9
,
*
LPDIRECT3DTEXTURE9
,
*
PDIRECT3DTEXTURE9
;
typedef
struct
IDirect3DTexture9
*
LPDIRECT3DTEXTURE9
,
*
PDIRECT3DTEXTURE9
;
DEFINE_GUID
(
IID_IDirect3DCubeTexture9
,
0xfff32f81
,
0xd953
,
0x473a
,
0x92
,
0x23
,
0x93
,
0xd6
,
0x52
,
0xab
,
0xa9
,
0x3f
);
typedef
struct
IDirect3DCubeTexture9
IDirect3DCubeTexture9
,
*
LPDIRECT3DCUBETEXTURE9
,
*
PDIRECT3DCUBETEXTURE9
;
typedef
struct
IDirect3DCubeTexture9
*
LPDIRECT3DCUBETEXTURE9
,
*
PDIRECT3DCUBETEXTURE9
;
DEFINE_GUID
(
IID_IDirect3DVolumeTexture9
,
0x2518526c
,
0xe789
,
0x4111
,
0xa7
,
0xb9
,
0x47
,
0xef
,
0x32
,
0x8d
,
0x13
,
0xe6
);
typedef
struct
IDirect3DVolumeTexture9
IDirect3DVolumeTexture9
,
*
LPDIRECT3DVOLUMETEXTURE9
,
*
PDIRECT3DVOLUMETEXTURE9
;
typedef
struct
IDirect3DVolumeTexture9
*
LPDIRECT3DVOLUMETEXTURE9
,
*
PDIRECT3DVOLUMETEXTURE9
;
DEFINE_GUID
(
IID_IDirect3DVertexDeclaration9
,
0xdd13c59c
,
0x36fa
,
0x4098
,
0xa8
,
0xfb
,
0xc7
,
0xed
,
0x39
,
0xdc
,
0x85
,
0x46
);
typedef
struct
IDirect3DVertexDeclaration9
IDirect3DVertexDeclaration9
,
*
LPDIRECT3DVERTEXDECLARATION9
;
typedef
struct
IDirect3DVertexDeclaration9
*
LPDIRECT3DVERTEXDECLARATION9
;
DEFINE_GUID
(
IID_IDirect3DVertexShader9
,
0xefc5557e
,
0x6265
,
0x4613
,
0x8a
,
0x94
,
0x43
,
0x85
,
0x78
,
0x89
,
0xeb
,
0x36
);
typedef
struct
IDirect3DVertexShader9
IDirect3DVertexShader9
,
*
LPDIRECT3DVERTEXSHADER9
;
typedef
struct
IDirect3DVertexShader9
*
LPDIRECT3DVERTEXSHADER9
;
DEFINE_GUID
(
IID_IDirect3DPixelShader9
,
0x6d3bdbdc
,
0x5b02
,
0x4415
,
0xb8
,
0x52
,
0xce
,
0x5e
,
0x8b
,
0xcc
,
0xb2
,
0x89
);
typedef
struct
IDirect3DPixelShader9
IDirect3DPixelShader9
,
*
LPDIRECT3DPIXELSHADER9
;
typedef
struct
IDirect3DPixelShader9
*
LPDIRECT3DPIXELSHADER9
;
DEFINE_GUID
(
IID_IDirect3DStateBlock9
,
0xb07c4fe5
,
0x310d
,
0x4ba8
,
0xa2
,
0x3c
,
0x4f
,
0xf
,
0x20
,
0x6f
,
0x21
,
0x8b
);
typedef
struct
IDirect3DStateBlock9
IDirect3DStateBlock9
,
*
LPDIRECT3DSTATEBLOCK9
;
typedef
struct
IDirect3DStateBlock9
*
LPDIRECT3DSTATEBLOCK9
;
DEFINE_GUID
(
IID_IDirect3DQuery9
,
0xd9771460
,
0xa695
,
0x4f26
,
0xbb
,
0xd3
,
0x27
,
0xb8
,
0x40
,
0xb5
,
0x41
,
0xcc
);
typedef
struct
IDirect3DQuery9
IDirect3DQuery9
,
*
LPDIRECT3DQUERY9
,
*
PDIRECT3DQUERY9
;
typedef
struct
IDirect3DQuery9
*
LPDIRECT3DQUERY9
,
*
PDIRECT3DQUERY9
;
/*****************************************************************************
* IDirect3D9 interface
...
...
@@ -167,7 +167,7 @@ DECLARE_INTERFACE_(IDirect3D9,IUnknown)
STDMETHOD
(
CheckDeviceFormatConversion
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DFORMAT
SourceFormat
,
D3DFORMAT
TargetFormat
)
PURE
;
STDMETHOD
(
GetDeviceCaps
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DCAPS9
*
pCaps
)
PURE
;
STDMETHOD_
(
HMONITOR
,
GetAdapterMonitor
)(
THIS_
UINT
Adapter
)
PURE
;
STDMETHOD
(
CreateDevice
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviorFlags
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DDevice9
**
ppReturnedDeviceInterface
)
PURE
;
STDMETHOD
(
CreateDevice
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviorFlags
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
struct
IDirect3DDevice9
**
ppReturnedDeviceInterface
)
PURE
;
};
#undef INTERFACE
...
...
@@ -214,400 +214,24 @@ DECLARE_INTERFACE_(IDirect3D9,IUnknown)
#endif
/*****************************************************************************
* IDirect3D
Devic
e9 interface
* IDirect3D
Volum
e9 interface
*/
#define INTERFACE IDirect3D
Devic
e9
DECLARE_INTERFACE_
(
IDirect3D
Devic
e9
,
IUnknown
)
#define INTERFACE IDirect3D
Volum
e9
DECLARE_INTERFACE_
(
IDirect3D
Volum
e9
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DDevice9 methods ***/
STDMETHOD
(
TestCooperativeLevel
)(
THIS
)
PURE
;
STDMETHOD_
(
UINT
,
GetAvailableTextureMem
)(
THIS
)
PURE
;
STDMETHOD
(
EvictManagedResources
)(
THIS
)
PURE
;
STDMETHOD
(
GetDirect3D
)(
THIS_
IDirect3D9
**
ppD3D9
)
PURE
;
STDMETHOD
(
GetDeviceCaps
)(
THIS_
D3DCAPS9
*
pCaps
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
UINT
iSwapChain
,
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetCreationParameters
)(
THIS_
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
PURE
;
STDMETHOD
(
SetCursorProperties
)(
THIS_
UINT
XHotSpot
,
UINT
YHotSpot
,
IDirect3DSurface9
*
pCursorBitmap
)
PURE
;
STDMETHOD_
(
void
,
SetCursorPosition
)(
THIS_
int
X
,
int
Y
,
DWORD
Flags
)
PURE
;
STDMETHOD_
(
BOOL
,
ShowCursor
)(
THIS_
BOOL
bShow
)
PURE
;
STDMETHOD
(
CreateAdditionalSwapChain
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DSwapChain9
**
pSwapChain
)
PURE
;
STDMETHOD
(
GetSwapChain
)(
THIS_
UINT
iSwapChain
,
IDirect3DSwapChain9
**
pSwapChain
)
PURE
;
STDMETHOD_
(
UINT
,
GetNumberOfSwapChains
)(
THIS
)
PURE
;
STDMETHOD
(
Reset
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iSwapChain
,
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface9
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
UINT
iSwapChain
,
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
SetDialogBoxMode
)(
THIS_
BOOL
bEnableDialogs
)
PURE
;
STDMETHOD_
(
void
,
SetGammaRamp
)(
THIS_
UINT
iSwapChain
,
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
GetGammaRamp
)(
THIS_
UINT
iSwapChain
,
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
CreateTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DTexture9
**
ppTexture
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateVolumeTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DVolumeTexture9
**
ppVolumeTexture
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateCubeTexture
)(
THIS_
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DCubeTexture9
**
ppCubeTexture
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateVertexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
DWORD
FVF
,
D3DPOOL
Pool
,
IDirect3DVertexBuffer9
**
ppVertexBuffer
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateIndexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DIndexBuffer9
**
ppIndexBuffer
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateRenderTarget
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
BOOL
Lockable
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateDepthStencilSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
BOOL
Discard
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
UpdateSurface
)(
THIS_
IDirect3DSurface9
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IDirect3DSurface9
*
pDestinationSurface
,
CONST
POINT
*
pDestPoint
)
PURE
;
STDMETHOD
(
UpdateTexture
)(
THIS_
IDirect3DBaseTexture9
*
pSourceTexture
,
IDirect3DBaseTexture9
*
pDestinationTexture
)
PURE
;
STDMETHOD
(
GetRenderTargetData
)(
THIS_
IDirect3DSurface9
*
pRenderTarget
,
IDirect3DSurface9
*
pDestSurface
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
UINT
iSwapChain
,
IDirect3DSurface9
*
pDestSurface
)
PURE
;
STDMETHOD
(
StretchRect
)(
THIS_
IDirect3DSurface9
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IDirect3DSurface9
*
pDestSurface
,
CONST
RECT
*
pDestRect
,
D3DTEXTUREFILTERTYPE
Filter
)
PURE
;
STDMETHOD
(
ColorFill
)(
THIS_
IDirect3DSurface9
*
pSurface
,
CONST
RECT
*
pRect
,
D3DCOLOR
color
)
PURE
;
STDMETHOD
(
CreateOffscreenPlainSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
SetRenderTarget
)(
THIS_
DWORD
RenderTargetIndex
,
IDirect3DSurface9
*
pRenderTarget
)
PURE
;
STDMETHOD
(
GetRenderTarget
)(
THIS_
DWORD
RenderTargetIndex
,
IDirect3DSurface9
**
ppRenderTarget
)
PURE
;
STDMETHOD
(
SetDepthStencilSurface
)(
THIS_
IDirect3DSurface9
*
pNewZStencil
)
PURE
;
STDMETHOD
(
GetDepthStencilSurface
)(
THIS_
IDirect3DSurface9
**
ppZStencilSurface
)
PURE
;
STDMETHOD
(
BeginScene
)(
THIS
)
PURE
;
STDMETHOD
(
EndScene
)(
THIS
)
PURE
;
STDMETHOD
(
Clear
)(
THIS_
DWORD
Count
,
CONST
D3DRECT
*
pRects
,
DWORD
Flags
,
D3DCOLOR
Color
,
float
Z
,
DWORD
Stencil
)
PURE
;
STDMETHOD
(
SetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
GetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
MultiplyTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
,
CONST
D3DMATRIX
*
)
PURE
;
STDMETHOD
(
SetViewport
)(
THIS_
CONST
D3DVIEWPORT9
*
pViewport
)
PURE
;
STDMETHOD
(
GetViewport
)(
THIS_
D3DVIEWPORT9
*
pViewport
)
PURE
;
STDMETHOD
(
SetMaterial
)(
THIS_
CONST
D3DMATERIAL9
*
pMaterial
)
PURE
;
STDMETHOD
(
GetMaterial
)(
THIS_
D3DMATERIAL9
*
pMaterial
)
PURE
;
STDMETHOD
(
SetLight
)(
THIS_
DWORD
Index
,
CONST
D3DLIGHT9
*
)
PURE
;
STDMETHOD
(
GetLight
)(
THIS_
DWORD
Index
,
D3DLIGHT9
*
)
PURE
;
STDMETHOD
(
LightEnable
)(
THIS_
DWORD
Index
,
BOOL
Enable
)
PURE
;
STDMETHOD
(
GetLightEnable
)(
THIS_
DWORD
Index
,
BOOL
*
pEnable
)
PURE
;
STDMETHOD
(
SetClipPlane
)(
THIS_
DWORD
Index
,
CONST
float
*
pPlane
)
PURE
;
STDMETHOD
(
GetClipPlane
)(
THIS_
DWORD
Index
,
float
*
pPlane
)
PURE
;
STDMETHOD
(
SetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
PURE
;
STDMETHOD
(
GetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
CreateStateBlock
)(
THIS_
D3DSTATEBLOCKTYPE
Type
,
IDirect3DStateBlock9
**
ppSB
)
PURE
;
STDMETHOD
(
BeginStateBlock
)(
THIS
)
PURE
;
STDMETHOD
(
EndStateBlock
)(
THIS_
IDirect3DStateBlock9
**
ppSB
)
PURE
;
STDMETHOD
(
SetClipStatus
)(
THIS_
CONST
D3DCLIPSTATUS9
*
pClipStatus
)
PURE
;
STDMETHOD
(
GetClipStatus
)(
THIS_
D3DCLIPSTATUS9
*
pClipStatus
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
DWORD
Stage
,
IDirect3DBaseTexture9
**
ppTexture
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
DWORD
Stage
,
IDirect3DBaseTexture9
*
pTexture
)
PURE
;
STDMETHOD
(
GetTextureStageState
)(
THIS_
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
SetTextureStageState
)(
THIS_
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
Value
)
PURE
;
STDMETHOD
(
GetSamplerState
)(
THIS_
DWORD
Sampler
,
D3DSAMPLERSTATETYPE
Type
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
SetSamplerState
)(
THIS_
DWORD
Sampler
,
D3DSAMPLERSTATETYPE
Type
,
DWORD
Value
)
PURE
;
STDMETHOD
(
ValidateDevice
)(
THIS_
DWORD
*
pNumPasses
)
PURE
;
STDMETHOD
(
SetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
CONST
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
GetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
SetCurrentTexturePalette
)(
THIS_
UINT
PaletteNumber
)
PURE
;
STDMETHOD
(
GetCurrentTexturePalette
)(
THIS_
UINT
*
PaletteNumber
)
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
;
STDMETHOD
(
SetNPatchMode
)(
THIS_
float
nSegments
)
PURE
;
STDMETHOD_
(
float
,
GetNPatchMode
)(
THIS
)
PURE
;
STDMETHOD
(
DrawPrimitive
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
StartVertex
,
UINT
PrimitiveCount
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitive
)(
THIS_
D3DPRIMITIVETYPE
,
INT
BaseVertexIndex
,
UINT
MinVertexIndex
,
UINT
NumVertices
,
UINT
startIndex
,
UINT
primCount
)
PURE
;
STDMETHOD
(
DrawPrimitiveUP
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
PrimitiveCount
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitiveUP
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
MinVertexIndex
,
UINT
NumVertices
,
UINT
PrimitiveCount
,
CONST
void
*
pIndexData
,
D3DFORMAT
IndexDataFormat
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
PURE
;
STDMETHOD
(
ProcessVertices
)(
THIS_
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IDirect3DVertexBuffer9
*
pDestBuffer
,
IDirect3DVertexDeclaration9
*
pVertexDecl
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
CreateVertexDeclaration
)(
THIS_
CONST
D3DVERTEXELEMENT9
*
pVertexElements
,
IDirect3DVertexDeclaration9
**
ppDecl
)
PURE
;
STDMETHOD
(
SetVertexDeclaration
)(
THIS_
IDirect3DVertexDeclaration9
*
pDecl
)
PURE
;
STDMETHOD
(
GetVertexDeclaration
)(
THIS_
IDirect3DVertexDeclaration9
**
ppDecl
)
PURE
;
STDMETHOD
(
SetFVF
)(
THIS_
DWORD
FVF
)
PURE
;
STDMETHOD
(
GetFVF
)(
THIS_
DWORD
*
pFVF
)
PURE
;
STDMETHOD
(
CreateVertexShader
)(
THIS_
CONST
DWORD
*
pFunction
,
IDirect3DVertexShader9
**
ppShader
)
PURE
;
STDMETHOD
(
SetVertexShader
)(
THIS_
IDirect3DVertexShader9
*
pShader
)
PURE
;
STDMETHOD
(
GetVertexShader
)(
THIS_
IDirect3DVertexShader9
**
ppShader
)
PURE
;
STDMETHOD
(
SetVertexShaderConstantF
)(
THIS_
UINT
StartRegister
,
CONST
float
*
pConstantData
,
UINT
Vector4fCount
)
PURE
;
STDMETHOD
(
GetVertexShaderConstantF
)(
THIS_
UINT
StartRegister
,
float
*
pConstantData
,
UINT
Vector4fCount
)
PURE
;
STDMETHOD
(
SetVertexShaderConstantI
)(
THIS_
UINT
StartRegister
,
CONST
int
*
pConstantData
,
UINT
Vector4iCount
)
PURE
;
STDMETHOD
(
GetVertexShaderConstantI
)(
THIS_
UINT
StartRegister
,
int
*
pConstantData
,
UINT
Vector4iCount
)
PURE
;
STDMETHOD
(
SetVertexShaderConstantB
)(
THIS_
UINT
StartRegister
,
CONST
BOOL
*
pConstantData
,
UINT
BoolCount
)
PURE
;
STDMETHOD
(
GetVertexShaderConstantB
)(
THIS_
UINT
StartRegister
,
BOOL
*
pConstantData
,
UINT
BoolCount
)
PURE
;
STDMETHOD
(
SetStreamSource
)(
THIS_
UINT
StreamNumber
,
IDirect3DVertexBuffer9
*
pStreamData
,
UINT
OffsetInBytes
,
UINT
Stride
)
PURE
;
STDMETHOD
(
GetStreamSource
)(
THIS_
UINT
StreamNumber
,
IDirect3DVertexBuffer9
**
ppStreamData
,
UINT
*
OffsetInBytes
,
UINT
*
pStride
)
PURE
;
STDMETHOD
(
SetStreamSourceFreq
)(
THIS_
UINT
StreamNumber
,
UINT
Divider
)
PURE
;
STDMETHOD
(
GetStreamSourceFreq
)(
THIS_
UINT
StreamNumber
,
UINT
*
Divider
)
PURE
;
STDMETHOD
(
SetIndices
)(
THIS_
IDirect3DIndexBuffer9
*
pIndexData
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
IDirect3DIndexBuffer9
**
ppIndexData
)
PURE
;
STDMETHOD
(
CreatePixelShader
)(
THIS_
CONST
DWORD
*
pFunction
,
IDirect3DPixelShader9
**
ppShader
)
PURE
;
STDMETHOD
(
SetPixelShader
)(
THIS_
IDirect3DPixelShader9
*
pShader
)
PURE
;
STDMETHOD
(
GetPixelShader
)(
THIS_
IDirect3DPixelShader9
**
ppShader
)
PURE
;
STDMETHOD
(
SetPixelShaderConstantF
)(
THIS_
UINT
StartRegister
,
CONST
float
*
pConstantData
,
UINT
Vector4fCount
)
PURE
;
STDMETHOD
(
GetPixelShaderConstantF
)(
THIS_
UINT
StartRegister
,
float
*
pConstantData
,
UINT
Vector4fCount
)
PURE
;
STDMETHOD
(
SetPixelShaderConstantI
)(
THIS_
UINT
StartRegister
,
CONST
int
*
pConstantData
,
UINT
Vector4iCount
)
PURE
;
STDMETHOD
(
GetPixelShaderConstantI
)(
THIS_
UINT
StartRegister
,
int
*
pConstantData
,
UINT
Vector4iCount
)
PURE
;
STDMETHOD
(
SetPixelShaderConstantB
)(
THIS_
UINT
StartRegister
,
CONST
BOOL
*
pConstantData
,
UINT
BoolCount
)
PURE
;
STDMETHOD
(
GetPixelShaderConstantB
)(
THIS_
UINT
StartRegister
,
BOOL
*
pConstantData
,
UINT
BoolCount
)
PURE
;
STDMETHOD
(
DrawRectPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DRECTPATCH_INFO
*
pRectPatchInfo
)
PURE
;
STDMETHOD
(
DrawTriPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DTRIPATCH_INFO
*
pTriPatchInfo
)
PURE
;
STDMETHOD
(
DeletePatch
)(
THIS_
UINT
Handle
)
PURE
;
STDMETHOD
(
CreateQuery
)(
THIS_
D3DQUERYTYPE
Type
,
IDirect3DQuery9
**
ppQuery
)
PURE
;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define IDirect3DDevice9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IDirect3DDevice9_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IDirect3DDevice9_Release(p) (p)->lpVtbl->Release(p)
/*** IDirect3DDevice9 methods ***/
#define IDirect3DDevice9_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
#define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
#define IDirect3DDevice9_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
#define IDirect3DDevice9_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
#define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
#define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
#define IDirect3DDevice9_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
#define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
#define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
#define IDirect3DDevice9_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
#define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
#define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
#define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
#define IDirect3DDevice9_Reset(p,a) (p)->lpVtbl->Reset(p,a)
#define IDirect3DDevice9_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
#define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
#define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
#define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
#define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
#define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
#define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i)
#define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g)
#define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f)
#define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f)
#define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
#define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
#define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
#define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
#define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
#define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
#define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f)
#define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
#define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
#define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
#define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
#define IDirect3DDevice9_BeginScene(p) (p)->lpVtbl->BeginScene(p)
#define IDirect3DDevice9_EndScene(p) (p)->lpVtbl->EndScene(p)
#define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
#define IDirect3DDevice9_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
#define IDirect3DDevice9_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
#define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
#define IDirect3DDevice9_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
#define IDirect3DDevice9_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
#define IDirect3DDevice9_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
#define IDirect3DDevice9_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
#define IDirect3DDevice9_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
#define IDirect3DDevice9_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
#define IDirect3DDevice9_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
#define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
#define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
#define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
#define IDirect3DDevice9_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
#define IDirect3DDevice9_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
#define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
#define IDirect3DDevice9_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
#define IDirect3DDevice9_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
#define IDirect3DDevice9_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
#define IDirect3DDevice9_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
#define IDirect3DDevice9_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
#define IDirect3DDevice9_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
#define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
#define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
#define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
#define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
#define IDirect3DDevice9_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
#define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
#define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
#define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
#define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
#define IDirect3DDevice9_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
#define IDirect3DDevice9_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
#define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
#define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
#define IDirect3DDevice9_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
#define IDirect3DDevice9_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
#define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
#define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
#define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
#define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
#define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b)
#define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
#define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
#define IDirect3DDevice9_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
#define IDirect3DDevice9_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
#define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b)
#define IDirect3DDevice9_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
#define IDirect3DDevice9_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
#define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
#define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
#define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
#define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
#define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
#define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
#define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
#define IDirect3DDevice9_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
#define IDirect3DDevice9_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
#define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
#define IDirect3DDevice9_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
#define IDirect3DDevice9_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
#define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
#define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
#define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
#define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
#define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
#define IDirect3DDevice9_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
#define IDirect3DDevice9_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b)
#else
/*** IUnknown methods ***/
#define IDirect3DDevice9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
#define IDirect3DDevice9_AddRef(p) (p)->AddRef()
#define IDirect3DDevice9_Release(p) (p)->Release()
/*** IDirect3DDevice9 methods ***/
#define IDirect3DDevice9_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
#define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
#define IDirect3DDevice9_EvictManagedResources(p) (p)->EvictManagedResources()
#define IDirect3DDevice9_GetDirect3D(p,a) (p)->GetDirect3D(a)
#define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
#define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b)
#define IDirect3DDevice9_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
#define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
#define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
#define IDirect3DDevice9_ShowCursor(p,a) (p)->ShowCursor(a)
#define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
#define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b)
#define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains()
#define IDirect3DDevice9_Reset(p,a) (p)->Reset(a)
#define IDirect3DDevice9_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
#define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d)
#define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b)
#define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a)
#define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c)
#define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b)
#define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i)
#define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g)
#define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f)
#define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f)
#define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d)
#define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
#define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b)
#define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b)
#define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e)
#define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c)
#define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f)
#define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
#define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b)
#define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a)
#define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
#define IDirect3DDevice9_BeginScene(p) (p)->BeginScene()
#define IDirect3DDevice9_EndScene(p) (p)->EndScene()
#define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
#define IDirect3DDevice9_SetTransform(p,a,b) (p)->SetTransform(a,b)
#define IDirect3DDevice9_GetTransform(p,a,b) (p)->GetTransform(a,b)
#define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
#define IDirect3DDevice9_SetViewport(p,a) (p)->SetViewport(a)
#define IDirect3DDevice9_GetViewport(p,a) (p)->GetViewport(a)
#define IDirect3DDevice9_SetMaterial(p,a) (p)->SetMaterial(a)
#define IDirect3DDevice9_GetMaterial(p,a) (p)->GetMaterial(a)
#define IDirect3DDevice9_SetLight(p,a,b) (p)->SetLight(a,b)
#define IDirect3DDevice9_GetLight(p,a,b) (p)->GetLight(a,b)
#define IDirect3DDevice9_LightEnable(p,a,b) (p)->LightEnable(a,b)
#define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
#define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
#define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
#define IDirect3DDevice9_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
#define IDirect3DDevice9_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
#define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
#define IDirect3DDevice9_BeginStateBlock(p) (p)->BeginStateBlock()
#define IDirect3DDevice9_EndStateBlock(p,a) (p)->EndStateBlock(a)
#define IDirect3DDevice9_SetClipStatus(p,a) (p)->SetClipStatus(a)
#define IDirect3DDevice9_GetClipStatus(p,a) (p)->GetClipStatus(a)
#define IDirect3DDevice9_GetTexture(p,a,b) (p)->GetTexture(a,b)
#define IDirect3DDevice9_SetTexture(p,a,b) (p)->SetTexture(a,b)
#define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
#define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
#define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c)
#define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c)
#define IDirect3DDevice9_ValidateDevice(p,a) (p)->ValidateDevice(a)
#define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
#define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
#define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
#define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
#define IDirect3DDevice9_SetScissorRect(p,a) (p)->SetScissorRect(a)
#define IDirect3DDevice9_GetScissorRect(p,a) (p)->GetScissorRect(a)
#define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a)
#define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing()
#define IDirect3DDevice9_SetNPatchMode(p,a) (p)->SetNPatchMode(a)
#define IDirect3DDevice9_GetNPatchMode(p) (p)->GetNPatchMode()
#define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
#define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f)
#define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
#define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f)
#define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b)
#define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a)
#define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a)
#define IDirect3DDevice9_SetFVF(p,a) (p)->SetFVF(a)
#define IDirect3DDevice9_GetFVF(p,a) (p)->GetFVF(a)
#define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b)
#define IDirect3DDevice9_SetVertexShader(p,a) (p)->SetVertexShader(a)
#define IDirect3DDevice9_GetVertexShader(p,a) (p)->GetVertexShader(a)
#define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c)
#define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c)
#define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c)
#define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d)
#define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d)
#define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b)
#define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b)
#define IDirect3DDevice9_SetIndices(p,a) (p)->SetIndices(a)
#define IDirect3DDevice9_GetIndices(p,a) (p)->GetIndices(a)
#define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
#define IDirect3DDevice9_SetPixelShader(p,a) (p)->SetPixelShader(a)
#define IDirect3DDevice9_GetPixelShader(p,a) (p)->GetPixelShader(a)
#define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c)
#define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c)
#define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c)
#define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
#define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
#define IDirect3DDevice9_DeletePatch(p,a) (p)->DeletePatch(a)
#define IDirect3DDevice9_CreateQuery(p,a,b) (p)->CreateQuery(a,b)
#endif
/*****************************************************************************
* IDirect3DVolume9 interface
*/
#define INTERFACE IDirect3DVolume9
DECLARE_INTERFACE_
(
IDirect3DVolume9
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DVolume9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
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
(
GetContainer
)(
THIS_
REFIID
riid
,
void
**
ppContainer
)
PURE
;
STDMETHOD
(
GetDesc
)(
THIS_
D3DVOLUME_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
LockBox
)(
THIS_
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockBox
)(
THIS
)
PURE
;
/*** IDirect3DVolume9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
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
(
GetContainer
)(
THIS_
REFIID
riid
,
void
**
ppContainer
)
PURE
;
STDMETHOD
(
GetDesc
)(
THIS_
D3DVOLUME_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
LockBox
)(
THIS_
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockBox
)(
THIS
)
PURE
;
};
#undef INTERFACE
...
...
@@ -653,11 +277,11 @@ DECLARE_INTERFACE_(IDirect3DSwapChain9,IUnknown)
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DSwapChain9 methods ***/
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
IDirect3DSurface9
*
pDestSurface
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface9
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
struct
IDirect3DSurface9
*
pDestSurface
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
struct
IDirect3DSurface9
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetPresentParameters
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
};
#undef INTERFACE
...
...
@@ -701,7 +325,7 @@ DECLARE_INTERFACE_(IDirect3DResource9,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
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
;
...
...
@@ -753,7 +377,7 @@ DECLARE_INTERFACE_(IDirect3DSurface9,IDirect3DResource9)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
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
;
...
...
@@ -826,7 +450,7 @@ DECLARE_INTERFACE_(IDirect3DVertexBuffer9,IDirect3DResource9)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
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
;
...
...
@@ -890,7 +514,7 @@ DECLARE_INTERFACE_(IDirect3DIndexBuffer9,IDirect3DResource9)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
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
;
...
...
@@ -954,7 +578,7 @@ DECLARE_INTERFACE_(IDirect3DBaseTexture9,IDirect3DResource9)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
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
;
...
...
@@ -1027,7 +651,7 @@ DECLARE_INTERFACE_(IDirect3DCubeTexture9,IDirect3DBaseTexture9)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
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
;
...
...
@@ -1118,7 +742,7 @@ DECLARE_INTERFACE_(IDirect3DTexture9,IDirect3DBaseTexture9)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
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
;
...
...
@@ -1209,7 +833,7 @@ DECLARE_INTERFACE_(IDirect3DVolumeTexture9,IDirect3DBaseTexture9)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DResource9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
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
;
...
...
@@ -1300,7 +924,7 @@ DECLARE_INTERFACE_(IDirect3DVertexDeclaration9,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DVertexDeclaration9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDeclaration
)(
THIS_
D3DVERTEXELEMENT9
*
,
UINT
*
pNumElements
)
PURE
;
};
#undef INTERFACE
...
...
@@ -1334,7 +958,7 @@ DECLARE_INTERFACE_(IDirect3DVertexShader9,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DVertexShader9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetFunction
)(
THIS_
void
*
,
UINT
*
pSizeOfData
)
PURE
;
};
#undef INTERFACE
...
...
@@ -1368,7 +992,7 @@ DECLARE_INTERFACE_(IDirect3DPixelShader9,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DPixelShader9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetFunction
)(
THIS_
void
*
,
UINT
*
pSizeOfData
)
PURE
;
};
#undef INTERFACE
...
...
@@ -1402,7 +1026,7 @@ DECLARE_INTERFACE_(IDirect3DStateBlock9,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DStateBlock9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
Capture
)(
THIS
)
PURE
;
STDMETHOD
(
Apply
)(
THIS
)
PURE
;
};
...
...
@@ -1439,7 +1063,7 @@ DECLARE_INTERFACE_(IDirect3DQuery9,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DQuery9 methods ***/
STDMETHOD
(
GetDevice
)(
THIS_
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
struct
IDirect3DDevice9
**
ppDevice
)
PURE
;
STDMETHOD_
(
D3DQUERYTYPE
,
GetType
)(
THIS
)
PURE
;
STDMETHOD_
(
DWORD
,
GetDataSize
)(
THIS
)
PURE
;
STDMETHOD
(
Issue
)(
THIS_
DWORD
dwIssueFlags
)
PURE
;
...
...
@@ -1471,6 +1095,382 @@ DECLARE_INTERFACE_(IDirect3DQuery9,IUnknown)
#define IDirect3DQuery9_GetData(p,a,b,c) (p)->GetData(a,b,c)
#endif
/*****************************************************************************
* IDirect3DDevice9 interface
*/
#define INTERFACE IDirect3DDevice9
DECLARE_INTERFACE_
(
IDirect3DDevice9
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirect3DDevice9 methods ***/
STDMETHOD
(
TestCooperativeLevel
)(
THIS
)
PURE
;
STDMETHOD_
(
UINT
,
GetAvailableTextureMem
)(
THIS
)
PURE
;
STDMETHOD
(
EvictManagedResources
)(
THIS
)
PURE
;
STDMETHOD
(
GetDirect3D
)(
THIS_
IDirect3D9
**
ppD3D9
)
PURE
;
STDMETHOD
(
GetDeviceCaps
)(
THIS_
D3DCAPS9
*
pCaps
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
UINT
iSwapChain
,
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD
(
GetCreationParameters
)(
THIS_
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
PURE
;
STDMETHOD
(
SetCursorProperties
)(
THIS_
UINT
XHotSpot
,
UINT
YHotSpot
,
IDirect3DSurface9
*
pCursorBitmap
)
PURE
;
STDMETHOD_
(
void
,
SetCursorPosition
)(
THIS_
int
X
,
int
Y
,
DWORD
Flags
)
PURE
;
STDMETHOD_
(
BOOL
,
ShowCursor
)(
THIS_
BOOL
bShow
)
PURE
;
STDMETHOD
(
CreateAdditionalSwapChain
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DSwapChain9
**
pSwapChain
)
PURE
;
STDMETHOD
(
GetSwapChain
)(
THIS_
UINT
iSwapChain
,
IDirect3DSwapChain9
**
pSwapChain
)
PURE
;
STDMETHOD_
(
UINT
,
GetNumberOfSwapChains
)(
THIS
)
PURE
;
STDMETHOD
(
Reset
)(
THIS_
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iSwapChain
,
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface9
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
UINT
iSwapChain
,
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
SetDialogBoxMode
)(
THIS_
BOOL
bEnableDialogs
)
PURE
;
STDMETHOD_
(
void
,
SetGammaRamp
)(
THIS_
UINT
iSwapChain
,
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
GetGammaRamp
)(
THIS_
UINT
iSwapChain
,
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
CreateTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DTexture9
**
ppTexture
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateVolumeTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DVolumeTexture9
**
ppVolumeTexture
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateCubeTexture
)(
THIS_
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DCubeTexture9
**
ppCubeTexture
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateVertexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
DWORD
FVF
,
D3DPOOL
Pool
,
IDirect3DVertexBuffer9
**
ppVertexBuffer
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateIndexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DIndexBuffer9
**
ppIndexBuffer
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateRenderTarget
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
BOOL
Lockable
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
CreateDepthStencilSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
BOOL
Discard
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
UpdateSurface
)(
THIS_
IDirect3DSurface9
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IDirect3DSurface9
*
pDestinationSurface
,
CONST
POINT
*
pDestPoint
)
PURE
;
STDMETHOD
(
UpdateTexture
)(
THIS_
IDirect3DBaseTexture9
*
pSourceTexture
,
IDirect3DBaseTexture9
*
pDestinationTexture
)
PURE
;
STDMETHOD
(
GetRenderTargetData
)(
THIS_
IDirect3DSurface9
*
pRenderTarget
,
IDirect3DSurface9
*
pDestSurface
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
UINT
iSwapChain
,
IDirect3DSurface9
*
pDestSurface
)
PURE
;
STDMETHOD
(
StretchRect
)(
THIS_
IDirect3DSurface9
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IDirect3DSurface9
*
pDestSurface
,
CONST
RECT
*
pDestRect
,
D3DTEXTUREFILTERTYPE
Filter
)
PURE
;
STDMETHOD
(
ColorFill
)(
THIS_
IDirect3DSurface9
*
pSurface
,
CONST
RECT
*
pRect
,
D3DCOLOR
color
)
PURE
;
STDMETHOD
(
CreateOffscreenPlainSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DSurface9
**
ppSurface
,
HANDLE
*
pSharedHandle
)
PURE
;
STDMETHOD
(
SetRenderTarget
)(
THIS_
DWORD
RenderTargetIndex
,
IDirect3DSurface9
*
pRenderTarget
)
PURE
;
STDMETHOD
(
GetRenderTarget
)(
THIS_
DWORD
RenderTargetIndex
,
IDirect3DSurface9
**
ppRenderTarget
)
PURE
;
STDMETHOD
(
SetDepthStencilSurface
)(
THIS_
IDirect3DSurface9
*
pNewZStencil
)
PURE
;
STDMETHOD
(
GetDepthStencilSurface
)(
THIS_
IDirect3DSurface9
**
ppZStencilSurface
)
PURE
;
STDMETHOD
(
BeginScene
)(
THIS
)
PURE
;
STDMETHOD
(
EndScene
)(
THIS
)
PURE
;
STDMETHOD
(
Clear
)(
THIS_
DWORD
Count
,
CONST
D3DRECT
*
pRects
,
DWORD
Flags
,
D3DCOLOR
Color
,
float
Z
,
DWORD
Stencil
)
PURE
;
STDMETHOD
(
SetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
GetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
MultiplyTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
,
CONST
D3DMATRIX
*
)
PURE
;
STDMETHOD
(
SetViewport
)(
THIS_
CONST
D3DVIEWPORT9
*
pViewport
)
PURE
;
STDMETHOD
(
GetViewport
)(
THIS_
D3DVIEWPORT9
*
pViewport
)
PURE
;
STDMETHOD
(
SetMaterial
)(
THIS_
CONST
D3DMATERIAL9
*
pMaterial
)
PURE
;
STDMETHOD
(
GetMaterial
)(
THIS_
D3DMATERIAL9
*
pMaterial
)
PURE
;
STDMETHOD
(
SetLight
)(
THIS_
DWORD
Index
,
CONST
D3DLIGHT9
*
)
PURE
;
STDMETHOD
(
GetLight
)(
THIS_
DWORD
Index
,
D3DLIGHT9
*
)
PURE
;
STDMETHOD
(
LightEnable
)(
THIS_
DWORD
Index
,
BOOL
Enable
)
PURE
;
STDMETHOD
(
GetLightEnable
)(
THIS_
DWORD
Index
,
BOOL
*
pEnable
)
PURE
;
STDMETHOD
(
SetClipPlane
)(
THIS_
DWORD
Index
,
CONST
float
*
pPlane
)
PURE
;
STDMETHOD
(
GetClipPlane
)(
THIS_
DWORD
Index
,
float
*
pPlane
)
PURE
;
STDMETHOD
(
SetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
PURE
;
STDMETHOD
(
GetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
CreateStateBlock
)(
THIS_
D3DSTATEBLOCKTYPE
Type
,
IDirect3DStateBlock9
**
ppSB
)
PURE
;
STDMETHOD
(
BeginStateBlock
)(
THIS
)
PURE
;
STDMETHOD
(
EndStateBlock
)(
THIS_
IDirect3DStateBlock9
**
ppSB
)
PURE
;
STDMETHOD
(
SetClipStatus
)(
THIS_
CONST
D3DCLIPSTATUS9
*
pClipStatus
)
PURE
;
STDMETHOD
(
GetClipStatus
)(
THIS_
D3DCLIPSTATUS9
*
pClipStatus
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
DWORD
Stage
,
IDirect3DBaseTexture9
**
ppTexture
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
DWORD
Stage
,
IDirect3DBaseTexture9
*
pTexture
)
PURE
;
STDMETHOD
(
GetTextureStageState
)(
THIS_
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
SetTextureStageState
)(
THIS_
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
Value
)
PURE
;
STDMETHOD
(
GetSamplerState
)(
THIS_
DWORD
Sampler
,
D3DSAMPLERSTATETYPE
Type
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
SetSamplerState
)(
THIS_
DWORD
Sampler
,
D3DSAMPLERSTATETYPE
Type
,
DWORD
Value
)
PURE
;
STDMETHOD
(
ValidateDevice
)(
THIS_
DWORD
*
pNumPasses
)
PURE
;
STDMETHOD
(
SetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
CONST
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
GetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
SetCurrentTexturePalette
)(
THIS_
UINT
PaletteNumber
)
PURE
;
STDMETHOD
(
GetCurrentTexturePalette
)(
THIS_
UINT
*
PaletteNumber
)
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
;
STDMETHOD
(
SetNPatchMode
)(
THIS_
float
nSegments
)
PURE
;
STDMETHOD_
(
float
,
GetNPatchMode
)(
THIS
)
PURE
;
STDMETHOD
(
DrawPrimitive
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
StartVertex
,
UINT
PrimitiveCount
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitive
)(
THIS_
D3DPRIMITIVETYPE
,
INT
BaseVertexIndex
,
UINT
MinVertexIndex
,
UINT
NumVertices
,
UINT
startIndex
,
UINT
primCount
)
PURE
;
STDMETHOD
(
DrawPrimitiveUP
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
PrimitiveCount
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitiveUP
)(
THIS_
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
MinVertexIndex
,
UINT
NumVertices
,
UINT
PrimitiveCount
,
CONST
void
*
pIndexData
,
D3DFORMAT
IndexDataFormat
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
PURE
;
STDMETHOD
(
ProcessVertices
)(
THIS_
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IDirect3DVertexBuffer9
*
pDestBuffer
,
IDirect3DVertexDeclaration9
*
pVertexDecl
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
CreateVertexDeclaration
)(
THIS_
CONST
D3DVERTEXELEMENT9
*
pVertexElements
,
IDirect3DVertexDeclaration9
**
ppDecl
)
PURE
;
STDMETHOD
(
SetVertexDeclaration
)(
THIS_
IDirect3DVertexDeclaration9
*
pDecl
)
PURE
;
STDMETHOD
(
GetVertexDeclaration
)(
THIS_
IDirect3DVertexDeclaration9
**
ppDecl
)
PURE
;
STDMETHOD
(
SetFVF
)(
THIS_
DWORD
FVF
)
PURE
;
STDMETHOD
(
GetFVF
)(
THIS_
DWORD
*
pFVF
)
PURE
;
STDMETHOD
(
CreateVertexShader
)(
THIS_
CONST
DWORD
*
pFunction
,
IDirect3DVertexShader9
**
ppShader
)
PURE
;
STDMETHOD
(
SetVertexShader
)(
THIS_
IDirect3DVertexShader9
*
pShader
)
PURE
;
STDMETHOD
(
GetVertexShader
)(
THIS_
IDirect3DVertexShader9
**
ppShader
)
PURE
;
STDMETHOD
(
SetVertexShaderConstantF
)(
THIS_
UINT
StartRegister
,
CONST
float
*
pConstantData
,
UINT
Vector4fCount
)
PURE
;
STDMETHOD
(
GetVertexShaderConstantF
)(
THIS_
UINT
StartRegister
,
float
*
pConstantData
,
UINT
Vector4fCount
)
PURE
;
STDMETHOD
(
SetVertexShaderConstantI
)(
THIS_
UINT
StartRegister
,
CONST
int
*
pConstantData
,
UINT
Vector4iCount
)
PURE
;
STDMETHOD
(
GetVertexShaderConstantI
)(
THIS_
UINT
StartRegister
,
int
*
pConstantData
,
UINT
Vector4iCount
)
PURE
;
STDMETHOD
(
SetVertexShaderConstantB
)(
THIS_
UINT
StartRegister
,
CONST
BOOL
*
pConstantData
,
UINT
BoolCount
)
PURE
;
STDMETHOD
(
GetVertexShaderConstantB
)(
THIS_
UINT
StartRegister
,
BOOL
*
pConstantData
,
UINT
BoolCount
)
PURE
;
STDMETHOD
(
SetStreamSource
)(
THIS_
UINT
StreamNumber
,
IDirect3DVertexBuffer9
*
pStreamData
,
UINT
OffsetInBytes
,
UINT
Stride
)
PURE
;
STDMETHOD
(
GetStreamSource
)(
THIS_
UINT
StreamNumber
,
IDirect3DVertexBuffer9
**
ppStreamData
,
UINT
*
OffsetInBytes
,
UINT
*
pStride
)
PURE
;
STDMETHOD
(
SetStreamSourceFreq
)(
THIS_
UINT
StreamNumber
,
UINT
Divider
)
PURE
;
STDMETHOD
(
GetStreamSourceFreq
)(
THIS_
UINT
StreamNumber
,
UINT
*
Divider
)
PURE
;
STDMETHOD
(
SetIndices
)(
THIS_
IDirect3DIndexBuffer9
*
pIndexData
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
IDirect3DIndexBuffer9
**
ppIndexData
)
PURE
;
STDMETHOD
(
CreatePixelShader
)(
THIS_
CONST
DWORD
*
pFunction
,
IDirect3DPixelShader9
**
ppShader
)
PURE
;
STDMETHOD
(
SetPixelShader
)(
THIS_
IDirect3DPixelShader9
*
pShader
)
PURE
;
STDMETHOD
(
GetPixelShader
)(
THIS_
IDirect3DPixelShader9
**
ppShader
)
PURE
;
STDMETHOD
(
SetPixelShaderConstantF
)(
THIS_
UINT
StartRegister
,
CONST
float
*
pConstantData
,
UINT
Vector4fCount
)
PURE
;
STDMETHOD
(
GetPixelShaderConstantF
)(
THIS_
UINT
StartRegister
,
float
*
pConstantData
,
UINT
Vector4fCount
)
PURE
;
STDMETHOD
(
SetPixelShaderConstantI
)(
THIS_
UINT
StartRegister
,
CONST
int
*
pConstantData
,
UINT
Vector4iCount
)
PURE
;
STDMETHOD
(
GetPixelShaderConstantI
)(
THIS_
UINT
StartRegister
,
int
*
pConstantData
,
UINT
Vector4iCount
)
PURE
;
STDMETHOD
(
SetPixelShaderConstantB
)(
THIS_
UINT
StartRegister
,
CONST
BOOL
*
pConstantData
,
UINT
BoolCount
)
PURE
;
STDMETHOD
(
GetPixelShaderConstantB
)(
THIS_
UINT
StartRegister
,
BOOL
*
pConstantData
,
UINT
BoolCount
)
PURE
;
STDMETHOD
(
DrawRectPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DRECTPATCH_INFO
*
pRectPatchInfo
)
PURE
;
STDMETHOD
(
DrawTriPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DTRIPATCH_INFO
*
pTriPatchInfo
)
PURE
;
STDMETHOD
(
DeletePatch
)(
THIS_
UINT
Handle
)
PURE
;
STDMETHOD
(
CreateQuery
)(
THIS_
D3DQUERYTYPE
Type
,
IDirect3DQuery9
**
ppQuery
)
PURE
;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define IDirect3DDevice9_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IDirect3DDevice9_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IDirect3DDevice9_Release(p) (p)->lpVtbl->Release(p)
/*** IDirect3DDevice9 methods ***/
#define IDirect3DDevice9_TestCooperativeLevel(p) (p)->lpVtbl->TestCooperativeLevel(p)
#define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->lpVtbl->GetAvailableTextureMem(p)
#define IDirect3DDevice9_EvictManagedResources(p) (p)->lpVtbl->EvictManagedResources(p)
#define IDirect3DDevice9_GetDirect3D(p,a) (p)->lpVtbl->GetDirect3D(p,a)
#define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->lpVtbl->GetDeviceCaps(p,a)
#define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->lpVtbl->GetDisplayMode(p,a,b)
#define IDirect3DDevice9_GetCreationParameters(p,a) (p)->lpVtbl->GetCreationParameters(p,a)
#define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->lpVtbl->SetCursorProperties(p,a,b,c)
#define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->lpVtbl->SetCursorPosition(p,a,b,c)
#define IDirect3DDevice9_ShowCursor(p,a) (p)->lpVtbl->ShowCursor(p,a)
#define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->lpVtbl->CreateAdditionalSwapChain(p,a,b)
#define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->lpVtbl->GetSwapChain(p,a,b)
#define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->lpVtbl->GetNumberOfSwapChains(p)
#define IDirect3DDevice9_Reset(p,a) (p)->lpVtbl->Reset(p,a)
#define IDirect3DDevice9_Present(p,a,b,c,d) (p)->lpVtbl->Present(p,a,b,c,d)
#define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->lpVtbl->GetBackBuffer(p,a,b,c,d)
#define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->lpVtbl->GetRasterStatus(p,a,b)
#define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->lpVtbl->SetDialogBoxMode(p,a)
#define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->lpVtbl->SetGammaRamp(p,a,b,c)
#define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->lpVtbl->GetGammaRamp(p,a,b)
#define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateTexture(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->lpVtbl->CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i)
#define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->lpVtbl->CreateCubeTexture(p,a,b,c,d,e,f,g)
#define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateVertexBuffer(p,a,b,c,d,e,f)
#define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->lpVtbl->CreateIndexBuffer(p,a,b,c,d,e,f)
#define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateRenderTarget(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->lpVtbl->UpdateSurface(p,a,b,c,d)
#define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->lpVtbl->UpdateTexture(p,a,b)
#define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->lpVtbl->GetRenderTargetData(p,a,b)
#define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->lpVtbl->GetFrontBufferData(p,a,b)
#define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->lpVtbl->StretchRect(p,a,b,c,d,e)
#define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->lpVtbl->ColorFill(p,a,b,c)
#define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->lpVtbl->CreateOffscreenPlainSurface(p,a,b,c,d,e,f)
#define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->lpVtbl->SetRenderTarget(p,a,b)
#define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->lpVtbl->GetRenderTarget(p,a,b)
#define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->lpVtbl->SetDepthStencilSurface(p,a)
#define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->lpVtbl->GetDepthStencilSurface(p,a)
#define IDirect3DDevice9_BeginScene(p) (p)->lpVtbl->BeginScene(p)
#define IDirect3DDevice9_EndScene(p) (p)->lpVtbl->EndScene(p)
#define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->lpVtbl->Clear(p,a,b,c,d,e,f)
#define IDirect3DDevice9_SetTransform(p,a,b) (p)->lpVtbl->SetTransform(p,a,b)
#define IDirect3DDevice9_GetTransform(p,a,b) (p)->lpVtbl->GetTransform(p,a,b)
#define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->lpVtbl->MultiplyTransform(p,a,b)
#define IDirect3DDevice9_SetViewport(p,a) (p)->lpVtbl->SetViewport(p,a)
#define IDirect3DDevice9_GetViewport(p,a) (p)->lpVtbl->GetViewport(p,a)
#define IDirect3DDevice9_SetMaterial(p,a) (p)->lpVtbl->SetMaterial(p,a)
#define IDirect3DDevice9_GetMaterial(p,a) (p)->lpVtbl->GetMaterial(p,a)
#define IDirect3DDevice9_SetLight(p,a,b) (p)->lpVtbl->SetLight(p,a,b)
#define IDirect3DDevice9_GetLight(p,a,b) (p)->lpVtbl->GetLight(p,a,b)
#define IDirect3DDevice9_LightEnable(p,a,b) (p)->lpVtbl->LightEnable(p,a,b)
#define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->lpVtbl->GetLightEnable(p,a,b)
#define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->lpVtbl->SetClipPlane(p,a,b)
#define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->lpVtbl->GetClipPlane(p,a,b)
#define IDirect3DDevice9_SetRenderState(p,a,b) (p)->lpVtbl->SetRenderState(p,a,b)
#define IDirect3DDevice9_GetRenderState(p,a,b) (p)->lpVtbl->GetRenderState(p,a,b)
#define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->lpVtbl->CreateStateBlock(p,a,b)
#define IDirect3DDevice9_BeginStateBlock(p) (p)->lpVtbl->BeginStateBlock(p)
#define IDirect3DDevice9_EndStateBlock(p,a) (p)->lpVtbl->EndStateBlock(p,a)
#define IDirect3DDevice9_SetClipStatus(p,a) (p)->lpVtbl->SetClipStatus(p,a)
#define IDirect3DDevice9_GetClipStatus(p,a) (p)->lpVtbl->GetClipStatus(p,a)
#define IDirect3DDevice9_GetTexture(p,a,b) (p)->lpVtbl->GetTexture(p,a,b)
#define IDirect3DDevice9_SetTexture(p,a,b) (p)->lpVtbl->SetTexture(p,a,b)
#define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->lpVtbl->GetTextureStageState(p,a,b,c)
#define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->lpVtbl->SetTextureStageState(p,a,b,c)
#define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->lpVtbl->GetSamplerState(p,a,b,c)
#define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->lpVtbl->SetSamplerState(p,a,b,c)
#define IDirect3DDevice9_ValidateDevice(p,a) (p)->lpVtbl->ValidateDevice(p,a)
#define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->lpVtbl->SetPaletteEntries(p,a,b)
#define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->lpVtbl->GetPaletteEntries(p,a,b)
#define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->lpVtbl->SetCurrentTexturePalette(p,a)
#define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->lpVtbl->GetCurrentTexturePalette(p,a)
#define IDirect3DDevice9_SetScissorRect(p,a) (p)->lpVtbl->SetScissorRect(p,a)
#define IDirect3DDevice9_GetScissorRect(p,a) (p)->lpVtbl->GetScissorRect(p,a)
#define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->lpVtbl->SetSoftwareVertexProcessing(p,a)
#define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->lpVtbl->GetSoftwareVertexProcessing(p)
#define IDirect3DDevice9_SetNPatchMode(p,a) (p)->lpVtbl->SetNPatchMode(p,a)
#define IDirect3DDevice9_GetNPatchMode(p) (p)->lpVtbl->GetNPatchMode(p)
#define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->lpVtbl->DrawPrimitive(p,a,b,c)
#define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->lpVtbl->DrawIndexedPrimitive(p,a,b,c,d,e,f)
#define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->lpVtbl->DrawPrimitiveUP(p,a,b,c,d)
#define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->lpVtbl->DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->lpVtbl->ProcessVertices(p,a,b,c,d,e,f)
#define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->lpVtbl->CreateVertexDeclaration(p,a,b)
#define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->lpVtbl->SetVertexDeclaration(p,a)
#define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->lpVtbl->GetVertexDeclaration(p,a)
#define IDirect3DDevice9_SetFVF(p,a) (p)->lpVtbl->SetFVF(p,a)
#define IDirect3DDevice9_GetFVF(p,a) (p)->lpVtbl->GetFVF(p,a)
#define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->lpVtbl->CreateVertexShader(p,a,b)
#define IDirect3DDevice9_SetVertexShader(p,a) (p)->lpVtbl->SetVertexShader(p,a)
#define IDirect3DDevice9_GetVertexShader(p,a) (p)->lpVtbl->GetVertexShader(p,a)
#define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantF(p,a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantF(p,a,b,c)
#define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantI(p,a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantI(p,a,b,c)
#define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->SetVertexShaderConstantB(p,a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->lpVtbl->GetVertexShaderConstantB(p,a,b,c)
#define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->lpVtbl->SetStreamSource(p,a,b,c,d)
#define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->lpVtbl->GetStreamSource(p,a,b,c,d)
#define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->lpVtbl->SetStreamSourceFreq(p,a,b)
#define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->lpVtbl->GetStreamSourceFreq(p,a,b)
#define IDirect3DDevice9_SetIndices(p,a) (p)->lpVtbl->SetIndices(p,a)
#define IDirect3DDevice9_GetIndices(p,a) (p)->lpVtbl->GetIndices(p,a)
#define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->lpVtbl->CreatePixelShader(p,a,b)
#define IDirect3DDevice9_SetPixelShader(p,a) (p)->lpVtbl->SetPixelShader(p,a)
#define IDirect3DDevice9_GetPixelShader(p,a) (p)->lpVtbl->GetPixelShader(p,a)
#define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantF(p,a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantF(p,a,b,c)
#define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantI(p,a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantI(p,a,b,c)
#define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->SetPixelShaderConstantB(p,a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->lpVtbl->GetPixelShaderConstantB(p,a,b,c)
#define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->lpVtbl->DrawRectPatch(p,a,b,c)
#define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->lpVtbl->DrawTriPatch(p,a,b,c)
#define IDirect3DDevice9_DeletePatch(p,a) (p)->lpVtbl->DeletePatch(p,a)
#define IDirect3DDevice9_CreateQuery(p,a,b) (p)->lpVtbl->CreateQuery(p,a,b)
#else
/*** IUnknown methods ***/
#define IDirect3DDevice9_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
#define IDirect3DDevice9_AddRef(p) (p)->AddRef()
#define IDirect3DDevice9_Release(p) (p)->Release()
/*** IDirect3DDevice9 methods ***/
#define IDirect3DDevice9_TestCooperativeLevel(p) (p)->TestCooperativeLevel()
#define IDirect3DDevice9_GetAvailableTextureMem(p) (p)->GetAvailableTextureMem()
#define IDirect3DDevice9_EvictManagedResources(p) (p)->EvictManagedResources()
#define IDirect3DDevice9_GetDirect3D(p,a) (p)->GetDirect3D(a)
#define IDirect3DDevice9_GetDeviceCaps(p,a) (p)->GetDeviceCaps(a)
#define IDirect3DDevice9_GetDisplayMode(p,a,b) (p)->GetDisplayMode(a,b)
#define IDirect3DDevice9_GetCreationParameters(p,a) (p)->GetCreationParameters(a)
#define IDirect3DDevice9_SetCursorProperties(p,a,b,c) (p)->SetCursorProperties(a,b,c)
#define IDirect3DDevice9_SetCursorPosition(p,a,b,c) (p)->SetCursorPosition(a,b,c)
#define IDirect3DDevice9_ShowCursor(p,a) (p)->ShowCursor(a)
#define IDirect3DDevice9_CreateAdditionalSwapChain(p,a,b) (p)->CreateAdditionalSwapChain(a,b)
#define IDirect3DDevice9_GetSwapChain(p,a,b) (p)->GetSwapChain(a,b)
#define IDirect3DDevice9_GetNumberOfSwapChains(p) (p)->GetNumberOfSwapChains()
#define IDirect3DDevice9_Reset(p,a) (p)->Reset(a)
#define IDirect3DDevice9_Present(p,a,b,c,d) (p)->Present(a,b,c,d)
#define IDirect3DDevice9_GetBackBuffer(p,a,b,c,d) (p)->GetBackBuffer(a,b,c,d)
#define IDirect3DDevice9_GetRasterStatus(p,a,b) (p)->GetRasterStatus(a,b)
#define IDirect3DDevice9_SetDialogBoxMode(p,a) (p)->SetDialogBoxMode(a)
#define IDirect3DDevice9_SetGammaRamp(p,a,b,c) (p)->SetGammaRamp(a,b,c)
#define IDirect3DDevice9_GetGammaRamp(p,a,b) (p)->GetGammaRamp(a,b)
#define IDirect3DDevice9_CreateTexture(p,a,b,c,d,e,f,g,h) (p)->CreateTexture(a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_CreateVolumeTexture(p,a,b,c,d,e,f,g,h,i) (p)->CreateVolumeTexture(a,b,c,d,e,f,g,h,i)
#define IDirect3DDevice9_CreateCubeTexture(p,a,b,c,d,e,f,g) (p)->CreateCubeTexture(a,b,c,d,e,f,g)
#define IDirect3DDevice9_CreateVertexBuffer(p,a,b,c,d,e,f) (p)->CreateVertexBuffer(a,b,c,d,e,f)
#define IDirect3DDevice9_CreateIndexBuffer(p,a,b,c,d,e,f) (p)->CreateIndexBuffer(a,b,c,d,e,f)
#define IDirect3DDevice9_CreateRenderTarget(p,a,b,c,d,e,f,g,h) (p)->CreateRenderTarget(a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_CreateDepthStencilSurface(p,a,b,c,d,e,f,g,h) (p)->CreateDepthStencilSurface(a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_UpdateSurface(p,a,b,c,d) (p)->UpdateSurface(a,b,c,d)
#define IDirect3DDevice9_UpdateTexture(p,a,b) (p)->UpdateTexture(a,b)
#define IDirect3DDevice9_GetRenderTargetData(p,a,b) (p)->GetRenderTargetData(a,b)
#define IDirect3DDevice9_GetFrontBufferData(p,a,b) (p)->GetFrontBufferData(a,b)
#define IDirect3DDevice9_StretchRect(p,a,b,c,d,e) (p)->StretchRect(a,b,c,d,e)
#define IDirect3DDevice9_ColorFill(p,a,b,c) (p)->ColorFill(a,b,c)
#define IDirect3DDevice9_CreateOffscreenPlainSurface(p,a,b,c,d,e,f) (p)->CreateOffscreenPlainSurface(a,b,c,d,e,f)
#define IDirect3DDevice9_SetRenderTarget(p,a,b) (p)->SetRenderTarget(a,b)
#define IDirect3DDevice9_GetRenderTarget(p,a,b) (p)->GetRenderTarget(a,b)
#define IDirect3DDevice9_SetDepthStencilSurface(p,a) (p)->SetDepthStencilSurface(a)
#define IDirect3DDevice9_GetDepthStencilSurface(p,a) (p)->GetDepthStencilSurface(a)
#define IDirect3DDevice9_BeginScene(p) (p)->BeginScene()
#define IDirect3DDevice9_EndScene(p) (p)->EndScene()
#define IDirect3DDevice9_Clear(p,a,b,c,d,e,f) (p)->Clear(a,b,c,d,e,f)
#define IDirect3DDevice9_SetTransform(p,a,b) (p)->SetTransform(a,b)
#define IDirect3DDevice9_GetTransform(p,a,b) (p)->GetTransform(a,b)
#define IDirect3DDevice9_MultiplyTransform(p,a,b) (p)->MultiplyTransform(a,b)
#define IDirect3DDevice9_SetViewport(p,a) (p)->SetViewport(a)
#define IDirect3DDevice9_GetViewport(p,a) (p)->GetViewport(a)
#define IDirect3DDevice9_SetMaterial(p,a) (p)->SetMaterial(a)
#define IDirect3DDevice9_GetMaterial(p,a) (p)->GetMaterial(a)
#define IDirect3DDevice9_SetLight(p,a,b) (p)->SetLight(a,b)
#define IDirect3DDevice9_GetLight(p,a,b) (p)->GetLight(a,b)
#define IDirect3DDevice9_LightEnable(p,a,b) (p)->LightEnable(a,b)
#define IDirect3DDevice9_GetLightEnable(p,a,b) (p)->GetLightEnable(a,b)
#define IDirect3DDevice9_SetClipPlane(p,a,b) (p)->SetClipPlane(a,b)
#define IDirect3DDevice9_GetClipPlane(p,a,b) (p)->GetClipPlane(a,b)
#define IDirect3DDevice9_SetRenderState(p,a,b) (p)->SetRenderState(a,b)
#define IDirect3DDevice9_GetRenderState(p,a,b) (p)->GetRenderState(a,b)
#define IDirect3DDevice9_CreateStateBlock(p,a,b) (p)->CreateStateBlock(a,b)
#define IDirect3DDevice9_BeginStateBlock(p) (p)->BeginStateBlock()
#define IDirect3DDevice9_EndStateBlock(p,a) (p)->EndStateBlock(a)
#define IDirect3DDevice9_SetClipStatus(p,a) (p)->SetClipStatus(a)
#define IDirect3DDevice9_GetClipStatus(p,a) (p)->GetClipStatus(a)
#define IDirect3DDevice9_GetTexture(p,a,b) (p)->GetTexture(a,b)
#define IDirect3DDevice9_SetTexture(p,a,b) (p)->SetTexture(a,b)
#define IDirect3DDevice9_GetTextureStageState(p,a,b,c) (p)->GetTextureStageState(a,b,c)
#define IDirect3DDevice9_SetTextureStageState(p,a,b,c) (p)->SetTextureStageState(a,b,c)
#define IDirect3DDevice9_GetSamplerState(p,a,b,c) (p)->GetSamplerState(a,b,c)
#define IDirect3DDevice9_SetSamplerState(p,a,b,c) (p)->SetSamplerState(a,b,c)
#define IDirect3DDevice9_ValidateDevice(p,a) (p)->ValidateDevice(a)
#define IDirect3DDevice9_SetPaletteEntries(p,a,b) (p)->SetPaletteEntries(a,b)
#define IDirect3DDevice9_GetPaletteEntries(p,a,b) (p)->GetPaletteEntries(a,b)
#define IDirect3DDevice9_SetCurrentTexturePalette(p,a) (p)->SetCurrentTexturePalette(a)
#define IDirect3DDevice9_GetCurrentTexturePalette(p,a) (p)->GetCurrentTexturePalette(a)
#define IDirect3DDevice9_SetScissorRect(p,a) (p)->SetScissorRect(a)
#define IDirect3DDevice9_GetScissorRect(p,a) (p)->GetScissorRect(a)
#define IDirect3DDevice9_SetSoftwareVertexProcessing(p,a) (p)->SetSoftwareVertexProcessing(a)
#define IDirect3DDevice9_GetSoftwareVertexProcessing(p) (p)->GetSoftwareVertexProcessing()
#define IDirect3DDevice9_SetNPatchMode(p,a) (p)->SetNPatchMode(a)
#define IDirect3DDevice9_GetNPatchMode(p) (p)->GetNPatchMode()
#define IDirect3DDevice9_DrawPrimitive(p,a,b,c) (p)->DrawPrimitive(a,b,c)
#define IDirect3DDevice9_DrawIndexedPrimitive(p,a,b,c,d,e,f) (p)->DrawIndexedPrimitive(a,b,c,d,e,f)
#define IDirect3DDevice9_DrawPrimitiveUP(p,a,b,c,d) (p)->DrawPrimitiveUP(a,b,c,d)
#define IDirect3DDevice9_DrawIndexedPrimitiveUP(p,a,b,c,d,e,f,g,h) (p)->DrawIndexedPrimitiveUP(a,b,c,d,e,f,g,h)
#define IDirect3DDevice9_ProcessVertices(p,a,b,c,d,e,f) (p)->ProcessVertices(a,b,c,d,e,f)
#define IDirect3DDevice9_CreateVertexDeclaration(p,a,b) (p)->CreateVertexDeclaration(a,b)
#define IDirect3DDevice9_SetVertexDeclaration(p,a) (p)->SetVertexDeclaration(a)
#define IDirect3DDevice9_GetVertexDeclaration(p,a) (p)->GetVertexDeclaration(a)
#define IDirect3DDevice9_SetFVF(p,a) (p)->SetFVF(a)
#define IDirect3DDevice9_GetFVF(p,a) (p)->GetFVF(a)
#define IDirect3DDevice9_CreateVertexShader(p,a,b) (p)->CreateVertexShader(a,b)
#define IDirect3DDevice9_SetVertexShader(p,a) (p)->SetVertexShader(a)
#define IDirect3DDevice9_GetVertexShader(p,a) (p)->GetVertexShader(a)
#define IDirect3DDevice9_SetVertexShaderConstantF(p,a,b,c) (p)->SetVertexShaderConstantF(a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantF(p,a,b,c) (p)->GetVertexShaderConstantF(a,b,c)
#define IDirect3DDevice9_SetVertexShaderConstantI(p,a,b,c) (p)->SetVertexShaderConstantI(a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantI(p,a,b,c) (p)->GetVertexShaderConstantI(a,b,c)
#define IDirect3DDevice9_SetVertexShaderConstantB(p,a,b,c) (p)->SetVertexShaderConstantB(a,b,c)
#define IDirect3DDevice9_GetVertexShaderConstantB(p,a,b,c) (p)->GetVertexShaderConstantB(a,b,c)
#define IDirect3DDevice9_SetStreamSource(p,a,b,c,d) (p)->SetStreamSource(a,b,c,d)
#define IDirect3DDevice9_GetStreamSource(p,a,b,c,d) (p)->GetStreamSource(a,b,c,d)
#define IDirect3DDevice9_SetStreamSourceFreq(p,a,b) (p)->SetStreamSourceFreq(a,b)
#define IDirect3DDevice9_GetStreamSourceFreq(p,a,b) (p)->GetStreamSourceFreq(a,b)
#define IDirect3DDevice9_SetIndices(p,a) (p)->SetIndices(a)
#define IDirect3DDevice9_GetIndices(p,a) (p)->GetIndices(a)
#define IDirect3DDevice9_CreatePixelShader(p,a,b) (p)->CreatePixelShader(a,b)
#define IDirect3DDevice9_SetPixelShader(p,a) (p)->SetPixelShader(a)
#define IDirect3DDevice9_GetPixelShader(p,a) (p)->GetPixelShader(a)
#define IDirect3DDevice9_SetPixelShaderConstantF(p,a,b,c) (p)->SetPixelShaderConstantF(a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantF(p,a,b,c) (p)->GetPixelShaderConstantF(a,b,c)
#define IDirect3DDevice9_SetPixelShaderConstantI(p,a,b,c) (p)->SetPixelShaderConstantI(a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantI(p,a,b,c) (p)->GetPixelShaderConstantI(a,b,c)
#define IDirect3DDevice9_SetPixelShaderConstantB(p,a,b,c) (p)->SetPixelShaderConstantB(a,b,c)
#define IDirect3DDevice9_GetPixelShaderConstantB(p,a,b,c) (p)->GetPixelShaderConstantB(a,b,c)
#define IDirect3DDevice9_DrawRectPatch(p,a,b,c) (p)->DrawRectPatch(a,b,c)
#define IDirect3DDevice9_DrawTriPatch(p,a,b,c) (p)->DrawTriPatch(a,b,c)
#define IDirect3DDevice9_DeletePatch(p,a) (p)->DeletePatch(a)
#define IDirect3DDevice9_CreateQuery(p,a,b) (p)->CreateQuery(a,b)
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
/* defined(__cplusplus) */
...
...
include/d3dx8core.h
View file @
b8d3075d
...
...
@@ -48,9 +48,9 @@
* Predeclare the interfaces
*/
DEFINE_GUID
(
IID_ID3DXBuffer
,
0x1
,
0x1
,
0x4
,
0xB0
,
0xCF
,
0x98
,
0xFE
,
0xFD
,
0xFF
,
0x95
,
0x12
);
/* FIXME */
typedef
struct
ID3DXBuffer
ID3DXBuffer
,
*
LPD3DXBUFFER
;
typedef
struct
ID3DXBuffer
*
LPD3DXBUFFER
;
DEFINE_GUID
(
IID_ID3DXFont
,
0x1
,
0x1
,
0x4
,
0xB0
,
0xCF
,
0x98
,
0xFE
,
0xFD
,
0xFF
,
0x95
,
0x13
);
/* FIXME */
typedef
struct
ID3DXFont
ID3DXFont
,
*
LPD3DXFONT
;
typedef
struct
ID3DXFont
*
LPD3DXFONT
;
/*****************************************************************************
* ID3DXBuffer interface
...
...
include/ddraw.h
View file @
b8d3075d
...
...
@@ -51,19 +51,19 @@ DEFINE_GUID( IID_IDirectDrawColorControl,0x4B9F0EE0,0x0D7E,0x11D0,0x9B,0x06,0x00
DEFINE_GUID
(
IID_IDirectDrawGammaControl
,
0x69C11C3E
,
0xB46B
,
0x11D1
,
0xAD
,
0x7A
,
0x00
,
0xC0
,
0x4F
,
0xC2
,
0x9B
,
0x4E
);
#endif
typedef
struct
IDirectDraw
IDirectDraw
,
*
LPDIRECTDRAW
;
typedef
struct
IDirectDraw2
IDirectDraw2
,
*
LPDIRECTDRAW2
;
typedef
struct
IDirectDraw4
IDirectDraw4
,
*
LPDIRECTDRAW4
;
typedef
struct
IDirectDraw7
IDirectDraw7
,
*
LPDIRECTDRAW7
;
typedef
struct
IDirectDrawClipper
IDirectDrawClipper
,
*
LPDIRECTDRAWCLIPPER
;
typedef
struct
IDirectDrawPalette
IDirectDrawPalette
,
*
LPDIRECTDRAWPALETTE
;
typedef
struct
IDirectDrawSurface
IDirectDrawSurface
,
*
LPDIRECTDRAWSURFACE
;
typedef
struct
IDirectDrawSurface2
IDirectDrawSurface2
,
*
LPDIRECTDRAWSURFACE2
;
typedef
struct
IDirectDrawSurface3
IDirectDrawSurface3
,
*
LPDIRECTDRAWSURFACE3
;
typedef
struct
IDirectDrawSurface4
IDirectDrawSurface4
,
*
LPDIRECTDRAWSURFACE4
;
typedef
struct
IDirectDrawSurface7
IDirectDrawSurface7
,
*
LPDIRECTDRAWSURFACE7
;
typedef
struct
IDirectDrawColorControl
IDirectDrawColorControl
,
*
LPDIRECTDRAWCOLORCONTROL
;
typedef
struct
IDirectDrawGammaControl
IDirectDrawGammaControl
,
*
LPDIRECTDRAWGAMMACONTROL
;
typedef
struct
IDirectDraw
*
LPDIRECTDRAW
;
typedef
struct
IDirectDraw2
*
LPDIRECTDRAW2
;
typedef
struct
IDirectDraw4
*
LPDIRECTDRAW4
;
typedef
struct
IDirectDraw7
*
LPDIRECTDRAW7
;
typedef
struct
IDirectDrawClipper
*
LPDIRECTDRAWCLIPPER
;
typedef
struct
IDirectDrawPalette
*
LPDIRECTDRAWPALETTE
;
typedef
struct
IDirectDrawSurface
*
LPDIRECTDRAWSURFACE
;
typedef
struct
IDirectDrawSurface2
*
LPDIRECTDRAWSURFACE2
;
typedef
struct
IDirectDrawSurface3
*
LPDIRECTDRAWSURFACE3
;
typedef
struct
IDirectDrawSurface4
*
LPDIRECTDRAWSURFACE4
;
typedef
struct
IDirectDrawSurface7
*
LPDIRECTDRAWSURFACE7
;
typedef
struct
IDirectDrawColorControl
*
LPDIRECTDRAWCOLORCONTROL
;
typedef
struct
IDirectDrawGammaControl
*
LPDIRECTDRAWGAMMACONTROL
;
#define DDENUMRET_CANCEL 0
...
...
include/dinput.h
View file @
b8d3075d
...
...
@@ -87,25 +87,25 @@ DEFINE_GUID(GUID_Inertia, 0x13541C29,0x8E33,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0
DEFINE_GUID
(
GUID_Friction
,
0x13541C2A
,
0x8E33
,
0x11D0
,
0x9A
,
0xD0
,
0x00
,
0xA0
,
0xC9
,
0xA0
,
0x6E
,
0x35
);
DEFINE_GUID
(
GUID_CustomForce
,
0x13541C2B
,
0x8E33
,
0x11D0
,
0x9A
,
0xD0
,
0x00
,
0xA0
,
0xC9
,
0xA0
,
0x6E
,
0x35
);
typedef
struct
IDirectInputA
IDirectInputA
,
*
LPDIRECTINPUTA
;
typedef
struct
IDirectInputW
IDirectInputW
,
*
LPDIRECTINPUTW
;
typedef
struct
IDirectInput2A
IDirectInput2A
,
*
LPDIRECTINPUT2A
;
typedef
struct
IDirectInput2W
IDirectInput2W
,
*
LPDIRECTINPUT2W
;
typedef
struct
IDirectInput7A
IDirectInput7A
,
*
LPDIRECTINPUT7A
;
typedef
struct
IDirectInput7W
IDirectInput7W
,
*
LPDIRECTINPUT7W
;
typedef
struct
IDirectInput8A
IDirectInput8A
,
*
LPDIRECTINPUT8A
;
typedef
struct
IDirectInput8W
IDirectInput8W
,
*
LPDIRECTINPUT8W
;
typedef
struct
IDirectInputDeviceA
IDirectInputDeviceA
,
*
LPDIRECTINPUTDEVICEA
;
typedef
struct
IDirectInputDeviceW
IDirectInputDeviceW
,
*
LPDIRECTINPUTDEVICEW
;
typedef
struct
IDirectInputDevice2A
IDirectInputDevice2A
,
*
LPDIRECTINPUTDEVICE2A
;
typedef
struct
IDirectInputDevice2W
IDirectInputDevice2W
,
*
LPDIRECTINPUTDEVICE2W
;
typedef
struct
IDirectInputDevice7A
IDirectInputDevice7A
,
*
LPDIRECTINPUTDEVICE7A
;
typedef
struct
IDirectInputDevice7W
IDirectInputDevice7W
,
*
LPDIRECTINPUTDEVICE7W
;
typedef
struct
IDirectInputDevice8A
IDirectInputDevice8A
,
*
LPDIRECTINPUTDEVICE8A
;
typedef
struct
IDirectInputDevice8W
IDirectInputDevice8W
,
*
LPDIRECTINPUTDEVICE8W
;
typedef
struct
IDirectInputEffect
IDirectInputEffect
,
*
LPDIRECTINPUTEFFECT
;
typedef
struct
SysKeyboardA
SysKeyboardA
,
*
LPSYSKEYBOARDA
;
typedef
struct
SysMouseA
SysMouseA
,
*
LPSYSMOUSEA
;
typedef
struct
IDirectInputA
*
LPDIRECTINPUTA
;
typedef
struct
IDirectInputW
*
LPDIRECTINPUTW
;
typedef
struct
IDirectInput2A
*
LPDIRECTINPUT2A
;
typedef
struct
IDirectInput2W
*
LPDIRECTINPUT2W
;
typedef
struct
IDirectInput7A
*
LPDIRECTINPUT7A
;
typedef
struct
IDirectInput7W
*
LPDIRECTINPUT7W
;
typedef
struct
IDirectInput8A
*
LPDIRECTINPUT8A
;
typedef
struct
IDirectInput8W
*
LPDIRECTINPUT8W
;
typedef
struct
IDirectInputDeviceA
*
LPDIRECTINPUTDEVICEA
;
typedef
struct
IDirectInputDeviceW
*
LPDIRECTINPUTDEVICEW
;
typedef
struct
IDirectInputDevice2A
*
LPDIRECTINPUTDEVICE2A
;
typedef
struct
IDirectInputDevice2W
*
LPDIRECTINPUTDEVICE2W
;
typedef
struct
IDirectInputDevice7A
*
LPDIRECTINPUTDEVICE7A
;
typedef
struct
IDirectInputDevice7W
*
LPDIRECTINPUTDEVICE7W
;
typedef
struct
IDirectInputDevice8A
*
LPDIRECTINPUTDEVICE8A
;
typedef
struct
IDirectInputDevice8W
*
LPDIRECTINPUTDEVICE8W
;
typedef
struct
IDirectInputEffect
*
LPDIRECTINPUTEFFECT
;
typedef
struct
SysKeyboardA
*
LPSYSKEYBOARDA
;
typedef
struct
SysMouseA
*
LPSYSMOUSEA
;
#define IID_IDirectInput WINELIB_NAME_AW(IID_IDirectInput)
DECL_WINELIB_TYPE_AW
(
LPDIRECTINPUT
)
...
...
include/dmplugin.h
View file @
b8d3075d
...
...
@@ -72,18 +72,18 @@ DEFINE_GUID(IID_IDirectMusicTrack, 0xf96029a1,0x4282,0x11d2,0x
DEFINE_GUID
(
IID_IDirectMusicTrack8
,
0x0e674304
,
0x3b05
,
0x11d3
,
0x9b
,
0xd1
,
0xf9
,
0xe7
,
0xf0
,
0xa0
,
0x15
,
0x36
);
/* typedef definitions */
typedef
struct
IDirectMusicTrack
IDirectMusicTrack
,
*
LPDIRECTMUSICTRACK
;
typedef
struct
IDirectMusicTrack
IDirectMusicTrack8
,
*
LPDIRECTMUSICTRACK8
;
typedef
struct
IDirectMusicTool
IDirectMusicTool
,
*
LPDIRECTMUSICTOOL
;
typedef
struct
IDirectMusicTool8
IDirectMusicTool8
,
*
LPDIRECTMUSICTOOL8
;
typedef
struct
IDirectMusicTrack
*
LPDIRECTMUSICTRACK
;
typedef
struct
IDirectMusicTrack
8
*
LPDIRECTMUSICTRACK8
;
typedef
struct
IDirectMusicTool
*
LPDIRECTMUSICTOOL
;
typedef
struct
IDirectMusicTool8
*
LPDIRECTMUSICTOOL8
;
/* these are from dmusici.h and are needed here */
typedef
struct
IDirectMusicPerformance
IDirectMusicPerformance
,
*
LPDIRECTMUSICPERFORMANCE
;
typedef
struct
IDirectMusicPerformance8
IDirectMusicPerformance8
,
*
LPDIRECTMUSICPERFORMANCE8
;
typedef
struct
IDirectMusicSegment
IDirectMusicSegment
,
*
LPDIRECTMUSICSEGMENT
;
typedef
struct
IDirectMusicSegment
IDirectMusicSegment8
,
*
LPDIRECTMUSICSEGMENT8
;
typedef
struct
IDirectMusicSegmentState
IDirectMusicSegmentState
,
*
LPDIRECTMUSICSEGMENTSTATE
;
typedef
struct
IDirectMusicSegmentState8
IDirectMusicSegmentState8
,
*
LPDIRECTMUSICSEGMENTSTATE8
;
typedef
struct
IDirectMusicGraph
IDirectMusicGraph
,
*
LPDIRECTMUSICGRAPH
;
typedef
struct
IDirectMusicPerformance
*
LPDIRECTMUSICPERFORMANCE
;
typedef
struct
IDirectMusicPerformance8
*
LPDIRECTMUSICPERFORMANCE8
;
typedef
struct
IDirectMusicSegment
*
LPDIRECTMUSICSEGMENT
;
typedef
struct
IDirectMusicSegment
8
*
LPDIRECTMUSICSEGMENT8
;
typedef
struct
IDirectMusicSegmentState
*
LPDIRECTMUSICSEGMENTSTATE
;
typedef
struct
IDirectMusicSegmentState8
*
LPDIRECTMUSICSEGMENTSTATE8
;
typedef
struct
IDirectMusicGraph
*
LPDIRECTMUSICGRAPH
;
typedef
struct
IDirectMusicGraph
IDirectMusicGraph8
,
*
LPDIRECTMUSICGRAPH8
;
...
...
@@ -131,12 +131,12 @@ DECLARE_INTERFACE_(IDirectMusicTool,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirectMusicTool methods ***/
STDMETHOD
(
Init
)(
THIS_
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
Init
)(
THIS_
struct
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
GetMsgDeliveryType
)(
THIS_
DWORD
*
pdwDeliveryType
)
PURE
;
STDMETHOD
(
GetMediaTypeArraySize
)(
THIS_
DWORD
*
pdwNumElements
)
PURE
;
STDMETHOD
(
GetMediaTypes
)(
THIS_
DWORD
**
padwMediaTypes
,
DWORD
dwNumElements
)
PURE
;
STDMETHOD
(
ProcessPMsg
)(
THIS_
IDirectMusicPerformance
*
pPerf
,
DMUS_PMSG
*
pPMSG
)
PURE
;
STDMETHOD
(
Flush
)(
THIS_
IDirectMusicPerformance
*
pPerf
,
DMUS_PMSG
*
pPMSG
,
REFERENCE_TIME
rtTime
)
PURE
;
STDMETHOD
(
ProcessPMsg
)(
THIS_
struct
IDirectMusicPerformance
*
pPerf
,
DMUS_PMSG
*
pPMSG
)
PURE
;
STDMETHOD
(
Flush
)(
THIS_
struct
IDirectMusicPerformance
*
pPerf
,
DMUS_PMSG
*
pPMSG
,
REFERENCE_TIME
rtTime
)
PURE
;
};
#undef INTERFACE
...
...
@@ -166,12 +166,12 @@ DECLARE_INTERFACE_(IDirectMusicTool8,IDirectMusicTool)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirectMusicTool methods ***/
STDMETHOD
(
Init
)(
THIS_
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
Init
)(
THIS_
struct
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
GetMsgDeliveryType
)(
THIS_
DWORD
*
pdwDeliveryType
)
PURE
;
STDMETHOD
(
GetMediaTypeArraySize
)(
THIS_
DWORD
*
pdwNumElements
)
PURE
;
STDMETHOD
(
GetMediaTypes
)(
THIS_
DWORD
**
padwMediaTypes
,
DWORD
dwNumElements
)
PURE
;
STDMETHOD
(
ProcessPMsg
)(
THIS_
IDirectMusicPerformance
*
pPerf
,
DMUS_PMSG
*
pPMSG
)
PURE
;
STDMETHOD
(
Flush
)(
THIS_
IDirectMusicPerformance
*
pPerf
,
DMUS_PMSG
*
pPMSG
,
REFERENCE_TIME
rtTime
)
PURE
;
STDMETHOD
(
ProcessPMsg
)(
THIS_
struct
IDirectMusicPerformance
*
pPerf
,
DMUS_PMSG
*
pPMSG
)
PURE
;
STDMETHOD
(
Flush
)(
THIS_
struct
IDirectMusicPerformance
*
pPerf
,
DMUS_PMSG
*
pPMSG
,
REFERENCE_TIME
rtTime
)
PURE
;
/*** IDirectMusicTool8 methods ***/
STDMETHOD
(
Clone
)(
THIS_
IDirectMusicTool
**
ppTool
)
PURE
;
};
...
...
@@ -205,10 +205,10 @@ DECLARE_INTERFACE_(IDirectMusicTrack,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirectMusicTrack methods ***/
STDMETHOD
(
Init
)(
THIS_
IDirectMusicSegment
*
pSegment
)
PURE
;
STDMETHOD
(
InitPlay
)(
THIS_
IDirectMusicSegmentState
*
pSegmentState
,
IDirectMusicPerformance
*
pPerformance
,
void
**
ppStateData
,
DWORD
dwVirtualTrackID
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Init
)(
THIS_
struct
IDirectMusicSegment
*
pSegment
)
PURE
;
STDMETHOD
(
InitPlay
)(
THIS_
struct
IDirectMusicSegmentState
*
pSegmentState
,
struct
IDirectMusicPerformance
*
pPerformance
,
void
**
ppStateData
,
DWORD
dwVirtualTrackID
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
EndPlay
)(
THIS_
void
*
pStateData
)
PURE
;
STDMETHOD
(
Play
)(
THIS_
void
*
pStateData
,
MUSIC_TIME
mtStart
,
MUSIC_TIME
mtEnd
,
MUSIC_TIME
mtOffset
,
DWORD
dwFlags
,
IDirectMusicPerformance
*
pPerf
,
IDirectMusicSegmentState
*
pSegSt
,
DWORD
dwVirtualID
)
PURE
;
STDMETHOD
(
Play
)(
THIS_
void
*
pStateData
,
MUSIC_TIME
mtStart
,
MUSIC_TIME
mtEnd
,
MUSIC_TIME
mtOffset
,
DWORD
dwFlags
,
struct
IDirectMusicPerformance
*
pPerf
,
struct
IDirectMusicSegmentState
*
pSegSt
,
DWORD
dwVirtualID
)
PURE
;
STDMETHOD
(
GetParam
)(
THIS_
REFGUID
rguidType
,
MUSIC_TIME
mtTime
,
MUSIC_TIME
*
pmtNext
,
void
*
pParam
)
PURE
;
STDMETHOD
(
SetParam
)(
THIS_
REFGUID
rguidType
,
MUSIC_TIME
mtTime
,
void
*
pParam
)
PURE
;
STDMETHOD
(
IsParamSupported
)(
THIS_
REFGUID
rguidType
)
PURE
;
...
...
@@ -248,10 +248,10 @@ DECLARE_INTERFACE_(IDirectMusicTrack8,IDirectMusicTrack)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirectMusicTrack methods ***/
STDMETHOD
(
Init
)(
THIS_
IDirectMusicSegment
*
pSegment
)
PURE
;
STDMETHOD
(
InitPlay
)(
THIS_
IDirectMusicSegmentState
*
pSegmentState
,
IDirectMusicPerformance
*
pPerformance
,
void
**
ppStateData
,
DWORD
dwVirtualTrackID
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Init
)(
THIS_
struct
IDirectMusicSegment
*
pSegment
)
PURE
;
STDMETHOD
(
InitPlay
)(
THIS_
struct
IDirectMusicSegmentState
*
pSegmentState
,
struct
IDirectMusicPerformance
*
pPerformance
,
void
**
ppStateData
,
DWORD
dwVirtualTrackID
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
EndPlay
)(
THIS_
void
*
pStateData
)
PURE
;
STDMETHOD
(
Play
)(
THIS_
void
*
pStateData
,
MUSIC_TIME
mtStart
,
MUSIC_TIME
mtEnd
,
MUSIC_TIME
mtOffset
,
DWORD
dwFlags
,
IDirectMusicPerformance
*
pPerf
,
IDirectMusicSegmentState
*
pSegSt
,
DWORD
dwVirtualID
)
PURE
;
STDMETHOD
(
Play
)(
THIS_
void
*
pStateData
,
MUSIC_TIME
mtStart
,
MUSIC_TIME
mtEnd
,
MUSIC_TIME
mtOffset
,
DWORD
dwFlags
,
struct
IDirectMusicPerformance
*
pPerf
,
struct
IDirectMusicSegmentState
*
pSegSt
,
DWORD
dwVirtualID
)
PURE
;
STDMETHOD
(
GetParam
)(
THIS_
REFGUID
rguidType
,
MUSIC_TIME
mtTime
,
MUSIC_TIME
*
pmtNext
,
void
*
pParam
)
PURE
;
STDMETHOD
(
SetParam
)(
THIS_
REFGUID
rguidType
,
MUSIC_TIME
mtTime
,
void
*
pParam
)
PURE
;
STDMETHOD
(
IsParamSupported
)(
THIS_
REFGUID
rguidType
)
PURE
;
...
...
@@ -259,7 +259,7 @@ DECLARE_INTERFACE_(IDirectMusicTrack8,IDirectMusicTrack)
STDMETHOD
(
RemoveNotificationType
)(
THIS_
REFGUID
rguidNotificationType
)
PURE
;
STDMETHOD
(
Clone
)(
THIS_
MUSIC_TIME
mtStart
,
MUSIC_TIME
mtEnd
,
IDirectMusicTrack
**
ppTrack
)
PURE
;
/*** IDirectMusicTrack8 methods ***/
STDMETHOD
(
PlayEx
)(
THIS_
void
*
pStateData
,
REFERENCE_TIME
rtStart
,
REFERENCE_TIME
rtEnd
,
REFERENCE_TIME
rtOffset
,
DWORD
dwFlags
,
IDirectMusicPerformance
*
pPerf
,
IDirectMusicSegmentState
*
pSegSt
,
DWORD
dwVirtualID
)
PURE
;
STDMETHOD
(
PlayEx
)(
THIS_
void
*
pStateData
,
REFERENCE_TIME
rtStart
,
REFERENCE_TIME
rtEnd
,
REFERENCE_TIME
rtOffset
,
DWORD
dwFlags
,
struct
IDirectMusicPerformance
*
pPerf
,
struct
IDirectMusicSegmentState
*
pSegSt
,
DWORD
dwVirtualID
)
PURE
;
STDMETHOD
(
GetParamEx
)(
THIS_
REFGUID
rguidType
,
REFERENCE_TIME
rtTime
,
REFERENCE_TIME
*
prtNext
,
void
*
pParam
,
void
*
pStateData
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
SetParamEx
)(
THIS_
REFGUID
rguidType
,
REFERENCE_TIME
rtTime
,
void
*
pParam
,
void
*
pStateData
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
Compose
)(
THIS_
IUnknown
*
pContext
,
DWORD
dwTrackGroup
,
IDirectMusicTrack
**
ppResultTrack
)
PURE
;
...
...
include/dmusicc.h
View file @
b8d3075d
...
...
@@ -91,25 +91,25 @@ DEFINE_GUID(GUID_DMUS_PROP_XG_Capable, 0x6496aba1,0x61b0,0x11d2,0xaf,
DEFINE_GUID
(
GUID_DMUS_PROP_XG_Hardware
,
0x178f2f26
,
0xc364
,
0x11d1
,
0xa7
,
0x60
,
0x00
,
0x00
,
0xf8
,
0x75
,
0xac
,
0x12
);
/* typedef definitions */
typedef
struct
IDirectMusic
IDirectMusic
,
*
LPDIRECTMUSIC
;
typedef
struct
IDirectMusic
IDirectMusic8
,
*
LPDIRECTMUSIC8
;
typedef
struct
IDirectMusicBuffer
IDirectMusicBuffer
,
*
LPDIRECTMUSICBUFFER
;
typedef
struct
IDirectMusic
*
LPDIRECTMUSIC
;
typedef
struct
IDirectMusic
8
*
LPDIRECTMUSIC8
;
typedef
struct
IDirectMusicBuffer
*
LPDIRECTMUSICBUFFER
;
typedef
struct
IDirectMusicBuffer
IDirectMusicBuffer8
,
*
LPDIRECTMUSICBUFFER8
;
typedef
struct
IDirectMusicInstrument
IDirectMusicInstrument
,
*
LPDIRECTMUSICINSTRUMENT
;
typedef
struct
IDirectMusicInstrument
*
LPDIRECTMUSICINSTRUMENT
;
typedef
struct
IDirectMusicInstrument
IDirectMusicInstrument8
,
*
LPDIRECTMUSICINSTRUMENT8
;
typedef
struct
IDirectMusicDownloadedInstrument
IDirectMusicDownloadedInstrument
,
*
LPDIRECTMUSICDOWNLOADEDINSTRUMENT
;
typedef
struct
IDirectMusicDownloadedInstrument
*
LPDIRECTMUSICDOWNLOADEDINSTRUMENT
;
typedef
struct
IDirectMusicDownloadedInstrument
IDirectMusicDownloadedInstrument8
,
*
LPDIRECTMUSICDOWNLOADEDINSTRUMENT8
;
typedef
struct
IDirectMusicCollection
IDirectMusicCollection
,
*
LPDIRECTMUSICCOLLECTION
;
typedef
struct
IDirectMusicCollection
*
LPDIRECTMUSICCOLLECTION
;
typedef
struct
IDirectMusicCollection
IDirectMusicCollection8
,
*
LPDIRECTMUSICCOLLECTION8
;
typedef
struct
IDirectMusicDownload
IDirectMusicDownload
,
*
LPDIRECTMUSICDOWNLOAD
;
typedef
struct
IDirectMusicDownload
*
LPDIRECTMUSICDOWNLOAD
;
typedef
struct
IDirectMusicDownload
IDirectMusicDownload8
,
*
LPDIRECTMUSICDOWNLOAD8
;
typedef
struct
IDirectMusicPortDownload
IDirectMusicPortDownload
,
*
LPDIRECTMUSICPORTDOWNLOAD
;
typedef
struct
IDirectMusicPortDownload
*
LPDIRECTMUSICPORTDOWNLOAD
;
typedef
struct
IDirectMusicPortDownload
IDirectMusicPortDownload8
,
*
LPDIRECTMUSICPORTDOWNLOAD8
;
typedef
struct
IDirectMusicPort
IDirectMusicPort
,
*
LPDIRECTMUSICPORT
;
typedef
struct
IDirectMusicPort
*
LPDIRECTMUSICPORT
;
typedef
struct
IDirectMusicPort
IDirectMusicPort8
,
*
LPDIRECTMUSICPORT8
;
typedef
struct
IDirectMusicThru
IDirectMusicThru
,
*
LPDIRECTMUSICTHRU
;
typedef
struct
IDirectMusicThru
*
LPDIRECTMUSICTHRU
;
typedef
struct
IDirectMusicThru
IDirectMusicThru8
,
*
LPDIRECTMUSICTHRU8
;
typedef
struct
IReferenceClock
IReferenceClock
,
*
LPREFERENCECLOCK
;
typedef
struct
IReferenceClock
*
LPREFERENCECLOCK
;
/*****************************************************************************
...
...
@@ -382,7 +382,7 @@ DECLARE_INTERFACE_(IDirectMusic,IUnknown)
STDMETHOD
(
CreateMusicBuffer
)(
THIS_
LPDMUS_BUFFERDESC
pBufferDesc
,
LPDIRECTMUSICBUFFER
**
ppBuffer
,
LPUNKNOWN
pUnkOuter
)
PURE
;
STDMETHOD
(
CreatePort
)(
THIS_
REFCLSID
rclsidPort
,
LPDMUS_PORTPARAMS
pPortParams
,
LPDIRECTMUSICPORT
*
ppPort
,
LPUNKNOWN
pUnkOuter
)
PURE
;
STDMETHOD
(
EnumMasterClock
)(
THIS_
DWORD
dwIndex
,
LPDMUS_CLOCKINFO
lpClockInfo
)
PURE
;
STDMETHOD
(
GetMasterClock
)(
THIS_
LPGUID
pguidClock
,
IReferenceClock
**
ppReferenceClock
)
PURE
;
STDMETHOD
(
GetMasterClock
)(
THIS_
LPGUID
pguidClock
,
struct
IReferenceClock
**
ppReferenceClock
)
PURE
;
STDMETHOD
(
SetMasterClock
)(
THIS_
REFGUID
rguidClock
)
PURE
;
STDMETHOD
(
Activate
)(
THIS_
BOOL
fEnable
)
PURE
;
STDMETHOD
(
GetDefaultPort
)(
THIS_
LPGUID
pguidPort
)
PURE
;
...
...
@@ -423,13 +423,13 @@ DECLARE_INTERFACE_(IDirectMusic8,IDirectMusic)
STDMETHOD
(
CreateMusicBuffer
)(
THIS_
LPDMUS_BUFFERDESC
pBufferDesc
,
LPDIRECTMUSICBUFFER
**
ppBuffer
,
LPUNKNOWN
pUnkOuter
)
PURE
;
STDMETHOD
(
CreatePort
)(
THIS_
REFCLSID
rclsidPort
,
LPDMUS_PORTPARAMS
pPortParams
,
LPDIRECTMUSICPORT
*
ppPort
,
LPUNKNOWN
pUnkOuter
)
PURE
;
STDMETHOD
(
EnumMasterClock
)(
THIS_
DWORD
dwIndex
,
LPDMUS_CLOCKINFO
lpClockInfo
)
PURE
;
STDMETHOD
(
GetMasterClock
)(
THIS_
LPGUID
pguidClock
,
IReferenceClock
**
ppReferenceClock
)
PURE
;
STDMETHOD
(
GetMasterClock
)(
THIS_
LPGUID
pguidClock
,
struct
IReferenceClock
**
ppReferenceClock
)
PURE
;
STDMETHOD
(
SetMasterClock
)(
THIS_
REFGUID
rguidClock
)
PURE
;
STDMETHOD
(
Activate
)(
THIS_
BOOL
fEnable
)
PURE
;
STDMETHOD
(
GetDefaultPort
)(
THIS_
LPGUID
pguidPort
)
PURE
;
STDMETHOD
(
SetDirectSound
)(
THIS_
LPDIRECTSOUND
pDirectSound
,
HWND
hWnd
)
PURE
;
/*** IDirectMusic8 methods ***/
STDMETHOD
(
SetExternalMasterClock
)(
THIS_
IReferenceClock
*
pClock
)
PURE
;
STDMETHOD
(
SetExternalMasterClock
)(
THIS_
struct
IReferenceClock
*
pClock
)
PURE
;
};
#undef INTERFACE
...
...
@@ -656,7 +656,7 @@ DECLARE_INTERFACE_(IDirectMusicPort,IUnknown)
STDMETHOD
(
Read
)(
THIS_
LPDIRECTMUSICBUFFER
pBuffer
)
PURE
;
STDMETHOD
(
DownloadInstrument
)(
THIS_
IDirectMusicInstrument
*
pInstrument
,
IDirectMusicDownloadedInstrument
**
ppDownloadedInstrument
,
DMUS_NOTERANGE
*
pNoteRanges
,
DWORD
dwNumNoteRanges
)
PURE
;
STDMETHOD
(
UnloadInstrument
)(
THIS_
IDirectMusicDownloadedInstrument
*
pDownloadedInstrument
)
PURE
;
STDMETHOD
(
GetLatencyClock
)(
THIS_
IReferenceClock
**
ppClock
)
PURE
;
STDMETHOD
(
GetLatencyClock
)(
THIS_
struct
IReferenceClock
**
ppClock
)
PURE
;
STDMETHOD
(
GetRunningStats
)(
THIS_
LPDMUS_SYNTHSTATS
pStats
)
PURE
;
STDMETHOD
(
Compact
)(
THIS
)
PURE
;
STDMETHOD
(
GetCaps
)(
THIS_
LPDMUS_PORTCAPS
pPortCaps
)
PURE
;
...
...
include/dmusici.h
View file @
b8d3075d
...
...
@@ -110,27 +110,27 @@ DEFINE_GUID(IID_IDirectMusicStyle8, 0xfd24ad8a,0xa260,0x4
#define IID_IDirectMusicScript8 IID_IDirectMusicScript
/* typedef definitions */
typedef
struct
IDirectMusicBand
IDirectMusicBand
,
*
LPDIRECTMUSICBAND
;
typedef
struct
IDirectMusicBand
*
LPDIRECTMUSICBAND
;
typedef
struct
IDirectMusicBand
IDirectMusicBand8
,
*
LPDIRECTMUSICBAND8
;
typedef
struct
IDirectMusicObject
IDirectMusicObject
,
*
LPDIRECTMUSICOBJECT
;
typedef
struct
IDirectMusicObject
*
LPDIRECTMUSICOBJECT
;
typedef
struct
IDirectMusicObject
IDirectMusicObject8
,
*
LPDIRECTMUSICOBJECT8
;
typedef
struct
IDirectMusicLoader
IDirectMusicLoader
,
*
LPDIRECTMUSICLOADER
;
typedef
struct
IDirectMusicLoader
IDirectMusicLoader8
,
*
LPDIRECTMUSICLOADER8
;
typedef
struct
IDirectMusicGetLoader
IDirectMusicGetLoader
,
*
LPDIRECTMUSICGETLOADER
;
typedef
struct
IDirectMusicLoader
*
LPDIRECTMUSICLOADER
;
typedef
struct
IDirectMusicLoader
8
*
LPDIRECTMUSICLOADER8
;
typedef
struct
IDirectMusicGetLoader
*
LPDIRECTMUSICGETLOADER
;
typedef
struct
IDirectMusicGetLoader
IDirectMusicGetLoader8
,
*
LPDIRECTMUSICGETLOADER8
;
typedef
struct
IDirectMusicAudioPath
IDirectMusicAudioPath
,
*
LPDIRECTMUSICAUDIOPATH
;
typedef
struct
IDirectMusicAudioPath
*
LPDIRECTMUSICAUDIOPATH
;
typedef
struct
IDirectMusicAudioPath
IDirectMusicAudioPath8
,
*
LPDIRECTMUSICAUDIOPATH8
;
typedef
struct
IDirectMusicStyle
IDirectMusicStyle
,
*
LPDIRECTMUSICSTYLE
;
typedef
struct
IDirectMusicStyle8
IDirectMusicStyle8
,
*
LPDIRECTMUSICSTYLE8
;
typedef
struct
IDirectMusicChordMap
IDirectMusicChordMap
,
*
LPDIRECTMUSICCHORDMAP
;
typedef
struct
IDirectMusicStyle
*
LPDIRECTMUSICSTYLE
;
typedef
struct
IDirectMusicStyle8
*
LPDIRECTMUSICSTYLE8
;
typedef
struct
IDirectMusicChordMap
*
LPDIRECTMUSICCHORDMAP
;
typedef
struct
IDirectMusicChordMap
IDirectMusicChordMap8
,
*
LPDIRECTMUSICCHORDMAP8
;
typedef
struct
IDirectMusicComposer
IDirectMusicComposer
,
*
LPDIRECTMUSICCOMPOSER
;
typedef
struct
IDirectMusicComposer
*
LPDIRECTMUSICCOMPOSER
;
typedef
struct
IDirectMusicComposer
IDirectMusicComposer8
,
*
LPDIRECTMUSICCOMPOSER8
;
typedef
struct
IDirectMusicPatternTrack
IDirectMusicPatternTrack
,
*
LPDIRECTMUSICPATTERNTRACK
;
typedef
struct
IDirectMusicPatternTrack
*
LPDIRECTMUSICPATTERNTRACK
;
typedef
struct
IDirectMusicPatternTrack
IDirectMusicPatternTrack8
,
*
LPDIRECTMUSICPATTERNTRACK8
;
typedef
struct
IDirectMusicScript
IDirectMusicScript
,
*
LPDIRECTMUSICSCRIPT
;
typedef
struct
IDirectMusicScript
*
LPDIRECTMUSICSCRIPT
;
typedef
struct
IDirectMusicScript
IDirectMusicScript8
,
*
LPDIRECTMUSICSCRIPT8
;
typedef
struct
IDirectMusicContainer
IDirectMusicContainer
,
*
LPDIRECTMUSICCONTAINER
;
typedef
struct
IDirectMusicContainer
*
LPDIRECTMUSICCONTAINER
;
typedef
struct
IDirectMusicContainer
IDirectMusicContainer8
,
*
LPDIRECTMUSICCONTAINER8
;
/* RPC declarations */
...
...
@@ -356,7 +356,7 @@ typedef WORD TRANSITION_TYPE, *LPTRANSITION_TYPE;
DWORD dwPChannel; \
DWORD dwVirtualTrackID; \
IDirectMusicTool* pTool; \
IDirectMusicGraph* pGraph; \
struct
IDirectMusicGraph* pGraph; \
DWORD dwType; \
DWORD dwVoiceID; \
DWORD dwGroupID; \
...
...
@@ -776,7 +776,7 @@ struct _DMUS_COMMAND_PARAM_2 {
struct
_DMUS_BAND_PARAM
{
MUSIC_TIME
mtTimePhysical
;
IDirectMusicBand
*
pBand
;
struct
IDirectMusicBand
*
pBand
;
};
struct
_DMUS_VARIATIONS_PARAM
{
...
...
@@ -797,9 +797,9 @@ DECLARE_INTERFACE_(IDirectMusicBand,IUnknown)
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDirectMusicBand methods ***/
STDMETHOD
(
CreateSegment
)(
THIS_
IDirectMusicSegment
**
ppSegment
)
PURE
;
STDMETHOD
(
Download
)(
THIS_
IDirectMusicPerformance
*
pPerformance
)
PURE
;
STDMETHOD
(
Unload
)(
THIS_
IDirectMusicPerformance
*
pPerformance
)
PURE
;
STDMETHOD
(
CreateSegment
)(
THIS_
struct
IDirectMusicSegment
**
ppSegment
)
PURE
;
STDMETHOD
(
Download
)(
THIS_
struct
IDirectMusicPerformance
*
pPerformance
)
PURE
;
STDMETHOD
(
Unload
)(
THIS_
struct
IDirectMusicPerformance
*
pPerformance
)
PURE
;
};
#undef INTERFACE
...
...
@@ -980,9 +980,9 @@ DECLARE_INTERFACE_(IDirectMusicSegment,IUnknown)
STDMETHOD
(
GetTrackGroup
)(
THIS_
IDirectMusicTrack
*
pTrack
,
DWORD
*
pdwGroupBits
)
PURE
;
STDMETHOD
(
InsertTrack
)(
THIS_
IDirectMusicTrack
*
pTrack
,
DWORD
dwGroupBits
)
PURE
;
STDMETHOD
(
RemoveTrack
)(
THIS_
IDirectMusicTrack
*
pTrack
)
PURE
;
STDMETHOD
(
InitPlay
)(
THIS_
IDirectMusicSegmentState
**
ppSegState
,
IDirectMusicPerformance
*
pPerformance
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
GetGraph
)(
THIS_
IDirectMusicGraph
**
ppGraph
)
PURE
;
STDMETHOD
(
SetGraph
)(
THIS_
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
InitPlay
)(
THIS_
struct
IDirectMusicSegmentState
**
ppSegState
,
struct
IDirectMusicPerformance
*
pPerformance
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
GetGraph
)(
THIS_
struct
IDirectMusicGraph
**
ppGraph
)
PURE
;
STDMETHOD
(
SetGraph
)(
THIS_
struct
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
AddNotificationType
)(
THIS_
REFGUID
rguidNotificationType
)
PURE
;
STDMETHOD
(
RemoveNotificationType
)(
THIS_
REFGUID
rguidNotificationType
)
PURE
;
STDMETHOD
(
GetParam
)(
THIS_
REFGUID
rguidType
,
DWORD
dwGroupBits
,
DWORD
dwIndex
,
MUSIC_TIME
mtTime
,
MUSIC_TIME
*
pmtNext
,
void
*
pParam
)
PURE
;
...
...
@@ -1049,9 +1049,9 @@ DECLARE_INTERFACE_(IDirectMusicSegment8,IDirectMusicSegment)
STDMETHOD
(
GetTrackGroup
)(
THIS_
IDirectMusicTrack
*
pTrack
,
DWORD
*
pdwGroupBits
)
PURE
;
STDMETHOD
(
InsertTrack
)(
THIS_
IDirectMusicTrack
*
pTrack
,
DWORD
dwGroupBits
)
PURE
;
STDMETHOD
(
RemoveTrack
)(
THIS_
IDirectMusicTrack
*
pTrack
)
PURE
;
STDMETHOD
(
InitPlay
)(
THIS_
IDirectMusicSegmentState
**
ppSegState
,
IDirectMusicPerformance
*
pPerformance
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
GetGraph
)(
THIS_
IDirectMusicGraph
**
ppGraph
)
PURE
;
STDMETHOD
(
SetGraph
)(
THIS_
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
InitPlay
)(
THIS_
struct
IDirectMusicSegmentState
**
ppSegState
,
struct
IDirectMusicPerformance
*
pPerformance
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
GetGraph
)(
THIS_
struct
IDirectMusicGraph
**
ppGraph
)
PURE
;
STDMETHOD
(
SetGraph
)(
THIS_
struct
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
AddNotificationType
)(
THIS_
REFGUID
rguidNotificationType
)
PURE
;
STDMETHOD
(
RemoveNotificationType
)(
THIS_
REFGUID
rguidNotificationType
)
PURE
;
STDMETHOD
(
GetParam
)(
THIS_
REFGUID
rguidType
,
DWORD
dwGroupBits
,
DWORD
dwIndex
,
MUSIC_TIME
mtTime
,
MUSIC_TIME
*
pmtNext
,
void
*
pParam
)
PURE
;
...
...
@@ -1238,8 +1238,8 @@ DECLARE_INTERFACE_(IDirectMusicPerformance,IUnknown)
STDMETHOD
(
GetTime
)(
THIS_
REFERENCE_TIME
*
prtNow
,
MUSIC_TIME
*
pmtNow
)
PURE
;
STDMETHOD
(
AllocPMsg
)(
THIS_
ULONG
cb
,
DMUS_PMSG
**
ppPMSG
)
PURE
;
STDMETHOD
(
FreePMsg
)(
THIS_
DMUS_PMSG
*
pPMSG
)
PURE
;
STDMETHOD
(
GetGraph
)(
THIS_
IDirectMusicGraph
**
ppGraph
)
PURE
;
STDMETHOD
(
SetGraph
)(
THIS_
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
GetGraph
)(
THIS_
struct
IDirectMusicGraph
**
ppGraph
)
PURE
;
STDMETHOD
(
SetGraph
)(
THIS_
struct
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
SetNotificationHandle
)(
THIS_
HANDLE
hNotification
,
REFERENCE_TIME
rtMinimum
)
PURE
;
STDMETHOD
(
GetNotificationPMsg
)(
THIS_
DMUS_NOTIFICATION_PMSG
**
ppNotificationPMsg
)
PURE
;
STDMETHOD
(
AddNotificationType
)(
THIS_
REFGUID
rguidNotificationType
)
PURE
;
...
...
@@ -1343,8 +1343,8 @@ DECLARE_INTERFACE_(IDirectMusicPerformance8,IDirectMusicPerformance)
STDMETHOD
(
GetTime
)(
THIS_
REFERENCE_TIME
*
prtNow
,
MUSIC_TIME
*
pmtNow
)
PURE
;
STDMETHOD
(
AllocPMsg
)(
THIS_
ULONG
cb
,
DMUS_PMSG
**
ppPMSG
)
PURE
;
STDMETHOD
(
FreePMsg
)(
THIS_
DMUS_PMSG
*
pPMSG
)
PURE
;
STDMETHOD
(
GetGraph
)(
THIS_
IDirectMusicGraph
**
ppGraph
)
PURE
;
STDMETHOD
(
SetGraph
)(
THIS_
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
GetGraph
)(
THIS_
struct
IDirectMusicGraph
**
ppGraph
)
PURE
;
STDMETHOD
(
SetGraph
)(
THIS_
struct
IDirectMusicGraph
*
pGraph
)
PURE
;
STDMETHOD
(
SetNotificationHandle
)(
THIS_
HANDLE
hNotification
,
REFERENCE_TIME
rtMinimum
)
PURE
;
STDMETHOD
(
GetNotificationPMsg
)(
THIS_
DMUS_NOTIFICATION_PMSG
**
ppNotificationPMsg
)
PURE
;
STDMETHOD
(
AddNotificationType
)(
THIS_
REFGUID
rguidNotificationType
)
PURE
;
...
...
@@ -1489,9 +1489,9 @@ DECLARE_INTERFACE_(IDirectMusicStyle,IUnknown)
STDMETHOD
(
GetDefaultBand
)(
THIS_
IDirectMusicBand
**
ppBand
)
PURE
;
STDMETHOD
(
EnumMotif
)(
THIS_
DWORD
dwIndex
,
WCHAR
*
pwszName
)
PURE
;
STDMETHOD
(
GetMotif
)(
THIS_
WCHAR
*
pwszName
,
IDirectMusicSegment
**
ppSegment
)
PURE
;
STDMETHOD
(
GetDefaultChordMap
)(
THIS_
IDirectMusicChordMap
**
ppChordMap
)
PURE
;
STDMETHOD
(
GetDefaultChordMap
)(
THIS_
struct
IDirectMusicChordMap
**
ppChordMap
)
PURE
;
STDMETHOD
(
EnumChordMap
)(
THIS_
DWORD
dwIndex
,
WCHAR
*
pwszName
)
PURE
;
STDMETHOD
(
GetChordMap
)(
THIS_
WCHAR
*
pwszName
,
IDirectMusicChordMap
**
ppChordMap
)
PURE
;
STDMETHOD
(
GetChordMap
)(
THIS_
WCHAR
*
pwszName
,
struct
IDirectMusicChordMap
**
ppChordMap
)
PURE
;
STDMETHOD
(
GetTimeSignature
)(
THIS_
DMUS_TIMESIGNATURE
*
pTimeSig
)
PURE
;
STDMETHOD
(
GetEmbellishmentLength
)(
THIS_
DWORD
dwType
,
DWORD
dwLevel
,
DWORD
*
pdwMin
,
DWORD
*
pdwMax
)
PURE
;
STDMETHOD
(
GetTempo
)(
THIS_
double
*
pTempo
)
PURE
;
...
...
@@ -1534,9 +1534,9 @@ DECLARE_INTERFACE_(IDirectMusicStyle8,IDirectMusicStyle)
STDMETHOD
(
GetDefaultBand
)(
THIS_
IDirectMusicBand
**
ppBand
)
PURE
;
STDMETHOD
(
EnumMotif
)(
THIS_
DWORD
dwIndex
,
WCHAR
*
pwszName
)
PURE
;
STDMETHOD
(
GetMotif
)(
THIS_
WCHAR
*
pwszName
,
IDirectMusicSegment
**
ppSegment
)
PURE
;
STDMETHOD
(
GetDefaultChordMap
)(
THIS_
IDirectMusicChordMap
**
ppChordMap
)
PURE
;
STDMETHOD
(
GetDefaultChordMap
)(
THIS_
struct
IDirectMusicChordMap
**
ppChordMap
)
PURE
;
STDMETHOD
(
EnumChordMap
)(
THIS_
DWORD
dwIndex
,
WCHAR
*
pwszName
)
PURE
;
STDMETHOD
(
GetChordMap
)(
THIS_
WCHAR
*
pwszName
,
IDirectMusicChordMap
**
ppChordMap
)
PURE
;
STDMETHOD
(
GetChordMap
)(
THIS_
WCHAR
*
pwszName
,
struct
IDirectMusicChordMap
**
ppChordMap
)
PURE
;
STDMETHOD
(
GetTimeSignature
)(
THIS_
DMUS_TIMESIGNATURE
*
pTimeSig
)
PURE
;
STDMETHOD
(
GetEmbellishmentLength
)(
THIS_
DWORD
dwType
,
DWORD
dwLevel
,
DWORD
*
pdwMin
,
DWORD
*
pdwMax
)
PURE
;
STDMETHOD
(
GetTempo
)(
THIS_
double
*
pTempo
)
PURE
;
...
...
include/dmusics.h
View file @
b8d3075d
...
...
@@ -38,9 +38,9 @@ DEFINE_GUID(IID_IDirectMusicSynth8, 0x53cab625,0x2711,0x4c9f,0x9d,0xe7,0x1b,0
DEFINE_GUID
(
IID_IDirectMusicSynthSink
,
0x09823663
,
0x5c85
,
0x11d2
,
0xaf
,
0xa6
,
0x00
,
0xaa
,
0x00
,
0x24
,
0xd8
,
0xb6
);
/* typedef definitions */
typedef
struct
IDirectMusicSynth
IDirectMusicSynth
,
*
LPDIRECTMUSICSYNTH
;
typedef
struct
IDirectMusicSynth8
IDirectMusicSynth8
,
*
LPDIRECTMUSICSYNTH8
;
typedef
struct
IDirectMusicSynthSink
IDirectMusicSynthSink
,
*
LPDIRECTMUSICSYNTHSINK
;
typedef
struct
IDirectMusicSynth
*
LPDIRECTMUSICSYNTH
;
typedef
struct
IDirectMusicSynth8
*
LPDIRECTMUSICSYNTH8
;
typedef
struct
IDirectMusicSynthSink
*
LPDIRECTMUSICSYNTHSINK
;
/* GUIDs - property set */
DEFINE_GUID
(
GUID_DMUS_PROP_SetSynthSink
,
0x0a3a5ba5
,
0x37b6
,
0x11d2
,
0xb9
,
0xf9
,
0x00
,
0x00
,
0xf8
,
0x75
,
0xac
,
0x12
);
...
...
@@ -92,7 +92,7 @@ DECLARE_INTERFACE_(IDirectMusicSynth,IUnknown)
STDMETHOD
(
SetMasterClock
)(
THIS_
IReferenceClock
*
pClock
)
PURE
;
STDMETHOD
(
GetLatencyClock
)(
THIS_
IReferenceClock
**
ppClock
)
PURE
;
STDMETHOD
(
Activate
)(
THIS_
BOOL
fEnable
)
PURE
;
STDMETHOD
(
SetSynthSink
)(
THIS_
IDirectMusicSynthSink
*
pSynthSink
)
PURE
;
STDMETHOD
(
SetSynthSink
)(
THIS_
struct
IDirectMusicSynthSink
*
pSynthSink
)
PURE
;
STDMETHOD
(
Render
)(
THIS_
short
*
pBuffer
,
DWORD
dwLength
,
LONGLONG
llPosition
)
PURE
;
STDMETHOD
(
SetChannelPriority
)(
THIS_
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
DWORD
dwPriority
)
PURE
;
STDMETHOD
(
GetChannelPriority
)(
THIS_
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
LPDWORD
pdwPriority
)
PURE
;
...
...
@@ -149,7 +149,7 @@ DECLARE_INTERFACE_(IDirectMusicSynth8,IDirectMusicSynth)
STDMETHOD
(
SetMasterClock
)(
THIS_
IReferenceClock
*
pClock
)
PURE
;
STDMETHOD
(
GetLatencyClock
)(
THIS_
IReferenceClock
**
ppClock
)
PURE
;
STDMETHOD
(
Activate
)(
THIS_
BOOL
fEnable
)
PURE
;
STDMETHOD
(
SetSynthSink
)(
THIS_
IDirectMusicSynthSink
*
pSynthSink
)
PURE
;
STDMETHOD
(
SetSynthSink
)(
THIS_
struct
IDirectMusicSynthSink
*
pSynthSink
)
PURE
;
STDMETHOD
(
Render
)(
THIS_
short
*
pBuffer
,
DWORD
dwLength
,
LONGLONG
llPosition
)
PURE
;
STDMETHOD
(
SetChannelPriority
)(
THIS_
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
DWORD
dwPriority
)
PURE
;
STDMETHOD
(
GetChannelPriority
)(
THIS_
DWORD
dwChannelGroup
,
DWORD
dwChannel
,
LPDWORD
pdwPriority
)
PURE
;
...
...
include/dpaddr.h
View file @
b8d3075d
...
...
@@ -193,9 +193,9 @@ static const WCHAR DPNA_VALUE_SERIALPROVIDER[] = { 'S','E','R','I','A','L',0 };
DEFINE_GUID
(
CLSID_DirectPlay8Address
,
0x934a9523
,
0xa3ca
,
0x4bc5
,
0xad
,
0xa0
,
0xd6
,
0xd9
,
0x5d
,
0x97
,
0x94
,
0x21
);
DEFINE_GUID
(
IID_IDirectPlay8Address
,
0x83783300
,
0x4063
,
0x4c8a
,
0x9d
,
0xb3
,
0x82
,
0x83
,
0xa
,
0x7f
,
0xeb
,
0x31
);
typedef
struct
IDirectPlay8Address
IDirectPlay8Address
,
*
PDIRECTPLAY8ADDRESS
,
*
LPDIRECTPLAY8ADDRESS
;
typedef
struct
IDirectPlay8Address
*
PDIRECTPLAY8ADDRESS
,
*
LPDIRECTPLAY8ADDRESS
;
DEFINE_GUID
(
IID_IDirectPlay8AddressIP
,
0xe5a0e990
,
0x2bad
,
0x430b
,
0x87
,
0xda
,
0xa1
,
0x42
,
0xcf
,
0x75
,
0xde
,
0x58
);
typedef
struct
IDirectPlay8AddressIP
IDirectPlay8AddressIP
,
*
PDIRECTPLAY8ADDRESSIP
,
*
LPDIRECTPLAY8ADDRESSIP
;
typedef
struct
IDirectPlay8AddressIP
*
PDIRECTPLAY8ADDRESSIP
,
*
LPDIRECTPLAY8ADDRESSIP
;
/*****************************************************************************
...
...
include/dplay.h
View file @
b8d3075d
...
...
@@ -38,22 +38,22 @@ typedef VOID * volatile LPVOIDV;
DEFINE_GUID
(
CLSID_DirectPlay
,
0xd1eb6d20
,
0x8923
,
0x11d0
,
0x9d
,
0x97
,
0x0
,
0xa0
,
0xc9
,
0xa
,
0x43
,
0xcb
);
DEFINE_GUID
(
IID_IDirectPlay
,
0x5454e9a0
,
0xdb65
,
0x11ce
,
0x92
,
0x1c
,
0x00
,
0xaa
,
0x00
,
0x6c
,
0x49
,
0x72
);
typedef
struct
IDirectPlay
IDirectPlay
,
*
LPDIRECTPLAY
;
typedef
struct
IDirectPlay
*
LPDIRECTPLAY
;
DEFINE_GUID
(
IID_IDirectPlay2
,
0x2b74f7c0
,
0x9154
,
0x11cf
,
0xa9
,
0xcd
,
0x0
,
0xaa
,
0x0
,
0x68
,
0x86
,
0xe3
);
typedef
struct
IDirectPlay2
IDirectPlay2
,
*
LPDIRECTPLAY2
;
typedef
struct
IDirectPlay2
*
LPDIRECTPLAY2
;
DEFINE_GUID
(
IID_IDirectPlay2A
,
0x9d460580
,
0xa822
,
0x11cf
,
0x96
,
0xc
,
0x0
,
0x80
,
0xc7
,
0x53
,
0x4e
,
0x82
);
typedef
struct
IDirectPlay2
IDirectPlay2A
,
*
LPDIRECTPLAY2A
;
DEFINE_GUID
(
IID_IDirectPlay3
,
0x133efe40
,
0x32dc
,
0x11d0
,
0x9c
,
0xfb
,
0x0
,
0xa0
,
0xc9
,
0xa
,
0x43
,
0xcb
);
typedef
struct
IDirectPlay3
IDirectPlay3
,
*
LPDIRECTPLAY3
;
typedef
struct
IDirectPlay3
*
LPDIRECTPLAY3
;
DEFINE_GUID
(
IID_IDirectPlay3A
,
0x133efe41
,
0x32dc
,
0x11d0
,
0x9c
,
0xfb
,
0x0
,
0xa0
,
0xc9
,
0xa
,
0x43
,
0xcb
);
typedef
struct
IDirectPlay3
IDirectPlay3A
,
*
LPDIRECTPLAY3A
;
DEFINE_GUID
(
IID_IDirectPlay4
,
0xab1c530
,
0x4745
,
0x11d1
,
0xa7
,
0xa1
,
0x0
,
0x0
,
0xf8
,
0x3
,
0xab
,
0xfc
);
typedef
struct
IDirectPlay4
IDirectPlay4
,
*
LPDIRECTPLAY4
;
typedef
struct
IDirectPlay4
*
LPDIRECTPLAY4
;
DEFINE_GUID
(
IID_IDirectPlay4A
,
0xab1c531
,
0x4745
,
0x11d1
,
0xa7
,
0xa1
,
0x0
,
0x0
,
0xf8
,
0x3
,
0xab
,
0xfc
);
typedef
struct
IDirectPlay4
IDirectPlay4A
,
*
LPDIRECTPLAY4A
;
...
...
include/dplay8.h
View file @
b8d3075d
...
...
@@ -463,11 +463,11 @@ DEFINE_GUID(CLSID_DirectPlay8Client, 0x743f1dc6,0x5aba,0x429f,0x8b,0xdf,0xc5,0
DEFINE_GUID
(
CLSID_DirectPlay8Server
,
0xda825e1b
,
0x6830
,
0x43d7
,
0x83
,
0x5d
,
0xb
,
0x5a
,
0xd8
,
0x29
,
0x56
,
0xa2
);
DEFINE_GUID
(
IID_IDirectPlay8Peer
,
0x5102dacf
,
0x241b
,
0x11d3
,
0xae
,
0xa7
,
0x0
,
0x60
,
0x97
,
0xb0
,
0x14
,
0x11
);
typedef
struct
IDirectPlay8Peer
IDirectPlay8Peer
,
*
PDIRECTPLAY8PEER
;
typedef
struct
IDirectPlay8Peer
*
PDIRECTPLAY8PEER
;
DEFINE_GUID
(
IID_IDirectPlay8Client
,
0x5102dacd
,
0x241b
,
0x11d3
,
0xae
,
0xa7
,
0x0
,
0x60
,
0x97
,
0xb0
,
0x14
,
0x11
);
typedef
struct
IDirectPlay8Client
IDirectPlay8Client
,
*
PDIRECTPLAY8CLIENT
;
typedef
struct
IDirectPlay8Client
*
PDIRECTPLAY8CLIENT
;
DEFINE_GUID
(
IID_IDirectPlay8Server
,
0x5102dace
,
0x241b
,
0x11d3
,
0xae
,
0xa7
,
0x0
,
0x60
,
0x97
,
0xb0
,
0x14
,
0x11
);
typedef
struct
IDirectPlay8Server
IDirectPlay8Server
,
*
PDIRECTPLAY8SERVER
;
typedef
struct
IDirectPlay8Server
*
PDIRECTPLAY8SERVER
;
DEFINE_GUID
(
CLSID_DP8SP_IPX
,
0x53934290
,
0x628d
,
0x11d2
,
0xae
,
0xf
,
0x0
,
0x60
,
0x97
,
0xb0
,
0x14
,
0x11
);
DEFINE_GUID
(
CLSID_DP8SP_TCPIP
,
0xebfe7ba0
,
0x628d
,
0x11d2
,
0xae
,
0xf
,
0x0
,
0x60
,
0x97
,
0xb0
,
0x14
,
0x11
);
...
...
include/dplobby.h
View file @
b8d3075d
...
...
@@ -32,19 +32,19 @@ extern "C" {
DEFINE_GUID
(
CLSID_DirectPlayLobby
,
0x2fe8f810
,
0xb2a5
,
0x11d0
,
0xa7
,
0x87
,
0x0
,
0x0
,
0xf8
,
0x3
,
0xab
,
0xfc
);
DEFINE_GUID
(
IID_IDirectPlayLobby
,
0xaf465c71
,
0x9588
,
0x11cf
,
0xa0
,
0x20
,
0x0
,
0xaa
,
0x0
,
0x61
,
0x57
,
0xac
);
typedef
struct
IDirectPlayLobby
IDirectPlayLobby
,
*
LPDIRECTPLAYLOBBY
;
typedef
struct
IDirectPlayLobby
*
LPDIRECTPLAYLOBBY
;
DEFINE_GUID
(
IID_IDirectPlayLobbyA
,
0x26c66a70
,
0xb367
,
0x11cf
,
0xa0
,
0x24
,
0x0
,
0xaa
,
0x0
,
0x61
,
0x57
,
0xac
);
typedef
struct
IDirectPlayLobby
IDirectPlayLobbyA
,
*
LPDIRECTPLAYLOBBYA
;
DEFINE_GUID
(
IID_IDirectPlayLobby2
,
0x194c220
,
0xa303
,
0x11d0
,
0x9c
,
0x4f
,
0x0
,
0xa0
,
0xc9
,
0x5
,
0x42
,
0x5e
);
typedef
struct
IDirectPlayLobby2
IDirectPlayLobby2
,
*
LPDIRECTPLAYLOBBY2
;
typedef
struct
IDirectPlayLobby2
*
LPDIRECTPLAYLOBBY2
;
DEFINE_GUID
(
IID_IDirectPlayLobby2A
,
0x1bb4af80
,
0xa303
,
0x11d0
,
0x9c
,
0x4f
,
0x0
,
0xa0
,
0xc9
,
0x5
,
0x42
,
0x5e
);
typedef
struct
IDirectPlayLobby2
IDirectPlayLobby2A
,
*
LPDIRECTPLAYLOBBY2A
;
DEFINE_GUID
(
IID_IDirectPlayLobby3
,
0x2db72490
,
0x652c
,
0x11d1
,
0xa7
,
0xa8
,
0x0
,
0x0
,
0xf8
,
0x3
,
0xab
,
0xfc
);
typedef
struct
IDirectPlayLobby3
IDirectPlayLobby3
,
*
LPDIRECTPLAYLOBBY3
;
typedef
struct
IDirectPlayLobby3
*
LPDIRECTPLAYLOBBY3
;
DEFINE_GUID
(
IID_IDirectPlayLobby3A
,
0x2db72491
,
0x652c
,
0x11d1
,
0xa7
,
0xa8
,
0x0
,
0x0
,
0xf8
,
0x3
,
0xab
,
0xfc
);
typedef
struct
IDirectPlayLobby3
IDirectPlayLobby3A
,
*
LPDIRECTPLAYLOBBY3A
;
...
...
include/dsdriver.h
View file @
b8d3075d
...
...
@@ -30,22 +30,22 @@ extern "C" {
* Predeclare the interfaces
*/
DEFINE_GUID
(
IID_IDsDriver
,
0x8C4233C0l
,
0xB4CC
,
0x11CE
,
0x92
,
0x94
,
0x44
,
0x45
,
0x53
,
0x54
,
0x00
,
0x00
);
typedef
struct
IDsDriver
IDsDriver
,
*
PIDSDRIVER
;
typedef
struct
IDsDriver
*
PIDSDRIVER
;
DEFINE_GUID
(
IID_IDsDriverBuffer
,
0x8C4233C1l
,
0xB4CC
,
0x11CE
,
0x92
,
0x94
,
0x44
,
0x45
,
0x53
,
0x54
,
0x00
,
0x00
);
typedef
struct
IDsDriverBuffer
IDsDriverBuffer
,
*
PIDSDRIVERBUFFER
;
typedef
struct
IDsDriverBuffer
*
PIDSDRIVERBUFFER
;
DEFINE_GUID
(
IID_IDsDriverPropertySet
,
0x0F6F2E8E0
,
0xD842
,
0x11D0
,
0x8F
,
0x75
,
0x00
,
0xC0
,
0x4F
,
0xC2
,
0x8A
,
0xCA
);
typedef
struct
IDsDriverPropertySet
IDsDriverPropertySet
,
*
PIDSDRIVERPROPERTYSET
;
typedef
struct
IDsDriverPropertySet
*
PIDSDRIVERPROPERTYSET
;
DEFINE_GUID
(
IID_IDsDriverNotify
,
0x00363EF44
,
0x3B57
,
0x11D3
,
0xAC
,
0x79
,
0x00
,
0x10
,
0x5A
,
0x01
,
0x7f
,
0xe1
);
typedef
struct
IDsDriverNotify
IDsDriverNotify
,
*
PIDSDRIVERNOTIFY
;
typedef
struct
IDsDriverNotify
*
PIDSDRIVERNOTIFY
;
DEFINE_GUID
(
IID_IDsCaptureDriver
,
0x03DD10C47
,
0x74FB
,
0x11D3
,
0x90
,
0x49
,
0xCB
,
0xB4
,
0xB3
,
0x2E
,
0xAA
,
0x08
);
typedef
struct
IDsCaptureDriver
IDsCaptureDriver
,
*
PIDSCDRIVER
;
typedef
struct
IDsCaptureDriver
*
PIDSCDRIVER
;
DEFINE_GUID
(
IID_IDsCaptureDriverBuffer
,
0x03DD10C48
,
0x74FB
,
0x11D3
,
0x90
,
0x49
,
0xCB
,
0xB4
,
0xB3
,
0x2E
,
0xAA
,
0x08
);
typedef
struct
IDsCaptureDriverBuffer
IDsCaptureDriverBuffer
,
*
PIDSCDRIVERBUFFER
;
typedef
struct
IDsCaptureDriverBuffer
*
PIDSCDRIVERBUFFER
;
#define DSDDESC_DOMMSYSTEMOPEN 0x00000001
#define DSDDESC_DOMMSYSTEMSETFORMAT 0x00000002
...
...
include/dsound.h
View file @
b8d3075d
...
...
@@ -62,40 +62,40 @@ DEFINE_GUID(CLSID_DirectSoundCapture8, 0xe4bcac13, 0x7f99, 0x4908, 0x9a, 0x8e, 0
DEFINE_GUID
(
CLSID_DirectSoundFullDuplex
,
0xfea4300c
,
0x7959
,
0x4147
,
0xb2
,
0x6a
,
0x23
,
0x77
,
0xb9
,
0xe7
,
0xa9
,
0x1d
);
DEFINE_GUID
(
IID_IDirectSound
,
0x279AFA83
,
0x4981
,
0x11CE
,
0xA5
,
0x21
,
0x00
,
0x20
,
0xAF
,
0x0B
,
0xE5
,
0x60
);
typedef
struct
IDirectSound
IDirectSound
,
*
LPDIRECTSOUND
,
**
LPLPDIRECTSOUND
;
typedef
struct
IDirectSound
*
LPDIRECTSOUND
,
**
LPLPDIRECTSOUND
;
DEFINE_GUID
(
IID_IDirectSound8
,
0xC50A7E93
,
0xF395
,
0x4834
,
0x9E
,
0xF6
,
0x7F
,
0xA9
,
0x9D
,
0xE5
,
0x09
,
0x66
);
typedef
struct
IDirectSound8
IDirectSound8
,
*
LPDIRECTSOUND8
,
**
LPLPDIRECTSOUND8
;
typedef
struct
IDirectSound8
*
LPDIRECTSOUND8
,
**
LPLPDIRECTSOUND8
;
DEFINE_GUID
(
IID_IDirectSoundBuffer
,
0x279AFA85
,
0x4981
,
0x11CE
,
0xA5
,
0x21
,
0x00
,
0x20
,
0xAF
,
0x0B
,
0xE5
,
0x60
);
typedef
struct
IDirectSoundBuffer
IDirectSoundBuffer
,
*
LPDIRECTSOUNDBUFFER
,
**
LPLPDIRECTSOUNDBUFFER
;
typedef
struct
IDirectSoundBuffer
*
LPDIRECTSOUNDBUFFER
,
**
LPLPDIRECTSOUNDBUFFER
;
DEFINE_GUID
(
IID_IDirectSoundBuffer8
,
0x6825A449
,
0x7524
,
0x4D82
,
0x92
,
0x0F
,
0x50
,
0xE3
,
0x6A
,
0xB3
,
0xAB
,
0x1E
);
typedef
struct
IDirectSoundBuffer8
IDirectSoundBuffer8
,
*
LPDIRECTSOUNDBUFFER8
,
**
LPLPDIRECTSOUNDBUFFER8
;
typedef
struct
IDirectSoundBuffer8
*
LPDIRECTSOUNDBUFFER8
,
**
LPLPDIRECTSOUNDBUFFER8
;
DEFINE_GUID
(
IID_IDirectSoundNotify
,
0xB0210783
,
0x89cd
,
0x11d0
,
0xAF
,
0x08
,
0x00
,
0xA0
,
0xC9
,
0x25
,
0xCD
,
0x16
);
typedef
struct
IDirectSoundNotify
IDirectSoundNotify
,
*
LPDIRECTSOUNDNOTIFY
,
**
LPLPDIRECTSOUNDNOTIFY
;
typedef
struct
IDirectSoundNotify
*
LPDIRECTSOUNDNOTIFY
,
**
LPLPDIRECTSOUNDNOTIFY
;
#define IID_IDirectSoundNotify8 IID_IDirectSoundNotify
DEFINE_GUID
(
IID_IDirectSound3DListener
,
0x279AFA84
,
0x4981
,
0x11CE
,
0xA5
,
0x21
,
0x00
,
0x20
,
0xAF
,
0x0B
,
0xE5
,
0x60
);
typedef
struct
IDirectSound3DListener
IDirectSound3DListener
,
*
LPDIRECTSOUND3DLISTENER
,
**
LPLPDIRECTSOUND3DLISTENER
;
typedef
struct
IDirectSound3DListener
*
LPDIRECTSOUND3DLISTENER
,
**
LPLPDIRECTSOUND3DLISTENER
;
DEFINE_GUID
(
IID_IDirectSound3DBuffer
,
0x279AFA86
,
0x4981
,
0x11CE
,
0xA5
,
0x21
,
0x00
,
0x20
,
0xAF
,
0x0B
,
0xE5
,
0x60
);
typedef
struct
IDirectSound3DBuffer
IDirectSound3DBuffer
,
*
LPDIRECTSOUND3DBUFFER
,
**
LPLPDIRECTSOUND3DBUFFER
;
typedef
struct
IDirectSound3DBuffer
*
LPDIRECTSOUND3DBUFFER
,
**
LPLPDIRECTSOUND3DBUFFER
;
DEFINE_GUID
(
IID_IDirectSoundCapture
,
0xB0210781
,
0x89CD
,
0x11D0
,
0xAF
,
0x08
,
0x00
,
0xA0
,
0xC9
,
0x25
,
0xCD
,
0x16
);
typedef
struct
IDirectSoundCapture
IDirectSoundCapture
,
*
LPDIRECTSOUNDCAPTURE
,
**
LPLPDIRECTSOUNDCAPTURE
;
typedef
struct
IDirectSoundCapture
*
LPDIRECTSOUNDCAPTURE
,
**
LPLPDIRECTSOUNDCAPTURE
;
#define IID_IDirectSoundCapture8 IID_IDirectSoundCapture
typedef
struct
IDirectSoundCapture
IDirectSoundCapture8
,
*
LPDIRECTSOUNDCAPTURE8
,
**
LPLPDIRECTSOUNDCAPTURE8
;
DEFINE_GUID
(
IID_IDirectSoundCaptureBuffer
,
0xB0210782
,
0x89CD
,
0x11D0
,
0xAF
,
0x08
,
0x00
,
0xA0
,
0xC9
,
0x25
,
0xCD
,
0x16
);
typedef
struct
IDirectSoundCaptureBuffer
IDirectSoundCaptureBuffer
,
*
LPDIRECTSOUNDCAPTUREBUFFER
,
**
LPLPDIRECTSOUNDCAPTUREBUFFER
;
typedef
struct
IDirectSoundCaptureBuffer
*
LPDIRECTSOUNDCAPTUREBUFFER
,
**
LPLPDIRECTSOUNDCAPTUREBUFFER
;
DEFINE_GUID
(
IID_IDirectSoundCaptureBuffer8
,
0x00990DF4
,
0x0DBB
,
0x4872
,
0x83
,
0x3E
,
0x6D
,
0x30
,
0x3E
,
0x80
,
0xAE
,
0xB6
);
typedef
struct
IDirectSoundCaptureBuffer8
IDirectSoundCaptureBuffer8
,
*
LPDIRECTSOUNDCAPTUREBUFFER8
,
**
LPLPDIRECTSOUNDCAPTUREBUFFER8
;
typedef
struct
IDirectSoundCaptureBuffer8
*
LPDIRECTSOUNDCAPTUREBUFFER8
,
**
LPLPDIRECTSOUNDCAPTUREBUFFER8
;
DEFINE_GUID
(
IID_IDirectSoundFullDuplex
,
0xEDCB4C7A
,
0xDAAB
,
0x4216
,
0xA4
,
0x2E
,
0x6C
,
0x50
,
0x59
,
0x6D
,
0xDC
,
0x1D
);
typedef
struct
IDirectSoundFullDuplex
IDirectSoundFullDuplex
,
*
LPDIRECTSOUNDFULLDUPLEX
,
**
LPLPDIRECTSOUNDFULLDUPLEX
;
typedef
struct
IDirectSoundFullDuplex
*
LPDIRECTSOUNDFULLDUPLEX
,
**
LPLPDIRECTSOUNDFULLDUPLEX
;
#define IID_IDirectSoundFullDuplex8 IID_IDirectSoundFullDuplex
DEFINE_GUID
(
DSDEVID_DefaultPlayback
,
0xDEF00000
,
0x9C6D
,
0x47Ed
,
0xAA
,
0xF1
,
0x4D
,
0xDA
,
0x8F
,
0x2B
,
0x5C
,
0x03
);
...
...
@@ -1107,7 +1107,7 @@ DECLARE_INTERFACE_(IDirectSound3DBuffer,IUnknown)
#ifndef _IKsPropertySet_
#define _IKsPropertySet_
typedef
struct
IKsPropertySet
IKsPropertySet
,
*
LPKSPROPERTYSET
;
typedef
struct
IKsPropertySet
*
LPKSPROPERTYSET
;
DEFINE_GUID
(
IID_IKsPropertySet
,
0x31EFAC30
,
0x515C
,
0x11D0
,
0xA9
,
0xAA
,
0x00
,
0xAA
,
0x00
,
0x61
,
0xBE
,
0x93
);
...
...
include/dxdiag.h
View file @
b8d3075d
...
...
@@ -61,42 +61,8 @@ DEFINE_GUID(IID_IDxDiagProvider, 0x9C6B4CB0, 0x23F8, 0x49CC, 0xA3, 0xED, 0x45
DEFINE_GUID
(
IID_IDxDiagContainer
,
0x7D0F462F
,
0x4064
,
0x4862
,
0xBC
,
0x7F
,
0x93
,
0x3E
,
0x50
,
0x58
,
0xC1
,
0x0F
);
/* typedef definitions */
typedef
struct
IDxDiagProvider
IDxDiagProvider
,
*
LPDXDIAGPROVIDER
,
*
PDXDIAGPROVIDER
;
typedef
struct
IDxDiagContainer
IDxDiagContainer
,
*
LPDXDIAGCONTAINER
,
*
PDXDIAGCONTAINER
;
/*****************************************************************************
* IDxDiagProvider interface
*/
#define INTERFACE IDxDiagProvider
DECLARE_INTERFACE_
(
IDxDiagProvider
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDxDiagProvider methods ***/
STDMETHOD
(
Initialize
)(
THIS_
DXDIAG_INIT_PARAMS
*
pParams
)
PURE
;
STDMETHOD
(
GetRootContainer
)(
THIS_
IDxDiagContainer
**
ppInstance
)
PURE
;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define IDxDiagProvider_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IDxDiagProvider_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IDxDiagProvider_Release(p) (p)->lpVtbl->Release(p)
/*** IDxDiagProvider methods ***/
#define IDxDiagProvider_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
#define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a)
#else
/*** IUnknown methods ***/
#define IDxDiagProvider_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
#define IDxDiagProvider_AddRef(p) (p)->AddRef()
#define IDxDiagProvider_Release(p) (p)->Release()
/*** IDxDiagProvider methods ***/
#define IDxDiagProvider_Initialize(p,a) (p)->Initialize(a)
#define IDxDiagProvider_GetRootContainer(p,a) (p)->GetRootContainer(a)
#endif
typedef
struct
IDxDiagProvider
*
LPDXDIAGPROVIDER
,
*
PDXDIAGPROVIDER
;
typedef
struct
IDxDiagContainer
*
LPDXDIAGCONTAINER
,
*
PDXDIAGCONTAINER
;
/*****************************************************************************
* IDxDiagContainer interface
...
...
@@ -148,6 +114,40 @@ DECLARE_INTERFACE_(IDxDiagContainer,IUnknown)
#define IDxDiagContainer_GetProp(p,a,b) (p)->GetProp(a,b)
#endif
/*****************************************************************************
* IDxDiagProvider interface
*/
#define INTERFACE IDxDiagProvider
DECLARE_INTERFACE_
(
IDxDiagProvider
,
IUnknown
)
{
/*** IUnknown methods ***/
STDMETHOD_
(
HRESULT
,
QueryInterface
)(
THIS_
REFIID
riid
,
void
**
ppvObject
)
PURE
;
STDMETHOD_
(
ULONG
,
AddRef
)(
THIS
)
PURE
;
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IDxDiagProvider methods ***/
STDMETHOD
(
Initialize
)(
THIS_
DXDIAG_INIT_PARAMS
*
pParams
)
PURE
;
STDMETHOD
(
GetRootContainer
)(
THIS_
IDxDiagContainer
**
ppInstance
)
PURE
;
};
#undef INTERFACE
#if !defined(__cplusplus) || defined(CINTERFACE)
/*** IUnknown methods ***/
#define IDxDiagProvider_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
#define IDxDiagProvider_AddRef(p) (p)->lpVtbl->AddRef(p)
#define IDxDiagProvider_Release(p) (p)->lpVtbl->Release(p)
/*** IDxDiagProvider methods ***/
#define IDxDiagProvider_Initialize(p,a) (p)->lpVtbl->Initialize(p,a)
#define IDxDiagProvider_GetRootContainer(p,a) (p)->lpVtbl->GetRootContainer(p,a)
#else
/*** IUnknown methods ***/
#define IDxDiagProvider_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
#define IDxDiagProvider_AddRef(p) (p)->AddRef()
#define IDxDiagProvider_Release(p) (p)->Release()
/*** IDxDiagProvider methods ***/
#define IDxDiagProvider_Initialize(p,a) (p)->Initialize(a)
#define IDxDiagProvider_GetRootContainer(p,a) (p)->GetRootContainer(a)
#endif
#ifdef __cplusplus
}
#endif
...
...
include/dxfile.h
View file @
b8d3075d
...
...
@@ -51,13 +51,13 @@ typedef struct _DXFILELOADMEMORY {
DWORD
dSize
;
}
DXFILELOADMEMORY
,
*
LPDXFILELOADMEMORY
;
typedef
struct
IDirectXFile
IDirectXFile
,
*
LPDIRECTXFILE
;
typedef
struct
IDirectXFileEnumObject
IDirectXFileEnumObject
,
*
LPDIRECTXFILEENUMOBJECT
;
typedef
struct
IDirectXFileSaveObject
IDirectXFileSaveObject
,
*
LPDIRECTXFILESAVEOBJECT
;
typedef
struct
IDirectXFileObject
IDirectXFileObject
,
*
LPDIRECTXFILEOBJECT
;
typedef
struct
IDirectXFileData
IDirectXFileData
,
*
LPDIRECTXFILEDATA
;
typedef
struct
IDirectXFileDataReference
IDirectXFileDataReference
,
*
LPDIRECTXFILEDATAREFERENCE
;
typedef
struct
IDirectXFileBinary
IDirectXFileBinary
,
*
LPDIRECTXFILEBINARY
;
typedef
struct
IDirectXFile
*
LPDIRECTXFILE
;
typedef
struct
IDirectXFileEnumObject
*
LPDIRECTXFILEENUMOBJECT
;
typedef
struct
IDirectXFileSaveObject
*
LPDIRECTXFILESAVEOBJECT
;
typedef
struct
IDirectXFileObject
*
LPDIRECTXFILEOBJECT
;
typedef
struct
IDirectXFileData
*
LPDIRECTXFILEDATA
;
typedef
struct
IDirectXFileDataReference
*
LPDIRECTXFILEDATAREFERENCE
;
typedef
struct
IDirectXFileBinary
*
LPDIRECTXFILEBINARY
;
STDAPI
DirectXFileCreate
(
LPDIRECTXFILE
*
lplpDirectXFile
);
...
...
include/mapidefs.h
View file @
b8d3075d
...
...
@@ -90,20 +90,15 @@ typedef struct IDistList IDistList;
typedef
IDistList
*
LPDISTLIST
;
typedef
struct
IMailUser
IMailUser
;
typedef
IMailUser
*
LPMAILUSER
;
typedef
struct
IMAPIAdviseSink
IMAPIAdviseSink
;
typedef
IMAPIAdviseSink
*
LPMAPIADVISESINK
;
typedef
struct
IMAPIAdviseSink
*
LPMAPIADVISESINK
;
typedef
struct
IMAPIContainer
IMAPIContainer
;
typedef
IMAPIContainer
*
LPMAPICONTAINER
;
typedef
struct
IMAPIFolder
IMAPIFolder
;
typedef
IMAPIFolder
*
LPMAPIFOLDER
;
typedef
struct
IMAPIProgress
IMAPIProgress
;
typedef
IMAPIProgress
*
LPMAPIPROGRESS
;
typedef
struct
IMAPIProp
IMAPIProp
;
typedef
IMAPIProp
*
LPMAPIPROP
;
typedef
struct
IMAPIStatus
IMAPIStatus
;
typedef
IMAPIStatus
*
LPMAPISTATUS
;
typedef
struct
IMAPITable
IMAPITable
;
typedef
IMAPITable
*
LPMAPITABLE
;
typedef
struct
IMessage
IMessage
;
typedef
IMessage
*
LPMESSAGE
;
typedef
struct
IMsgStore
IMsgStore
;
...
...
@@ -840,6 +835,8 @@ DECLARE_INTERFACE_(IMAPITable,IUnknown)
#define IMAPITable_SetCollapseState(p,a,b,c,d) (p)->lpVtbl->SetCollapseState(p,a,b,c,d)
#endif
typedef
IMAPITable
*
LPMAPITABLE
;
/*****************************************************************************
* IMAPIAdviseSink interface
*/
...
...
@@ -912,6 +909,8 @@ DECLARE_INTERFACE_(IMAPIProp,IUnknown)
#define IMAPIProp_GetIDsFromNames(p,a,b,c,d) (p)->lpVtbl->GetIDsFromNames(p,a,b,c,d)
#endif
typedef
IMAPIProp
*
LPMAPIPROP
;
typedef
struct
{
ULONG
cb
;
...
...
include/mapiutil.h
View file @
b8d3075d
...
...
@@ -46,8 +46,7 @@ HRESULT WINAPI OpenStreamOnFile(LPALLOCATEBUFFER,LPFREEBUFFER,
BOOL
WINAPI
FEqualNames
(
LPMAPINAMEID
,
LPMAPINAMEID
);
typedef
struct
IPropData
IPropData
;
typedef
IPropData
*
LPPROPDATA
;
typedef
struct
IPropData
*
LPPROPDATA
;
#define IPROP_READONLY 0x00001U
#define IPROP_READWRITE 0x00002U
...
...
@@ -113,8 +112,7 @@ typedef DISPATCHNOTIFICATIONS *LPDISPATCHNOTIFICATIONS;
typedef
SCODE
(
WINAPI
CREATECONVERSATIONINDEX
)(
ULONG
,
LPBYTE
,
ULONG
*
,
LPBYTE
*
);
typedef
CREATECONVERSATIONINDEX
*
LPCREATECONVERSATIONINDEX
;
typedef
struct
ITableData
ITableData
;
typedef
ITableData
*
LPTABLEDATA
;
typedef
struct
ITableData
*
LPTABLEDATA
;
typedef
void
(
WINAPI
CALLERRELEASE
)(
ULONG
,
LPTABLEDATA
,
LPMAPITABLE
);
...
...
include/mapix.h
View file @
b8d3075d
...
...
@@ -40,8 +40,7 @@ typedef struct IProfAdmin IProfAdmin;
typedef
IProfAdmin
*
LPPROFADMIN
;
typedef
struct
IMsgServiceAdmin
IMsgServiceAdmin
;
typedef
IMsgServiceAdmin
*
LPSERVICEADMIN
;
typedef
struct
IMAPISession
IMAPISession
;
typedef
IMAPISession
*
LPMAPISESSION
;
typedef
struct
IMAPISession
*
LPMAPISESSION
;
typedef
unsigned
long
FLAGS
;
...
...
include/objbase.h
View file @
b8d3075d
...
...
@@ -250,14 +250,14 @@
#undef CONST_VTBL
#define CONST_VTBL const
#define DECLARE_INTERFACE(iface) \
/*typedef*/
interface iface { const struct iface##Vtbl *lpVtbl; }
/*iface*/
; \
typedef interface iface { const struct iface##Vtbl *lpVtbl; } iface
; \
typedef struct iface##Vtbl iface##Vtbl; \
struct iface##Vtbl
#else
#undef CONST_VTBL
#define CONST_VTBL
#define DECLARE_INTERFACE(iface) \
/*typedef*/
interface iface { struct iface##Vtbl *lpVtbl; }
/*iface*/
; \
typedef interface iface { struct iface##Vtbl *lpVtbl; } iface
; \
typedef struct iface##Vtbl iface##Vtbl; \
struct iface##Vtbl
#endif
...
...
include/objsel.h
View file @
b8d3075d
...
...
@@ -149,7 +149,6 @@ typedef struct _DS_SELECTION_LIST
/*****************************************************************************
* IDsObjectPicker interface
*/
typedef
struct
IDsObjectPicker
IDsObjectPicker
;
#define INTERFACE IDsObjectPicker
DECLARE_INTERFACE_
(
IDsObjectPicker
,
IUnknown
)
{
...
...
include/oledlg.h
View file @
b8d3075d
...
...
@@ -30,14 +30,14 @@ extern "C" {
#endif
typedef
struct
IOleUILinkContainerA
IOleUILinkContainerA
,
*
POLEUILINKCONTAINERA
,
*
LPOLEUILINKCONTAINERA
;
typedef
struct
IOleUILinkContainerW
IOleUILinkContainerW
,
*
POLEUILINKCONTAINERW
,
*
LPOLEUILINKCONTAINERW
;
typedef
struct
IOleUILinkContainerA
*
POLEUILINKCONTAINERA
,
*
LPOLEUILINKCONTAINERA
;
typedef
struct
IOleUILinkContainerW
*
POLEUILINKCONTAINERW
,
*
LPOLEUILINKCONTAINERW
;
typedef
struct
IOleUILinkInfoA
IOleUILinkInfoA
,
*
POLEUILINKINFOA
,
*
LPOLEUILINKINFOA
;
typedef
struct
IOleUILinkInfoW
IOleUILinkInfoW
,
*
POLEUILINKINFOW
,
*
LPOLEUILINKINFOW
;
typedef
struct
IOleUILinkInfoA
*
POLEUILINKINFOA
,
*
LPOLEUILINKINFOA
;
typedef
struct
IOleUILinkInfoW
*
POLEUILINKINFOW
,
*
LPOLEUILINKINFOW
;
typedef
struct
IOleUIObjInfoA
IOleUIObjInfoA
,
*
POLEUIOBJINFOA
,
*
LPOLEUIOBJINFOA
;
typedef
struct
IOleUIObjInfoW
IOleUIObjInfoW
,
*
POLEUIOBJINFOW
,
*
LPOLEUIOBJINFOW
;
typedef
struct
IOleUIObjInfoA
*
POLEUIOBJINFOA
,
*
LPOLEUIOBJINFOA
;
typedef
struct
IOleUIObjInfoW
*
POLEUIOBJINFOW
,
*
LPOLEUIOBJINFOW
;
#define IDC_OLEUIHELP 99
...
...
include/shlobj.h
View file @
b8d3075d
...
...
@@ -84,14 +84,6 @@ BOOL WINAPI SHObjectProperties(HWND,DWORD,LPCWSTR,LPCWSTR);
int
WINAPI
PathCleanupSpec
(
LPCWSTR
,
LPWSTR
);
/*****************************************************************************
* Predeclare interfaces
*/
typedef
struct
IShellIcon
IShellIcon
,
*
LPSHELLICON
;
typedef
struct
IQueryInfo
IQueryInfo
;
typedef
struct
IInputObject
IInputObject
;
typedef
struct
IInputObjectSite
IInputObjectSite
;
/*****************************************************************************
* IContextMenu interface
*/
...
...
@@ -229,6 +221,8 @@ DECLARE_INTERFACE_(IShellIcon,IUnknown)
#define IShellIcon_GetIconOf(p,a,b,c) (p)->lpVtbl->GetIconOf(p,a,b,c)
#endif
typedef
IShellIcon
*
LPSHELLICON
;
/* IQueryInfo interface */
#define INTERFACE IQueryInfo
DECLARE_INTERFACE_
(
IQueryInfo
,
IUnknown
)
...
...
include/shlwapi.h
View file @
b8d3075d
...
...
@@ -242,7 +242,7 @@ typedef enum
ASSOCENUM_NONE
}
ASSOCENUM
;
typedef
struct
IQueryAssociations
IQueryAssociations
,
*
LPQUERYASSOCIATIONS
;
typedef
struct
IQueryAssociations
*
LPQUERYASSOCIATIONS
;
#define INTERFACE IQueryAssociations
DECLARE_INTERFACE_
(
IQueryAssociations
,
IUnknown
)
...
...
include/vfw.h
View file @
b8d3075d
...
...
@@ -35,11 +35,10 @@ typedef HANDLE HDRAWDIB;
/*****************************************************************************
* Predeclare the interfaces
*/
typedef
struct
IAVIStream
IAVIStream
,
*
PAVISTREAM
;
typedef
struct
IAVIFile
IAVIFile
,
*
PAVIFILE
;
typedef
struct
IGetFrame
IGetFrame
,
*
PGETFRAME
;
typedef
struct
IAVIEditStream
IAVIEditStream
,
*
PAVIEDITSTREAM
;
typedef
struct
IAVIStreaming
IAVIStreaming
;
typedef
struct
IAVIStream
*
PAVISTREAM
;
typedef
struct
IAVIFile
*
PAVIFILE
;
typedef
struct
IGetFrame
*
PGETFRAME
;
typedef
struct
IAVIEditStream
*
PAVIEDITSTREAM
;
/* Installable Compressor Manager */
...
...
include/wine/wined3d_interface.h
View file @
b8d3075d
...
...
@@ -42,6 +42,24 @@
* Predeclare the interfaces
*/
struct
IWineD3D
;
struct
IWineD3DDevice
;
struct
IWineD3DResource
;
struct
IWineD3DVertexBuffer
;
struct
IWineD3DIndexBuffer
;
struct
IWineD3DBaseTexture
;
struct
IWineD3DTexture
;
struct
IWineD3DCubeTexture
;
struct
IWineD3DVolumeTexture
;
struct
IWineD3DStateBlock
;
struct
IWineD3DSurface
;
struct
IWineD3DVolume
;
struct
IWineD3DVertexDeclaration
;
struct
IWineD3DVertexShader
;
struct
IWineD3DPixelShader
;
struct
IWineD3DQuery
;
struct
IWineD3DSwapChain
;
/* {108F9C44-6F30-11d9-C687-00046142C14F} */
DEFINE_GUID
(
IID_IWineD3D
,
...
...
@@ -135,24 +153,6 @@ DEFINE_GUID(IID_IWineD3DQuery,
#endif
typedef
struct
IWineD3D
IWineD3D
;
typedef
struct
IWineD3DDevice
IWineD3DDevice
;
typedef
struct
IWineD3DResource
IWineD3DResource
;
typedef
struct
IWineD3DVertexBuffer
IWineD3DVertexBuffer
;
typedef
struct
IWineD3DIndexBuffer
IWineD3DIndexBuffer
;
typedef
struct
IWineD3DBaseTexture
IWineD3DBaseTexture
;
typedef
struct
IWineD3DTexture
IWineD3DTexture
;
typedef
struct
IWineD3DCubeTexture
IWineD3DCubeTexture
;
typedef
struct
IWineD3DVolumeTexture
IWineD3DVolumeTexture
;
typedef
struct
IWineD3DStateBlock
IWineD3DStateBlock
;
typedef
struct
IWineD3DSurface
IWineD3DSurface
;
typedef
struct
IWineD3DVolume
IWineD3DVolume
;
typedef
struct
IWineD3DVertexDeclaration
IWineD3DVertexDeclaration
;
typedef
struct
IWineD3DVertexShader
IWineD3DVertexShader
;
typedef
struct
IWineD3DPixelShader
IWineD3DPixelShader
;
typedef
struct
IWineD3DQuery
IWineD3DQuery
;
typedef
struct
IWineD3DSwapChain
IWineD3DSwapChain
;
/*****************************************************************************
* Callback functions required for predefining surfaces / stencils
*/
...
...
@@ -163,7 +163,7 @@ typedef HRESULT WINAPI (*D3DCB_CREATERENDERTARGETFN) (IUnknown *pDevice,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
BOOL
Lockable
,
IWineD3DSurface
**
ppSurface
,
struct
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
);
typedef
HRESULT
WINAPI
(
*
D3DCB_CREATESURFACEFN
)
(
IUnknown
*
pDevice
,
...
...
@@ -173,7 +173,7 @@ typedef HRESULT WINAPI (*D3DCB_CREATESURFACEFN) (IUnknown *pDevice,
DWORD
Usage
,
D3DPOOL
Pool
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
struct
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
);
typedef
HRESULT
WINAPI
(
*
D3DCB_CREATEDEPTHSTENCILSURFACEFN
)
(
IUnknown
*
pDevice
,
...
...
@@ -183,7 +183,7 @@ typedef HRESULT WINAPI (*D3DCB_CREATEDEPTHSTENCILSURFACEFN) (IUnknown *pDevice,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
BOOL
Discard
,
IWineD3DSurface
**
ppSurface
,
struct
IWineD3DSurface
**
ppSurface
,
HANDLE
*
pSharedHandle
);
...
...
@@ -194,12 +194,12 @@ typedef HRESULT WINAPI (*D3DCB_CREATEVOLUMEFN) (IUnknown *pDevice,
WINED3DFORMAT
Format
,
D3DPOOL
Pool
,
DWORD
Usage
,
IWineD3DVolume
**
ppVolume
,
struct
IWineD3DVolume
**
ppVolume
,
HANDLE
*
pSharedHandle
);
typedef
HRESULT
WINAPI
(
*
D3DCB_CREATEADDITIONALSWAPCHAIN
)
(
IUnknown
*
pDevice
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IWineD3DSwapChain
**
pSwapChain
struct
IWineD3DSwapChain
**
pSwapChain
);
/*****************************************************************************
...
...
@@ -228,7 +228,7 @@ DECLARE_INTERFACE_(IWineD3D,IUnknown)
STDMETHOD
(
CheckDeviceFormat
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
WINED3DFORMAT
AdapterFormat
,
DWORD
Usage
,
D3DRESOURCETYPE
RType
,
WINED3DFORMAT
CheckFormat
)
PURE
;
STDMETHOD
(
CheckDeviceFormatConversion
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
WINED3DFORMAT
SourceFormat
,
WINED3DFORMAT
TargetFormat
)
PURE
;
STDMETHOD
(
GetDeviceCaps
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
WINED3DCAPS
*
pCaps
)
PURE
;
STDMETHOD
(
CreateDevice
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviorFlags
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IWineD3DDevice
**
ppReturnedDeviceInterface
,
IUnknown
*
parent
,
D3DCB_CREATEADDITIONALSWAPCHAIN
pFn3
)
PURE
;
STDMETHOD
(
CreateDevice
)(
THIS_
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviorFlags
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
struct
IWineD3DDevice
**
ppReturnedDeviceInterface
,
IUnknown
*
parent
,
D3DCB_CREATEADDITIONALSWAPCHAIN
pFn3
)
PURE
;
};
#undef INTERFACE
...
...
@@ -271,32 +271,32 @@ DECLARE_INTERFACE_(IWineD3DDevice,IUnknown)
STDMETHOD_
(
ULONG
,
Release
)(
THIS
)
PURE
;
/*** IWineD3DDevice methods ***/
STDMETHOD
(
GetParent
)(
THIS_
IUnknown
**
pParent
)
PURE
;
STDMETHOD
(
CreateVertexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
DWORD
FVF
,
D3DPOOL
Pool
,
IWineD3DVertexBuffer
**
ppVertexBuffer
,
HANDLE
*
sharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateIndexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
D3DPOOL
Pool
,
IWineD3DIndexBuffer
**
ppIndexBuffer
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateStateBlock
)(
THIS_
D3DSTATEBLOCKTYPE
Type
,
IWineD3DStateBlock
**
ppStateBlock
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
IWineD3DSurface
**
ppSurface
,
D3DRESOURCETYPE
Type
,
DWORD
Usage
,
D3DPOOL
Pool
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
D3DPOOL
Pool
,
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
,
D3DPOOL
Pool
,
IWineD3DVolumeTexture
**
ppVolumeTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
,
D3DCB_CREATEVOLUMEFN
pFn
)
PURE
;
STDMETHOD
(
CreateVolume
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Depth
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
D3DPOOL
Pool
,
IWineD3DVolume
**
ppVolumeTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateCubeTexture
)(
THIS_
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
D3DPOOL
Pool
,
IWineD3DCubeTexture
**
ppCubeTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
,
D3DCB_CREATESURFACEFN
pFn
)
PURE
;
STDMETHOD
(
CreateQuery
)(
THIS_
WINED3DQUERYTYPE
Type
,
IWineD3DQuery
**
ppQuery
,
IUnknown
*
pParent
);
STDMETHOD
(
CreateAdditionalSwapChain
)(
THIS_
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IWineD3DSwapChain
**
pSwapChain
,
IUnknown
*
pParent
,
D3DCB_CREATERENDERTARGETFN
pFn
,
D3DCB_CREATEDEPTHSTENCILSURFACEFN
pFn2
);
STDMETHOD
(
CreateVertexDeclaration
)(
THIS_
CONST
VOID
*
pDeclaration
,
IWineD3DVertexDeclaration
**
ppDecl
,
IUnknown
*
pParent
)
PURE
;
STDMETHOD
(
CreateVertexShader
)(
THIS_
CONST
DWORD
*
pFunction
,
IWineD3DVertexShader
**
ppShader
,
IUnknown
*
pParent
)
PURE
;
STDMETHOD
(
CreatePixelShader
)(
THIS_
CONST
DWORD
*
pFunction
,
IWineD3DPixelShader
**
ppShader
,
IUnknown
*
pParent
)
PURE
;
STDMETHOD
(
CreateVertexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
DWORD
FVF
,
D3DPOOL
Pool
,
struct
IWineD3DVertexBuffer
**
ppVertexBuffer
,
HANDLE
*
sharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateIndexBuffer
)(
THIS_
UINT
Length
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
D3DPOOL
Pool
,
struct
IWineD3DIndexBuffer
**
ppIndexBuffer
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateStateBlock
)(
THIS_
D3DSTATEBLOCKTYPE
Type
,
struct
IWineD3DStateBlock
**
ppStateBlock
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateSurface
)(
THIS_
UINT
Width
,
UINT
Height
,
WINED3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
struct
IWineD3DSurface
**
ppSurface
,
D3DRESOURCETYPE
Type
,
DWORD
Usage
,
D3DPOOL
Pool
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateTexture
)(
THIS_
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
D3DPOOL
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
,
D3DPOOL
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
,
D3DPOOL
Pool
,
struct
IWineD3DVolume
**
ppVolumeTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
)
PURE
;
STDMETHOD
(
CreateCubeTexture
)(
THIS_
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
WINED3DFORMAT
Format
,
D3DPOOL
Pool
,
struct
IWineD3DCubeTexture
**
ppCubeTexture
,
HANDLE
*
pSharedHandle
,
IUnknown
*
parent
,
D3DCB_CREATESURFACEFN
pFn
)
PURE
;
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
);
STDMETHOD
(
CreateVertexDeclaration
)(
THIS_
CONST
VOID
*
pDeclaration
,
struct
IWineD3DVertexDeclaration
**
ppDecl
,
IUnknown
*
pParent
)
PURE
;
STDMETHOD
(
CreateVertexShader
)(
THIS_
CONST
DWORD
*
pFunction
,
struct
IWineD3DVertexShader
**
ppShader
,
IUnknown
*
pParent
)
PURE
;
STDMETHOD
(
CreatePixelShader
)(
THIS_
CONST
DWORD
*
pFunction
,
struct
IWineD3DPixelShader
**
ppShader
,
IUnknown
*
pParent
)
PURE
;
STDMETHOD
(
EvictManagedResources
)(
THIS
)
PURE
;
STDMETHOD_
(
UINT
,
GetAvailableTextureMem
)(
THIS
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iSwapChain
,
UINT
BackBuffer
,
D3DBACKBUFFER_TYPE
,
IWineD3DSurface
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetBackBuffer
)(
THIS_
UINT
iSwapChain
,
UINT
BackBuffer
,
D3DBACKBUFFER_TYPE
,
struct
IWineD3DSurface
**
ppBackBuffer
)
PURE
;
STDMETHOD
(
GetCreationParameters
)(
THIS_
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
PURE
;
STDMETHOD
(
GetDeviceCaps
)(
THIS_
WINED3DCAPS
*
pCaps
)
PURE
;
STDMETHOD
(
GetDirect3D
)(
THIS_
IWineD3D
**
ppD3D
)
PURE
;
STDMETHOD
(
GetDisplayMode
)(
THIS_
UINT
iSwapChain
,
D3DDISPLAYMODE
*
pMode
)
PURE
;
STDMETHOD_
(
UINT
,
GetNumberOfSwapChains
)(
THIS
)
PURE
;
STDMETHOD
(
GetRasterStatus
)(
THIS_
UINT
iSwapChain
,
D3DRASTER_STATUS
*
pRasterStatus
)
PURE
;
STDMETHOD
(
GetSwapChain
)(
THIS_
UINT
iSwapChain
,
IWineD3DSwapChain
**
pSwapChain
)
PURE
;
STDMETHOD
(
GetSwapChain
)(
THIS_
UINT
iSwapChain
,
struct
IWineD3DSwapChain
**
pSwapChain
)
PURE
;
STDMETHOD
(
Reset
)(
THIS_
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
)
PURE
;
STDMETHOD
(
SetDialogBoxMode
)(
THIS_
BOOL
bEnableDialogs
)
PURE
;
STDMETHOD
(
SetCursorProperties
)(
THIS_
UINT
XHotSpot
,
UINT
YHotSpot
,
IWineD3DSurface
*
pCursorBitmap
)
PURE
;
STDMETHOD
(
SetCursorProperties
)(
THIS_
UINT
XHotSpot
,
UINT
YHotSpot
,
struct
IWineD3DSurface
*
pCursorBitmap
)
PURE
;
STDMETHOD_
(
void
,
SetCursorPosition
)(
THIS_
int
XScreenSpace
,
int
YScreenSpace
,
DWORD
Flags
)
PURE
;
STDMETHOD_
(
BOOL
,
ShowCursor
)(
THIS_
BOOL
bShow
)
PURE
;
STDMETHOD
(
TestCooperativeLevel
)(
THIS
)
PURE
;
...
...
@@ -306,14 +306,14 @@ DECLARE_INTERFACE_(IWineD3DDevice,IUnknown)
STDMETHOD
(
GetClipStatus
)(
THIS_
WINED3DCLIPSTATUS
*
pClipStatus
)
PURE
;
STDMETHOD
(
SetCurrentTexturePalette
)(
THIS_
UINT
PaletteNumber
)
PURE
;
STDMETHOD
(
GetCurrentTexturePalette
)(
THIS_
UINT
*
PaletteNumber
)
PURE
;
STDMETHOD
(
SetDepthStencilSurface
)(
THIS_
IWineD3DSurface
*
pNewZStencil
)
PURE
;
STDMETHOD
(
GetDepthStencilSurface
)(
THIS_
IWineD3DSurface
**
ppZStencilSurface
)
PURE
;
STDMETHOD
(
SetDepthStencilSurface
)(
THIS_
struct
IWineD3DSurface
*
pNewZStencil
)
PURE
;
STDMETHOD
(
GetDepthStencilSurface
)(
THIS_
struct
IWineD3DSurface
**
ppZStencilSurface
)
PURE
;
STDMETHOD
(
SetFVF
)(
THIS_
DWORD
fvf
)
PURE
;
STDMETHOD
(
GetFVF
)(
THIS_
DWORD
*
pfvf
)
PURE
;
STDMETHOD_
(
void
,
SetGammaRamp
)(
THIS_
UINT
iSwapChain
,
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD_
(
void
,
GetGammaRamp
)(
THIS_
UINT
iSwapChain
,
D3DGAMMARAMP
*
pRamp
)
PURE
;
STDMETHOD
(
SetIndices
)(
THIS_
IWineD3DIndexBuffer
*
pIndexData
,
UINT
BaseVertexIndex
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
IWineD3DIndexBuffer
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
PURE
;
STDMETHOD
(
SetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
*
pIndexData
,
UINT
BaseVertexIndex
)
PURE
;
STDMETHOD
(
GetIndices
)(
THIS_
struct
IWineD3DIndexBuffer
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
PURE
;
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
;
...
...
@@ -324,8 +324,8 @@ DECLARE_INTERFACE_(IWineD3DDevice,IUnknown)
STDMETHOD_
(
float
,
GetNPatchMode
)(
THIS
)
PURE
;
STDMETHOD
(
SetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
CONST
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
GetPaletteEntries
)(
THIS_
UINT
PaletteNumber
,
PALETTEENTRY
*
pEntries
)
PURE
;
STDMETHOD
(
SetPixelShader
)(
THIS_
IWineD3DPixelShader
*
pShader
)
PURE
;
STDMETHOD
(
GetPixelShader
)(
THIS_
IWineD3DPixelShader
**
ppShader
)
PURE
;
STDMETHOD
(
SetPixelShader
)(
THIS_
struct
IWineD3DPixelShader
*
pShader
)
PURE
;
STDMETHOD
(
GetPixelShader
)(
THIS_
struct
IWineD3DPixelShader
**
ppShader
)
PURE
;
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
;
...
...
@@ -334,28 +334,28 @@ DECLARE_INTERFACE_(IWineD3DDevice,IUnknown)
STDMETHOD
(
GetPixelShaderConstantF
)(
THIS_
UINT
StartRegister
,
float
*
pConstantData
,
UINT
Vector4fCount
)
PURE
;
STDMETHOD
(
SetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
PURE
;
STDMETHOD
(
GetRenderState
)(
THIS_
D3DRENDERSTATETYPE
State
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
SetRenderTarget
)(
THIS_
DWORD
RenderTargetIndex
,
IWineD3DSurface
*
pRenderTarget
)
PURE
;
STDMETHOD
(
GetRenderTarget
)(
THIS_
DWORD
RenderTargetIndex
,
IWineD3DSurface
**
ppRenderTarget
)
PURE
;
STDMETHOD
(
SetRenderTarget
)(
THIS_
DWORD
RenderTargetIndex
,
struct
IWineD3DSurface
*
pRenderTarget
)
PURE
;
STDMETHOD
(
GetRenderTarget
)(
THIS_
DWORD
RenderTargetIndex
,
struct
IWineD3DSurface
**
ppRenderTarget
)
PURE
;
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
;
STDMETHOD
(
SetStreamSource
)(
THIS_
UINT
StreamNumber
,
IWineD3DVertexBuffer
*
pStreamData
,
UINT
Offset
,
UINT
Stride
)
PURE
;
STDMETHOD
(
GetStreamSource
)(
THIS_
UINT
StreamNumber
,
IWineD3DVertexBuffer
**
ppStreamData
,
UINT
*
pOffset
,
UINT
*
pStride
)
PURE
;
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
;
STDMETHOD
(
SetStreamSourceFreq
)(
THIS_
UINT
StreamNumber
,
UINT
Divider
)
PURE
;
STDMETHOD
(
GetStreamSourceFreq
)(
THIS_
UINT
StreamNumber
,
UINT
*
Divider
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
DWORD
Stage
,
IWineD3DBaseTexture
*
pTexture
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
DWORD
Stage
,
IWineD3DBaseTexture
**
ppTexture
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
DWORD
Stage
,
struct
IWineD3DBaseTexture
*
pTexture
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
DWORD
Stage
,
struct
IWineD3DBaseTexture
**
ppTexture
)
PURE
;
STDMETHOD
(
SetTextureStageState
)(
THIS_
DWORD
Stage
,
WINED3DTEXTURESTAGESTATETYPE
Type
,
DWORD
Value
)
PURE
;
STDMETHOD
(
GetTextureStageState
)(
THIS_
DWORD
Stage
,
WINED3DTEXTURESTAGESTATETYPE
Type
,
DWORD
*
pValue
)
PURE
;
STDMETHOD
(
SetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
GetTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
SetVertexDeclaration
)(
THIS_
IWineD3DVertexDeclaration
*
pDecl
)
PURE
;
STDMETHOD
(
GetVertexDeclaration
)(
THIS_
IWineD3DVertexDeclaration
**
ppDecl
)
PURE
;
STDMETHOD
(
SetVertexShader
)(
THIS_
IWineD3DVertexShader
*
pShader
)
PURE
;
STDMETHOD
(
GetVertexShader
)(
THIS_
IWineD3DVertexShader
**
ppShader
)
PURE
;
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
;
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
;
...
...
@@ -366,9 +366,9 @@ DECLARE_INTERFACE_(IWineD3DDevice,IUnknown)
STDMETHOD
(
GetViewport
)(
THIS_
WINED3DVIEWPORT
*
pViewport
)
PURE
;
STDMETHOD
(
MultiplyTransform
)(
THIS_
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
PURE
;
STDMETHOD
(
ValidateDevice
)(
THIS_
DWORD
*
pNumPasses
)
PURE
;
STDMETHOD
(
ProcessVertices
)(
THIS_
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IWineD3DVertexBuffer
*
pDestBuffer
,
IWineD3DVertexBuffer
*
pVertexDecl
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
ProcessVertices
)(
THIS_
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
struct
IWineD3DVertexBuffer
*
pDestBuffer
,
struct
IWineD3DVertexBuffer
*
pVertexDecl
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
BeginStateBlock
)(
THIS
)
PURE
;
STDMETHOD
(
EndStateBlock
)(
THIS_
IWineD3DStateBlock
**
ppStateBlock
)
PURE
;
STDMETHOD
(
EndStateBlock
)(
THIS_
struct
IWineD3DStateBlock
**
ppStateBlock
)
PURE
;
STDMETHOD
(
BeginScene
)(
THIS
)
PURE
;
STDMETHOD
(
EndScene
)(
THIS
)
PURE
;
STDMETHOD
(
Present
)(
THIS_
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
PURE
;
...
...
@@ -380,16 +380,16 @@ DECLARE_INTERFACE_(IWineD3DDevice,IUnknown)
STDMETHOD
(
DrawRectPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DRECTPATCH_INFO
*
pRectPatchInfo
)
PURE
;
STDMETHOD
(
DrawTriPatch
)(
THIS_
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DTRIPATCH_INFO
*
pTriPatchInfo
)
PURE
;
STDMETHOD
(
DeletePatch
)(
THIS_
UINT
Handle
)
PURE
;
STDMETHOD
(
ColorFill
)(
THIS_
IWineD3DSurface
*
pSurface
,
CONST
D3DRECT
*
pRect
,
D3DCOLOR
color
)
PURE
;
STDMETHOD
(
UpdateTexture
)(
THIS_
IWineD3DBaseTexture
*
pSourceTexture
,
IWineD3DBaseTexture
*
pDestinationTexture
)
PURE
;
STDMETHOD
(
UpdateSurface
)(
THIS_
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IWineD3DSurface
*
pDestinationSurface
,
CONST
POINT
*
pDestPoint
)
PURE
;
STDMETHOD
(
StretchRect
)(
THIS_
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
IWineD3DSurface
*
pDestinationSurface
,
CONST
RECT
*
pDestRect
,
D3DTEXTUREFILTERTYPE
Filter
)
PURE
;
STDMETHOD
(
GetRenderTargetData
)(
THIS_
IWineD3DSurface
*
pRenderTarget
,
IWineD3DSurface
*
pSurface
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
UINT
iSwapChain
,
IWineD3DSurface
*
pSurface
)
PURE
;
STDMETHOD
(
ColorFill
)(
THIS_
struct
IWineD3DSurface
*
pSurface
,
CONST
D3DRECT
*
pRect
,
D3DCOLOR
color
)
PURE
;
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
(
StretchRect
)(
THIS_
struct
IWineD3DSurface
*
pSourceSurface
,
CONST
RECT
*
pSourceRect
,
struct
IWineD3DSurface
*
pDestinationSurface
,
CONST
RECT
*
pDestRect
,
D3DTEXTUREFILTERTYPE
Filter
)
PURE
;
STDMETHOD
(
GetRenderTargetData
)(
THIS_
struct
IWineD3DSurface
*
pRenderTarget
,
struct
IWineD3DSurface
*
pSurface
)
PURE
;
STDMETHOD
(
GetFrontBufferData
)(
THIS_
UINT
iSwapChain
,
struct
IWineD3DSurface
*
pSurface
)
PURE
;
/*** Internal use IWineD3Device methods ***/
STDMETHOD_
(
void
,
SetupTextureStates
)(
THIS_
DWORD
Stage
,
DWORD
Flags
);
/*** object tracking ***/
STDMETHOD_
(
void
,
ResourceReleased
)(
THIS_
IWineD3DResource
*
resource
);
STDMETHOD_
(
void
,
ResourceReleased
)(
THIS_
struct
IWineD3DResource
*
resource
);
};
#undef INTERFACE
...
...
@@ -757,7 +757,7 @@ DECLARE_INTERFACE_(IWineD3DTexture,IWineD3DBaseTexture)
STDMETHOD_
(
UINT
,
GetTextureDimensions
)(
THIS
)
PURE
;
/*** IWineD3DTexture methods ***/
STDMETHOD
(
GetLevelDesc
)(
THIS_
UINT
Level
,
WINED3DSURFACE_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
GetSurfaceLevel
)(
THIS_
UINT
Level
,
IWineD3DSurface
**
ppSurfaceLevel
)
PURE
;
STDMETHOD
(
GetSurfaceLevel
)(
THIS_
UINT
Level
,
struct
IWineD3DSurface
**
ppSurfaceLevel
)
PURE
;
STDMETHOD
(
LockRect
)(
THIS_
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockRect
)(
THIS_
UINT
Level
)
PURE
;
STDMETHOD
(
AddDirtyRect
)(
THIS_
CONST
RECT
*
pDirtyRect
)
PURE
;
...
...
@@ -833,7 +833,7 @@ DECLARE_INTERFACE_(IWineD3DCubeTexture,IWineD3DBaseTexture)
STDMETHOD_
(
UINT
,
GetTextureDimensions
)(
THIS
)
PURE
;
/*** IWineD3DCubeTexture methods ***/
STDMETHOD
(
GetLevelDesc
)(
THIS_
UINT
Level
,
WINED3DSURFACE_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
GetCubeMapSurface
)(
THIS_
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
IWineD3DSurface
**
ppCubeMapSurface
)
PURE
;
STDMETHOD
(
GetCubeMapSurface
)(
THIS_
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
struct
IWineD3DSurface
**
ppCubeMapSurface
)
PURE
;
STDMETHOD
(
LockRect
)(
THIS_
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockRect
)(
THIS_
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
)
PURE
;
STDMETHOD
(
AddDirtyRect
)(
THIS_
D3DCUBEMAP_FACES
FaceType
,
CONST
RECT
*
pDirtyRect
)
PURE
;
...
...
@@ -910,7 +910,7 @@ DECLARE_INTERFACE_(IWineD3DVolumeTexture,IWineD3DBaseTexture)
STDMETHOD_
(
UINT
,
GetTextureDimensions
)(
THIS
)
PURE
;
/*** IWineD3DVolumeTexture methods ***/
STDMETHOD
(
GetLevelDesc
)(
THIS_
UINT
Level
,
WINED3DVOLUME_DESC
*
pDesc
)
PURE
;
STDMETHOD
(
GetVolumeLevel
)(
THIS_
UINT
Level
,
IWineD3DVolume
**
ppVolumeLevel
)
PURE
;
STDMETHOD
(
GetVolumeLevel
)(
THIS_
UINT
Level
,
struct
IWineD3DVolume
**
ppVolumeLevel
)
PURE
;
STDMETHOD
(
LockBox
)(
THIS_
UINT
Level
,
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
PURE
;
STDMETHOD
(
UnlockBox
)(
THIS_
UINT
Level
)
PURE
;
STDMETHOD
(
AddDirtyBox
)(
THIS_
CONST
D3DBOX
*
pDirtyBox
)
PURE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment