Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b8f67bf7
Commit
b8f67bf7
authored
May 13, 2022
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
May 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: IDirect3DRMMeshBuilder2 Get/SetQuality.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3c304287
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
8 deletions
+32
-8
d3drm_private.h
dlls/d3drm/d3drm_private.h
+1
-0
meshbuilder.c
dlls/d3drm/meshbuilder.c
+18
-8
d3drm.c
dlls/d3drm/tests/d3drm.c
+13
-0
No files found.
dlls/d3drm/d3drm_private.h
View file @
b8f67bf7
...
...
@@ -165,6 +165,7 @@ struct d3drm_mesh_builder
DWORD
nb_materials
;
struct
mesh_material
*
materials
;
DWORD
*
material_indices
;
D3DRMRENDERQUALITY
quality
;
};
struct
mesh_group
...
...
dlls/d3drm/meshbuilder.c
View file @
b8f67bf7
...
...
@@ -670,9 +670,10 @@ static HRESULT WINAPI d3drm_mesh_builder2_SetTextureTopology(IDirect3DRMMeshBuil
static
HRESULT
WINAPI
d3drm_mesh_builder2_SetQuality
(
IDirect3DRMMeshBuilder2
*
iface
,
D3DRMRENDERQUALITY
quality
)
{
FIXME
(
"iface %p, quality %#lx stub!
\n
"
,
iface
,
quality
);
struct
d3drm_mesh_builder
*
mesh_builder
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
TRACE
(
"iface %p, quality %#lx
\n
"
,
iface
,
quality
);
return
E_NOTIMPL
;
return
IDirect3DRMMeshBuilder3_SetQuality
(
&
mesh_builder
->
IDirect3DRMMeshBuilder3_iface
,
quality
)
;
}
static
HRESULT
WINAPI
d3drm_mesh_builder2_SetPerspective
(
IDirect3DRMMeshBuilder2
*
iface
,
BOOL
enable
)
...
...
@@ -815,9 +816,11 @@ static HRESULT WINAPI d3drm_mesh_builder2_CreateFace(IDirect3DRMMeshBuilder2 *if
static
D3DRMRENDERQUALITY
WINAPI
d3drm_mesh_builder2_GetQuality
(
IDirect3DRMMeshBuilder2
*
iface
)
{
FIXME
(
"iface %p stub!
\n
"
,
iface
);
struct
d3drm_mesh_builder
*
mesh_builder
=
impl_from_IDirect3DRMMeshBuilder2
(
iface
);
return
0
;
TRACE
(
"iface %p
\n
"
,
iface
);
return
mesh_builder
->
quality
;
}
static
BOOL
WINAPI
d3drm_mesh_builder2_GetPerspective
(
IDirect3DRMMeshBuilder2
*
iface
)
...
...
@@ -1754,9 +1757,13 @@ static HRESULT WINAPI d3drm_mesh_builder3_SetTextureTopology(IDirect3DRMMeshBuil
static
HRESULT
WINAPI
d3drm_mesh_builder3_SetQuality
(
IDirect3DRMMeshBuilder3
*
iface
,
D3DRMRENDERQUALITY
quality
)
{
FIXME
(
"iface %p, quality %#lx stub!
\n
"
,
iface
,
quality
);
struct
d3drm_mesh_builder
*
mesh_builder
=
impl_from_IDirect3DRMMeshBuilder3
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, quality %#lx
\n
"
,
iface
,
quality
);
mesh_builder
->
quality
=
quality
;
return
S_OK
;
}
static
HRESULT
WINAPI
d3drm_mesh_builder3_SetPerspective
(
IDirect3DRMMeshBuilder3
*
iface
,
...
...
@@ -1904,9 +1911,11 @@ static HRESULT WINAPI d3drm_mesh_builder3_CreateFace(IDirect3DRMMeshBuilder3 *if
static
D3DRMRENDERQUALITY
WINAPI
d3drm_mesh_builder3_GetQuality
(
IDirect3DRMMeshBuilder3
*
iface
)
{
FIXME
(
"iface %p stub!
\n
"
,
iface
);
struct
d3drm_mesh_builder
*
mesh_builder
=
impl_from_IDirect3DRMMeshBuilder3
(
iface
);
return
0
;
TRACE
(
"iface %p
\n
"
,
iface
);
return
mesh_builder
->
quality
;
}
static
BOOL
WINAPI
d3drm_mesh_builder3_GetPerspective
(
IDirect3DRMMeshBuilder3
*
iface
)
...
...
@@ -2345,6 +2354,7 @@ HRESULT d3drm_mesh_builder_create(struct d3drm_mesh_builder **mesh_builder, IDir
object
->
IDirect3DRMMeshBuilder3_iface
.
lpVtbl
=
&
d3drm_mesh_builder3_vtbl
;
object
->
ref
=
1
;
object
->
d3drm
=
d3drm
;
object
->
quality
=
D3DRMRENDER_GOURAUD
;
IDirect3DRM_AddRef
(
object
->
d3drm
);
d3drm_object_init
(
&
object
->
obj
,
classname
);
...
...
dlls/d3drm/tests/d3drm.c
View file @
b8f67bf7
...
...
@@ -863,6 +863,7 @@ static void test_Face(void)
D3DCOLOR
color
;
DWORD
count
;
int
icount
;
D3DRMRENDERQUALITY
quality
;
hr
=
Direct3DRMCreate
(
&
d3drm
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRM interface, hr %#lx
\n
"
,
hr
);
...
...
@@ -934,6 +935,18 @@ static void test_Face(void)
icount
=
IDirect3DRMFace_GetVertexCount
(
face1
);
ok
(
!
icount
,
"wrong VertexCount: %i
\n
"
,
icount
);
quality
=
IDirect3DRMMeshBuilder3_GetQuality
(
MeshBuilder2
);
ok
(
quality
==
D3DRMRENDER_GOURAUD
,
"Unexpected %lx.
\n
"
,
quality
);
hr
=
IDirect3DRMMeshBuilder3_SetQuality
(
MeshBuilder2
,
D3DRMRENDER_PHONG
);
ok
(
hr
==
S_OK
,
"got %lx.
\n
"
,
hr
);
quality
=
IDirect3DRMMeshBuilder3_GetQuality
(
MeshBuilder2
);
ok
(
quality
==
D3DRMRENDER_PHONG
,
"got %lx.
\n
"
,
quality
);
hr
=
IDirect3DRMMeshBuilder3_SetQuality
(
MeshBuilder2
,
D3DRMRENDER_GOURAUD
);
ok
(
hr
==
S_OK
,
"got %lx.
\n
"
,
hr
);
IDirect3DRMFace_Release
(
face1
);
IDirect3DRMMeshBuilder2_Release
(
MeshBuilder2
);
...
...
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