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
33c7a865
Commit
33c7a865
authored
Jan 13, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jan 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement GetVertices for IDirect3DRMMeshBuilder3.
parent
1b3c8aaf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
meshbuilder.c
dlls/d3drm/meshbuilder.c
+10
-4
d3drm.c
dlls/d3drm/tests/d3drm.c
+2
-2
No files found.
dlls/d3drm/meshbuilder.c
View file @
33c7a865
...
...
@@ -1845,14 +1845,20 @@ static HRESULT WINAPI IDirect3DRMMeshBuilder3Impl_SetVertices(IDirect3DRMMeshBui
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder3Impl_GetVertices
(
IDirect3DRMMeshBuilder3
*
iface
,
DWORD
IndexFirst
,
LPDWORD
count
,
LPD3DVECTOR
ve
ctor
)
DWORD
IndexFirst
,
LPDWORD
v
count
,
LPD3DVECTOR
ve
rtices
)
{
IDirect3DRMMeshBuilderImpl
*
This
=
impl_from_IDirect3DRMMeshBuilder3
(
iface
);
DWORD
count
=
This
->
nb_vertices
-
IndexFirst
;
FIXME
(
"(%p)->(%u,%p,%p): stub
\n
"
,
This
,
IndexFirst
,
count
,
vector
);
TRACE
(
"(%p)->(%u,%p,%p)
\n
"
,
This
,
IndexFirst
,
vcount
,
vertices
);
return
E_NOTIMPL
;
if
(
vcount
)
*
vcount
=
count
;
if
(
vertices
&&
This
->
nb_vertices
)
memcpy
(
vertices
,
This
->
pVertices
+
IndexFirst
,
count
*
sizeof
(
D3DVECTOR
));
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMMeshBuilder3Impl_SetNormals
(
IDirect3DRMMeshBuilder3
*
iface
,
...
...
dlls/d3drm/tests/d3drm.c
View file @
33c7a865
...
...
@@ -208,8 +208,8 @@ static void test_MeshBuilder3(void)
ok
(
val
==
3
,
"Wrong number of faces %d (must be 3)
\n
"
,
val
);
hr
=
IDirect3DRMMeshBuilder3_GetVertices
(
pMeshBuilder3
,
0
,
&
val1
,
NULL
);
todo_wine
ok
(
hr
==
D3DRM_OK
,
"Cannot get vertices information (hr = %x)
\n
"
,
hr
);
todo_wine
ok
(
val1
==
4
,
"Wrong number of vertices %d (must be 4)
\n
"
,
val1
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get vertices information (hr = %x)
\n
"
,
hr
);
ok
(
val1
==
4
,
"Wrong number of vertices %d (must be 4)
\n
"
,
val1
);
valu
=
1
.
23
f
;
valv
=
3
.
21
f
;
...
...
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