Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
21c65893
Commit
21c65893
authored
Apr 22, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Get rid of IDirect3DCubeTexture9Impl.
parent
5569db9a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
22 deletions
+7
-22
cubetexture.c
dlls/d3d9/cubetexture.c
+0
-0
d3d9_private.h
dlls/d3d9/d3d9_private.h
+2
-17
device.c
dlls/d3d9/device.c
+3
-3
texture.c
dlls/d3d9/texture.c
+2
-2
No files found.
dlls/d3d9/cubetexture.c
View file @
21c65893
This diff is collapsed.
Click to expand it.
dlls/d3d9/d3d9_private.h
View file @
21c65893
...
...
@@ -305,28 +305,13 @@ typedef struct IDirect3DBaseTexture9Impl
struct
d3d9_texture
{
IDirect3D
Texture9
IDirect3D
Texture9_iface
;
IDirect3D
BaseTexture9
IDirect3DBase
Texture9_iface
;
LONG
refcount
;
struct
wined3d_texture
*
wined3d_texture
;
IDirect3DDevice9Ex
*
parent_device
;
};
/* --------------------- */
/* IDirect3DCubeTexture9 */
/* --------------------- */
/*****************************************************************************
* IDirect3DCubeTexture9 implementation structure
*/
typedef
struct
IDirect3DCubeTexture9Impl
{
IDirect3DCubeTexture9
IDirect3DCubeTexture9_iface
;
LONG
ref
;
struct
wined3d_texture
*
wined3d_texture
;
IDirect3DDevice9Ex
*
parentDevice
;
}
IDirect3DCubeTexture9Impl
;
HRESULT
cubetexture_init
(
IDirect3DCubeTexture9Impl
*
texture
,
IDirect3DDevice9Impl
*
device
,
HRESULT
cubetexture_init
(
struct
d3d9_texture
*
texture
,
IDirect3DDevice9Impl
*
device
,
UINT
edge_length
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
HRESULT
texture_init
(
struct
d3d9_texture
*
texture
,
IDirect3DDevice9Impl
*
device
,
UINT
width
,
UINT
height
,
UINT
levels
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3d9/device.c
View file @
21c65893
...
...
@@ -721,7 +721,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateTexture(IDirect3DDevice9Ex *ifa
}
TRACE
(
"Created texture %p.
\n
"
,
object
);
*
texture
=
&
object
->
IDirect3D
Texture9_iface
;
*
texture
=
(
IDirect3DTexture9
*
)
&
object
->
IDirect3DBase
Texture9_iface
;
return
D3D_OK
;
}
...
...
@@ -768,7 +768,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateCubeTexture(IDirect3DDevice9Ex
IDirect3DCubeTexture9
**
texture
,
HANDLE
*
shared_handle
)
{
IDirect3DDevice9Impl
*
This
=
impl_from_IDirect3DDevice9Ex
(
iface
);
IDirect3DCubeTexture9Impl
*
object
;
struct
d3d9_texture
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, edge_length %u, levels %u, usage %#x, format %#x, pool %#x, texture %p, shared_handle %p.
\n
"
,
...
...
@@ -793,7 +793,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_CreateCubeTexture(IDirect3DDevice9Ex
}
TRACE
(
"Created cube texture %p.
\n
"
,
object
);
*
texture
=
&
object
->
IDirect3DCub
eTexture9_iface
;
*
texture
=
(
IDirect3DCubeTexture9
*
)
&
object
->
IDirect3DBas
eTexture9_iface
;
return
D3D_OK
;
}
...
...
dlls/d3d9/texture.c
View file @
21c65893
...
...
@@ -27,7 +27,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(d3d9);
static
inline
struct
d3d9_texture
*
impl_from_IDirect3DTexture9
(
IDirect3DTexture9
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
struct
d3d9_texture
,
IDirect3DTexture9_iface
);
return
CONTAINING_RECORD
(
iface
,
struct
d3d9_texture
,
IDirect3D
Base
Texture9_iface
);
}
static
HRESULT
WINAPI
d3d9_texture_2d_QueryInterface
(
IDirect3DTexture9
*
iface
,
REFIID
riid
,
void
**
out
)
...
...
@@ -447,7 +447,7 @@ HRESULT texture_init(struct d3d9_texture *texture, IDirect3DDevice9Impl *device,
{
HRESULT
hr
;
texture
->
IDirect3D
Texture9_iface
.
lpVtbl
=
&
d3d9_texture_2d_vtbl
;
texture
->
IDirect3D
BaseTexture9_iface
.
lpVtbl
=
(
const
IDirect3DBaseTexture9Vtbl
*
)
&
d3d9_texture_2d_vtbl
;
texture
->
refcount
=
1
;
wined3d_mutex_lock
();
...
...
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