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
27ca37db
Commit
27ca37db
authored
May 21, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Get rid of IDirect3DIndexBuffer8Impl.
parent
9b085a92
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
54 deletions
+46
-54
buffer.c
dlls/d3d8/buffer.c
+36
-36
d3d8_private.h
dlls/d3d8/d3d8_private.h
+6
-14
device.c
dlls/d3d8/device.c
+4
-4
No files found.
dlls/d3d8/buffer.c
View file @
27ca37db
This diff is collapsed.
Click to expand it.
dlls/d3d8/d3d8_private.h
View file @
27ca37db
...
...
@@ -100,7 +100,6 @@
void
fixup_caps
(
WINED3DCAPS
*
pWineCaps
)
DECLSPEC_HIDDEN
;
typedef
struct
IDirect3DIndexBuffer8Impl
IDirect3DIndexBuffer8Impl
;
typedef
struct
IDirect3DSurface8Impl
IDirect3DSurface8Impl
;
typedef
struct
IDirect3DSwapChain8Impl
IDirect3DSwapChain8Impl
;
typedef
struct
IDirect3DVolume8Impl
IDirect3DVolume8Impl
;
...
...
@@ -256,25 +255,18 @@ HRESULT vertexbuffer_init(IDirect3DVertexBuffer8Impl *buffer, struct d3d8_device
UINT
size
,
DWORD
usage
,
DWORD
fvf
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
IDirect3DVertexBuffer8Impl
*
unsafe_impl_from_IDirect3DVertexBuffer8
(
IDirect3DVertexBuffer8
*
iface
)
DECLSPEC_HIDDEN
;
/* --------------------- */
/* IDirect3DIndexBuffer8 */
/* --------------------- */
/*****************************************************************************
* IDirect3DIndexBuffer8 implementation structure
*/
struct
IDirect3DIndexBuffer8Impl
struct
d3d8_indexbuffer
{
IDirect3DIndexBuffer8
IDirect3DIndexBuffer8_iface
;
LONG
ref
;
struct
wined3d_buffer
*
wine
D3DIndexB
uffer
;
IDirect3DDevice8
*
parent
D
evice
;
LONG
ref
count
;
struct
wined3d_buffer
*
wine
d3d_b
uffer
;
IDirect3DDevice8
*
parent
_d
evice
;
enum
wined3d_format_id
format
;
};
HRESULT
indexbuffer_init
(
IDirect3DIndexBuffer8Impl
*
buffer
,
struct
d3d8_device
*
device
,
HRESULT
indexbuffer_init
(
struct
d3d8_indexbuffer
*
buffer
,
struct
d3d8_device
*
device
,
UINT
size
,
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
)
DECLSPEC_HIDDEN
;
IDirect3DIndexBuffer8Impl
*
unsafe_impl_from_IDirect3DIndexBuffer8
(
IDirect3DIndexBuffer8
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d8_indexbuffer
*
unsafe_impl_from_IDirect3DIndexBuffer8
(
IDirect3DIndexBuffer8
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d8_texture
{
...
...
dlls/d3d8/device.c
View file @
27ca37db
...
...
@@ -804,7 +804,7 @@ static HRESULT WINAPI d3d8_device_CreateIndexBuffer(IDirect3DDevice8 *iface, UIN
DWORD
usage
,
D3DFORMAT
format
,
D3DPOOL
pool
,
IDirect3DIndexBuffer8
**
buffer
)
{
struct
d3d8_device
*
device
=
impl_from_IDirect3DDevice8
(
iface
);
IDirect3DIndexBuffer8Impl
*
object
;
struct
d3d8_indexbuffer
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, size %u, usage %#x, format %#x, pool %#x, buffer %p.
\n
"
,
...
...
@@ -2325,7 +2325,7 @@ static HRESULT WINAPI d3d8_device_SetIndices(IDirect3DDevice8 *iface,
IDirect3DIndexBuffer8
*
buffer
,
UINT
base_vertex_idx
)
{
struct
d3d8_device
*
device
=
impl_from_IDirect3DDevice8
(
iface
);
IDirect3DIndexBuffer8Impl
*
ib
=
unsafe_impl_from_IDirect3DIndexBuffer8
(
buffer
);
struct
d3d8_indexbuffer
*
ib
=
unsafe_impl_from_IDirect3DIndexBuffer8
(
buffer
);
HRESULT
hr
;
TRACE
(
"iface %p, buffer %p, base_vertex_idx %u.
\n
"
,
iface
,
buffer
,
base_vertex_idx
);
...
...
@@ -2339,7 +2339,7 @@ static HRESULT WINAPI d3d8_device_SetIndices(IDirect3DDevice8 *iface,
wined3d_mutex_lock
();
wined3d_device_set_base_vertex_index
(
device
->
wined3d_device
,
base_vertex_idx
);
hr
=
wined3d_device_set_index_buffer
(
device
->
wined3d_device
,
ib
?
ib
->
wine
D3DIndexB
uffer
:
NULL
,
ib
?
ib
->
wine
d3d_b
uffer
:
NULL
,
ib
?
ib
->
format
:
WINED3DFMT_UNKNOWN
);
wined3d_mutex_unlock
();
...
...
@@ -2351,7 +2351,7 @@ static HRESULT WINAPI d3d8_device_GetIndices(IDirect3DDevice8 *iface,
{
struct
d3d8_device
*
device
=
impl_from_IDirect3DDevice8
(
iface
);
struct
wined3d_buffer
*
wined3d_buffer
=
NULL
;
IDirect3DIndexBuffer8Impl
*
buffer_impl
;
struct
d3d8_indexbuffer
*
buffer_impl
;
HRESULT
hr
;
TRACE
(
"iface %p, buffer %p, base_vertex_index %p.
\n
"
,
iface
,
buffer
,
base_vertex_index
);
...
...
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