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
00773fea
Commit
00773fea
authored
Jun 17, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jun 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement IDirect3DRMMesh_GetClassName.
parent
ac5b9323
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
3 deletions
+42
-3
meshbuilder.c
dlls/d3drm/meshbuilder.c
+9
-3
d3drm.c
dlls/d3drm/tests/d3drm.c
+33
-0
No files found.
dlls/d3drm/meshbuilder.c
View file @
00773fea
...
...
@@ -2584,13 +2584,19 @@ static HRESULT WINAPI IDirect3DRMMeshImpl_GetName(IDirect3DRMMesh* iface,
}
static
HRESULT
WINAPI
IDirect3DRMMeshImpl_GetClassName
(
IDirect3DRMMesh
*
iface
,
LPDWORD
lpdwSize
,
LPSTR
lpN
ame
)
LPDWORD
size
,
LPSTR
n
ame
)
{
IDirect3DRMMeshImpl
*
This
=
impl_from_IDirect3DRMMesh
(
iface
);
FIXME
(
"(%p)->(%p,%p): stub
\n
"
,
This
,
lpdwSize
,
lpN
ame
);
TRACE
(
"(%p)->(%p, %p)
\n
"
,
This
,
size
,
n
ame
);
return
E_NOTIMPL
;
if
(
!
size
||
*
size
<
strlen
(
"Mesh"
)
||
!
name
)
return
E_INVALIDARG
;
strcpy
(
name
,
"Mesh"
);
*
size
=
sizeof
(
"Mesh"
);
return
D3DRM_OK
;
}
/*** IDirect3DRMMesh methods ***/
...
...
dlls/d3drm/tests/d3drm.c
View file @
00773fea
...
...
@@ -553,6 +553,38 @@ static void test_MeshBuilder3(void)
IDirect3DRM_Release
(
pD3DRM
);
}
static
void
test_Mesh
(
void
)
{
HRESULT
hr
;
LPDIRECT3DRM
pD3DRM
;
LPDIRECT3DRMMESH
pMesh
;
DWORD
size
;
CHAR
cname
[
64
]
=
{
0
};
hr
=
pDirect3DRMCreate
(
&
pD3DRM
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRM interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRM_CreateMesh
(
pD3DRM
,
&
pMesh
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMMesh interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRMMesh_GetClassName
(
pMesh
,
NULL
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
hr
=
IDirect3DRMMesh_GetClassName
(
pMesh
,
NULL
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
1
;
hr
=
IDirect3DRMMesh_GetClassName
(
pMesh
,
&
size
,
cname
);
ok
(
hr
==
E_INVALIDARG
,
"GetClassName failed with %x
\n
"
,
hr
);
size
=
sizeof
(
cname
);
hr
=
IDirect3DRMMesh_GetClassName
(
pMesh
,
&
size
,
cname
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get classname (hr = %x)
\n
"
,
hr
);
ok
(
size
==
sizeof
(
"Mesh"
),
"wrong size: %u
\n
"
,
size
);
ok
(
!
strcmp
(
cname
,
"Mesh"
),
"Expected cname to be
\"
Mesh
\"
, but got
\"
%s
\"\n
"
,
cname
);
IDirect3DRMMesh_Release
(
pMesh
);
IDirect3DRM_Release
(
pD3DRM
);
}
static
void
test_Frame
(
void
)
{
HRESULT
hr
;
...
...
@@ -991,6 +1023,7 @@ START_TEST(d3drm)
test_MeshBuilder
();
test_MeshBuilder3
();
test_Mesh
();
test_Frame
();
test_Light
();
test_frame_transform
();
...
...
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