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
f77c0e36
Commit
f77c0e36
authored
Mar 15, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of IWineD3DVolumeTextureImpl.
parent
ed003785
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
31 deletions
+21
-31
device.c
dlls/wined3d/device.c
+2
-2
volume.c
dlls/wined3d/volume.c
+1
-1
volumetexture.c
dlls/wined3d/volumetexture.c
+12
-14
wined3d_private.h
dlls/wined3d/wined3d_private.h
+6
-14
No files found.
dlls/wined3d/device.c
View file @
f77c0e36
...
...
@@ -1139,8 +1139,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateVolumeTexture(IWineD3DDevice *ifa
UINT
Width
,
UINT
Height
,
UINT
Depth
,
UINT
Levels
,
DWORD
Usage
,
enum
wined3d_format_id
Format
,
WINED3DPOOL
Pool
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
,
IWineD3DBaseTexture
**
ppVolumeTexture
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3D
Volum
eTextureImpl
*
object
;
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
IWineD3D
Bas
eTextureImpl
*
object
;
HRESULT
hr
;
TRACE
(
"(%p) : W(%u) H(%u) D(%u), Lvl(%u) Usage(%#x), Fmt(%u,%s), Pool(%s)
\n
"
,
This
,
Width
,
Height
,
...
...
dlls/wined3d/volume.c
View file @
f77c0e36
...
...
@@ -85,7 +85,7 @@ void volume_add_dirty_box(struct IWineD3DVolumeImpl *volume, const WINED3DBOX *d
}
}
void
volume_set_container
(
IWineD3DVolumeImpl
*
volume
,
struct
IWineD3D
Volum
eTextureImpl
*
container
)
void
volume_set_container
(
IWineD3DVolumeImpl
*
volume
,
struct
IWineD3D
Bas
eTextureImpl
*
container
)
{
TRACE
(
"volume %p, container %p.
\n
"
,
volume
,
container
);
...
...
dlls/wined3d/volumetexture.c
View file @
f77c0e36
/*
* IWineD3DVolumeTexture implementation
*
* Copyright 2002-2005 Jason Edmeades
* Copyright 2002-2005 Raphael Junqueira
* Copyright 2005 Oliver Stieber
...
...
@@ -113,7 +111,7 @@ static const struct wined3d_resource_ops volumetexture_resource_ops =
volumetexture_unload
,
};
static
void
volumetexture_cleanup
(
IWineD3D
Volum
eTextureImpl
*
This
)
static
void
volumetexture_cleanup
(
IWineD3D
Bas
eTextureImpl
*
This
)
{
unsigned
int
i
;
...
...
@@ -141,7 +139,7 @@ static void volumetexture_cleanup(IWineD3DVolumeTextureImpl *This)
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_QueryInterface
(
IWineD3DBaseTexture
*
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
IWineD3D
VolumeTextureImpl
*
This
=
(
IWineD3DVolum
eTextureImpl
*
)
iface
;
IWineD3D
BaseTextureImpl
*
This
=
(
IWineD3DBas
eTextureImpl
*
)
iface
;
TRACE
(
"(%p)->(%s,%p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IWineD3DBase
)
...
...
@@ -158,7 +156,7 @@ static HRESULT WINAPI IWineD3DVolumeTextureImpl_QueryInterface(IWineD3DBaseTextu
static
ULONG
WINAPI
IWineD3DVolumeTextureImpl_AddRef
(
IWineD3DBaseTexture
*
iface
)
{
IWineD3D
VolumeTextureImpl
*
This
=
(
IWineD3DVolum
eTextureImpl
*
)
iface
;
IWineD3D
BaseTextureImpl
*
This
=
(
IWineD3DBas
eTextureImpl
*
)
iface
;
TRACE
(
"(%p) : AddRef increasing from %d
\n
"
,
This
,
This
->
resource
.
ref
);
return
InterlockedIncrement
(
&
This
->
resource
.
ref
);
}
...
...
@@ -166,7 +164,7 @@ static ULONG WINAPI IWineD3DVolumeTextureImpl_AddRef(IWineD3DBaseTexture *iface)
/* Do not call while under the GL lock. */
static
ULONG
WINAPI
IWineD3DVolumeTextureImpl_Release
(
IWineD3DBaseTexture
*
iface
)
{
IWineD3D
VolumeTextureImpl
*
This
=
(
IWineD3DVolum
eTextureImpl
*
)
iface
;
IWineD3D
BaseTextureImpl
*
This
=
(
IWineD3DBas
eTextureImpl
*
)
iface
;
ULONG
ref
;
TRACE
(
"(%p) : Releasing from %d
\n
"
,
This
,
This
->
resource
.
ref
);
ref
=
InterlockedDecrement
(
&
This
->
resource
.
ref
);
...
...
@@ -182,28 +180,28 @@ static ULONG WINAPI IWineD3DVolumeTextureImpl_Release(IWineD3DBaseTexture *iface
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_SetPrivateData
(
IWineD3DBaseTexture
*
iface
,
REFGUID
riid
,
const
void
*
data
,
DWORD
data_size
,
DWORD
flags
)
{
return
resource_set_private_data
(
&
((
IWineD3D
Volum
eTextureImpl
*
)
iface
)
->
resource
,
riid
,
data
,
data_size
,
flags
);
return
resource_set_private_data
(
&
((
IWineD3D
Bas
eTextureImpl
*
)
iface
)
->
resource
,
riid
,
data
,
data_size
,
flags
);
}
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_GetPrivateData
(
IWineD3DBaseTexture
*
iface
,
REFGUID
guid
,
void
*
data
,
DWORD
*
data_size
)
{
return
resource_get_private_data
(
&
((
IWineD3D
Volum
eTextureImpl
*
)
iface
)
->
resource
,
guid
,
data
,
data_size
);
return
resource_get_private_data
(
&
((
IWineD3D
Bas
eTextureImpl
*
)
iface
)
->
resource
,
guid
,
data
,
data_size
);
}
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_FreePrivateData
(
IWineD3DBaseTexture
*
iface
,
REFGUID
refguid
)
{
return
resource_free_private_data
(
&
((
IWineD3D
Volum
eTextureImpl
*
)
iface
)
->
resource
,
refguid
);
return
resource_free_private_data
(
&
((
IWineD3D
Bas
eTextureImpl
*
)
iface
)
->
resource
,
refguid
);
}
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_SetPriority
(
IWineD3DBaseTexture
*
iface
,
DWORD
priority
)
{
return
resource_set_priority
(
&
((
IWineD3D
Volum
eTextureImpl
*
)
iface
)
->
resource
,
priority
);
return
resource_set_priority
(
&
((
IWineD3D
Bas
eTextureImpl
*
)
iface
)
->
resource
,
priority
);
}
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetPriority
(
IWineD3DBaseTexture
*
iface
)
{
return
resource_get_priority
(
&
((
IWineD3D
Volum
eTextureImpl
*
)
iface
)
->
resource
);
return
resource_get_priority
(
&
((
IWineD3D
Bas
eTextureImpl
*
)
iface
)
->
resource
);
}
static
void
WINAPI
IWineD3DVolumeTextureImpl_PreLoad
(
IWineD3DBaseTexture
*
iface
)
...
...
@@ -213,14 +211,14 @@ static void WINAPI IWineD3DVolumeTextureImpl_PreLoad(IWineD3DBaseTexture *iface)
static
WINED3DRESOURCETYPE
WINAPI
IWineD3DVolumeTextureImpl_GetType
(
IWineD3DBaseTexture
*
iface
)
{
return
resource_get_type
(
&
((
IWineD3D
Volum
eTextureImpl
*
)
iface
)
->
resource
);
return
resource_get_type
(
&
((
IWineD3D
Bas
eTextureImpl
*
)
iface
)
->
resource
);
}
static
void
*
WINAPI
IWineD3DVolumeTextureImpl_GetParent
(
IWineD3DBaseTexture
*
iface
)
{
TRACE
(
"iface %p
\n
"
,
iface
);
return
((
IWineD3D
Volum
eTextureImpl
*
)
iface
)
->
resource
.
parent
;
return
((
IWineD3D
Bas
eTextureImpl
*
)
iface
)
->
resource
.
parent
;
}
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_SetLOD
(
IWineD3DBaseTexture
*
iface
,
DWORD
LODNew
)
...
...
@@ -318,7 +316,7 @@ static const IWineD3DBaseTextureVtbl IWineD3DVolumeTexture_Vtbl =
IWineD3DVolumeTextureImpl_AddDirtyRegion
,
};
HRESULT
volumetexture_init
(
IWineD3D
Volum
eTextureImpl
*
texture
,
UINT
width
,
UINT
height
,
HRESULT
volumetexture_init
(
IWineD3D
Bas
eTextureImpl
*
texture
,
UINT
width
,
UINT
height
,
UINT
depth
,
UINT
levels
,
IWineD3DDeviceImpl
*
device
,
DWORD
usage
,
enum
wined3d_format_id
format_id
,
WINED3DPOOL
pool
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
{
...
...
dlls/wined3d/wined3d_private.h
View file @
f77c0e36
...
...
@@ -1965,6 +1965,10 @@ HRESULT texture_init(IWineD3DTextureImpl *texture, UINT width, UINT height, UINT
IWineD3DDeviceImpl
*
device
,
DWORD
usage
,
enum
wined3d_format_id
format_id
,
WINED3DPOOL
pool
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
HRESULT
volumetexture_init
(
IWineD3DBaseTextureImpl
*
texture
,
UINT
width
,
UINT
height
,
UINT
depth
,
UINT
levels
,
IWineD3DDeviceImpl
*
device
,
DWORD
usage
,
enum
wined3d_format_id
format_id
,
WINED3DPOOL
pool
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* IWineD3DCubeTexture implementation structure (extends IWineD3DBaseTextureImpl)
*/
...
...
@@ -1986,7 +1990,7 @@ typedef struct IWineD3DVolumeImpl
const
IWineD3DVolumeVtbl
*
lpVtbl
;
struct
wined3d_resource
resource
;
struct
IWineD3D
Volum
eTextureImpl
*
container
;
struct
IWineD3D
Bas
eTextureImpl
*
container
;
BOOL
lockable
;
BOOL
locked
;
WINED3DBOX
lockedBox
;
...
...
@@ -2004,19 +2008,7 @@ HRESULT volume_init(IWineD3DVolumeImpl *volume, IWineD3DDeviceImpl *device, UINT
UINT
height
,
UINT
depth
,
DWORD
usage
,
enum
wined3d_format_id
format_id
,
WINED3DPOOL
pool
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
void
volume_load
(
IWineD3DVolumeImpl
*
volume
,
UINT
level
,
BOOL
srgb_mode
)
DECLSPEC_HIDDEN
;
void
volume_set_container
(
IWineD3DVolumeImpl
*
volume
,
struct
IWineD3DVolumeTextureImpl
*
container
)
DECLSPEC_HIDDEN
;
typedef
struct
IWineD3DVolumeTextureImpl
{
/* IUnknown & WineD3DResource/WineD3DBaseTexture Information */
const
IWineD3DBaseTextureVtbl
*
lpVtbl
;
struct
wined3d_resource
resource
;
IWineD3DBaseTextureClass
baseTexture
;
}
IWineD3DVolumeTextureImpl
;
HRESULT
volumetexture_init
(
IWineD3DVolumeTextureImpl
*
texture
,
UINT
width
,
UINT
height
,
UINT
depth
,
UINT
levels
,
IWineD3DDeviceImpl
*
device
,
DWORD
usage
,
enum
wined3d_format_id
format_id
,
WINED3DPOOL
pool
,
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
DECLSPEC_HIDDEN
;
void
volume_set_container
(
IWineD3DVolumeImpl
*
volume
,
struct
IWineD3DBaseTextureImpl
*
container
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* Structure for DIB Surfaces (GetDC and GDI surfaces)
...
...
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