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
f0d3f207
Commit
f0d3f207
authored
May 22, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement IDirect3DRMMesh_GetGroup.
parent
42eb57df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
4 deletions
+28
-4
meshbuilder.c
dlls/d3drm/meshbuilder.c
+18
-4
d3drm.c
dlls/d3drm/tests/d3drm.c
+10
-0
No files found.
dlls/d3drm/meshbuilder.c
View file @
f0d3f207
...
...
@@ -2514,14 +2514,28 @@ static DWORD WINAPI IDirect3DRMMeshImpl_GetGroupCount(IDirect3DRMMesh* iface)
}
static
HRESULT
WINAPI
IDirect3DRMMeshImpl_GetGroup
(
IDirect3DRMMesh
*
iface
,
D3DRMGROUPINDEX
id
,
unsigned
*
v
Count
,
unsigned
*
fCount
,
unsigned
*
vPerF
ace
,
DWORD
*
f
DataSize
,
unsigned
*
fD
ata
)
D3DRMGROUPINDEX
id
,
unsigned
*
v
ertex_count
,
unsigned
*
face_count
,
unsigned
*
vertex_per_f
ace
,
DWORD
*
f
ace_data_size
,
unsigned
*
face_d
ata
)
{
IDirect3DRMMeshImpl
*
This
=
impl_from_IDirect3DRMMesh
(
iface
);
FIXME
(
"(%p)->(%u,%p,%p,%p,%p,%p): stub
\n
"
,
This
,
id
,
vCount
,
fCount
,
vPerFace
,
fDataSize
,
fD
ata
);
TRACE
(
"(%p)->(%u,%p,%p,%p,%p,%p)
\n
"
,
This
,
id
,
vertex_count
,
face_count
,
vertex_per_face
,
face_data_size
,
face_d
ata
);
return
E_NOTIMPL
;
if
(
id
>=
This
->
nb_groups
)
return
D3DRMERR_BADVALUE
;
if
(
vertex_count
)
*
vertex_count
=
This
->
groups
[
id
].
nb_vertices
;
if
(
face_count
)
*
face_count
=
This
->
groups
[
id
].
nb_faces
;
if
(
vertex_per_face
)
*
vertex_per_face
=
This
->
groups
[
id
].
vertex_per_face
;
if
(
face_data_size
)
*
face_data_size
=
This
->
groups
[
id
].
face_data_size
;
if
(
face_data
)
memcpy
(
face_data
,
This
->
groups
[
id
].
face_data
,
This
->
groups
[
id
].
face_data_size
);
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMMeshImpl_GetVertices
(
IDirect3DRMMesh
*
iface
,
...
...
dlls/d3drm/tests/d3drm.c
View file @
f0d3f207
...
...
@@ -344,9 +344,19 @@ static void test_MeshBuilder(void)
if
(
hr
==
D3DRM_OK
)
{
DWORD
nb_groups
;
unsigned
nb_vertices
,
nb_faces
,
nb_face_vertices
;
DWORD
data_size
;
nb_groups
=
IDirect3DRMMesh_GetGroupCount
(
mesh
);
ok
(
nb_groups
==
1
,
"GetCroupCount returned %u
\n
"
,
nb_groups
);
hr
=
IDirect3DRMMesh_GetGroup
(
mesh
,
1
,
&
nb_vertices
,
&
nb_faces
,
&
nb_face_vertices
,
&
data_size
,
NULL
);
ok
(
hr
==
D3DRMERR_BADVALUE
,
"GetCroup returned hr = %x
\n
"
,
hr
);
hr
=
IDirect3DRMMesh_GetGroup
(
mesh
,
0
,
&
nb_vertices
,
&
nb_faces
,
&
nb_face_vertices
,
&
data_size
,
NULL
);
ok
(
hr
==
D3DRM_OK
,
"GetCroup failed returning hr = %x
\n
"
,
hr
);
ok
(
nb_vertices
==
3
,
"Wrong number of vertices %u (must be 3)
\n
"
,
nb_vertices
);
ok
(
nb_faces
==
1
,
"Wrong number of faces %u (must be 1)
\n
"
,
nb_faces
);
todo_wine
ok
(
nb_face_vertices
==
3
,
"Wrong number of vertices per face %u (must be 3)
\n
"
,
nb_face_vertices
);
todo_wine
ok
(
data_size
==
3
,
"Wrong number of face data bytes %u (must be 3)
\n
"
,
data_size
);
IDirect3DRMMesh_Release
(
mesh
);
}
...
...
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