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
98dc4cd4
Commit
98dc4cd4
authored
Nov 07, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 08, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Avoid LPDIRECT3DVERTEXBUFFER7.
parent
99daff8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
d3d.c
dlls/ddraw/tests/d3d.c
+1
-1
d3d.h
include/d3d.h
+9
-4
No files found.
dlls/ddraw/tests/d3d.c
View file @
98dc4cd4
...
...
@@ -34,7 +34,7 @@ static LPDIRECT3D7 lpD3D = NULL;
static
IDirectDrawSurface7
*
lpDDS
;
static
IDirectDrawSurface7
*
lpDDSdepth
;
static
LPDIRECT3DDEVICE7
lpD3DDevice
=
NULL
;
static
LPDIRECT3DVERTEXBUFFER7
lpVBufSrc
=
NULL
;
static
IDirect3DVertexBuffer7
*
lpVBufSrc
;
static
IDirectDraw
*
DirectDraw1
=
NULL
;
static
IDirectDrawSurface
*
Surface1
=
NULL
;
...
...
include/d3d.h
View file @
98dc4cd4
...
...
@@ -365,7 +365,8 @@ DECLARE_INTERFACE_(IDirect3D7,IUnknown)
STDMETHOD
(
EnumDevices
)(
THIS_
LPD3DENUMDEVICESCALLBACK7
lpEnumDevicesCallback
,
LPVOID
lpUserArg
)
PURE
;
STDMETHOD
(
CreateDevice
)(
THIS_
REFCLSID
rclsid
,
IDirectDrawSurface7
*
surface
,
struct
IDirect3DDevice7
**
device
)
PURE
;
STDMETHOD
(
CreateVertexBuffer
)(
THIS_
LPD3DVERTEXBUFFERDESC
lpD3DVertBufDesc
,
LPDIRECT3DVERTEXBUFFER7
*
lplpD3DVertBuf
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
CreateVertexBuffer
)(
THIS_
D3DVERTEXBUFFERDESC
*
desc
,
struct
IDirect3DVertexBuffer7
**
buffer
,
DWORD
flags
)
PURE
;
STDMETHOD
(
EnumZBufferFormats
)(
THIS_
REFCLSID
riidDevice
,
LPD3DENUMPIXELFORMATSCALLBACK
lpEnumCallback
,
LPVOID
lpContext
)
PURE
;
STDMETHOD
(
EvictManagedTextures
)(
THIS
)
PURE
;
};
...
...
@@ -1313,8 +1314,10 @@ DECLARE_INTERFACE_(IDirect3DDevice7,IUnknown)
STDMETHOD
(
GetClipStatus
)(
THIS_
LPD3DCLIPSTATUS
lpD3DClipStatus
)
PURE
;
STDMETHOD
(
DrawPrimitiveStrided
)(
THIS_
D3DPRIMITIVETYPE
d3dptPrimitiveType
,
DWORD
dwVertexType
,
LPD3DDRAWPRIMITIVESTRIDEDDATA
lpD3DDrawPrimStrideData
,
DWORD
dwVertexCount
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitiveStrided
)(
THIS_
D3DPRIMITIVETYPE
d3dptPrimitiveType
,
DWORD
dwVertexType
,
LPD3DDRAWPRIMITIVESTRIDEDDATA
lpD3DDrawPrimStrideData
,
DWORD
dwVertexCount
,
LPWORD
lpIndex
,
DWORD
dwIndexCount
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
DrawPrimitiveVB
)(
THIS_
D3DPRIMITIVETYPE
d3dptPrimitiveType
,
LPDIRECT3DVERTEXBUFFER7
lpD3DVertexBuf
,
DWORD
dwStartVertex
,
DWORD
dwNumVertices
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitiveVB
)(
THIS_
D3DPRIMITIVETYPE
d3dptPrimitiveType
,
LPDIRECT3DVERTEXBUFFER7
lpD3DVertexBuf
,
DWORD
dwStartVertex
,
DWORD
dwNumVertices
,
LPWORD
lpwIndices
,
DWORD
dwIndexCount
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
DrawPrimitiveVB
)(
THIS_
D3DPRIMITIVETYPE
primitive_type
,
struct
IDirect3DVertexBuffer7
*
vb
,
DWORD
start_vertex
,
DWORD
vertex_count
,
DWORD
flags
)
PURE
;
STDMETHOD
(
DrawIndexedPrimitiveVB
)(
THIS_
D3DPRIMITIVETYPE
primitive_type
,
struct
IDirect3DVertexBuffer7
*
vb
,
DWORD
start_vertex
,
DWORD
vertex_count
,
WORD
*
indices
,
DWORD
index_count
,
DWORD
flags
)
PURE
;
STDMETHOD
(
ComputeSphereVisibility
)(
THIS_
LPD3DVECTOR
lpCenters
,
LPD3DVALUE
lpRadii
,
DWORD
dwNumSpheres
,
DWORD
dwFlags
,
LPDWORD
lpdwReturnValues
)
PURE
;
STDMETHOD
(
GetTexture
)(
THIS_
DWORD
stage
,
IDirectDrawSurface7
**
surface
)
PURE
;
STDMETHOD
(
SetTexture
)(
THIS_
DWORD
stage
,
IDirectDrawSurface7
*
surface
)
PURE
;
...
...
@@ -1499,7 +1502,9 @@ DECLARE_INTERFACE_(IDirect3DVertexBuffer7,IUnknown)
/*** IDirect3DVertexBuffer7 methods ***/
STDMETHOD
(
Lock
)(
THIS_
DWORD
dwFlags
,
LPVOID
*
lplpData
,
LPDWORD
lpdwSize
)
PURE
;
STDMETHOD
(
Unlock
)(
THIS
)
PURE
;
STDMETHOD
(
ProcessVertices
)(
THIS_
DWORD
dwVertexOp
,
DWORD
dwDestIndex
,
DWORD
dwCount
,
LPDIRECT3DVERTEXBUFFER7
lpSrcBuffer
,
DWORD
dwSrcIndex
,
LPDIRECT3DDEVICE7
lpD3DDevice
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
ProcessVertices
)(
THIS_
DWORD
vertex_op
,
DWORD
dst_idx
,
DWORD
count
,
IDirect3DVertexBuffer7
*
src_buffer
,
DWORD
src_idx
,
IDirect3DDevice7
*
device
,
DWORD
flags
)
PURE
;
STDMETHOD
(
GetVertexBufferDesc
)(
THIS_
LPD3DVERTEXBUFFERDESC
lpD3DVertexBufferDesc
)
PURE
;
STDMETHOD
(
Optimize
)(
THIS_
LPDIRECT3DDEVICE7
lpD3DDevice
,
DWORD
dwFlags
)
PURE
;
STDMETHOD
(
ProcessVerticesStrided
)(
THIS_
DWORD
dwVertexOp
,
DWORD
dwDestIndex
,
DWORD
dwCount
,
LPD3DDRAWPRIMITIVESTRIDEDDATA
lpStrideData
,
DWORD
dwVertexTypeDesc
,
LPDIRECT3DDEVICE7
lpD3DDevice
,
DWORD
dwFlags
)
PURE
;
...
...
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