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
ab8619e9
Commit
ab8619e9
authored
Jun 04, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Jun 05, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement IDirect3DRMMesh_GetGroupColor.
parent
08cfdc11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
meshbuilder.c
dlls/d3drm/meshbuilder.c
+3
-2
d3drm.c
dlls/d3drm/tests/d3drm.c
+3
-0
No files found.
dlls/d3drm/meshbuilder.c
View file @
ab8619e9
...
...
@@ -43,6 +43,7 @@ typedef struct {
unsigned
vertex_per_face
;
DWORD
face_data_size
;
unsigned
*
face_data
;
D3DCOLOR
color
;
IDirect3DRMMaterial2
*
material
;
IDirect3DRMTexture3
*
texture
;
}
mesh_group
;
...
...
@@ -2750,9 +2751,9 @@ static D3DCOLOR WINAPI IDirect3DRMMeshImpl_GetGroupColor(IDirect3DRMMesh* iface,
{
IDirect3DRMMeshImpl
*
This
=
impl_from_IDirect3DRMMesh
(
iface
);
FIXME
(
"(%p)->(%u): stub
\n
"
,
This
,
id
);
TRACE
(
"(%p)->(%u)
\n
"
,
This
,
id
);
return
0
;
return
This
->
groups
[
id
].
color
;
}
static
D3DRMMAPPING
WINAPI
IDirect3DRMMeshImpl_GetGroupMapping
(
IDirect3DRMMesh
*
iface
,
D3DRMGROUPINDEX
id
)
...
...
dlls/d3drm/tests/d3drm.c
View file @
ab8619e9
...
...
@@ -189,6 +189,7 @@ static void test_MeshBuilder(void)
DWORD
f
[
8
];
char
name
[
10
];
DWORD
size
;
D3DCOLOR
color
;
hr
=
pDirect3DRMCreate
(
&
pD3DRM
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRM interface (hr = %x)
\n
"
,
hr
);
...
...
@@ -367,6 +368,8 @@ static void test_MeshBuilder(void)
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
);
color
=
IDirect3DRMMesh_GetGroupColor
(
mesh
,
0
);
todo_wine
ok
(
color
==
0xff00ff00
,
"Wrong color returned %#x instead of %#x
\n
"
,
color
,
0xff00ff00
);
hr
=
IDirect3DRMMesh_GetGroupTexture
(
mesh
,
0
,
&
texture
);
ok
(
hr
==
D3DRM_OK
,
"GetCroupTexture failed returning hr = %x
\n
"
,
hr
);
ok
(
texture
==
NULL
,
"No texture should be present
\n
"
);
...
...
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