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
fefb5a94
Commit
fefb5a94
authored
Mar 15, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Get rid of IDirect3DMaterialImpl.
parent
a0264eb1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
14 deletions
+11
-14
ddraw.c
dlls/ddraw/ddraw.c
+3
-3
ddraw_private.h
dlls/ddraw/ddraw_private.h
+4
-7
device.c
dlls/ddraw/device.c
+2
-2
executebuffer.c
dlls/ddraw/executebuffer.c
+1
-1
material.c
dlls/ddraw/material.c
+0
-0
viewport.c
dlls/ddraw/viewport.c
+1
-1
No files found.
dlls/ddraw/ddraw.c
View file @
fefb5a94
...
...
@@ -4186,7 +4186,7 @@ static HRESULT WINAPI d3d3_CreateMaterial(IDirect3D3 *iface, IDirect3DMaterial3
IUnknown
*
outer_unknown
)
{
struct
ddraw
*
ddraw
=
impl_from_IDirect3D3
(
iface
);
IDirect3DMaterialImp
l
*
object
;
struct
d3d_materia
l
*
object
;
TRACE
(
"iface %p, material %p, outer_unknown %p.
\n
"
,
iface
,
material
,
outer_unknown
);
...
...
@@ -4209,7 +4209,7 @@ static HRESULT WINAPI d3d2_CreateMaterial(IDirect3D2 *iface, IDirect3DMaterial2
IUnknown
*
outer_unknown
)
{
struct
ddraw
*
ddraw
=
impl_from_IDirect3D2
(
iface
);
IDirect3DMaterialImp
l
*
object
;
struct
d3d_materia
l
*
object
;
TRACE
(
"iface %p, material %p, outer_unknown %p.
\n
"
,
iface
,
material
,
outer_unknown
);
...
...
@@ -4230,7 +4230,7 @@ static HRESULT WINAPI d3d1_CreateMaterial(IDirect3D *iface, IDirect3DMaterial **
IUnknown
*
outer_unknown
)
{
struct
ddraw
*
ddraw
=
impl_from_IDirect3D
(
iface
);
IDirect3DMaterialImp
l
*
object
;
struct
d3d_materia
l
*
object
;
TRACE
(
"iface %p, material %p, outer_unknown %p.
\n
"
,
iface
,
material
,
outer_unknown
);
...
...
dlls/ddraw/ddraw_private.h
View file @
fefb5a94
...
...
@@ -42,7 +42,6 @@ extern const struct wined3d_parent_ops ddraw_null_wined3d_parent_ops DECLSPEC_HI
/* Typdef the interfaces */
typedef
struct
IDirect3DDeviceImpl
IDirect3DDeviceImpl
;
typedef
struct
IDirect3DMaterialImpl
IDirect3DMaterialImpl
;
typedef
struct
IDirect3DExecuteBufferImpl
IDirect3DExecuteBufferImpl
;
typedef
struct
IDirect3DVertexBufferImpl
IDirect3DVertexBufferImpl
;
...
...
@@ -428,7 +427,7 @@ struct d3d_light *unsafe_impl_from_IDirect3DLight(IDirect3DLight *iface) DECLSPE
/******************************************************************************
* IDirect3DMaterial implementation structure - Wraps to D3D7
******************************************************************************/
struct
IDirect3DMaterialImp
l
struct
d3d_materia
l
{
IDirect3DMaterial3
IDirect3DMaterial3_iface
;
IDirect3DMaterial2
IDirect3DMaterial2_iface
;
...
...
@@ -444,8 +443,8 @@ struct IDirect3DMaterialImpl
};
/* Helper functions */
void
material_activate
(
IDirect3DMaterialImpl
*
This
)
DECLSPEC_HIDDEN
;
IDirect3DMaterialImp
l
*
d3d_material_create
(
struct
ddraw
*
ddraw
)
DECLSPEC_HIDDEN
;
void
material_activate
(
struct
d3d_material
*
material
)
DECLSPEC_HIDDEN
;
struct
d3d_materia
l
*
d3d_material_create
(
struct
ddraw
*
ddraw
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
* IDirect3DViewport - Wraps to D3D7
...
...
@@ -474,9 +473,7 @@ struct d3d_viewport
struct
list
entry
;
struct
list
light_list
;
/* Background material */
IDirect3DMaterialImpl
*
background
;
struct
d3d_material
*
background
;
};
struct
d3d_viewport
*
unsafe_impl_from_IDirect3DViewport3
(
IDirect3DViewport3
*
iface
)
DECLSPEC_HIDDEN
;
...
...
dlls/ddraw/device.c
View file @
fefb5a94
...
...
@@ -330,7 +330,7 @@ IDirect3DDeviceImpl_7_Release(IDirect3DDevice7 *iface)
case
DDRAW_HANDLE_MATERIAL
:
{
IDirect3DMaterialImp
l
*
m
=
entry
->
object
;
struct
d3d_materia
l
*
m
=
entry
->
object
;
FIXME
(
"Material handle %#x (%p) not unset properly.
\n
"
,
i
+
1
,
m
);
m
->
Handle
=
0
;
break
;
...
...
@@ -3034,7 +3034,7 @@ IDirect3DDeviceImpl_3_SetLightState(IDirect3DDevice3 *iface,
wined3d_mutex_lock
();
if
(
LightStateType
==
D3DLIGHTSTATE_MATERIAL
/* 1 */
)
{
IDirect3DMaterialImp
l
*
m
=
ddraw_get_object
(
&
This
->
handle_table
,
Value
-
1
,
DDRAW_HANDLE_MATERIAL
);
struct
d3d_materia
l
*
m
=
ddraw_get_object
(
&
This
->
handle_table
,
Value
-
1
,
DDRAW_HANDLE_MATERIAL
);
if
(
!
m
)
{
WARN
(
"Invalid material handle.
\n
"
);
...
...
dlls/ddraw/executebuffer.c
View file @
fefb5a94
...
...
@@ -237,7 +237,7 @@ HRESULT d3d_execute_buffer_execute(IDirect3DExecuteBufferImpl *This,
ERR
(
"Unexpected Light State Type %d
\n
"
,
ci
->
u1
.
dlstLightStateType
);
else
if
(
ci
->
u1
.
dlstLightStateType
==
D3DLIGHTSTATE_MATERIAL
/* 1 */
)
{
IDirect3DMaterialImp
l
*
m
;
struct
d3d_materia
l
*
m
;
m
=
ddraw_get_object
(
&
lpDevice
->
handle_table
,
ci
->
u2
.
dwArg
[
0
]
-
1
,
DDRAW_HANDLE_MATERIAL
);
if
(
!
m
)
...
...
dlls/ddraw/material.c
View file @
fefb5a94
This diff is collapsed.
Click to expand it.
dlls/ddraw/viewport.c
View file @
fefb5a94
...
...
@@ -541,7 +541,7 @@ static HRESULT WINAPI d3d_viewport_LightElements(IDirect3DViewport3 *iface,
static
HRESULT
WINAPI
d3d_viewport_SetBackground
(
IDirect3DViewport3
*
iface
,
D3DMATERIALHANDLE
hMat
)
{
struct
d3d_viewport
*
viewport
=
impl_from_IDirect3DViewport3
(
iface
);
IDirect3DMaterialImp
l
*
m
;
struct
d3d_materia
l
*
m
;
TRACE
(
"iface %p, material %#x.
\n
"
,
iface
,
hMat
);
...
...
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