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
83761d20
Commit
83761d20
authored
Apr 18, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Get rid of IDirect3DBaseTexture8Impl.
parent
715fd2ae
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
26 deletions
+25
-26
buffer.c
dlls/d3d8/buffer.c
+0
-1
d3d8_private.h
dlls/d3d8/d3d8_private.h
+2
-17
device.c
dlls/d3d8/device.c
+13
-7
surface.c
dlls/d3d8/surface.c
+0
-1
texture.c
dlls/d3d8/texture.c
+10
-0
No files found.
dlls/d3d8/buffer.c
View file @
83761d20
...
...
@@ -17,7 +17,6 @@
*/
#include "config.h"
#include <assert.h>
#include "d3d8_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
...
...
dlls/d3d8/d3d8_private.h
View file @
83761d20
...
...
@@ -23,6 +23,7 @@
#ifndef __WINE_D3D8_PRIVATE_H
#define __WINE_D3D8_PRIVATE_H
#include <assert.h>
#include <stdarg.h>
#define NONAMELESSUNION
...
...
@@ -293,21 +294,6 @@ HRESULT indexbuffer_init(IDirect3DIndexBuffer8Impl *buffer, IDirect3DDevice8Impl
UINT
size
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
IDirect3DIndexBuffer8Impl
*
unsafe_impl_from_IDirect3DIndexBuffer8
(
IDirect3DIndexBuffer8
*
iface
)
DECLSPEC_HIDDEN
;
/* --------------------- */
/* IDirect3DBaseTexture8 */
/* --------------------- */
/*****************************************************************************
* IDirect3DBaseTexture8 implementation structure
*/
struct
IDirect3DBaseTexture8Impl
{
/* IUnknown fields */
const
IDirect3DBaseTexture8Vtbl
*
lpVtbl
;
LONG
ref
;
struct
wined3d_texture
*
wined3d_texture
;
};
struct
d3d8_texture
{
IDirect3DBaseTexture8
IDirect3DBaseTexture8_iface
;
...
...
@@ -318,12 +304,11 @@ struct d3d8_texture
HRESULT
cubetexture_init
(
struct
d3d8_texture
*
texture
,
IDirect3DDevice8Impl
*
device
,
UINT
edge_length
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
HRESULT
texture_init
(
struct
d3d8_texture
*
texture
,
IDirect3DDevice8Impl
*
device
,
UINT
width
,
UINT
height
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
HRESULT
volumetexture_init
(
struct
d3d8_texture
*
texture
,
IDirect3DDevice8Impl
*
device
,
UINT
width
,
UINT
height
,
UINT
depth
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
struct
d3d8_texture
*
unsafe_impl_from_IDirect3DBaseTexture8
(
IDirect3DBaseTexture8
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d8_vertex_declaration
{
...
...
dlls/d3d8/device.c
View file @
83761d20
...
...
@@ -1032,14 +1032,17 @@ static HRESULT WINAPI IDirect3DDevice8Impl_UpdateTexture(IDirect3DDevice8 *iface
IDirect3DBaseTexture8
*
src_texture
,
IDirect3DBaseTexture8
*
dst_texture
)
{
IDirect3DDevice8Impl
*
This
=
impl_from_IDirect3DDevice8
(
iface
);
struct
d3d8_texture
*
src_impl
,
*
dst_impl
;
HRESULT
hr
;
TRACE
(
"iface %p, src_texture %p, dst_texture %p.
\n
"
,
iface
,
src_texture
,
dst_texture
);
src_impl
=
unsafe_impl_from_IDirect3DBaseTexture8
(
src_texture
);
dst_impl
=
unsafe_impl_from_IDirect3DBaseTexture8
(
dst_texture
);
wined3d_mutex_lock
();
hr
=
wined3d_device_update_texture
(
This
->
wined3d_device
,
((
IDirect3DBaseTexture8Impl
*
)
src_texture
)
->
wined3d_texture
,
((
IDirect3DBaseTexture8Impl
*
)
dst_texture
)
->
wined3d_texture
);
src_impl
->
wined3d_texture
,
dst_impl
->
wined3d_texture
);
wined3d_mutex_unlock
();
return
hr
;
...
...
@@ -1732,17 +1735,20 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetTexture(IDirect3DDevice8 *iface,
return
D3D_OK
;
}
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetTexture
(
IDirect3DDevice8
*
iface
,
DWORD
S
tage
,
IDirect3DBaseTexture8
*
pT
exture
)
static
HRESULT
WINAPI
IDirect3DDevice8Impl_SetTexture
(
IDirect3DDevice8
*
iface
,
DWORD
s
tage
,
IDirect3DBaseTexture8
*
t
exture
)
{
IDirect3DDevice8Impl
*
This
=
impl_from_IDirect3DDevice8
(
iface
);
struct
d3d8_texture
*
texture_impl
;
HRESULT
hr
;
TRACE
(
"iface %p, stage %u, texture %p.
\n
"
,
iface
,
Stage
,
pTexture
);
TRACE
(
"iface %p, stage %u, texture %p.
\n
"
,
iface
,
stage
,
texture
);
texture_impl
=
unsafe_impl_from_IDirect3DBaseTexture8
(
texture
);
wined3d_mutex_lock
();
hr
=
wined3d_device_set_texture
(
This
->
wined3d_device
,
S
tage
,
pTexture
?
((
IDirect3DBaseTexture8Impl
*
)
pTexture
)
->
wined3d_texture
:
NULL
);
hr
=
wined3d_device_set_texture
(
This
->
wined3d_device
,
s
tage
,
texture_impl
?
texture_impl
->
wined3d_texture
:
NULL
);
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/d3d8/surface.c
View file @
83761d20
...
...
@@ -19,7 +19,6 @@
*/
#include "config.h"
#include <assert.h>
#include "d3d8_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3d8
);
...
...
dlls/d3d8/texture.c
View file @
83761d20
...
...
@@ -1137,6 +1137,16 @@ static const IDirect3DVolumeTexture8Vtbl Direct3DVolumeTexture8_Vtbl =
d3d8_texture_3d_AddDirtyBox
};
struct
d3d8_texture
*
unsafe_impl_from_IDirect3DBaseTexture8
(
IDirect3DBaseTexture8
*
iface
)
{
if
(
!
iface
)
return
NULL
;
assert
(
iface
->
lpVtbl
==
(
const
IDirect3DBaseTexture8Vtbl
*
)
&
Direct3DTexture8_Vtbl
||
iface
->
lpVtbl
==
(
const
IDirect3DBaseTexture8Vtbl
*
)
&
Direct3DCubeTexture8_Vtbl
||
iface
->
lpVtbl
==
(
const
IDirect3DBaseTexture8Vtbl
*
)
&
Direct3DVolumeTexture8_Vtbl
);
return
CONTAINING_RECORD
(
iface
,
struct
d3d8_texture
,
IDirect3DBaseTexture8_iface
);
}
static
void
STDMETHODCALLTYPE
d3d8_texture_wined3d_object_destroyed
(
void
*
parent
)
{
HeapFree
(
GetProcessHeap
(),
0
,
parent
);
...
...
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