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
fff88819
Commit
fff88819
authored
Oct 25, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Avoid LPDIRECT3DVERTEXBUFFER9.
parent
d9c68bd1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
mesh.c
dlls/d3dx9_36/mesh.c
+2
-1
d3dx9mesh.h
include/d3dx9mesh.h
+8
-6
No files found.
dlls/d3dx9_36/mesh.c
View file @
fff88819
...
@@ -771,7 +771,8 @@ error:
...
@@ -771,7 +771,8 @@ error:
return
hr
;
return
hr
;
}
}
static
HRESULT
WINAPI
ID3DXMeshImpl_GetVertexBuffer
(
ID3DXMesh
*
iface
,
LPDIRECT3DVERTEXBUFFER9
*
vertex_buffer
)
static
HRESULT
WINAPI
ID3DXMeshImpl_GetVertexBuffer
(
struct
ID3DXMesh
*
iface
,
struct
IDirect3DVertexBuffer9
**
vertex_buffer
)
{
{
ID3DXMeshImpl
*
This
=
impl_from_ID3DXMesh
(
iface
);
ID3DXMeshImpl
*
This
=
impl_from_ID3DXMesh
(
iface
);
...
...
include/d3dx9mesh.h
View file @
fff88819
...
@@ -322,7 +322,7 @@ DECLARE_INTERFACE_(ID3DXBaseMesh, IUnknown)
...
@@ -322,7 +322,7 @@ DECLARE_INTERFACE_(ID3DXBaseMesh, IUnknown)
STDMETHOD
(
CloneMeshFVF
)(
THIS_
DWORD
options
,
DWORD
fvf
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
CloneMeshFVF
)(
THIS_
DWORD
options
,
DWORD
fvf
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
CloneMesh
)(
THIS_
DWORD
options
,
CONST
D3DVERTEXELEMENT9
*
declaration
,
LPDIRECT3DDEVICE9
device
,
STDMETHOD
(
CloneMesh
)(
THIS_
DWORD
options
,
CONST
D3DVERTEXELEMENT9
*
declaration
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
LPDIRECT3DVERTEXBUFFER9
*
vertex_buffer
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
struct
IDirect3DVertexBuffer9
**
vertex_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
struct
IDirect3DIndexBuffer9
**
index_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
struct
IDirect3DIndexBuffer9
**
index_buffer
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
...
@@ -355,7 +355,7 @@ DECLARE_INTERFACE_(ID3DXMesh, ID3DXBaseMesh)
...
@@ -355,7 +355,7 @@ DECLARE_INTERFACE_(ID3DXMesh, ID3DXBaseMesh)
STDMETHOD
(
CloneMeshFVF
)(
THIS_
DWORD
options
,
DWORD
fvf
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
CloneMeshFVF
)(
THIS_
DWORD
options
,
DWORD
fvf
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
CloneMesh
)(
THIS_
DWORD
options
,
CONST
D3DVERTEXELEMENT9
*
declaration
,
LPDIRECT3DDEVICE9
device
,
STDMETHOD
(
CloneMesh
)(
THIS_
DWORD
options
,
CONST
D3DVERTEXELEMENT9
*
declaration
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
LPDIRECT3DVERTEXBUFFER9
*
vertex_buffer
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
struct
IDirect3DVertexBuffer9
**
vertex_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
struct
IDirect3DIndexBuffer9
**
index_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
struct
IDirect3DIndexBuffer9
**
index_buffer
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
...
@@ -396,7 +396,7 @@ DECLARE_INTERFACE_(ID3DXPMesh, ID3DXBaseMesh)
...
@@ -396,7 +396,7 @@ DECLARE_INTERFACE_(ID3DXPMesh, ID3DXBaseMesh)
STDMETHOD
(
CloneMeshFVF
)(
THIS_
DWORD
options
,
DWORD
fvf
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
CloneMeshFVF
)(
THIS_
DWORD
options
,
DWORD
fvf
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
CloneMesh
)(
THIS_
DWORD
options
,
CONST
D3DVERTEXELEMENT9
*
declaration
,
LPDIRECT3DDEVICE9
device
,
STDMETHOD
(
CloneMesh
)(
THIS_
DWORD
options
,
CONST
D3DVERTEXELEMENT9
*
declaration
,
LPDIRECT3DDEVICE9
device
,
LPD3DXMESH
*
clone_mesh
)
PURE
;
LPD3DXMESH
*
clone_mesh
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
LPDIRECT3DVERTEXBUFFER9
*
vertex_buffer
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
struct
IDirect3DVertexBuffer9
**
vertex_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
struct
IDirect3DIndexBuffer9
**
index_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
struct
IDirect3DIndexBuffer9
**
index_buffer
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
...
@@ -474,7 +474,7 @@ DECLARE_INTERFACE_(ID3DXPatchMesh, IUnknown)
...
@@ -474,7 +474,7 @@ DECLARE_INTERFACE_(ID3DXPatchMesh, IUnknown)
STDMETHOD_
(
DWORD
,
GetOptions
)(
THIS
)
PURE
;
STDMETHOD_
(
DWORD
,
GetOptions
)(
THIS
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
LPDIRECT3DDEVICE9
*
device
)
PURE
;
STDMETHOD
(
GetDevice
)(
THIS_
LPDIRECT3DDEVICE9
*
device
)
PURE
;
STDMETHOD
(
GetPatchInfo
)(
THIS_
LPD3DXPATCHINFO
patch_info
)
PURE
;
STDMETHOD
(
GetPatchInfo
)(
THIS_
LPD3DXPATCHINFO
patch_info
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
LPDIRECT3DVERTEXBUFFER9
*
vertex_buffer
)
PURE
;
STDMETHOD
(
GetVertexBuffer
)(
THIS_
struct
IDirect3DVertexBuffer9
**
vertex_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
struct
IDirect3DIndexBuffer9
**
index_buffer
)
PURE
;
STDMETHOD
(
GetIndexBuffer
)(
THIS_
struct
IDirect3DIndexBuffer9
**
index_buffer
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
LockVertexBuffer
)(
THIS_
DWORD
flags
,
LPVOID
*
data
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
STDMETHOD
(
UnlockVertexBuffer
)(
THIS
)
PURE
;
...
@@ -757,8 +757,10 @@ HRESULT WINAPI D3DXSHPRTCompSplitMeshSC(UINT *, UINT, UINT, UINT *, UINT, LPVOID
...
@@ -757,8 +757,10 @@ HRESULT WINAPI D3DXSHPRTCompSplitMeshSC(UINT *, UINT, UINT, UINT *, UINT, LPVOID
HRESULT
WINAPI
D3DXSimplifyMesh
(
LPD3DXMESH
,
CONST
DWORD
*
,
CONST
D3DXATTRIBUTEWEIGHTS
,
CONST
FLOAT
*
,
DWORD
,
DWORD
,
LPD3DXMESH
*
);
HRESULT
WINAPI
D3DXSimplifyMesh
(
LPD3DXMESH
,
CONST
DWORD
*
,
CONST
D3DXATTRIBUTEWEIGHTS
,
CONST
FLOAT
*
,
DWORD
,
DWORD
,
LPD3DXMESH
*
);
HRESULT
WINAPI
D3DXSplitMesh
(
LPD3DXMESH
,
CONST
DWORD
*
,
CONST
DWORD
,
CONST
DWORD
,
DWORD
*
,
LPD3DXBUFFER
*
,
LPD3DXBUFFER
*
,
LPD3DXBUFFER
*
,
LPD3DXBUFFER
*
);
HRESULT
WINAPI
D3DXSplitMesh
(
LPD3DXMESH
,
CONST
DWORD
*
,
CONST
DWORD
,
CONST
DWORD
,
DWORD
*
,
LPD3DXBUFFER
*
,
LPD3DXBUFFER
*
,
LPD3DXBUFFER
*
,
LPD3DXBUFFER
*
);
HRESULT
WINAPI
D3DXTesselateNPatches
(
LPD3DXMESH
,
CONST
DWORD
*
,
FLOAT
,
BOOL
,
LPD3DXMESH
*
,
LPD3DXBUFFER
*
);
HRESULT
WINAPI
D3DXTesselateNPatches
(
LPD3DXMESH
,
CONST
DWORD
*
,
FLOAT
,
BOOL
,
LPD3DXMESH
*
,
LPD3DXBUFFER
*
);
HRESULT
WINAPI
D3DXTesselateRectPatch
(
LPDIRECT3DVERTEXBUFFER9
,
CONST
FLOAT
*
,
CONST
D3DVERTEXELEMENT9
*
,
CONST
D3DRECTPATCH_INFO
*
,
LPD3DXMESH
);
HRESULT
WINAPI
D3DXTesselateRectPatch
(
struct
IDirect3DVertexBuffer9
*
buffer
,
const
float
*
segment_count
,
HRESULT
WINAPI
D3DXTesselateTriPatch
(
LPDIRECT3DVERTEXBUFFER9
,
CONST
FLOAT
*
,
CONST
D3DVERTEXELEMENT9
*
,
CONST
D3DTRIPATCH_INFO
*
,
LPD3DXMESH
);
const
D3DVERTEXELEMENT9
*
declaration
,
const
D3DRECTPATCH_INFO
*
patch_info
,
struct
ID3DXMesh
*
mesh
);
HRESULT
WINAPI
D3DXTesselateTriPatch
(
struct
IDirect3DVertexBuffer9
*
buffer
,
const
float
*
segment_count
,
const
D3DVERTEXELEMENT9
*
declaration
,
const
D3DTRIPATCH_INFO
*
patch_info
,
struct
ID3DXMesh
*
mesh
);
HRESULT
WINAPI
D3DXTriPatchSize
(
CONST
FLOAT
*
,
DWORD
*
,
DWORD
*
);
HRESULT
WINAPI
D3DXTriPatchSize
(
CONST
FLOAT
*
,
DWORD
*
,
DWORD
*
);
HRESULT
WINAPI
D3DXUVAtlasCreate
(
LPD3DXMESH
,
UINT
,
FLOAT
,
UINT
,
UINT
,
FLOAT
,
DWORD
,
CONST
DWORD
*
,
CONST
FLOAT
*
,
LPD3DXUVATLASCB
,
FLOAT
,
LPVOID
,
DWORD
,
LPD3DXMESH
*
,
LPD3DXBUFFER
*
,
LPD3DXBUFFER
*
,
FLOAT
*
,
UINT
*
);
HRESULT
WINAPI
D3DXUVAtlasCreate
(
LPD3DXMESH
,
UINT
,
FLOAT
,
UINT
,
UINT
,
FLOAT
,
DWORD
,
CONST
DWORD
*
,
CONST
FLOAT
*
,
LPD3DXUVATLASCB
,
FLOAT
,
LPVOID
,
DWORD
,
LPD3DXMESH
*
,
LPD3DXBUFFER
*
,
LPD3DXBUFFER
*
,
FLOAT
*
,
UINT
*
);
HRESULT
WINAPI
D3DXUVAtlasPack
(
ID3DXMesh
*
,
UINT
,
UINT
,
FLOAT
,
DWORD
,
CONST
DWORD
*
,
LPD3DXUVATLASCB
,
FLOAT
,
LPVOID
,
DWORD
,
LPD3DXBUFFER
);
HRESULT
WINAPI
D3DXUVAtlasPack
(
ID3DXMesh
*
,
UINT
,
UINT
,
FLOAT
,
DWORD
,
CONST
DWORD
*
,
LPD3DXUVATLASCB
,
FLOAT
,
LPVOID
,
DWORD
,
LPD3DXBUFFER
);
...
...
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