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
c3bd09e5
Commit
c3bd09e5
authored
Jun 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Make the virtual table functions static where possible.
parent
02731de4
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
268 additions
and
273 deletions
+268
-273
basetexture.c
dlls/d3d8/basetexture.c
+14
-14
cubetexture.c
dlls/d3d8/cubetexture.c
+19
-19
d3d8_private.h
dlls/d3d8/d3d8_private.h
+0
-5
device.c
dlls/d3d8/device.c
+98
-98
directx.c
dlls/d3d8/directx.c
+17
-17
indexbuffer.c
dlls/d3d8/indexbuffer.c
+14
-14
pixelshader.c
dlls/d3d8/pixelshader.c
+5
-5
resource.c
dlls/d3d8/resource.c
+10
-10
stateblock.c
dlls/d3d8/stateblock.c
+6
-6
surface.c
dlls/d3d8/surface.c
+11
-11
swapchain.c
dlls/d3d8/swapchain.c
+5
-5
texture.c
dlls/d3d8/texture.c
+19
-19
vertexbuffer.c
dlls/d3d8/vertexbuffer.c
+14
-14
vertexshader.c
dlls/d3d8/vertexshader.c
+5
-5
volume.c
dlls/d3d8/volume.c
+12
-12
volumetexture.c
dlls/d3d8/volumetexture.c
+19
-19
No files found.
dlls/d3d8/basetexture.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DBaseTexture8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_QueryInterface
(
LPDIRECT3DBASETEXTURE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_QueryInterface
(
LPDIRECT3DBASETEXTURE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -41,7 +41,7 @@ HRESULT WINAPI IDirect3DBaseTexture8Impl_QueryInterface(LPDIRECT3DBASETEXTURE8 i
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DBaseTexture8Impl_AddRef
(
LPDIRECT3DBASETEXTURE8
iface
)
{
static
ULONG
WINAPI
IDirect3DBaseTexture8Impl_AddRef
(
LPDIRECT3DBASETEXTURE8
iface
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -50,7 +50,7 @@ ULONG WINAPI IDirect3DBaseTexture8Impl_AddRef(LPDIRECT3DBASETEXTURE8 iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DBaseTexture8Impl_Release
(
LPDIRECT3DBASETEXTURE8
iface
)
{
static
ULONG
WINAPI
IDirect3DBaseTexture8Impl_Release
(
LPDIRECT3DBASETEXTURE8
iface
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -65,49 +65,49 @@ ULONG WINAPI IDirect3DBaseTexture8Impl_Release(LPDIRECT3DBASETEXTURE8 iface) {
}
/* IDirect3DBaseTexture8 IDirect3DResource8 Interface follow: */
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_GetDevice
(
LPDIRECT3DBASETEXTURE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_GetDevice
(
LPDIRECT3DBASETEXTURE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IDirect3DResource8Impl_GetDevice
((
LPDIRECT3DRESOURCE8
)
This
,
ppDevice
);
}
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_SetPrivateData
(
LPDIRECT3DBASETEXTURE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_SetPrivateData
(
LPDIRECT3DBASETEXTURE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DBaseTexture_SetPrivateData
(
This
->
wineD3DBaseTexture
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_GetPrivateData
(
LPDIRECT3DBASETEXTURE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_GetPrivateData
(
LPDIRECT3DBASETEXTURE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DBaseTexture_GetPrivateData
(
This
->
wineD3DBaseTexture
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_FreePrivateData
(
LPDIRECT3DBASETEXTURE8
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IDirect3DBaseTexture8Impl_FreePrivateData
(
LPDIRECT3DBASETEXTURE8
iface
,
REFGUID
refguid
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DBaseTexture_FreePrivateData
(
This
->
wineD3DBaseTexture
,
refguid
);
}
DWORD
WINAPI
IDirect3DBaseTexture8Impl_SetPriority
(
LPDIRECT3DBASETEXTURE8
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IDirect3DBaseTexture8Impl_SetPriority
(
LPDIRECT3DBASETEXTURE8
iface
,
DWORD
PriorityNew
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DBaseTexture_SetPriority
(
This
->
wineD3DBaseTexture
,
PriorityNew
);
}
DWORD
WINAPI
IDirect3DBaseTexture8Impl_GetPriority
(
LPDIRECT3DBASETEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DBaseTexture8Impl_GetPriority
(
LPDIRECT3DBASETEXTURE8
iface
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DBaseTexture_GetPriority
(
This
->
wineD3DBaseTexture
);
}
void
WINAPI
IDirect3DBaseTexture8Impl_PreLoad
(
LPDIRECT3DBASETEXTURE8
iface
)
{
static
void
WINAPI
IDirect3DBaseTexture8Impl_PreLoad
(
LPDIRECT3DBASETEXTURE8
iface
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -115,7 +115,7 @@ void WINAPI IDirect3DBaseTexture8Impl_PreLoad(LPDIRECT3DBASETEXTURE8 iface) {
return
;
}
D3DRESOURCETYPE
WINAPI
IDirect3DBaseTexture8Impl_GetType
(
LPDIRECT3DBASETEXTURE8
iface
)
{
static
D3DRESOURCETYPE
WINAPI
IDirect3DBaseTexture8Impl_GetType
(
LPDIRECT3DBASETEXTURE8
iface
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -123,21 +123,21 @@ D3DRESOURCETYPE WINAPI IDirect3DBaseTexture8Impl_GetType(LPDIRECT3DBASETEXTURE8
}
/* IDirect3DBaseTexture8 Interface follow: */
DWORD
WINAPI
IDirect3DBaseTexture8Impl_SetLOD
(
LPDIRECT3DBASETEXTURE8
iface
,
DWORD
LODNew
)
{
static
DWORD
WINAPI
IDirect3DBaseTexture8Impl_SetLOD
(
LPDIRECT3DBASETEXTURE8
iface
,
DWORD
LODNew
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DBaseTexture_SetLOD
(
This
->
wineD3DBaseTexture
,
LODNew
);
}
DWORD
WINAPI
IDirect3DBaseTexture8Impl_GetLOD
(
LPDIRECT3DBASETEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DBaseTexture8Impl_GetLOD
(
LPDIRECT3DBASETEXTURE8
iface
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DBaseTexture_GetLOD
(
This
->
wineD3DBaseTexture
);
}
DWORD
WINAPI
IDirect3DBaseTexture8Impl_GetLevelCount
(
LPDIRECT3DBASETEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DBaseTexture8Impl_GetLevelCount
(
LPDIRECT3DBASETEXTURE8
iface
)
{
IDirect3DBaseTexture8Impl
*
This
=
(
IDirect3DBaseTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
dlls/d3d8/cubetexture.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DCubeTexture8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_QueryInterface
(
LPDIRECT3DCUBETEXTURE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_QueryInterface
(
LPDIRECT3DCUBETEXTURE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IDirect3DResource8
)
...
...
@@ -40,7 +40,7 @@ HRESULT WINAPI IDirect3DCubeTexture8Impl_QueryInterface(LPDIRECT3DCUBETEXTURE8 i
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DCubeTexture8Impl_AddRef
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
static
ULONG
WINAPI
IDirect3DCubeTexture8Impl_AddRef
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -49,7 +49,7 @@ ULONG WINAPI IDirect3DCubeTexture8Impl_AddRef(LPDIRECT3DCUBETEXTURE8 iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DCubeTexture8Impl_Release
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
static
ULONG
WINAPI
IDirect3DCubeTexture8Impl_Release
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -65,75 +65,75 @@ ULONG WINAPI IDirect3DCubeTexture8Impl_Release(LPDIRECT3DCUBETEXTURE8 iface) {
}
/* IDirect3DCubeTexture8 IDirect3DResource8 Interface follow: */
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_GetDevice
(
LPDIRECT3DCUBETEXTURE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_GetDevice
(
LPDIRECT3DCUBETEXTURE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IDirect3DResource8Impl_GetDevice
((
LPDIRECT3DRESOURCE8
)
This
,
ppDevice
);
}
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_SetPrivateData
(
LPDIRECT3DCUBETEXTURE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_SetPrivateData
(
LPDIRECT3DCUBETEXTURE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_SetPrivateData
(
This
->
wineD3DCubeTexture
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_GetPrivateData
(
LPDIRECT3DCUBETEXTURE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_GetPrivateData
(
LPDIRECT3DCUBETEXTURE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_GetPrivateData
(
This
->
wineD3DCubeTexture
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_FreePrivateData
(
LPDIRECT3DCUBETEXTURE8
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_FreePrivateData
(
LPDIRECT3DCUBETEXTURE8
iface
,
REFGUID
refguid
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_FreePrivateData
(
This
->
wineD3DCubeTexture
,
refguid
);
}
DWORD
WINAPI
IDirect3DCubeTexture8Impl_SetPriority
(
LPDIRECT3DCUBETEXTURE8
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IDirect3DCubeTexture8Impl_SetPriority
(
LPDIRECT3DCUBETEXTURE8
iface
,
DWORD
PriorityNew
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_SetPriority
(
This
->
wineD3DCubeTexture
,
PriorityNew
);
}
DWORD
WINAPI
IDirect3DCubeTexture8Impl_GetPriority
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DCubeTexture8Impl_GetPriority
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_GetPriority
(
This
->
wineD3DCubeTexture
);
}
void
WINAPI
IDirect3DCubeTexture8Impl_PreLoad
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
static
void
WINAPI
IDirect3DCubeTexture8Impl_PreLoad
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_PreLoad
(
This
->
wineD3DCubeTexture
);
}
D3DRESOURCETYPE
WINAPI
IDirect3DCubeTexture8Impl_GetType
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
static
D3DRESOURCETYPE
WINAPI
IDirect3DCubeTexture8Impl_GetType
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_GetType
(
This
->
wineD3DCubeTexture
);
}
/* IDirect3DCubeTexture8 IDirect3DBaseTexture8 Interface follow: */
DWORD
WINAPI
IDirect3DCubeTexture8Impl_SetLOD
(
LPDIRECT3DCUBETEXTURE8
iface
,
DWORD
LODNew
)
{
static
DWORD
WINAPI
IDirect3DCubeTexture8Impl_SetLOD
(
LPDIRECT3DCUBETEXTURE8
iface
,
DWORD
LODNew
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_SetLOD
(
This
->
wineD3DCubeTexture
,
LODNew
);
}
DWORD
WINAPI
IDirect3DCubeTexture8Impl_GetLOD
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DCubeTexture8Impl_GetLOD
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_GetLOD
((
LPDIRECT3DBASETEXTURE8
)
This
);
}
DWORD
WINAPI
IDirect3DCubeTexture8Impl_GetLevelCount
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DCubeTexture8Impl_GetLevelCount
(
LPDIRECT3DCUBETEXTURE8
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_GetLevelCount
(
This
->
wineD3DCubeTexture
);
}
/* IDirect3DCubeTexture8 Interface follow: */
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_GetLevelDesc
(
LPDIRECT3DCUBETEXTURE8
iface
,
UINT
Level
,
D3DSURFACE_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_GetLevelDesc
(
LPDIRECT3DCUBETEXTURE8
iface
,
UINT
Level
,
D3DSURFACE_DESC
*
pDesc
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
WINED3DSURFACE_DESC
wined3ddesc
;
...
...
@@ -153,7 +153,7 @@ HRESULT WINAPI IDirect3DCubeTexture8Impl_GetLevelDesc(LPDIRECT3DCUBETEXTURE8 ifa
return
IWineD3DCubeTexture_GetLevelDesc
(
This
->
wineD3DCubeTexture
,
Level
,
&
wined3ddesc
);
}
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_GetCubeMapSurface
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
IDirect3DSurface8
**
ppCubeMapSurface
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_GetCubeMapSurface
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
IDirect3DSurface8
**
ppCubeMapSurface
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
IWineD3DSurface
*
mySurface
=
NULL
;
...
...
@@ -168,19 +168,19 @@ HRESULT WINAPI IDirect3DCubeTexture8Impl_GetCubeMapSurface(LPDIRECT3DCUBETEXTURE
return
hrc
;
}
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_LockRect
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_LockRect
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_LockRect
(
This
->
wineD3DCubeTexture
,
(
WINED3DCUBEMAP_FACES
)
FaceType
,
Level
,
(
WINED3DLOCKED_RECT
*
)
pLockedRect
,
pRect
,
Flags
);
}
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_UnlockRect
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_UnlockRect
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
UINT
Level
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_UnlockRect
(
This
->
wineD3DCubeTexture
,
(
WINED3DCUBEMAP_FACES
)
FaceType
,
Level
);
}
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_AddDirtyRect
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
CONST
RECT
*
pDirtyRect
)
{
static
HRESULT
WINAPI
IDirect3DCubeTexture8Impl_AddDirtyRect
(
LPDIRECT3DCUBETEXTURE8
iface
,
D3DCUBEMAP_FACES
FaceType
,
CONST
RECT
*
pDirtyRect
)
{
IDirect3DCubeTexture8Impl
*
This
=
(
IDirect3DCubeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DCubeTexture_AddDirtyRect
(
This
->
wineD3DCubeTexture
,
(
WINED3DCUBEMAP_FACES
)
FaceType
,
pDirtyRect
);
...
...
dlls/d3d8/d3d8_private.h
View file @
c3bd09e5
...
...
@@ -192,11 +192,6 @@ struct IDirect3DDevice8Impl
/* ---------------- */
/*****************************************************************************
* Predeclare the interface implementation structures
*/
extern
const
IDirect3DVolume8Vtbl
Direct3DVolume8_Vtbl
;
/*****************************************************************************
* IDirect3DVolume8 implementation structure
*/
struct
IDirect3DVolume8Impl
...
...
dlls/d3d8/device.c
View file @
c3bd09e5
...
...
@@ -37,7 +37,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3D IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DDevice8Impl_QueryInterface
(
LPDIRECT3DDEVICE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IDirect3DDevice8Impl_QueryInterface
(
LPDIRECT3DDEVICE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
...
...
@@ -53,7 +53,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_QueryInterface(LPDIRECT3DDEVICE8 iface,REFII
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DDevice8Impl_AddRef
(
LPDIRECT3DDEVICE8
iface
)
{
static
ULONG
WINAPI
IDirect3DDevice8Impl_AddRef
(
LPDIRECT3DDEVICE8
iface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -62,7 +62,7 @@ ULONG WINAPI IDirect3DDevice8Impl_AddRef(LPDIRECT3DDEVICE8 iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DDevice8Impl_Release
(
LPDIRECT3DDEVICE8
iface
)
{
static
ULONG
WINAPI
IDirect3DDevice8Impl_Release
(
LPDIRECT3DDEVICE8
iface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -78,28 +78,28 @@ ULONG WINAPI IDirect3DDevice8Impl_Release(LPDIRECT3DDEVICE8 iface) {
}
/* IDirect3DDevice Interface follow: */
HRESULT
WINAPI
IDirect3DDevice8Impl_TestCooperativeLevel
(
LPDIRECT3DDEVICE8
iface
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_TestCooperativeLevel
(
LPDIRECT3DDEVICE8
iface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) : Relay
\n
"
,
This
);
return
IWineD3DDevice_TestCooperativeLevel
(
This
->
WineD3DDevice
);
}
UINT
WINAPI
IDirect3DDevice8Impl_GetAvailableTextureMem
(
LPDIRECT3DDEVICE8
iface
)
{
static
UINT
WINAPI
IDirect3DDevice8Impl_GetAvailableTextureMem
(
LPDIRECT3DDEVICE8
iface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetAvailableTextureMem
(
This
->
WineD3DDevice
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_ResourceManagerDiscardBytes
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Bytes
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_ResourceManagerDiscardBytes
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Bytes
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) : Relay bytes(%ld)
\n
"
,
This
,
Bytes
);
return
IWineD3DDevice_EvictManagedResources
(
This
->
WineD3DDevice
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetDirect3D
(
LPDIRECT3DDEVICE8
iface
,
IDirect3D8
**
ppD3D8
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetDirect3D
(
LPDIRECT3DDEVICE8
iface
,
IDirect3D8
**
ppD3D8
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hr
=
D3D_OK
;
IWineD3D
*
pWineD3D
;
...
...
@@ -122,7 +122,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetDirect3D(LPDIRECT3DDEVICE8 iface, IDirect
return
hr
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetDeviceCaps
(
LPDIRECT3DDEVICE8
iface
,
D3DCAPS8
*
pCaps
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetDeviceCaps
(
LPDIRECT3DDEVICE8
iface
,
D3DCAPS8
*
pCaps
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
WINED3DCAPS
*
pWineCaps
;
...
...
@@ -143,39 +143,39 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetDeviceCaps(LPDIRECT3DDEVICE8 iface, D3DCA
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetDisplayMode
(
LPDIRECT3DDEVICE8
iface
,
D3DDISPLAYMODE
*
pMode
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetDisplayMode
(
LPDIRECT3DDEVICE8
iface
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetDisplayMode
(
This
->
WineD3DDevice
,
0
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetCreationParameters
(
LPDIRECT3DDEVICE8
iface
,
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetCreationParameters
(
LPDIRECT3DDEVICE8
iface
,
D3DDEVICE_CREATION_PARAMETERS
*
pParameters
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetCreationParameters
(
This
->
WineD3DDevice
,
(
WINED3DDEVICE_CREATION_PARAMETERS
*
)
pParameters
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetCursorProperties
(
LPDIRECT3DDEVICE8
iface
,
UINT
XHotSpot
,
UINT
YHotSpot
,
IDirect3DSurface8
*
pCursorBitmap
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetCursorProperties
(
LPDIRECT3DDEVICE8
iface
,
UINT
XHotSpot
,
UINT
YHotSpot
,
IDirect3DSurface8
*
pCursorBitmap
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DSurface8Impl
*
pSurface
=
(
IDirect3DSurface8Impl
*
)
pCursorBitmap
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetCursorProperties
(
This
->
WineD3DDevice
,
XHotSpot
,
YHotSpot
,(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
);
}
void
WINAPI
IDirect3DDevice8Impl_SetCursorPosition
(
LPDIRECT3DDEVICE8
iface
,
UINT
XScreenSpace
,
UINT
YScreenSpace
,
DWORD
Flags
)
{
static
void
WINAPI
IDirect3DDevice8Impl_SetCursorPosition
(
LPDIRECT3DDEVICE8
iface
,
UINT
XScreenSpace
,
UINT
YScreenSpace
,
DWORD
Flags
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetCursorPosition
(
This
->
WineD3DDevice
,
XScreenSpace
,
YScreenSpace
,
Flags
);
}
BOOL
WINAPI
IDirect3DDevice8Impl_ShowCursor
(
LPDIRECT3DDEVICE8
iface
,
BOOL
bShow
)
{
static
BOOL
WINAPI
IDirect3DDevice8Impl_ShowCursor
(
LPDIRECT3DDEVICE8
iface
,
BOOL
bShow
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_ShowCursor
(
This
->
WineD3DDevice
,
bShow
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateAdditionalSwapChain
(
LPDIRECT3DDEVICE8
iface
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DSwapChain8
**
pSwapChain
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateAdditionalSwapChain
(
LPDIRECT3DDEVICE8
iface
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DSwapChain8
**
pSwapChain
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DSwapChain8Impl
*
object
;
HRESULT
hrc
=
D3D_OK
;
...
...
@@ -228,7 +228,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateAdditionalSwapChain(LPDIRECT3DDEVICE8
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_Reset
(
LPDIRECT3DDEVICE8
iface
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_Reset
(
LPDIRECT3DDEVICE8
iface
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
WINED3DPRESENT_PARAMETERS
localParameters
;
TRACE
(
"(%p) Relay pPresentationParameters(%p)
\n
"
,
This
,
pPresentationParameters
);
...
...
@@ -250,13 +250,13 @@ HRESULT WINAPI IDirect3DDevice8Impl_Reset(LPDIRECT3DDEVICE8 iface, D3DPRESENT_PA
return
IWineD3DDevice_Reset
(
This
->
WineD3DDevice
,
&
localParameters
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_Present
(
LPDIRECT3DDEVICE8
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_Present
(
LPDIRECT3DDEVICE8
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_Present
(
This
->
WineD3DDevice
,
pSourceRect
,
pDestRect
,
hDestWindowOverride
,
pDirtyRegion
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetBackBuffer
(
LPDIRECT3DDEVICE8
iface
,
UINT
BackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface8
**
ppBackBuffer
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetBackBuffer
(
LPDIRECT3DDEVICE8
iface
,
UINT
BackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface8
**
ppBackBuffer
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IWineD3DSurface
*
retSurface
=
NULL
;
HRESULT
rc
=
D3D_OK
;
...
...
@@ -271,28 +271,28 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetBackBuffer(LPDIRECT3DDEVICE8 iface, UINT
return
rc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetRasterStatus
(
LPDIRECT3DDEVICE8
iface
,
D3DRASTER_STATUS
*
pRasterStatus
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetRasterStatus
(
LPDIRECT3DDEVICE8
iface
,
D3DRASTER_STATUS
*
pRasterStatus
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetRasterStatus
(
This
->
WineD3DDevice
,
0
,
(
WINED3DRASTER_STATUS
*
)
pRasterStatus
);
}
void
WINAPI
IDirect3DDevice8Impl_SetGammaRamp
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
)
{
static
void
WINAPI
IDirect3DDevice8Impl_SetGammaRamp
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Flags
,
CONST
D3DGAMMARAMP
*
pRamp
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetGammaRamp
(
This
->
WineD3DDevice
,
0
,
Flags
,
(
WINED3DGAMMARAMP
*
)
pRamp
);
}
void
WINAPI
IDirect3DDevice8Impl_GetGammaRamp
(
LPDIRECT3DDEVICE8
iface
,
D3DGAMMARAMP
*
pRamp
)
{
static
void
WINAPI
IDirect3DDevice8Impl_GetGammaRamp
(
LPDIRECT3DDEVICE8
iface
,
D3DGAMMARAMP
*
pRamp
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetGammaRamp
(
This
->
WineD3DDevice
,
0
,
(
WINED3DGAMMARAMP
*
)
pRamp
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateTexture
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateTexture
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DTexture8
**
ppTexture
)
{
IDirect3DTexture8Impl
*
object
;
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
...
...
@@ -329,7 +329,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateTexture(LPDIRECT3DDEVICE8 iface, UINT
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateVolumeTexture
(
LPDIRECT3DDEVICE8
iface
,
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateVolumeTexture
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DVolumeTexture8
**
ppVolumeTexture
)
{
...
...
@@ -368,7 +368,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateVolumeTexture(LPDIRECT3DDEVICE8 iface,
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateCubeTexture
(
LPDIRECT3DDEVICE8
iface
,
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateCubeTexture
(
LPDIRECT3DDEVICE8
iface
,
UINT
EdgeLength
,
UINT
Levels
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DCubeTexture8
**
ppCubeTexture
)
{
IDirect3DCubeTexture8Impl
*
object
;
...
...
@@ -408,7 +408,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateCubeTexture(LPDIRECT3DDEVICE8 iface, U
return
hr
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateVertexBuffer
(
LPDIRECT3DDEVICE8
iface
,
UINT
Size
,
DWORD
Usage
,
DWORD
FVF
,
D3DPOOL
Pool
,
IDirect3DVertexBuffer8
**
ppVertexBuffer
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateVertexBuffer
(
LPDIRECT3DDEVICE8
iface
,
UINT
Size
,
DWORD
Usage
,
DWORD
FVF
,
D3DPOOL
Pool
,
IDirect3DVertexBuffer8
**
ppVertexBuffer
)
{
IDirect3DVertexBuffer8Impl
*
object
;
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
...
...
@@ -440,7 +440,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateVertexBuffer(LPDIRECT3DDEVICE8 iface,
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateIndexBuffer
(
LPDIRECT3DDEVICE8
iface
,
UINT
Length
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DIndexBuffer8
**
ppIndexBuffer
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateIndexBuffer
(
LPDIRECT3DDEVICE8
iface
,
UINT
Length
,
DWORD
Usage
,
D3DFORMAT
Format
,
D3DPOOL
Pool
,
IDirect3DIndexBuffer8
**
ppIndexBuffer
)
{
IDirect3DIndexBuffer8Impl
*
object
;
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
...
...
@@ -473,7 +473,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateIndexBuffer(LPDIRECT3DDEVICE8 iface, U
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateSurface
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
IDirect3DSurface8
**
ppSurface
,
D3DRESOURCETYPE
Type
,
UINT
Usage
,
D3DPOOL
Pool
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateSurface
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
BOOL
Lockable
,
BOOL
Discard
,
UINT
Level
,
IDirect3DSurface8
**
ppSurface
,
D3DRESOURCETYPE
Type
,
UINT
Usage
,
D3DPOOL
Pool
,
D3DMULTISAMPLE_TYPE
MultiSample
,
DWORD
MultisampleQuality
)
{
HRESULT
hrc
;
IDirect3DSurface8Impl
*
object
;
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
...
...
@@ -519,13 +519,13 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateSurface(LPDIRECT3DDEVICE8 iface, UINT
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateRenderTarget
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
BOOL
Lockable
,
IDirect3DSurface8
**
ppSurface
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateRenderTarget
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
BOOL
Lockable
,
IDirect3DSurface8
**
ppSurface
)
{
TRACE
(
"Relay
\n
"
);
return
IDirect3DDevice8Impl_CreateSurface
(
iface
,
Width
,
Height
,
Format
,
Lockable
,
FALSE
/* Discard */
,
0
/* Level */
,
ppSurface
,
D3DRTYPE_SURFACE
,
D3DUSAGE_RENDERTARGET
,
D3DPOOL_DEFAULT
,
MultiSample
,
0
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateDepthStencilSurface
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
IDirect3DSurface8
**
ppSurface
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateDepthStencilSurface
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
D3DMULTISAMPLE_TYPE
MultiSample
,
IDirect3DSurface8
**
ppSurface
)
{
TRACE
(
"Relay
\n
"
);
/* TODO: Verify that Discard is false */
return
IDirect3DDevice8Impl_CreateSurface
(
iface
,
Width
,
Height
,
Format
,
TRUE
/* Lockable */
,
FALSE
,
0
/* Level */
...
...
@@ -533,13 +533,13 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateDepthStencilSurface(LPDIRECT3DDEVICE8
D3DPOOL_DEFAULT
,
MultiSample
,
0
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateImageSurface
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
IDirect3DSurface8
**
ppSurface
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateImageSurface
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
IDirect3DSurface8
**
ppSurface
)
{
TRACE
(
"Relay
\n
"
);
return
IDirect3DDevice8Impl_CreateSurface
(
iface
,
Width
,
Height
,
Format
,
TRUE
/* Loackable */
,
FALSE
/*Discard*/
,
0
/* Level */
,
ppSurface
,
D3DRTYPE_SURFACE
,
0
/* Usage (undefined/none) */
,
D3DPOOL_SCRATCH
,
D3DMULTISAMPLE_NONE
,
0
/* MultisampleQuality */
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CopyRects
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
*
pSourceSurface
,
CONST
RECT
*
pSourceRects
,
UINT
cRects
,
IDirect3DSurface8
*
pDestinationSurface
,
CONST
POINT
*
pDestPoints
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CopyRects
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
*
pSourceSurface
,
CONST
RECT
*
pSourceRects
,
UINT
cRects
,
IDirect3DSurface8
*
pDestinationSurface
,
CONST
POINT
*
pDestPoints
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -548,14 +548,14 @@ HRESULT WINAPI IDirect3DDevice8Impl_CopyRects(LPDIRECT3DDEVICE8 iface, IDirect3D
pSourceRects
,
cRects
,
pDestinationSurface
==
NULL
?
NULL
:
((
IDirect3DSurface8Impl
*
)
pDestinationSurface
)
->
wineD3DSurface
,
pDestPoints
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_UpdateTexture
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DBaseTexture8
*
pSourceTexture
,
IDirect3DBaseTexture8
*
pDestinationTexture
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_UpdateTexture
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DBaseTexture8
*
pSourceTexture
,
IDirect3DBaseTexture8
*
pDestinationTexture
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_UpdateTexture
(
This
->
WineD3DDevice
,
((
IDirect3DBaseTexture8Impl
*
)
pSourceTexture
)
->
wineD3DBaseTexture
,
((
IDirect3DBaseTexture8Impl
*
)
pDestinationTexture
)
->
wineD3DBaseTexture
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetFrontBuffer
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
*
pDestSurface
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetFrontBuffer
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
*
pDestSurface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DSurface8Impl
*
destSurface
=
(
IDirect3DSurface8Impl
*
)
pDestSurface
;
...
...
@@ -569,7 +569,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetFrontBuffer(LPDIRECT3DDEVICE8 iface, IDir
return
IWineD3DDevice_GetFrontBufferData
(
This
->
WineD3DDevice
,
0
,
destSurface
->
wineD3DSurface
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetRenderTarget
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
*
pRenderTarget
,
IDirect3DSurface8
*
pNewZStencil
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetRenderTarget
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
*
pRenderTarget
,
IDirect3DSurface8
*
pNewZStencil
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DSurface8Impl
*
pSurface
=
(
IDirect3DSurface8Impl
*
)
pRenderTarget
;
IDirect3DSurface8Impl
*
pZSurface
=
(
IDirect3DSurface8Impl
*
)
pNewZStencil
;
...
...
@@ -580,7 +580,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetRenderTarget(LPDIRECT3DDEVICE8 iface, IDi
return
IWineD3DDevice_SetRenderTarget
(
This
->
WineD3DDevice
,
0
,
(
IWineD3DSurface
*
)
pSurface
->
wineD3DSurface
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetRenderTarget
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
**
ppRenderTarget
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetRenderTarget
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
**
ppRenderTarget
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hr
=
D3D_OK
;
IWineD3DSurface
*
pRenderTarget
;
...
...
@@ -603,7 +603,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetRenderTarget(LPDIRECT3DDEVICE8 iface, I
return
hr
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetDepthStencilSurface
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
**
ppZStencilSurface
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetDepthStencilSurface
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DSurface8
**
ppZStencilSurface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hr
=
D3D_OK
;
IWineD3DSurface
*
pZStencilSurface
;
...
...
@@ -625,131 +625,131 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetDepthStencilSurface(LPDIRECT3DDEVICE8 i
return
D3D_OK
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_BeginScene
(
LPDIRECT3DDEVICE8
iface
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_BeginScene
(
LPDIRECT3DDEVICE8
iface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
return
IWineD3DDevice_BeginScene
(
This
->
WineD3DDevice
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_EndScene
(
LPDIRECT3DDEVICE8
iface
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_EndScene
(
LPDIRECT3DDEVICE8
iface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_EndScene
(
This
->
WineD3DDevice
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_Clear
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Count
,
CONST
D3DRECT
*
pRects
,
DWORD
Flags
,
D3DCOLOR
Color
,
float
Z
,
DWORD
Stencil
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_Clear
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Count
,
CONST
D3DRECT
*
pRects
,
DWORD
Flags
,
D3DCOLOR
Color
,
float
Z
,
DWORD
Stencil
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_Clear
(
This
->
WineD3DDevice
,
Count
,
pRects
,
Flags
,
Color
,
Z
,
Stencil
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetTransform
(
LPDIRECT3DDEVICE8
iface
,
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
lpMatrix
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetTransform
(
LPDIRECT3DDEVICE8
iface
,
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
lpMatrix
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetTransform
(
This
->
WineD3DDevice
,
State
,
lpMatrix
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetTransform
(
LPDIRECT3DDEVICE8
iface
,
D3DTRANSFORMSTATETYPE
State
,
D3DMATRIX
*
pMatrix
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetTransform
(
LPDIRECT3DDEVICE8
iface
,
D3DTRANSFORMSTATETYPE
State
,
D3DMATRIX
*
pMatrix
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetTransform
(
This
->
WineD3DDevice
,
State
,
pMatrix
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_MultiplyTransform
(
LPDIRECT3DDEVICE8
iface
,
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_MultiplyTransform
(
LPDIRECT3DDEVICE8
iface
,
D3DTRANSFORMSTATETYPE
State
,
CONST
D3DMATRIX
*
pMatrix
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_MultiplyTransform
(
This
->
WineD3DDevice
,
State
,
pMatrix
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetViewport
(
LPDIRECT3DDEVICE8
iface
,
CONST
D3DVIEWPORT8
*
pViewport
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetViewport
(
LPDIRECT3DDEVICE8
iface
,
CONST
D3DVIEWPORT8
*
pViewport
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetViewport
(
This
->
WineD3DDevice
,
(
const
WINED3DVIEWPORT
*
)
pViewport
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetViewport
(
LPDIRECT3DDEVICE8
iface
,
D3DVIEWPORT8
*
pViewport
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetViewport
(
LPDIRECT3DDEVICE8
iface
,
D3DVIEWPORT8
*
pViewport
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetViewport
(
This
->
WineD3DDevice
,
(
WINED3DVIEWPORT
*
)
pViewport
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetMaterial
(
LPDIRECT3DDEVICE8
iface
,
CONST
D3DMATERIAL8
*
pMaterial
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetMaterial
(
LPDIRECT3DDEVICE8
iface
,
CONST
D3DMATERIAL8
*
pMaterial
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* FIXME: Verify that D3DMATERIAL8 ~= WINED3DMATERIAL */
return
IWineD3DDevice_SetMaterial
(
This
->
WineD3DDevice
,
(
const
WINED3DMATERIAL
*
)
pMaterial
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetMaterial
(
LPDIRECT3DDEVICE8
iface
,
D3DMATERIAL8
*
pMaterial
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetMaterial
(
LPDIRECT3DDEVICE8
iface
,
D3DMATERIAL8
*
pMaterial
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* FIXME: Verify that D3DMATERIAL8 ~= WINED3DMATERIAL */
return
IWineD3DDevice_GetMaterial
(
This
->
WineD3DDevice
,
(
WINED3DMATERIAL
*
)
pMaterial
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetLight
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
CONST
D3DLIGHT8
*
pLight
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetLight
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
CONST
D3DLIGHT8
*
pLight
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* FIXME: Verify that D3DLIGHT8 ~= WINED3DLIGHT */
return
IWineD3DDevice_SetLight
(
This
->
WineD3DDevice
,
Index
,
(
const
WINED3DLIGHT
*
)
pLight
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetLight
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
D3DLIGHT8
*
pLight
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetLight
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
D3DLIGHT8
*
pLight
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* FIXME: Verify that D3DLIGHT8 ~= WINED3DLIGHT */
return
IWineD3DDevice_GetLight
(
This
->
WineD3DDevice
,
Index
,
(
WINED3DLIGHT
*
)
pLight
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_LightEnable
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
BOOL
Enable
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_LightEnable
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
BOOL
Enable
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetLightEnable
(
This
->
WineD3DDevice
,
Index
,
Enable
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetLightEnable
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
BOOL
*
pEnable
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetLightEnable
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
BOOL
*
pEnable
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetLightEnable
(
This
->
WineD3DDevice
,
Index
,
pEnable
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetClipPlane
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
CONST
float
*
pPlane
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetClipPlane
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
CONST
float
*
pPlane
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetClipPlane
(
This
->
WineD3DDevice
,
Index
,
pPlane
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetClipPlane
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
float
*
pPlane
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetClipPlane
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Index
,
float
*
pPlane
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetClipPlane
(
This
->
WineD3DDevice
,
Index
,
pPlane
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetRenderState
(
LPDIRECT3DDEVICE8
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetRenderState
(
LPDIRECT3DDEVICE8
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
Value
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetRenderState
(
This
->
WineD3DDevice
,
State
,
Value
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetRenderState
(
LPDIRECT3DDEVICE8
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
*
pValue
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetRenderState
(
LPDIRECT3DDEVICE8
iface
,
D3DRENDERSTATETYPE
State
,
DWORD
*
pValue
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetRenderState
(
This
->
WineD3DDevice
,
State
,
pValue
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_BeginStateBlock
(
LPDIRECT3DDEVICE8
iface
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_BeginStateBlock
(
LPDIRECT3DDEVICE8
iface
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -757,7 +757,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_BeginStateBlock(LPDIRECT3DDEVICE8 iface) {
return
IWineD3DDevice_BeginStateBlock
(
This
->
WineD3DDevice
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_EndStateBlock
(
LPDIRECT3DDEVICE8
iface
,
DWORD
*
pToken
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_EndStateBlock
(
LPDIRECT3DDEVICE8
iface
,
DWORD
*
pToken
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hr
;
IWineD3DStateBlock
*
wineD3DStateBlock
;
...
...
@@ -787,7 +787,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_EndStateBlock(LPDIRECT3DDEVICE8 iface, DWORD
return
hr
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_ApplyStateBlock
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Token
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_ApplyStateBlock
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Token
)
{
IDirect3DStateBlock8Impl
*
pSB
=
(
IDirect3DStateBlock8Impl
*
)
Token
;
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
...
...
@@ -796,7 +796,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_ApplyStateBlock(LPDIRECT3DDEVICE8 iface, DWO
return
IWineD3DStateBlock_Apply
(
pSB
->
wineD3DStateBlock
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CaptureStateBlock
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Token
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CaptureStateBlock
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Token
)
{
IDirect3DStateBlock8Impl
*
pSB
=
(
IDirect3DStateBlock8Impl
*
)
Token
;
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
...
...
@@ -805,7 +805,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CaptureStateBlock(LPDIRECT3DDEVICE8 iface, D
return
IWineD3DStateBlock_Capture
(
pSB
->
wineD3DStateBlock
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DeleteStateBlock
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Token
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DeleteStateBlock
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Token
)
{
IDirect3DStateBlock8Impl
*
pSB
=
(
IDirect3DStateBlock8Impl
*
)
Token
;
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
...
...
@@ -816,7 +816,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_DeleteStateBlock(LPDIRECT3DDEVICE8 iface, DW
return
D3D_OK
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateStateBlock
(
LPDIRECT3DDEVICE8
iface
,
D3DSTATEBLOCKTYPE
Type
,
DWORD
*
pToken
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateStateBlock
(
LPDIRECT3DDEVICE8
iface
,
D3DSTATEBLOCKTYPE
Type
,
DWORD
*
pToken
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DStateBlock8Impl
*
object
;
HRESULT
hrc
=
D3D_OK
;
...
...
@@ -845,21 +845,21 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateStateBlock(LPDIRECT3DDEVICE8 iface, D3
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetClipStatus
(
LPDIRECT3DDEVICE8
iface
,
CONST
D3DCLIPSTATUS8
*
pClipStatus
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetClipStatus
(
LPDIRECT3DDEVICE8
iface
,
CONST
D3DCLIPSTATUS8
*
pClipStatus
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* FIXME: Verify that D3DCLIPSTATUS8 ~= WINED3DCLIPSTATUS */
return
IWineD3DDevice_SetClipStatus
(
This
->
WineD3DDevice
,
(
const
WINED3DCLIPSTATUS
*
)
pClipStatus
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetClipStatus
(
LPDIRECT3DDEVICE8
iface
,
D3DCLIPSTATUS8
*
pClipStatus
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetClipStatus
(
LPDIRECT3DDEVICE8
iface
,
D3DCLIPSTATUS8
*
pClipStatus
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetClipStatus
(
This
->
WineD3DDevice
,
(
WINED3DCLIPSTATUS
*
)
pClipStatus
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetTexture
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Stage
,
IDirect3DBaseTexture8
**
ppTexture
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetTexture
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Stage
,
IDirect3DBaseTexture8
**
ppTexture
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IWineD3DBaseTexture
*
retTexture
=
NULL
;
HRESULT
rc
=
D3D_OK
;
...
...
@@ -882,7 +882,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetTexture(LPDIRECT3DDEVICE8 iface, DWORD St
return
rc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetTexture
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Stage
,
IDirect3DBaseTexture8
*
pTexture
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetTexture
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Stage
,
IDirect3DBaseTexture8
*
pTexture
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay %ld %p
\n
"
,
This
,
Stage
,
pTexture
);
...
...
@@ -890,7 +890,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTexture(LPDIRECT3DDEVICE8 iface, DWORD St
pTexture
==
NULL
?
NULL
:
((
IDirect3DBaseTexture8Impl
*
)
pTexture
)
->
wineD3DBaseTexture
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetTextureStageState
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
*
pValue
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetTextureStageState
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
*
pValue
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -932,7 +932,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetTextureStageState(LPDIRECT3DDEVICE8 ifa
return
IWineD3DDevice_GetSamplerState
(
This
->
WineD3DDevice
,
Stage
,
Type
,
pValue
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetTextureStageState
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
Value
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetTextureStageState
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Stage
,
D3DTEXTURESTAGESTATETYPE
Type
,
DWORD
Value
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -974,55 +974,55 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTextureStageState(LPDIRECT3DDEVICE8 iface
return
IWineD3DDevice_SetSamplerState
(
This
->
WineD3DDevice
,
Stage
,
Type
,
Value
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_ValidateDevice
(
LPDIRECT3DDEVICE8
iface
,
DWORD
*
pNumPasses
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_ValidateDevice
(
LPDIRECT3DDEVICE8
iface
,
DWORD
*
pNumPasses
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_ValidateDevice
(
This
->
WineD3DDevice
,
pNumPasses
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetInfo
(
LPDIRECT3DDEVICE8
iface
,
DWORD
DevInfoID
,
void
*
pDevInfoStruct
,
DWORD
DevInfoStructSize
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetInfo
(
LPDIRECT3DDEVICE8
iface
,
DWORD
DevInfoID
,
void
*
pDevInfoStruct
,
DWORD
DevInfoStructSize
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
FIXME
(
"(%p) : stub
\n
"
,
This
);
return
D3D_OK
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetPaletteEntries
(
LPDIRECT3DDEVICE8
iface
,
UINT
PaletteNumber
,
CONST
PALETTEENTRY
*
pEntries
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetPaletteEntries
(
LPDIRECT3DDEVICE8
iface
,
UINT
PaletteNumber
,
CONST
PALETTEENTRY
*
pEntries
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetPaletteEntries
(
This
->
WineD3DDevice
,
PaletteNumber
,
pEntries
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetPaletteEntries
(
LPDIRECT3DDEVICE8
iface
,
UINT
PaletteNumber
,
PALETTEENTRY
*
pEntries
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetPaletteEntries
(
LPDIRECT3DDEVICE8
iface
,
UINT
PaletteNumber
,
PALETTEENTRY
*
pEntries
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetPaletteEntries
(
This
->
WineD3DDevice
,
PaletteNumber
,
pEntries
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetCurrentTexturePalette
(
LPDIRECT3DDEVICE8
iface
,
UINT
PaletteNumber
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetCurrentTexturePalette
(
LPDIRECT3DDEVICE8
iface
,
UINT
PaletteNumber
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetCurrentTexturePalette
(
This
->
WineD3DDevice
,
PaletteNumber
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetCurrentTexturePalette
(
LPDIRECT3DDEVICE8
iface
,
UINT
*
PaletteNumber
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetCurrentTexturePalette
(
LPDIRECT3DDEVICE8
iface
,
UINT
*
PaletteNumber
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetCurrentTexturePalette
(
This
->
WineD3DDevice
,
PaletteNumber
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawPrimitive
(
LPDIRECT3DDEVICE8
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
StartVertex
,
UINT
PrimitiveCount
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawPrimitive
(
LPDIRECT3DDEVICE8
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
StartVertex
,
UINT
PrimitiveCount
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_DrawPrimitive
(
This
->
WineD3DDevice
,
PrimitiveType
,
StartVertex
,
PrimitiveCount
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawIndexedPrimitive
(
LPDIRECT3DDEVICE8
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawIndexedPrimitive
(
LPDIRECT3DDEVICE8
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
MinVertexIndex
,
UINT
NumVertices
,
UINT
startIndex
,
UINT
primCount
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -1030,14 +1030,14 @@ HRESULT WINAPI IDirect3DDevice8Impl_DrawIndexedPrimitive(LPDIRECT3DDEVICE8 iface
return
IWineD3DDevice_DrawIndexedPrimitive
(
This
->
WineD3DDevice
,
PrimitiveType
,
This
->
baseVertexIndex
,
MinVertexIndex
,
NumVertices
,
startIndex
,
primCount
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawPrimitiveUP
(
LPDIRECT3DDEVICE8
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
PrimitiveCount
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawPrimitiveUP
(
LPDIRECT3DDEVICE8
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
PrimitiveCount
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_DrawPrimitiveUP
(
This
->
WineD3DDevice
,
PrimitiveType
,
PrimitiveCount
,
pVertexStreamZeroData
,
VertexStreamZeroStride
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawIndexedPrimitiveUP
(
LPDIRECT3DDEVICE8
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
MinVertexIndex
,
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawIndexedPrimitiveUP
(
LPDIRECT3DDEVICE8
iface
,
D3DPRIMITIVETYPE
PrimitiveType
,
UINT
MinVertexIndex
,
UINT
NumVertexIndices
,
UINT
PrimitiveCount
,
CONST
void
*
pIndexData
,
D3DFORMAT
IndexDataFormat
,
CONST
void
*
pVertexStreamZeroData
,
UINT
VertexStreamZeroStride
)
{
...
...
@@ -1048,14 +1048,14 @@ HRESULT WINAPI IDirect3DDevice8Impl_DrawIndexedPrimitiveUP(LPDIRECT3DDEVICE8 ifa
pIndexData
,
IndexDataFormat
,
pVertexStreamZeroData
,
VertexStreamZeroStride
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_ProcessVertices
(
LPDIRECT3DDEVICE8
iface
,
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IDirect3DVertexBuffer8
*
pDestBuffer
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_ProcessVertices
(
LPDIRECT3DDEVICE8
iface
,
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IDirect3DVertexBuffer8
*
pDestBuffer
,
DWORD
Flags
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_ProcessVertices
(
This
->
WineD3DDevice
,
SrcStartIndex
,
DestIndex
,
VertexCount
,
((
IDirect3DVertexBuffer8Impl
*
)
pDestBuffer
)
->
wineD3DVertexBuffer
,
NULL
,
Flags
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateVertexShader
(
LPDIRECT3DDEVICE8
iface
,
CONST
DWORD
*
pDeclaration
,
CONST
DWORD
*
pFunction
,
DWORD
*
ppShader
,
DWORD
Usage
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateVertexShader
(
LPDIRECT3DDEVICE8
iface
,
CONST
DWORD
*
pDeclaration
,
CONST
DWORD
*
pFunction
,
DWORD
*
ppShader
,
DWORD
Usage
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
IDirect3DVertexShader8Impl
*
object
;
...
...
@@ -1096,7 +1096,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreateVertexShader(LPDIRECT3DDEVICE8 iface,
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetVertexShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pShader
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetVertexShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pShader
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
...
...
@@ -1122,7 +1122,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetVertexShader(LPDIRECT3DDEVICE8 iface, DWO
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetVertexShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
*
ppShader
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetVertexShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
*
ppShader
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IWineD3DVertexShader
*
pShader
;
HRESULT
hrc
=
D3D_OK
;
...
...
@@ -1156,7 +1156,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetVertexShader(LPDIRECT3DDEVICE8 iface, DWO
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DeleteVertexShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pShader
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DeleteVertexShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pShader
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -1176,35 +1176,35 @@ HRESULT WINAPI IDirect3DDevice8Impl_DeleteVertexShader(LPDIRECT3DDEVICE8 iface
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetVertexShaderConstant
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Register
,
CONST
void
*
pConstantData
,
DWORD
ConstantCount
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetVertexShaderConstant
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Register
,
CONST
void
*
pConstantData
,
DWORD
ConstantCount
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) : Relay
\n
"
,
This
);
return
IWineD3DDevice_SetVertexShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
(
CONST
float
*
)
pConstantData
,
ConstantCount
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetVertexShaderConstant
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Register
,
void
*
pConstantData
,
DWORD
ConstantCount
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetVertexShaderConstant
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Register
,
void
*
pConstantData
,
DWORD
ConstantCount
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) : Relay
\n
"
,
This
);
return
IWineD3DDevice_GetVertexShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
(
float
*
)
pConstantData
,
ConstantCount
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetVertexShaderDeclaration
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pVertexShader
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetVertexShaderDeclaration
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pVertexShader
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DVertexShader8Impl
*
This
=
(
IDirect3DVertexShader8Impl
*
)
pVertexShader
;
TRACE
(
"(%p) : Relay
\n
"
,
This
);
/* return IWineD3DVertexShader_GetDeclaration(This->wineD3DVertexShader, pData, (UINT *)pSizeOfData); */
return
D3DERR_INVALIDCALL
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetVertexShaderFunction
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pVertexShader
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetVertexShaderFunction
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pVertexShader
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DVertexShader8Impl
*
This
=
(
IDirect3DVertexShader8Impl
*
)
pVertexShader
;
TRACE
(
"(%p) : Relay
\n
"
,
This
);
return
IWineD3DVertexShader_GetFunction
(
This
->
wineD3DVertexShader
,
pData
,
(
UINT
*
)
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetIndices
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DIndexBuffer8
*
pIndexData
,
UINT
baseVertexIndex
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetIndices
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DIndexBuffer8
*
pIndexData
,
UINT
baseVertexIndex
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
/* FIXME: store base vertex index properly */
...
...
@@ -1214,7 +1214,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetIndices(LPDIRECT3DDEVICE8 iface, IDirect3
0
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetIndices
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DIndexBuffer8
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetIndices
(
LPDIRECT3DDEVICE8
iface
,
IDirect3DIndexBuffer8
**
ppIndexData
,
UINT
*
pBaseVertexIndex
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IWineD3DIndexBuffer
*
retIndexData
=
NULL
;
HRESULT
rc
=
D3D_OK
;
...
...
@@ -1238,7 +1238,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetIndices(LPDIRECT3DDEVICE8 iface, IDirect3
*
pBaseVertexIndex
=
This
->
baseVertexIndex
;
return
rc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_CreatePixelShader
(
LPDIRECT3DDEVICE8
iface
,
CONST
DWORD
*
pFunction
,
DWORD
*
ppShader
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreatePixelShader
(
LPDIRECT3DDEVICE8
iface
,
CONST
DWORD
*
pFunction
,
DWORD
*
ppShader
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DPixelShader8Impl
*
object
;
HRESULT
hrc
=
D3D_OK
;
...
...
@@ -1270,7 +1270,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_CreatePixelShader(LPDIRECT3DDEVICE8 iface, C
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetPixelShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pShader
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetPixelShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pShader
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DPixelShader8Impl
*
shader
=
(
IDirect3DPixelShader8Impl
*
)
pShader
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -1278,7 +1278,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetPixelShader(LPDIRECT3DDEVICE8 iface, DWOR
return
IWineD3DDevice_SetPixelShader
(
This
->
WineD3DDevice
,
shader
==
NULL
?
NULL
:
shader
->
wineD3DPixelShader
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetPixelShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
*
ppShader
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetPixelShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
*
ppShader
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IWineD3DPixelShader
*
object
;
...
...
@@ -1301,7 +1301,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShader(LPDIRECT3DDEVICE8 iface, DWOR
return
hrc
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DeletePixelShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pShader
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DeletePixelShader
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pShader
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IDirect3DPixelShader8Impl
*
shader
=
(
IDirect3DPixelShader8Impl
*
)
pShader
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -1313,49 +1313,49 @@ HRESULT WINAPI IDirect3DDevice8Impl_DeletePixelShader(LPDIRECT3DDEVICE8 iface, D
return
D3D_OK
;
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetPixelShaderConstant
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Register
,
CONST
void
*
pConstantData
,
DWORD
ConstantCount
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetPixelShaderConstant
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Register
,
CONST
void
*
pConstantData
,
DWORD
ConstantCount
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_SetPixelShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
(
CONST
float
*
)
pConstantData
,
ConstantCount
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetPixelShaderConstant
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Register
,
void
*
pConstantData
,
DWORD
ConstantCount
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetPixelShaderConstant
(
LPDIRECT3DDEVICE8
iface
,
DWORD
Register
,
void
*
pConstantData
,
DWORD
ConstantCount
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_GetPixelShaderConstantF
(
This
->
WineD3DDevice
,
Register
,
(
float
*
)
pConstantData
,
ConstantCount
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetPixelShaderFunction
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pPixelShader
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetPixelShaderFunction
(
LPDIRECT3DDEVICE8
iface
,
DWORD
pPixelShader
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DPixelShader8Impl
*
This
=
(
IDirect3DPixelShader8Impl
*
)
pPixelShader
;
TRACE
(
"(%p) : Relay
\n
"
,
This
);
return
IWineD3DPixelShader_GetFunction
(
This
->
wineD3DPixelShader
,
pData
,
(
UINT
*
)
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawRectPatch
(
LPDIRECT3DDEVICE8
iface
,
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DRECTPATCH_INFO
*
pRectPatchInfo
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawRectPatch
(
LPDIRECT3DDEVICE8
iface
,
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DRECTPATCH_INFO
*
pRectPatchInfo
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_DrawRectPatch
(
This
->
WineD3DDevice
,
Handle
,
pNumSegs
,
(
WINED3DRECTPATCH_INFO
*
)
pRectPatchInfo
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawTriPatch
(
LPDIRECT3DDEVICE8
iface
,
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DTRIPATCH_INFO
*
pTriPatchInfo
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DrawTriPatch
(
LPDIRECT3DDEVICE8
iface
,
UINT
Handle
,
CONST
float
*
pNumSegs
,
CONST
D3DTRIPATCH_INFO
*
pTriPatchInfo
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_DrawTriPatch
(
This
->
WineD3DDevice
,
Handle
,
pNumSegs
,
(
WINED3DTRIPATCH_INFO
*
)
pTriPatchInfo
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_DeletePatch
(
LPDIRECT3DDEVICE8
iface
,
UINT
Handle
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_DeletePatch
(
LPDIRECT3DDEVICE8
iface
,
UINT
Handle
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DDevice_DeletePatch
(
This
->
WineD3DDevice
,
Handle
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_SetStreamSource
(
LPDIRECT3DDEVICE8
iface
,
UINT
StreamNumber
,
IDirect3DVertexBuffer8
*
pStreamData
,
UINT
Stride
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetStreamSource
(
LPDIRECT3DDEVICE8
iface
,
UINT
StreamNumber
,
IDirect3DVertexBuffer8
*
pStreamData
,
UINT
Stride
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -1364,7 +1364,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetStreamSource(LPDIRECT3DDEVICE8 iface, UIN
0
/* Offset in bytes */
,
Stride
);
}
HRESULT
WINAPI
IDirect3DDevice8Impl_GetStreamSource
(
LPDIRECT3DDEVICE8
iface
,
UINT
StreamNumber
,
IDirect3DVertexBuffer8
**
pStream
,
UINT
*
pStride
)
{
static
HRESULT
WINAPI
IDirect3DDevice8Impl_GetStreamSource
(
LPDIRECT3DDEVICE8
iface
,
UINT
StreamNumber
,
IDirect3DVertexBuffer8
**
pStream
,
UINT
*
pStride
)
{
IDirect3DDevice8Impl
*
This
=
(
IDirect3DDevice8Impl
*
)
iface
;
IWineD3DVertexBuffer
*
retStream
=
NULL
;
HRESULT
rc
=
D3D_OK
;
...
...
dlls/d3d8/directx.c
View file @
c3bd09e5
...
...
@@ -38,7 +38,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3D IUnknown parts follow: */
HRESULT
WINAPI
IDirect3D8Impl_QueryInterface
(
LPDIRECT3D8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IDirect3D8Impl_QueryInterface
(
LPDIRECT3D8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
...
...
@@ -54,7 +54,7 @@ HRESULT WINAPI IDirect3D8Impl_QueryInterface(LPDIRECT3D8 iface, REFIID riid,LPVO
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3D8Impl_AddRef
(
LPDIRECT3D8
iface
)
{
static
ULONG
WINAPI
IDirect3D8Impl_AddRef
(
LPDIRECT3D8
iface
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -63,7 +63,7 @@ ULONG WINAPI IDirect3D8Impl_AddRef(LPDIRECT3D8 iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3D8Impl_Release
(
LPDIRECT3D8
iface
)
{
static
ULONG
WINAPI
IDirect3D8Impl_Release
(
LPDIRECT3D8
iface
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -79,17 +79,17 @@ ULONG WINAPI IDirect3D8Impl_Release(LPDIRECT3D8 iface) {
}
/* IDirect3D8 Interface follow: */
HRESULT
WINAPI
IDirect3D8Impl_RegisterSoftwareDevice
(
LPDIRECT3D8
iface
,
void
*
pInitializeFunction
)
{
static
HRESULT
WINAPI
IDirect3D8Impl_RegisterSoftwareDevice
(
LPDIRECT3D8
iface
,
void
*
pInitializeFunction
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
return
IWineD3D_RegisterSoftwareDevice
(
This
->
WineD3D
,
pInitializeFunction
);
}
UINT
WINAPI
IDirect3D8Impl_GetAdapterCount
(
LPDIRECT3D8
iface
)
{
static
UINT
WINAPI
IDirect3D8Impl_GetAdapterCount
(
LPDIRECT3D8
iface
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
return
IWineD3D_GetAdapterCount
(
This
->
WineD3D
);
}
HRESULT
WINAPI
IDirect3D8Impl_GetAdapterIdentifier
(
LPDIRECT3D8
iface
,
static
HRESULT
WINAPI
IDirect3D8Impl_GetAdapterIdentifier
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
DWORD
Flags
,
D3DADAPTER_IDENTIFIER8
*
pIdentifier
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
WINED3DADAPTER_IDENTIFIER
adapter_id
;
...
...
@@ -111,23 +111,23 @@ HRESULT WINAPI IDirect3D8Impl_GetAdapterIdentifier (LPDIRECT3D8 iface,
return
IWineD3D_GetAdapterIdentifier
(
This
->
WineD3D
,
Adapter
,
Flags
,
&
adapter_id
);
}
UINT
WINAPI
IDirect3D8Impl_GetAdapterModeCount
(
LPDIRECT3D8
iface
,
UINT
Adapter
)
{
static
UINT
WINAPI
IDirect3D8Impl_GetAdapterModeCount
(
LPDIRECT3D8
iface
,
UINT
Adapter
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
return
IWineD3D_GetAdapterModeCount
(
This
->
WineD3D
,
Adapter
,
0
/* format */
);
}
HRESULT
WINAPI
IDirect3D8Impl_EnumAdapterModes
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
UINT
Mode
,
D3DDISPLAYMODE
*
pMode
)
{
static
HRESULT
WINAPI
IDirect3D8Impl_EnumAdapterModes
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
UINT
Mode
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
/* FIXME: USe a constant WINED3DFOTMAT_ANY, or something similar */
return
IWineD3D_EnumAdapterModes
(
This
->
WineD3D
,
Adapter
,
0
/* format */
,
Mode
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3D8Impl_GetAdapterDisplayMode
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDISPLAYMODE
*
pMode
)
{
static
HRESULT
WINAPI
IDirect3D8Impl_GetAdapterDisplayMode
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDISPLAYMODE
*
pMode
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
return
IWineD3D_GetAdapterDisplayMode
(
This
->
WineD3D
,
Adapter
,
(
WINED3DDISPLAYMODE
*
)
pMode
);
}
HRESULT
WINAPI
IDirect3D8Impl_CheckDeviceType
(
LPDIRECT3D8
iface
,
static
HRESULT
WINAPI
IDirect3D8Impl_CheckDeviceType
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDEVTYPE
CheckType
,
D3DFORMAT
DisplayFormat
,
D3DFORMAT
BackBufferFormat
,
BOOL
Windowed
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
...
...
@@ -135,7 +135,7 @@ HRESULT WINAPI IDirect3D8Impl_CheckDeviceType (LPDIRECT3D8 iface,
BackBufferFormat
,
Windowed
);
}
HRESULT
WINAPI
IDirect3D8Impl_CheckDeviceFormat
(
LPDIRECT3D8
iface
,
static
HRESULT
WINAPI
IDirect3D8Impl_CheckDeviceFormat
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DFORMAT
AdapterFormat
,
DWORD
Usage
,
D3DRESOURCETYPE
RType
,
D3DFORMAT
CheckFormat
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
...
...
@@ -143,7 +143,7 @@ HRESULT WINAPI IDirect3D8Impl_CheckDeviceFormat (LPDIRECT3D8 iface,
Usage
,
RType
,
CheckFormat
);
}
HRESULT
WINAPI
IDirect3D8Impl_CheckDeviceMultiSampleType
(
LPDIRECT3D8
iface
,
static
HRESULT
WINAPI
IDirect3D8Impl_CheckDeviceMultiSampleType
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DFORMAT
SurfaceFormat
,
BOOL
Windowed
,
D3DMULTISAMPLE_TYPE
MultiSampleType
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
...
...
@@ -151,7 +151,7 @@ HRESULT WINAPI IDirect3D8Impl_CheckDeviceMultiSampleType(LPDIRECT3D8 iface,
Windowed
,
(
WINED3DMULTISAMPLE_TYPE
)
MultiSampleType
,
NULL
);
}
HRESULT
WINAPI
IDirect3D8Impl_CheckDepthStencilMatch
(
LPDIRECT3D8
iface
,
static
HRESULT
WINAPI
IDirect3D8Impl_CheckDepthStencilMatch
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DFORMAT
AdapterFormat
,
D3DFORMAT
RenderTargetFormat
,
D3DFORMAT
DepthStencilFormat
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
...
...
@@ -159,7 +159,7 @@ HRESULT WINAPI IDirect3D8Impl_CheckDepthStencilMatch(LPDIRECT3D8 iface,
RenderTargetFormat
,
DepthStencilFormat
);
}
HRESULT
WINAPI
IDirect3D8Impl_GetDeviceCaps
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DCAPS8
*
pCaps
)
{
static
HRESULT
WINAPI
IDirect3D8Impl_GetDeviceCaps
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
D3DCAPS8
*
pCaps
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
WINED3DCAPS
*
pWineCaps
;
...
...
@@ -180,7 +180,7 @@ HRESULT WINAPI IDirect3D8Impl_GetDeviceCaps(LPDIRECT3D8 iface, UINT Adapter, D
return
hrc
;
}
HMONITOR
WINAPI
IDirect3D8Impl_GetAdapterMonitor
(
LPDIRECT3D8
iface
,
UINT
Adapter
)
{
static
HMONITOR
WINAPI
IDirect3D8Impl_GetAdapterMonitor
(
LPDIRECT3D8
iface
,
UINT
Adapter
)
{
IDirect3D8Impl
*
This
=
(
IDirect3D8Impl
*
)
iface
;
return
IWineD3D_GetAdapterMonitor
(
This
->
WineD3D
,
Adapter
);
}
...
...
@@ -207,7 +207,7 @@ HRESULT WINAPI D3D8CB_CreateRenderTarget(IUnknown *device, UINT Width, UINT Heig
}
/* Callback for creating the inplicite swapchain when the device is created */
HRESULT
WINAPI
D3D8CB_CreateAdditionalSwapChain
(
IUnknown
*
device
,
static
HRESULT
WINAPI
D3D8CB_CreateAdditionalSwapChain
(
IUnknown
*
device
,
WINED3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IWineD3DSwapChain
**
ppSwapChain
){
HRESULT
res
=
D3D_OK
;
...
...
@@ -279,7 +279,7 @@ HRESULT WINAPI D3D8CB_CreateDepthStencilSurface(IUnknown *device, UINT Width, UI
return
res
;
}
HRESULT
WINAPI
IDirect3D8Impl_CreateDevice
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
static
HRESULT
WINAPI
IDirect3D8Impl_CreateDevice
(
LPDIRECT3D8
iface
,
UINT
Adapter
,
D3DDEVTYPE
DeviceType
,
HWND
hFocusWindow
,
DWORD
BehaviourFlags
,
D3DPRESENT_PARAMETERS
*
pPresentationParameters
,
IDirect3DDevice8
**
ppReturnedDeviceInterface
)
{
...
...
dlls/d3d8/indexbuffer.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DIndexBuffer8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_QueryInterface
(
LPDIRECT3DINDEXBUFFER8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_QueryInterface
(
LPDIRECT3DINDEXBUFFER8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -40,7 +40,7 @@ HRESULT WINAPI IDirect3DIndexBuffer8Impl_QueryInterface(LPDIRECT3DINDEXBUFFER8 i
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DIndexBuffer8Impl_AddRef
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
static
ULONG
WINAPI
IDirect3DIndexBuffer8Impl_AddRef
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -49,7 +49,7 @@ ULONG WINAPI IDirect3DIndexBuffer8Impl_AddRef(LPDIRECT3DINDEXBUFFER8 iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DIndexBuffer8Impl_Release
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
static
ULONG
WINAPI
IDirect3DIndexBuffer8Impl_Release
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -64,68 +64,68 @@ ULONG WINAPI IDirect3DIndexBuffer8Impl_Release(LPDIRECT3DINDEXBUFFER8 iface) {
}
/* IDirect3DIndexBuffer8 IDirect3DResource8 Interface follow: */
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_GetDevice
(
LPDIRECT3DINDEXBUFFER8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_GetDevice
(
LPDIRECT3DINDEXBUFFER8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IDirect3DResource8Impl_GetDevice
((
LPDIRECT3DRESOURCE8
)
This
,
ppDevice
);
}
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_SetPrivateData
(
LPDIRECT3DINDEXBUFFER8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_SetPrivateData
(
LPDIRECT3DINDEXBUFFER8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_SetPrivateData
(
This
->
wineD3DIndexBuffer
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_GetPrivateData
(
LPDIRECT3DINDEXBUFFER8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_GetPrivateData
(
LPDIRECT3DINDEXBUFFER8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_GetPrivateData
(
This
->
wineD3DIndexBuffer
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_FreePrivateData
(
LPDIRECT3DINDEXBUFFER8
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_FreePrivateData
(
LPDIRECT3DINDEXBUFFER8
iface
,
REFGUID
refguid
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_FreePrivateData
(
This
->
wineD3DIndexBuffer
,
refguid
);
}
DWORD
WINAPI
IDirect3DIndexBuffer8Impl_SetPriority
(
LPDIRECT3DINDEXBUFFER8
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IDirect3DIndexBuffer8Impl_SetPriority
(
LPDIRECT3DINDEXBUFFER8
iface
,
DWORD
PriorityNew
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_SetPriority
(
This
->
wineD3DIndexBuffer
,
PriorityNew
);
}
DWORD
WINAPI
IDirect3DIndexBuffer8Impl_GetPriority
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
static
DWORD
WINAPI
IDirect3DIndexBuffer8Impl_GetPriority
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_GetPriority
(
This
->
wineD3DIndexBuffer
);
}
void
WINAPI
IDirect3DIndexBuffer8Impl_PreLoad
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
static
void
WINAPI
IDirect3DIndexBuffer8Impl_PreLoad
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_PreLoad
(
This
->
wineD3DIndexBuffer
);
}
D3DRESOURCETYPE
WINAPI
IDirect3DIndexBuffer8Impl_GetType
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
static
D3DRESOURCETYPE
WINAPI
IDirect3DIndexBuffer8Impl_GetType
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_GetType
(
This
->
wineD3DIndexBuffer
);
}
/* IDirect3DIndexBuffer8 Interface follow: */
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_Lock
(
LPDIRECT3DINDEXBUFFER8
iface
,
UINT
OffsetToLock
,
UINT
SizeToLock
,
BYTE
**
ppbData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_Lock
(
LPDIRECT3DINDEXBUFFER8
iface
,
UINT
OffsetToLock
,
UINT
SizeToLock
,
BYTE
**
ppbData
,
DWORD
Flags
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_Lock
(
This
->
wineD3DIndexBuffer
,
OffsetToLock
,
SizeToLock
,
ppbData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_Unlock
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
static
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_Unlock
(
LPDIRECT3DINDEXBUFFER8
iface
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_Unlock
(
This
->
wineD3DIndexBuffer
);
}
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_GetDesc
(
LPDIRECT3DINDEXBUFFER8
iface
,
D3DINDEXBUFFER_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IDirect3DIndexBuffer8Impl_GetDesc
(
LPDIRECT3DINDEXBUFFER8
iface
,
D3DINDEXBUFFER_DESC
*
pDesc
)
{
IDirect3DIndexBuffer8Impl
*
This
=
(
IDirect3DIndexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DIndexBuffer_GetDesc
(
This
->
wineD3DIndexBuffer
,
(
WINED3DINDEXBUFFER_DESC
*
)
pDesc
);
...
...
dlls/d3d8/pixelshader.c
View file @
c3bd09e5
...
...
@@ -25,7 +25,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DPixelShader8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DPixelShader8Impl_QueryInterface
(
IDirect3DPixelShader8
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DPixelShader8Impl_QueryInterface
(
IDirect3DPixelShader8
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DPixelShader8Impl
*
This
=
(
IDirect3DPixelShader8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -40,7 +40,7 @@ HRESULT WINAPI IDirect3DPixelShader8Impl_QueryInterface(IDirect3DPixelShader8 *i
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DPixelShader8Impl_AddRef
(
IDirect3DPixelShader8
*
iface
)
{
static
ULONG
WINAPI
IDirect3DPixelShader8Impl_AddRef
(
IDirect3DPixelShader8
*
iface
)
{
IDirect3DPixelShader8Impl
*
This
=
(
IDirect3DPixelShader8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -49,7 +49,7 @@ ULONG WINAPI IDirect3DPixelShader8Impl_AddRef(IDirect3DPixelShader8 *iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DPixelShader8Impl_Release
(
IDirect3DPixelShader8
*
iface
)
{
static
ULONG
WINAPI
IDirect3DPixelShader8Impl_Release
(
IDirect3DPixelShader8
*
iface
)
{
IDirect3DPixelShader8Impl
*
This
=
(
IDirect3DPixelShader8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -63,7 +63,7 @@ ULONG WINAPI IDirect3DPixelShader8Impl_Release(IDirect3DPixelShader8 * iface) {
}
/* IDirect3DPixelShader8 Interface follow: */
HRESULT
WINAPI
IDirect3DPixelShader8Impl_GetDevice
(
IDirect3DPixelShader8
*
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DPixelShader8Impl_GetDevice
(
IDirect3DPixelShader8
*
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DPixelShader8Impl
*
This
=
(
IDirect3DPixelShader8Impl
*
)
iface
;
IWineD3DDevice
*
myDevice
=
NULL
;
...
...
@@ -76,7 +76,7 @@ HRESULT WINAPI IDirect3DPixelShader8Impl_GetDevice(IDirect3DPixelShader8 *iface,
return
D3D_OK
;
}
HRESULT
WINAPI
IDirect3DPixelShader8Impl_GetFunction
(
IDirect3DPixelShader8
*
iface
,
VOID
*
pData
,
UINT
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DPixelShader8Impl_GetFunction
(
IDirect3DPixelShader8
*
iface
,
VOID
*
pData
,
UINT
*
pSizeOfData
)
{
IDirect3DPixelShader8Impl
*
This
=
(
IDirect3DPixelShader8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DPixelShader_GetFunction
(
This
->
wineD3DPixelShader
,
pData
,
pSizeOfData
);
...
...
dlls/d3d8/resource.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DResource8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DResource8Impl_QueryInterface
(
LPDIRECT3DRESOURCE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DResource8Impl_QueryInterface
(
LPDIRECT3DRESOURCE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -39,7 +39,7 @@ HRESULT WINAPI IDirect3DResource8Impl_QueryInterface(LPDIRECT3DRESOURCE8 iface,
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DResource8Impl_AddRef
(
LPDIRECT3DRESOURCE8
iface
)
{
static
ULONG
WINAPI
IDirect3DResource8Impl_AddRef
(
LPDIRECT3DRESOURCE8
iface
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -48,7 +48,7 @@ ULONG WINAPI IDirect3DResource8Impl_AddRef(LPDIRECT3DRESOURCE8 iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DResource8Impl_Release
(
LPDIRECT3DRESOURCE8
iface
)
{
static
ULONG
WINAPI
IDirect3DResource8Impl_Release
(
LPDIRECT3DRESOURCE8
iface
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -74,44 +74,44 @@ HRESULT WINAPI IDirect3DResource8Impl_GetDevice(LPDIRECT3DRESOURCE8 iface, IDire
return
D3D_OK
;
}
HRESULT
WINAPI
IDirect3DResource8Impl_SetPrivateData
(
LPDIRECT3DRESOURCE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DResource8Impl_SetPrivateData
(
LPDIRECT3DRESOURCE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DResource_SetPrivateData
(
This
->
wineD3DResource
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DResource8Impl_GetPrivateData
(
LPDIRECT3DRESOURCE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DResource8Impl_GetPrivateData
(
LPDIRECT3DRESOURCE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DResource_GetPrivateData
(
This
->
wineD3DResource
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DResource8Impl_FreePrivateData
(
LPDIRECT3DRESOURCE8
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IDirect3DResource8Impl_FreePrivateData
(
LPDIRECT3DRESOURCE8
iface
,
REFGUID
refguid
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DResource_FreePrivateData
(
This
->
wineD3DResource
,
refguid
);
}
DWORD
WINAPI
IDirect3DResource8Impl_SetPriority
(
LPDIRECT3DRESOURCE8
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IDirect3DResource8Impl_SetPriority
(
LPDIRECT3DRESOURCE8
iface
,
DWORD
PriorityNew
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DResource_SetPriority
(
This
->
wineD3DResource
,
PriorityNew
);
}
DWORD
WINAPI
IDirect3DResource8Impl_GetPriority
(
LPDIRECT3DRESOURCE8
iface
)
{
static
DWORD
WINAPI
IDirect3DResource8Impl_GetPriority
(
LPDIRECT3DRESOURCE8
iface
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DResource_GetPriority
(
This
->
wineD3DResource
);
}
void
WINAPI
IDirect3DResource8Impl_PreLoad
(
LPDIRECT3DRESOURCE8
iface
)
{
static
void
WINAPI
IDirect3DResource8Impl_PreLoad
(
LPDIRECT3DRESOURCE8
iface
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
IWineD3DResource_PreLoad
(
This
->
wineD3DResource
);
return
;
}
D3DRESOURCETYPE
WINAPI
IDirect3DResource8Impl_GetType
(
LPDIRECT3DRESOURCE8
iface
)
{
static
D3DRESOURCETYPE
WINAPI
IDirect3DResource8Impl_GetType
(
LPDIRECT3DRESOURCE8
iface
)
{
IDirect3DResource8Impl
*
This
=
(
IDirect3DResource8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DResource_GetType
(
This
->
wineD3DResource
);
...
...
dlls/d3d8/stateblock.c
View file @
c3bd09e5
...
...
@@ -27,7 +27,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d8);
/* NOTE: DirectX8 doesn't export a IDirect3DStateBlock8, the interface is used internally to keep d3d8 and d3d9 as simila as possible */
/* IDirect3DStateBlock8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DStateBlock8Impl_QueryInterface
(
IDirect3DStateBlock8
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DStateBlock8Impl_QueryInterface
(
IDirect3DStateBlock8
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DStateBlock8Impl
*
This
=
(
IDirect3DStateBlock8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -42,7 +42,7 @@ HRESULT WINAPI IDirect3DStateBlock8Impl_QueryInterface(IDirect3DStateBlock8 *ifa
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DStateBlock8Impl_AddRef
(
IDirect3DStateBlock8
*
iface
)
{
static
ULONG
WINAPI
IDirect3DStateBlock8Impl_AddRef
(
IDirect3DStateBlock8
*
iface
)
{
IDirect3DStateBlock8Impl
*
This
=
(
IDirect3DStateBlock8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -51,7 +51,7 @@ ULONG WINAPI IDirect3DStateBlock8Impl_AddRef(IDirect3DStateBlock8 *iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DStateBlock8Impl_Release
(
IDirect3DStateBlock8
*
iface
)
{
static
ULONG
WINAPI
IDirect3DStateBlock8Impl_Release
(
IDirect3DStateBlock8
*
iface
)
{
IDirect3DStateBlock8Impl
*
This
=
(
IDirect3DStateBlock8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -65,19 +65,19 @@ ULONG WINAPI IDirect3DStateBlock8Impl_Release(IDirect3DStateBlock8 *iface) {
}
/* IDirect3DStateBlock8 Interface follow: */
HRESULT
WINAPI
IDirect3DStateBlock8Impl_GetDevice
(
IDirect3DStateBlock8
*
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DStateBlock8Impl_GetDevice
(
IDirect3DStateBlock8
*
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DStateBlock8Impl
*
This
=
(
IDirect3DStateBlock8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IDirect3DResource8Impl_GetDevice
((
LPDIRECT3DRESOURCE8
)
This
,
ppDevice
);
}
HRESULT
WINAPI
IDirect3DStateBlock8Impl_Capture
(
IDirect3DStateBlock8
*
iface
)
{
static
HRESULT
WINAPI
IDirect3DStateBlock8Impl_Capture
(
IDirect3DStateBlock8
*
iface
)
{
IDirect3DStateBlock8Impl
*
This
=
(
IDirect3DStateBlock8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DStateBlock_Capture
(
This
->
wineD3DStateBlock
);
}
HRESULT
WINAPI
IDirect3DStateBlock8Impl_Apply
(
IDirect3DStateBlock8
*
iface
)
{
static
HRESULT
WINAPI
IDirect3DStateBlock8Impl_Apply
(
IDirect3DStateBlock8
*
iface
)
{
IDirect3DStateBlock8Impl
*
This
=
(
IDirect3DStateBlock8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DStateBlock_Apply
(
This
->
wineD3DStateBlock
);
...
...
dlls/d3d8/surface.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DSurface8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DSurface8Impl_QueryInterface
(
LPDIRECT3DSURFACE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DSurface8Impl_QueryInterface
(
LPDIRECT3DSURFACE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -40,7 +40,7 @@ HRESULT WINAPI IDirect3DSurface8Impl_QueryInterface(LPDIRECT3DSURFACE8 iface, RE
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DSurface8Impl_AddRef
(
LPDIRECT3DSURFACE8
iface
)
{
static
ULONG
WINAPI
IDirect3DSurface8Impl_AddRef
(
LPDIRECT3DSURFACE8
iface
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
IUnknown
*
containerParent
=
NULL
;
...
...
@@ -59,7 +59,7 @@ ULONG WINAPI IDirect3DSurface8Impl_AddRef(LPDIRECT3DSURFACE8 iface) {
}
}
ULONG
WINAPI
IDirect3DSurface8Impl_Release
(
LPDIRECT3DSURFACE8
iface
)
{
static
ULONG
WINAPI
IDirect3DSurface8Impl_Release
(
LPDIRECT3DSURFACE8
iface
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
IUnknown
*
containerParent
=
NULL
;
...
...
@@ -85,31 +85,31 @@ ULONG WINAPI IDirect3DSurface8Impl_Release(LPDIRECT3DSURFACE8 iface) {
}
/* IDirect3DSurface8 IDirect3DResource8 Interface follow: */
HRESULT
WINAPI
IDirect3DSurface8Impl_GetDevice
(
LPDIRECT3DSURFACE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DSurface8Impl_GetDevice
(
LPDIRECT3DSURFACE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
return
IDirect3DResource8Impl_GetDevice
((
LPDIRECT3DRESOURCE8
)
This
,
ppDevice
);
}
HRESULT
WINAPI
IDirect3DSurface8Impl_SetPrivateData
(
LPDIRECT3DSURFACE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DSurface8Impl_SetPrivateData
(
LPDIRECT3DSURFACE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DSurface_SetPrivateData
(
This
->
wineD3DSurface
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DSurface8Impl_GetPrivateData
(
LPDIRECT3DSURFACE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DSurface8Impl_GetPrivateData
(
LPDIRECT3DSURFACE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DSurface_GetPrivateData
(
This
->
wineD3DSurface
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DSurface8Impl_FreePrivateData
(
LPDIRECT3DSURFACE8
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IDirect3DSurface8Impl_FreePrivateData
(
LPDIRECT3DSURFACE8
iface
,
REFGUID
refguid
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DSurface_FreePrivateData
(
This
->
wineD3DSurface
,
refguid
);
}
/* IDirect3DSurface8 Interface follow: */
HRESULT
WINAPI
IDirect3DSurface8Impl_GetContainer
(
LPDIRECT3DSURFACE8
iface
,
REFIID
riid
,
void
**
ppContainer
)
{
static
HRESULT
WINAPI
IDirect3DSurface8Impl_GetContainer
(
LPDIRECT3DSURFACE8
iface
,
REFIID
riid
,
void
**
ppContainer
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
HRESULT
res
;
IUnknown
*
IWineContainer
=
NULL
;
...
...
@@ -154,7 +154,7 @@ HRESULT WINAPI IDirect3DSurface8Impl_GetContainer(LPDIRECT3DSURFACE8 iface, REFI
return
res
;
}
HRESULT
WINAPI
IDirect3DSurface8Impl_GetDesc
(
LPDIRECT3DSURFACE8
iface
,
D3DSURFACE_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IDirect3DSurface8Impl_GetDesc
(
LPDIRECT3DSURFACE8
iface
,
D3DSURFACE_DESC
*
pDesc
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
WINED3DSURFACE_DESC
wined3ddesc
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -173,14 +173,14 @@ HRESULT WINAPI IDirect3DSurface8Impl_GetDesc(LPDIRECT3DSURFACE8 iface, D3DSURFAC
return
IWineD3DSurface_GetDesc
(
This
->
wineD3DSurface
,
&
wined3ddesc
);
}
HRESULT
WINAPI
IDirect3DSurface8Impl_LockRect
(
LPDIRECT3DSURFACE8
iface
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DSurface8Impl_LockRect
(
LPDIRECT3DSURFACE8
iface
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
TRACE
(
"(%p) calling IWineD3DSurface_LockRect %p %p %p %ld
\n
"
,
This
,
This
->
wineD3DSurface
,
pLockedRect
,
pRect
,
Flags
);
return
IWineD3DSurface_LockRect
(
This
->
wineD3DSurface
,
(
WINED3DLOCKED_RECT
*
)
pLockedRect
,
pRect
,
Flags
);
}
HRESULT
WINAPI
IDirect3DSurface8Impl_UnlockRect
(
LPDIRECT3DSURFACE8
iface
)
{
static
HRESULT
WINAPI
IDirect3DSurface8Impl_UnlockRect
(
LPDIRECT3DSURFACE8
iface
)
{
IDirect3DSurface8Impl
*
This
=
(
IDirect3DSurface8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DSurface_UnlockRect
(
This
->
wineD3DSurface
);
...
...
dlls/d3d8/swapchain.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DSwapChain IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DSwapChain8Impl_QueryInterface
(
LPDIRECT3DSWAPCHAIN8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
static
HRESULT
WINAPI
IDirect3DSwapChain8Impl_QueryInterface
(
LPDIRECT3DSWAPCHAIN8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DSwapChain8Impl
*
This
=
(
IDirect3DSwapChain8Impl
*
)
iface
;
...
...
@@ -40,7 +40,7 @@ HRESULT WINAPI IDirect3DSwapChain8Impl_QueryInterface(LPDIRECT3DSWAPCHAIN8 iface
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DSwapChain8Impl_AddRef
(
LPDIRECT3DSWAPCHAIN8
iface
)
{
static
ULONG
WINAPI
IDirect3DSwapChain8Impl_AddRef
(
LPDIRECT3DSWAPCHAIN8
iface
)
{
IDirect3DSwapChain8Impl
*
This
=
(
IDirect3DSwapChain8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -49,7 +49,7 @@ ULONG WINAPI IDirect3DSwapChain8Impl_AddRef(LPDIRECT3DSWAPCHAIN8 iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DSwapChain8Impl_Release
(
LPDIRECT3DSWAPCHAIN8
iface
)
{
static
ULONG
WINAPI
IDirect3DSwapChain8Impl_Release
(
LPDIRECT3DSWAPCHAIN8
iface
)
{
IDirect3DSwapChain8Impl
*
This
=
(
IDirect3DSwapChain8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -64,13 +64,13 @@ ULONG WINAPI IDirect3DSwapChain8Impl_Release(LPDIRECT3DSWAPCHAIN8 iface) {
}
/* IDirect3DSwapChain8 parts follow: */
HRESULT
WINAPI
IDirect3DSwapChain8Impl_Present
(
LPDIRECT3DSWAPCHAIN8
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
{
static
HRESULT
WINAPI
IDirect3DSwapChain8Impl_Present
(
LPDIRECT3DSWAPCHAIN8
iface
,
CONST
RECT
*
pSourceRect
,
CONST
RECT
*
pDestRect
,
HWND
hDestWindowOverride
,
CONST
RGNDATA
*
pDirtyRegion
)
{
IDirect3DSwapChain8Impl
*
This
=
(
IDirect3DSwapChain8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DSwapChain_Present
(
This
->
wineD3DSwapChain
,
pSourceRect
,
pDestRect
,
hDestWindowOverride
,
pDirtyRegion
,
0
);
}
HRESULT
WINAPI
IDirect3DSwapChain8Impl_GetBackBuffer
(
LPDIRECT3DSWAPCHAIN8
iface
,
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface8
**
ppBackBuffer
)
{
static
HRESULT
WINAPI
IDirect3DSwapChain8Impl_GetBackBuffer
(
LPDIRECT3DSWAPCHAIN8
iface
,
UINT
iBackBuffer
,
D3DBACKBUFFER_TYPE
Type
,
IDirect3DSurface8
**
ppBackBuffer
)
{
IDirect3DSwapChain8Impl
*
This
=
(
IDirect3DSwapChain8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
IWineD3DSurface
*
mySurface
=
NULL
;
...
...
dlls/d3d8/texture.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DTexture8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DTexture8Impl_QueryInterface
(
LPDIRECT3DTEXTURE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_QueryInterface
(
LPDIRECT3DTEXTURE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -41,7 +41,7 @@ HRESULT WINAPI IDirect3DTexture8Impl_QueryInterface(LPDIRECT3DTEXTURE8 iface, RE
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DTexture8Impl_AddRef
(
LPDIRECT3DTEXTURE8
iface
)
{
static
ULONG
WINAPI
IDirect3DTexture8Impl_AddRef
(
LPDIRECT3DTEXTURE8
iface
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -50,7 +50,7 @@ ULONG WINAPI IDirect3DTexture8Impl_AddRef(LPDIRECT3DTEXTURE8 iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DTexture8Impl_Release
(
LPDIRECT3DTEXTURE8
iface
)
{
static
ULONG
WINAPI
IDirect3DTexture8Impl_Release
(
LPDIRECT3DTEXTURE8
iface
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -65,75 +65,75 @@ ULONG WINAPI IDirect3DTexture8Impl_Release(LPDIRECT3DTEXTURE8 iface) {
}
/* IDirect3DTexture8 IDirect3DResource8 Interface follow: */
HRESULT
WINAPI
IDirect3DTexture8Impl_GetDevice
(
LPDIRECT3DTEXTURE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_GetDevice
(
LPDIRECT3DTEXTURE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IDirect3DResource8Impl_GetDevice
((
LPDIRECT3DRESOURCE8
)
This
,
ppDevice
);
}
HRESULT
WINAPI
IDirect3DTexture8Impl_SetPrivateData
(
LPDIRECT3DTEXTURE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_SetPrivateData
(
LPDIRECT3DTEXTURE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_SetPrivateData
(
This
->
wineD3DTexture
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DTexture8Impl_GetPrivateData
(
LPDIRECT3DTEXTURE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_GetPrivateData
(
LPDIRECT3DTEXTURE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_GetPrivateData
(
This
->
wineD3DTexture
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DTexture8Impl_FreePrivateData
(
LPDIRECT3DTEXTURE8
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_FreePrivateData
(
LPDIRECT3DTEXTURE8
iface
,
REFGUID
refguid
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_FreePrivateData
(
This
->
wineD3DTexture
,
refguid
);
}
DWORD
WINAPI
IDirect3DTexture8Impl_SetPriority
(
LPDIRECT3DTEXTURE8
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IDirect3DTexture8Impl_SetPriority
(
LPDIRECT3DTEXTURE8
iface
,
DWORD
PriorityNew
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_SetPriority
(
This
->
wineD3DTexture
,
PriorityNew
);
}
DWORD
WINAPI
IDirect3DTexture8Impl_GetPriority
(
LPDIRECT3DTEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DTexture8Impl_GetPriority
(
LPDIRECT3DTEXTURE8
iface
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_GetPriority
(
This
->
wineD3DTexture
);
}
void
WINAPI
IDirect3DTexture8Impl_PreLoad
(
LPDIRECT3DTEXTURE8
iface
)
{
static
void
WINAPI
IDirect3DTexture8Impl_PreLoad
(
LPDIRECT3DTEXTURE8
iface
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_PreLoad
(
This
->
wineD3DTexture
);
}
D3DRESOURCETYPE
WINAPI
IDirect3DTexture8Impl_GetType
(
LPDIRECT3DTEXTURE8
iface
)
{
static
D3DRESOURCETYPE
WINAPI
IDirect3DTexture8Impl_GetType
(
LPDIRECT3DTEXTURE8
iface
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_GetType
(
This
->
wineD3DTexture
);
}
/* IDirect3DTexture8 IDirect3DBaseTexture8 Interface follow: */
DWORD
WINAPI
IDirect3DTexture8Impl_SetLOD
(
LPDIRECT3DTEXTURE8
iface
,
DWORD
LODNew
)
{
static
DWORD
WINAPI
IDirect3DTexture8Impl_SetLOD
(
LPDIRECT3DTEXTURE8
iface
,
DWORD
LODNew
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_SetLOD
(
This
->
wineD3DTexture
,
LODNew
);
}
DWORD
WINAPI
IDirect3DTexture8Impl_GetLOD
(
LPDIRECT3DTEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DTexture8Impl_GetLOD
(
LPDIRECT3DTEXTURE8
iface
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_GetLOD
(
This
->
wineD3DTexture
);
}
DWORD
WINAPI
IDirect3DTexture8Impl_GetLevelCount
(
LPDIRECT3DTEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DTexture8Impl_GetLevelCount
(
LPDIRECT3DTEXTURE8
iface
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_GetLevelCount
(
This
->
wineD3DTexture
);
}
/* IDirect3DTexture8 Interface follow: */
HRESULT
WINAPI
IDirect3DTexture8Impl_GetLevelDesc
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
,
D3DSURFACE_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_GetLevelDesc
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
,
D3DSURFACE_DESC
*
pDesc
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
WINED3DSURFACE_DESC
wined3ddesc
;
...
...
@@ -153,7 +153,7 @@ HRESULT WINAPI IDirect3DTexture8Impl_GetLevelDesc(LPDIRECT3DTEXTURE8 iface, UINT
return
IWineD3DTexture_GetLevelDesc
(
This
->
wineD3DTexture
,
Level
,
&
wined3ddesc
);
}
HRESULT
WINAPI
IDirect3DTexture8Impl_GetSurfaceLevel
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
,
IDirect3DSurface8
**
ppSurfaceLevel
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_GetSurfaceLevel
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
,
IDirect3DSurface8
**
ppSurfaceLevel
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
IWineD3DSurface
*
mySurface
=
NULL
;
...
...
@@ -167,19 +167,19 @@ HRESULT WINAPI IDirect3DTexture8Impl_GetSurfaceLevel(LPDIRECT3DTEXTURE8 iface, U
return
hrc
;
}
HRESULT
WINAPI
IDirect3DTexture8Impl_LockRect
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_LockRect
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
,
D3DLOCKED_RECT
*
pLockedRect
,
CONST
RECT
*
pRect
,
DWORD
Flags
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_LockRect
(
This
->
wineD3DTexture
,
Level
,
(
WINED3DLOCKED_RECT
*
)
pLockedRect
,
pRect
,
Flags
);
}
HRESULT
WINAPI
IDirect3DTexture8Impl_UnlockRect
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_UnlockRect
(
LPDIRECT3DTEXTURE8
iface
,
UINT
Level
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_UnlockRect
(
This
->
wineD3DTexture
,
Level
);
}
HRESULT
WINAPI
IDirect3DTexture8Impl_AddDirtyRect
(
LPDIRECT3DTEXTURE8
iface
,
CONST
RECT
*
pDirtyRect
)
{
static
HRESULT
WINAPI
IDirect3DTexture8Impl_AddDirtyRect
(
LPDIRECT3DTEXTURE8
iface
,
CONST
RECT
*
pDirtyRect
)
{
IDirect3DTexture8Impl
*
This
=
(
IDirect3DTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DTexture_AddDirtyRect
(
This
->
wineD3DTexture
,
pDirtyRect
);
...
...
dlls/d3d8/vertexbuffer.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DVertexBuffer8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_QueryInterface
(
LPDIRECT3DVERTEXBUFFER8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_QueryInterface
(
LPDIRECT3DVERTEXBUFFER8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -41,7 +41,7 @@ HRESULT WINAPI IDirect3DVertexBuffer8Impl_QueryInterface(LPDIRECT3DVERTEXBUFFER8
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DVertexBuffer8Impl_AddRef
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
static
ULONG
WINAPI
IDirect3DVertexBuffer8Impl_AddRef
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -50,7 +50,7 @@ ULONG WINAPI IDirect3DVertexBuffer8Impl_AddRef(LPDIRECT3DVERTEXBUFFER8 iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DVertexBuffer8Impl_Release
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
static
ULONG
WINAPI
IDirect3DVertexBuffer8Impl_Release
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -66,49 +66,49 @@ ULONG WINAPI IDirect3DVertexBuffer8Impl_Release(LPDIRECT3DVERTEXBUFFER8 iface) {
}
/* IDirect3DVertexBuffer8 IDirect3DResource8 Interface follow: */
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_GetDevice
(
LPDIRECT3DVERTEXBUFFER8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_GetDevice
(
LPDIRECT3DVERTEXBUFFER8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IDirect3DResource8Impl_GetDevice
((
LPDIRECT3DRESOURCE8
)
This
,
ppDevice
);
}
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_SetPrivateData
(
LPDIRECT3DVERTEXBUFFER8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_SetPrivateData
(
LPDIRECT3DVERTEXBUFFER8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVertexBuffer_SetPrivateData
(
This
->
wineD3DVertexBuffer
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_GetPrivateData
(
LPDIRECT3DVERTEXBUFFER8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_GetPrivateData
(
LPDIRECT3DVERTEXBUFFER8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVertexBuffer_GetPrivateData
(
This
->
wineD3DVertexBuffer
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_FreePrivateData
(
LPDIRECT3DVERTEXBUFFER8
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_FreePrivateData
(
LPDIRECT3DVERTEXBUFFER8
iface
,
REFGUID
refguid
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVertexBuffer_FreePrivateData
(
This
->
wineD3DVertexBuffer
,
refguid
);
}
DWORD
WINAPI
IDirect3DVertexBuffer8Impl_SetPriority
(
LPDIRECT3DVERTEXBUFFER8
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IDirect3DVertexBuffer8Impl_SetPriority
(
LPDIRECT3DVERTEXBUFFER8
iface
,
DWORD
PriorityNew
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVertexBuffer_SetPriority
(
This
->
wineD3DVertexBuffer
,
PriorityNew
);
}
DWORD
WINAPI
IDirect3DVertexBuffer8Impl_GetPriority
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
static
DWORD
WINAPI
IDirect3DVertexBuffer8Impl_GetPriority
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVertexBuffer_GetPriority
(
This
->
wineD3DVertexBuffer
);
}
void
WINAPI
IDirect3DVertexBuffer8Impl_PreLoad
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
static
void
WINAPI
IDirect3DVertexBuffer8Impl_PreLoad
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
IWineD3DVertexBuffer_PreLoad
(
This
->
wineD3DVertexBuffer
);
...
...
@@ -116,7 +116,7 @@ void WINAPI IDirect3DVertexBuffer8Impl_PreLoad(LPDIRECT3DVERTEXBUFFER8 iface) {
return
;
}
D3DRESOURCETYPE
WINAPI
IDirect3DVertexBuffer8Impl_GetType
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
static
D3DRESOURCETYPE
WINAPI
IDirect3DVertexBuffer8Impl_GetType
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
@@ -124,21 +124,21 @@ D3DRESOURCETYPE WINAPI IDirect3DVertexBuffer8Impl_GetType(LPDIRECT3DVERTEXBUFFER
}
/* IDirect3DVertexBuffer8 Interface follow: */
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_Lock
(
LPDIRECT3DVERTEXBUFFER8
iface
,
UINT
OffsetToLock
,
UINT
SizeToLock
,
BYTE
**
ppbData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_Lock
(
LPDIRECT3DVERTEXBUFFER8
iface
,
UINT
OffsetToLock
,
UINT
SizeToLock
,
BYTE
**
ppbData
,
DWORD
Flags
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVertexBuffer_Lock
(
This
->
wineD3DVertexBuffer
,
OffsetToLock
,
SizeToLock
,
ppbData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_Unlock
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
static
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_Unlock
(
LPDIRECT3DVERTEXBUFFER8
iface
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVertexBuffer_Unlock
(
This
->
wineD3DVertexBuffer
);
}
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_GetDesc
(
LPDIRECT3DVERTEXBUFFER8
iface
,
D3DVERTEXBUFFER_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IDirect3DVertexBuffer8Impl_GetDesc
(
LPDIRECT3DVERTEXBUFFER8
iface
,
D3DVERTEXBUFFER_DESC
*
pDesc
)
{
IDirect3DVertexBuffer8Impl
*
This
=
(
IDirect3DVertexBuffer8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
...
...
dlls/d3d8/vertexshader.c
View file @
c3bd09e5
...
...
@@ -25,7 +25,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DVertexShader8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DVertexShader8Impl_QueryInterface
(
IDirect3DVertexShader8
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DVertexShader8Impl_QueryInterface
(
IDirect3DVertexShader8
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DVertexShader8Impl
*
This
=
(
IDirect3DVertexShader8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -40,7 +40,7 @@ HRESULT WINAPI IDirect3DVertexShader8Impl_QueryInterface(IDirect3DVertexShader8
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DVertexShader8Impl_AddRef
(
IDirect3DVertexShader8
*
iface
)
{
static
ULONG
WINAPI
IDirect3DVertexShader8Impl_AddRef
(
IDirect3DVertexShader8
*
iface
)
{
IDirect3DVertexShader8Impl
*
This
=
(
IDirect3DVertexShader8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -49,7 +49,7 @@ ULONG WINAPI IDirect3DVertexShader8Impl_AddRef(IDirect3DVertexShader8 *iface) {
return
ref
;
}
ULONG
WINAPI
IDirect3DVertexShader8Impl_Release
(
IDirect3DVertexShader8
*
iface
)
{
static
ULONG
WINAPI
IDirect3DVertexShader8Impl_Release
(
IDirect3DVertexShader8
*
iface
)
{
IDirect3DVertexShader8Impl
*
This
=
(
IDirect3DVertexShader8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -63,7 +63,7 @@ ULONG WINAPI IDirect3DVertexShader8Impl_Release(IDirect3DVertexShader8 *iface) {
}
/* IDirect3DVertexShader8 Interface follow: */
HRESULT
WINAPI
IDirect3DVertexShader8Impl_GetDevice
(
IDirect3DVertexShader8
*
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DVertexShader8Impl_GetDevice
(
IDirect3DVertexShader8
*
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DVertexShader8Impl
*
This
=
(
IDirect3DVertexShader8Impl
*
)
iface
;
IWineD3DDevice
*
myDevice
=
NULL
;
HRESULT
hr
=
D3D_OK
;
...
...
@@ -79,7 +79,7 @@ HRESULT WINAPI IDirect3DVertexShader8Impl_GetDevice(IDirect3DVertexShader8 *ifac
return
hr
;
}
HRESULT
WINAPI
IDirect3DVertexShader8Impl_GetFunction
(
IDirect3DVertexShader8
*
iface
,
VOID
*
pData
,
UINT
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DVertexShader8Impl_GetFunction
(
IDirect3DVertexShader8
*
iface
,
VOID
*
pData
,
UINT
*
pSizeOfData
)
{
IDirect3DVertexShader8Impl
*
This
=
(
IDirect3DVertexShader8Impl
*
)
iface
;
TRACE
(
"(%p) : Relay
\n
"
,
This
);
...
...
dlls/d3d8/volume.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DVolume8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DVolume8Impl_QueryInterface
(
LPDIRECT3DVOLUME8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DVolume8Impl_QueryInterface
(
LPDIRECT3DVOLUME8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -39,7 +39,7 @@ HRESULT WINAPI IDirect3DVolume8Impl_QueryInterface(LPDIRECT3DVOLUME8 iface, REFI
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DVolume8Impl_AddRef
(
LPDIRECT3DVOLUME8
iface
)
{
static
ULONG
WINAPI
IDirect3DVolume8Impl_AddRef
(
LPDIRECT3DVOLUME8
iface
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
IUnknown
*
containerParent
=
NULL
;
...
...
@@ -58,7 +58,7 @@ ULONG WINAPI IDirect3DVolume8Impl_AddRef(LPDIRECT3DVOLUME8 iface) {
}
}
ULONG
WINAPI
IDirect3DVolume8Impl_Release
(
LPDIRECT3DVOLUME8
iface
)
{
static
ULONG
WINAPI
IDirect3DVolume8Impl_Release
(
LPDIRECT3DVOLUME8
iface
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
IUnknown
*
containerParent
=
NULL
;
...
...
@@ -85,7 +85,7 @@ ULONG WINAPI IDirect3DVolume8Impl_Release(LPDIRECT3DVOLUME8 iface) {
}
/* IDirect3DVolume8 Interface follow: */
HRESULT
WINAPI
IDirect3DVolume8Impl_GetDevice
(
LPDIRECT3DVOLUME8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DVolume8Impl_GetDevice
(
LPDIRECT3DVOLUME8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
IWineD3DDevice
*
myDevice
=
NULL
;
...
...
@@ -95,25 +95,25 @@ HRESULT WINAPI IDirect3DVolume8Impl_GetDevice(LPDIRECT3DVOLUME8 iface, IDirect3D
return
D3D_OK
;
}
HRESULT
WINAPI
IDirect3DVolume8Impl_SetPrivateData
(
LPDIRECT3DVOLUME8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DVolume8Impl_SetPrivateData
(
LPDIRECT3DVOLUME8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolume_SetPrivateData
(
This
->
wineD3DVolume
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DVolume8Impl_GetPrivateData
(
LPDIRECT3DVOLUME8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DVolume8Impl_GetPrivateData
(
LPDIRECT3DVOLUME8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolume_GetPrivateData
(
This
->
wineD3DVolume
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DVolume8Impl_FreePrivateData
(
LPDIRECT3DVOLUME8
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IDirect3DVolume8Impl_FreePrivateData
(
LPDIRECT3DVOLUME8
iface
,
REFGUID
refguid
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolume_FreePrivateData
(
This
->
wineD3DVolume
,
refguid
);
}
HRESULT
WINAPI
IDirect3DVolume8Impl_GetContainer
(
LPDIRECT3DVOLUME8
iface
,
REFIID
riid
,
void
**
ppContainer
)
{
static
HRESULT
WINAPI
IDirect3DVolume8Impl_GetContainer
(
LPDIRECT3DVOLUME8
iface
,
REFIID
riid
,
void
**
ppContainer
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
HRESULT
res
;
IUnknown
*
IWineContainer
=
NULL
;
...
...
@@ -130,7 +130,7 @@ HRESULT WINAPI IDirect3DVolume8Impl_GetContainer(LPDIRECT3DVOLUME8 iface, REFIID
return
res
;
}
HRESULT
WINAPI
IDirect3DVolume8Impl_GetDesc
(
LPDIRECT3DVOLUME8
iface
,
D3DVOLUME_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IDirect3DVolume8Impl_GetDesc
(
LPDIRECT3DVOLUME8
iface
,
D3DVOLUME_DESC
*
pDesc
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
WINED3DVOLUME_DESC
wined3ddesc
;
...
...
@@ -149,19 +149,19 @@ HRESULT WINAPI IDirect3DVolume8Impl_GetDesc(LPDIRECT3DVOLUME8 iface, D3DVOLUME_D
return
IWineD3DVolume_GetDesc
(
This
->
wineD3DVolume
,
&
wined3ddesc
);
}
HRESULT
WINAPI
IDirect3DVolume8Impl_LockBox
(
LPDIRECT3DVOLUME8
iface
,
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DVolume8Impl_LockBox
(
LPDIRECT3DVOLUME8
iface
,
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
TRACE
(
"(%p) relay %p %p %p %ld
\n
"
,
This
,
This
->
wineD3DVolume
,
pLockedVolume
,
pBox
,
Flags
);
return
IWineD3DVolume_LockBox
(
This
->
wineD3DVolume
,
(
WINED3DLOCKED_BOX
*
)
pLockedVolume
,
(
WINED3DBOX
*
)
pBox
,
Flags
);
}
HRESULT
WINAPI
IDirect3DVolume8Impl_UnlockBox
(
LPDIRECT3DVOLUME8
iface
)
{
static
HRESULT
WINAPI
IDirect3DVolume8Impl_UnlockBox
(
LPDIRECT3DVOLUME8
iface
)
{
IDirect3DVolume8Impl
*
This
=
(
IDirect3DVolume8Impl
*
)
iface
;
TRACE
(
"(%p) relay %p
\n
"
,
This
,
This
->
wineD3DVolume
);
return
IWineD3DVolume_UnlockBox
(
This
->
wineD3DVolume
);
}
const
IDirect3DVolume8Vtbl
Direct3DVolume8_Vtbl
=
static
const
IDirect3DVolume8Vtbl
Direct3DVolume8_Vtbl
=
{
/* IUnknown */
IDirect3DVolume8Impl_QueryInterface
,
...
...
dlls/d3d8/volumetexture.c
View file @
c3bd09e5
...
...
@@ -24,7 +24,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
/* IDirect3DVolumeTexture8 IUnknown parts follow: */
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_QueryInterface
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_QueryInterface
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
...
...
@@ -41,7 +41,7 @@ HRESULT WINAPI IDirect3DVolumeTexture8Impl_QueryInterface(LPDIRECT3DVOLUMETEXTUR
return
E_NOINTERFACE
;
}
ULONG
WINAPI
IDirect3DVolumeTexture8Impl_AddRef
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
static
ULONG
WINAPI
IDirect3DVolumeTexture8Impl_AddRef
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
ULONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
...
...
@@ -50,7 +50,7 @@ ULONG WINAPI IDirect3DVolumeTexture8Impl_AddRef(LPDIRECT3DVOLUMETEXTURE8 iface)
return
ref
;
}
ULONG
WINAPI
IDirect3DVolumeTexture8Impl_Release
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
static
ULONG
WINAPI
IDirect3DVolumeTexture8Impl_Release
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
...
...
@@ -65,75 +65,75 @@ ULONG WINAPI IDirect3DVolumeTexture8Impl_Release(LPDIRECT3DVOLUMETEXTURE8 iface)
}
/* IDirect3DVolumeTexture8 IDirect3DResource8 Interface follow: */
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_GetDevice
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_GetDevice
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
IDirect3DDevice8
**
ppDevice
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IDirect3DResource8Impl_GetDevice
((
LPDIRECT3DRESOURCE8
)
This
,
ppDevice
);
}
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_SetPrivateData
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_SetPrivateData
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
REFGUID
refguid
,
CONST
void
*
pData
,
DWORD
SizeOfData
,
DWORD
Flags
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_SetPrivateData
(
This
->
wineD3DVolumeTexture
,
refguid
,
pData
,
SizeOfData
,
Flags
);
}
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_GetPrivateData
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_GetPrivateData
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
REFGUID
refguid
,
void
*
pData
,
DWORD
*
pSizeOfData
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_GetPrivateData
(
This
->
wineD3DVolumeTexture
,
refguid
,
pData
,
pSizeOfData
);
}
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_FreePrivateData
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
REFGUID
refguid
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_FreePrivateData
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
REFGUID
refguid
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_FreePrivateData
(
This
->
wineD3DVolumeTexture
,
refguid
);
}
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_SetPriority
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
DWORD
PriorityNew
)
{
static
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_SetPriority
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
DWORD
PriorityNew
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_SetPriority
(
This
->
wineD3DVolumeTexture
,
PriorityNew
);
}
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_GetPriority
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_GetPriority
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_GetPriority
(
This
->
wineD3DVolumeTexture
);
}
void
WINAPI
IDirect3DVolumeTexture8Impl_PreLoad
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
static
void
WINAPI
IDirect3DVolumeTexture8Impl_PreLoad
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_PreLoad
(
This
->
wineD3DVolumeTexture
);
}
D3DRESOURCETYPE
WINAPI
IDirect3DVolumeTexture8Impl_GetType
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
static
D3DRESOURCETYPE
WINAPI
IDirect3DVolumeTexture8Impl_GetType
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_GetType
(
This
->
wineD3DVolumeTexture
);
}
/* IDirect3DVolumeTexture8 IDirect3DBaseTexture8 Interface follow: */
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_SetLOD
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
DWORD
LODNew
)
{
static
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_SetLOD
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
DWORD
LODNew
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_SetLOD
(
This
->
wineD3DVolumeTexture
,
LODNew
);
}
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_GetLOD
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_GetLOD
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_GetLOD
(
This
->
wineD3DVolumeTexture
);
}
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_GetLevelCount
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
static
DWORD
WINAPI
IDirect3DVolumeTexture8Impl_GetLevelCount
(
LPDIRECT3DVOLUMETEXTURE8
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_GetLevelCount
(
This
->
wineD3DVolumeTexture
);
}
/* IDirect3DVolumeTexture8 Interface follow: */
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_GetLevelDesc
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
UINT
Level
,
D3DVOLUME_DESC
*
pDesc
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_GetLevelDesc
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
UINT
Level
,
D3DVOLUME_DESC
*
pDesc
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
WINED3DVOLUME_DESC
wined3ddesc
;
UINT
tmpInt
=
-
1
;
...
...
@@ -153,7 +153,7 @@ HRESULT WINAPI IDirect3DVolumeTexture8Impl_GetLevelDesc(LPDIRECT3DVOLUMETEXTURE8
return
IWineD3DVolumeTexture_GetLevelDesc
(
This
->
wineD3DVolumeTexture
,
Level
,
&
wined3ddesc
);
}
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_GetVolumeLevel
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
UINT
Level
,
IDirect3DVolume8
**
ppVolumeLevel
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_GetVolumeLevel
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
UINT
Level
,
IDirect3DVolume8
**
ppVolumeLevel
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
HRESULT
hrc
=
D3D_OK
;
IWineD3DVolume
*
myVolume
=
NULL
;
...
...
@@ -168,19 +168,19 @@ HRESULT WINAPI IDirect3DVolumeTexture8Impl_GetVolumeLevel(LPDIRECT3DVOLUMETEXTUR
return
hrc
;
}
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_LockBox
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
UINT
Level
,
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_LockBox
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
UINT
Level
,
D3DLOCKED_BOX
*
pLockedVolume
,
CONST
D3DBOX
*
pBox
,
DWORD
Flags
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay %p %p %p %ld
\n
"
,
This
,
This
->
wineD3DVolumeTexture
,
pLockedVolume
,
pBox
,
Flags
);
return
IWineD3DVolumeTexture_LockBox
(
This
->
wineD3DVolumeTexture
,
Level
,
(
WINED3DLOCKED_BOX
*
)
pLockedVolume
,
(
WINED3DBOX
*
)
pBox
,
Flags
);
}
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_UnlockBox
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
UINT
Level
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_UnlockBox
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
UINT
Level
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay %p %d
\n
"
,
This
,
This
->
wineD3DVolumeTexture
,
Level
);
return
IWineD3DVolumeTexture_UnlockBox
(
This
->
wineD3DVolumeTexture
,
Level
);
}
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_AddDirtyBox
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
CONST
D3DBOX
*
pDirtyBox
)
{
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_AddDirtyBox
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
CONST
D3DBOX
*
pDirtyBox
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
TRACE
(
"(%p) Relay
\n
"
,
This
);
return
IWineD3DVolumeTexture_AddDirtyBox
(
This
->
wineD3DVolumeTexture
,
(
WINED3DBOX
*
)
pDirtyBox
);
...
...
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