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
fae3a643
Commit
fae3a643
authored
Apr 11, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Get rid of IDirect3DVertexBufferImpl.
parent
5fc17b84
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
14 deletions
+10
-14
ddraw.c
dlls/ddraw/ddraw.c
+2
-2
ddraw_private.h
dlls/ddraw/ddraw_private.h
+4
-8
device.c
dlls/ddraw/device.c
+4
-4
vertexbuffer.c
dlls/ddraw/vertexbuffer.c
+0
-0
No files found.
dlls/ddraw/ddraw.c
View file @
fae3a643
...
...
@@ -4527,7 +4527,7 @@ static HRESULT WINAPI d3d7_CreateVertexBuffer(IDirect3D7 *iface, D3DVERTEXBUFFER
IDirect3DVertexBuffer7
**
vertex_buffer
,
DWORD
flags
)
{
struct
ddraw
*
ddraw
=
impl_from_IDirect3D7
(
iface
);
IDirect3DVertexBufferImpl
*
object
;
struct
d3d_vertex_buffer
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, desc %p, vertex_buffer %p, flags %#x.
\n
"
,
...
...
@@ -4551,7 +4551,7 @@ static HRESULT WINAPI d3d3_CreateVertexBuffer(IDirect3D3 *iface, D3DVERTEXBUFFER
IDirect3DVertexBuffer
**
vertex_buffer
,
DWORD
flags
,
IUnknown
*
outer_unknown
)
{
struct
ddraw
*
ddraw
=
impl_from_IDirect3D3
(
iface
);
IDirect3DVertexBufferImpl
*
object
;
struct
d3d_vertex_buffer
*
object
;
HRESULT
hr
;
TRACE
(
"iface %p, desc %p, vertex_buffer %p, flags %#x, outer_unknown %p.
\n
"
,
...
...
dlls/ddraw/ddraw_private.h
View file @
fae3a643
...
...
@@ -38,10 +38,6 @@
#include "wine/wined3d.h"
extern
const
struct
wined3d_parent_ops
ddraw_null_wined3d_parent_ops
DECLSPEC_HIDDEN
;
/* Typdef the interfaces */
typedef
struct
IDirect3DVertexBufferImpl
IDirect3DVertexBufferImpl
;
extern
DWORD
force_refresh_rate
DECLSPEC_HIDDEN
;
/*****************************************************************************
...
...
@@ -520,7 +516,7 @@ HRESULT d3d_execute_buffer_execute(struct d3d_execute_buffer *execute_buffer,
/*****************************************************************************
* IDirect3DVertexBuffer
*****************************************************************************/
struct
IDirect3DVertexBufferImpl
struct
d3d_vertex_buffer
{
IDirect3DVertexBuffer7
IDirect3DVertexBuffer7_iface
;
IDirect3DVertexBuffer
IDirect3DVertexBuffer_iface
;
...
...
@@ -536,10 +532,10 @@ struct IDirect3DVertexBufferImpl
DWORD
fvf
;
};
HRESULT
d3d_vertex_buffer_create
(
IDirect3DVertexBufferImpl
**
vertex_buf
,
struct
ddraw
*
ddraw
,
HRESULT
d3d_vertex_buffer_create
(
struct
d3d_vertex_buffer
**
buffer
,
struct
ddraw
*
ddraw
,
D3DVERTEXBUFFERDESC
*
desc
)
DECLSPEC_HIDDEN
;
IDirect3DVertexBufferImpl
*
unsafe_impl_from_IDirect3DVertexBuffer
(
IDirect3DVertexBuffer
*
iface
)
DECLSPEC_HIDDEN
;
IDirect3DVertexBufferImpl
*
unsafe_impl_from_IDirect3DVertexBuffer7
(
IDirect3DVertexBuffer7
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d_vertex_buffer
*
unsafe_impl_from_IDirect3DVertexBuffer
(
IDirect3DVertexBuffer
*
iface
)
DECLSPEC_HIDDEN
;
struct
d3d_vertex_buffer
*
unsafe_impl_from_IDirect3DVertexBuffer7
(
IDirect3DVertexBuffer7
*
iface
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* Helper functions from utils.c
...
...
dlls/ddraw/device.c
View file @
fae3a643
...
...
@@ -3996,7 +3996,7 @@ static HRESULT d3d_device7_DrawPrimitiveVB(IDirect3DDevice7 *iface, D3DPRIMITIVE
IDirect3DVertexBuffer7
*
D3DVertexBuf
,
DWORD
StartVertex
,
DWORD
NumVertices
,
DWORD
Flags
)
{
struct
d3d_device
*
device
=
impl_from_IDirect3DDevice7
(
iface
);
IDirect3DVertexBufferImpl
*
vb
=
unsafe_impl_from_IDirect3DVertexBuffer7
(
D3DVertexBuf
);
struct
d3d_vertex_buffer
*
vb
=
unsafe_impl_from_IDirect3DVertexBuffer7
(
D3DVertexBuf
);
HRESULT
hr
;
DWORD
stride
;
...
...
@@ -4060,7 +4060,7 @@ static HRESULT WINAPI d3d_device3_DrawPrimitiveVB(IDirect3DDevice3 *iface, D3DPR
IDirect3DVertexBuffer
*
D3DVertexBuf
,
DWORD
StartVertex
,
DWORD
NumVertices
,
DWORD
Flags
)
{
struct
d3d_device
*
device
=
impl_from_IDirect3DDevice3
(
iface
);
IDirect3DVertexBufferImpl
*
vb
=
unsafe_impl_from_IDirect3DVertexBuffer
(
D3DVertexBuf
);
struct
d3d_vertex_buffer
*
vb
=
unsafe_impl_from_IDirect3DVertexBuffer
(
D3DVertexBuf
);
TRACE
(
"iface %p, primitive_type %#x, vb %p, start_vertex %u, vertex_count %u, flags %#x.
\n
"
,
iface
,
PrimitiveType
,
D3DVertexBuf
,
StartVertex
,
NumVertices
,
Flags
);
...
...
@@ -4092,7 +4092,7 @@ static HRESULT d3d_device7_DrawIndexedPrimitiveVB(IDirect3DDevice7 *iface,
DWORD
StartVertex
,
DWORD
NumVertices
,
WORD
*
Indices
,
DWORD
IndexCount
,
DWORD
Flags
)
{
struct
d3d_device
*
This
=
impl_from_IDirect3DDevice7
(
iface
);
IDirect3DVertexBufferImpl
*
vb
=
unsafe_impl_from_IDirect3DVertexBuffer7
(
D3DVertexBuf
);
struct
d3d_vertex_buffer
*
vb
=
unsafe_impl_from_IDirect3DVertexBuffer7
(
D3DVertexBuf
);
DWORD
stride
=
get_flexible_vertex_size
(
vb
->
fvf
);
struct
wined3d_resource
*
wined3d_resource
;
struct
wined3d_resource_desc
desc
;
...
...
@@ -4208,7 +4208,7 @@ static HRESULT WINAPI d3d_device3_DrawIndexedPrimitiveVB(IDirect3DDevice3 *iface
DWORD
IndexCount
,
DWORD
Flags
)
{
struct
d3d_device
*
device
=
impl_from_IDirect3DDevice3
(
iface
);
IDirect3DVertexBufferImpl
*
vb
=
unsafe_impl_from_IDirect3DVertexBuffer
(
D3DVertexBuf
);
struct
d3d_vertex_buffer
*
vb
=
unsafe_impl_from_IDirect3DVertexBuffer
(
D3DVertexBuf
);
TRACE
(
"iface %p, primitive_type %#x, vb %p, indices %p, index_count %u, flags %#x.
\n
"
,
iface
,
PrimitiveType
,
D3DVertexBuf
,
Indices
,
IndexCount
,
Flags
);
...
...
dlls/ddraw/vertexbuffer.c
View file @
fae3a643
This diff is collapsed.
Click to expand it.
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