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
bf202cfd
Commit
bf202cfd
authored
May 18, 2011
by
Dylan Smith
Committed by
Alexandre Julliard
May 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement ID3DXMesh::Optimize using OptimizeInplace.
parent
33fa518c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
mesh.c
dlls/d3dx9_36/mesh.c
+19
-2
No files found.
dlls/d3dx9_36/mesh.c
View file @
bf202cfd
...
...
@@ -646,10 +646,27 @@ static HRESULT WINAPI ID3DXMeshImpl_Optimize(ID3DXMesh *iface, DWORD flags, CONS
DWORD
*
face_remap
,
LPD3DXBUFFER
*
vertex_remap
,
LPD3DXMESH
*
opt_mesh
)
{
ID3DXMeshImpl
*
This
=
impl_from_ID3DXMesh
(
iface
);
HRESULT
hr
;
D3DVERTEXELEMENT9
declaration
[
MAX_FVF_DECL_SIZE
]
=
{
D3DDECL_END
()
};
ID3DXMesh
*
optimized_mesh
;
FIXME
(
"(%p)->(%u,%p,%p,%p,%p,%p): stub
\n
"
,
This
,
flags
,
adjacency_in
,
adjacency_out
,
face_remap
,
vertex_remap
,
opt_mesh
);
TRACE
(
"(%p)->(%x,%p,%p,%p,%p,%p)
\n
"
,
This
,
flags
,
adjacency_in
,
adjacency_out
,
face_remap
,
vertex_remap
,
opt_mesh
);
return
E_NOTIMPL
;
if
(
!
opt_mesh
)
return
D3DERR_INVALIDCALL
;
hr
=
iface
->
lpVtbl
->
GetDeclaration
(
iface
,
declaration
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
iface
->
lpVtbl
->
CloneMesh
(
iface
,
This
->
options
,
declaration
,
This
->
device
,
&
optimized_mesh
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
optimized_mesh
->
lpVtbl
->
OptimizeInplace
(
optimized_mesh
,
flags
,
adjacency_in
,
adjacency_out
,
face_remap
,
vertex_remap
);
if
(
SUCCEEDED
(
hr
))
*
opt_mesh
=
optimized_mesh
;
else
IUnknown_Release
(
optimized_mesh
);
return
hr
;
}
/* Creates a vertex_remap that removes unused vertices.
...
...
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