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
5a979dee
Commit
5a979dee
authored
May 21, 2012
by
Christian Costa
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement IDirect3DRMMesh_GetGroupCount.
parent
8bba7cd2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
2 deletions
+28
-2
meshbuilder.c
dlls/d3drm/meshbuilder.c
+2
-2
d3drm.c
dlls/d3drm/tests/d3drm.c
+26
-0
No files found.
dlls/d3drm/meshbuilder.c
View file @
5a979dee
...
...
@@ -2508,9 +2508,9 @@ static DWORD WINAPI IDirect3DRMMeshImpl_GetGroupCount(IDirect3DRMMesh* iface)
{
IDirect3DRMMeshImpl
*
This
=
impl_from_IDirect3DRMMesh
(
iface
);
FIXME
(
"(%p)->(): stub
\n
"
,
This
);
TRACE
(
"(%p)->()
\n
"
,
This
);
return
0
;
return
This
->
nb_groups
;
}
static
HRESULT
WINAPI
IDirect3DRMMeshImpl_GetGroup
(
IDirect3DRMMesh
*
iface
,
...
...
dlls/d3drm/tests/d3drm.c
View file @
5a979dee
...
...
@@ -172,6 +172,7 @@ static void test_MeshBuilder(void)
HRESULT
hr
;
LPDIRECT3DRM
pD3DRM
;
LPDIRECT3DRMMESHBUILDER
pMeshBuilder
;
LPDIRECT3DRMMESH
mesh
;
D3DRMLOADMEMORY
info
;
int
val
;
DWORD
val1
,
val2
,
val3
;
...
...
@@ -282,6 +283,19 @@ static void test_MeshBuilder(void)
hr
=
IDirect3DRM_CreateMeshBuilder
(
pD3DRM
,
&
pMeshBuilder
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMMeshBuilder interface (hr = %x)
\n
"
,
hr
);
/* No group in mesh when mesh builder is not loaded */
hr
=
IDirect3DRMMeshBuilder_CreateMesh
(
pMeshBuilder
,
&
mesh
);
ok
(
hr
==
D3DRM_OK
,
"CreateMesh failed returning hr = %x
\n
"
,
hr
);
if
(
hr
==
D3DRM_OK
)
{
DWORD
nb_groups
;
nb_groups
=
IDirect3DRMMesh_GetGroupCount
(
mesh
);
ok
(
nb_groups
==
0
,
"GetCroupCount returned %u
\n
"
,
nb_groups
);
IDirect3DRMMesh_Release
(
mesh
);
}
info
.
lpMemory
=
data_full
;
info
.
dSize
=
strlen
(
data_full
);
hr
=
IDirect3DRMMeshBuilder_Load
(
pMeshBuilder
,
&
info
,
NULL
,
D3DRMLOAD_FROMMEMORY
,
NULL
,
NULL
);
...
...
@@ -325,6 +339,18 @@ static void test_MeshBuilder(void)
ok
(
f
[
6
]
==
2
,
"Wrong component f[6] = %d (expected 2)
\n
"
,
f
[
6
]);
ok
(
f
[
7
]
==
0
,
"Wrong component f[7] = %d (expected 0)
\n
"
,
f
[
7
]);
hr
=
IDirect3DRMMeshBuilder_CreateMesh
(
pMeshBuilder
,
&
mesh
);
ok
(
hr
==
D3DRM_OK
,
"CreateMesh failed returning hr = %x
\n
"
,
hr
);
if
(
hr
==
D3DRM_OK
)
{
DWORD
nb_groups
;
nb_groups
=
IDirect3DRMMesh_GetGroupCount
(
mesh
);
ok
(
nb_groups
==
1
,
"GetCroupCount returned %u
\n
"
,
nb_groups
);
IDirect3DRMMesh_Release
(
mesh
);
}
hr
=
IDirect3DRMMeshBuilder_Scale
(
pMeshBuilder
,
2
,
3
,
4
);
ok
(
hr
==
D3DRM_OK
,
"Scale failed returning hr = %x
\n
"
,
hr
);
...
...
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