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
107b3d2c
Commit
107b3d2c
authored
May 01, 2012
by
André Hentschel
Committed by
Alexandre Julliard
May 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Add IDirect3DRMLight interface.
parent
5b83abce
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
20 deletions
+43
-20
Makefile.in
dlls/d3drm/Makefile.in
+1
-0
d3drm.c
dlls/d3drm/d3drm.c
+41
-20
d3drm_private.h
dlls/d3drm/d3drm_private.h
+1
-0
light.c
dlls/d3drm/light.c
+0
-0
No files found.
dlls/d3drm/Makefile.in
View file @
107b3d2c
...
...
@@ -7,6 +7,7 @@ C_SRCS = \
d3drm_main.c
\
device.c
\
frame.c
\
light.c
\
math.c
\
meshbuilder.c
\
viewport.c
...
...
dlls/d3drm/d3drm.c
View file @
107b3d2c
...
...
@@ -203,22 +203,25 @@ static HRESULT WINAPI IDirect3DRMImpl_CreateTexture(IDirect3DRM* iface, LPD3DRMI
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateLight
(
IDirect3DRM
*
iface
,
D3DRMLIGHTTYPE
type
,
D3DCOLOR
color
,
LPDIRECT3DRMLIGHT
*
ppLight
)
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateLight
(
IDirect3DRM
*
iface
,
D3DRMLIGHTTYPE
type
,
D3DCOLOR
color
,
LPDIRECT3DRMLIGHT
*
Light
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
FIXME
(
"(%p/%p)->(%d,%d,%p): stub
\n
"
,
iface
,
This
,
type
,
color
,
pp
Light
);
TRACE
(
"(%p/%p)->(%d,%d,%p)
\n
"
,
iface
,
This
,
type
,
color
,
Light
);
return
E_NOTIMPL
;
return
IDirect3DRM3_CreateLight
(
&
This
->
IDirect3DRM3_iface
,
type
,
color
,
Light
)
;
}
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateLightRGB
(
IDirect3DRM
*
iface
,
D3DRMLIGHTTYPE
type
,
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
,
LPDIRECT3DRMLIGHT
*
ppLight
)
static
HRESULT
WINAPI
IDirect3DRMImpl_CreateLightRGB
(
IDirect3DRM
*
iface
,
D3DRMLIGHTTYPE
type
,
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
,
LPDIRECT3DRMLIGHT
*
Light
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM
(
iface
);
FIXME
(
"(%p/%p)->(%d,%f,%f,%f,%p): stub
\n
"
,
iface
,
This
,
type
,
red
,
green
,
blue
,
pp
Light
);
TRACE
(
"(%p/%p)->(%d,%f,%f,%f,%p)
\n
"
,
iface
,
This
,
type
,
red
,
green
,
blue
,
Light
);
return
E_NOTIMPL
;
return
IDirect3DRM3_CreateLightRGB
(
&
This
->
IDirect3DRM3_iface
,
type
,
red
,
green
,
blue
,
Light
)
;
}
static
HRESULT
WINAPI
IDirect3DRMImpl_Material
(
IDirect3DRM
*
iface
,
D3DVALUE
m
,
LPDIRECT3DRMMATERIAL
*
ppMaterial
)
...
...
@@ -577,24 +580,24 @@ static HRESULT WINAPI IDirect3DRM2Impl_CreateTexture(IDirect3DRM2* iface, LPD3DR
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateLight
(
IDirect3DRM2
*
iface
,
D3DRMLIGHTTYPE
type
,
D3DCOLOR
color
,
LPDIRECT3DRMLIGHT
*
pp
Light
)
D3DCOLOR
color
,
LPDIRECT3DRMLIGHT
*
Light
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
FIXME
(
"(%p/%p)->(%d,%d,%p): stub
\n
"
,
iface
,
This
,
type
,
color
,
pp
Light
);
TRACE
(
"(%p/%p)->(%d,%d,%p)
\n
"
,
iface
,
This
,
type
,
color
,
Light
);
return
E_NOTIMPL
;
return
IDirect3DRM3_CreateLight
(
&
This
->
IDirect3DRM3_iface
,
type
,
color
,
Light
)
;
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_CreateLightRGB
(
IDirect3DRM2
*
iface
,
D3DRMLIGHTTYPE
type
,
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
,
LPDIRECT3DRMLIGHT
*
pp
Light
)
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
,
LPDIRECT3DRMLIGHT
*
Light
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM2
(
iface
);
FIXME
(
"(%p/%p)->(%d,%f,%f,%f,%p): stub
\n
"
,
iface
,
This
,
type
,
red
,
green
,
blue
,
pp
Light
);
TRACE
(
"(%p/%p)->(%d,%f,%f,%f,%p)
\n
"
,
iface
,
This
,
type
,
red
,
green
,
blue
,
Light
);
return
E_NOTIMPL
;
return
IDirect3DRM3_CreateLightRGB
(
&
This
->
IDirect3DRM3_iface
,
type
,
red
,
green
,
blue
,
Light
)
;
}
static
HRESULT
WINAPI
IDirect3DRM2Impl_Material
(
IDirect3DRM2
*
iface
,
D3DVALUE
m
,
...
...
@@ -1006,24 +1009,42 @@ static HRESULT WINAPI IDirect3DRM3Impl_CreateTexture(IDirect3DRM3* iface, LPD3DR
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateLight
(
IDirect3DRM3
*
iface
,
D3DRMLIGHTTYPE
type
,
D3DCOLOR
color
,
LPDIRECT3DRMLIGHT
*
Light
)
D3DCOLOR
color
,
LPDIRECT3DRMLIGHT
*
Light
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM3
(
iface
);
HRESULT
ret
;
FIXME
(
"(%p/%p)->(%d,%d,%p): stub
\n
"
,
iface
,
This
,
type
,
color
,
Light
);
FIXME
(
"(%p/%p)->(%d,%d,%p):
partial
stub
\n
"
,
iface
,
This
,
type
,
color
,
Light
);
return
E_NOTIMPL
;
ret
=
Direct3DRMLight_create
((
IUnknown
**
)
Light
);
if
(
SUCCEEDED
(
ret
))
{
IDirect3DRMLight_SetType
(
*
Light
,
type
);
IDirect3DRMLight_SetColor
(
*
Light
,
color
);
}
return
ret
;
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_CreateLightRGB
(
IDirect3DRM3
*
iface
,
D3DRMLIGHTTYPE
type
,
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
,
LPDIRECT3DRMLIGHT
*
Light
)
D3DVALUE
red
,
D3DVALUE
green
,
D3DVALUE
blue
,
LPDIRECT3DRMLIGHT
*
Light
)
{
IDirect3DRMImpl
*
This
=
impl_from_IDirect3DRM3
(
iface
);
HRESULT
ret
;
FIXME
(
"(%p/%p)->(%d,%f,%f,%f,%p): stub
\n
"
,
iface
,
This
,
type
,
red
,
green
,
blue
,
Light
);
FIXME
(
"(%p/%p)->(%d,%f,%f,%f,%p):
partial
stub
\n
"
,
iface
,
This
,
type
,
red
,
green
,
blue
,
Light
);
return
E_NOTIMPL
;
ret
=
Direct3DRMLight_create
((
IUnknown
**
)
Light
);
if
(
SUCCEEDED
(
ret
))
{
IDirect3DRMLight_SetType
(
*
Light
,
type
);
IDirect3DRMLight_SetColorRGB
(
*
Light
,
red
,
green
,
blue
);
}
return
ret
;
}
static
HRESULT
WINAPI
IDirect3DRM3Impl_Material
(
IDirect3DRM3
*
iface
,
D3DVALUE
m
,
...
...
dlls/d3drm/d3drm_private.h
View file @
107b3d2c
...
...
@@ -27,6 +27,7 @@
HRESULT
Direct3DRM_create
(
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMDevice_create
(
REFIID
riid
,
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMFrame_create
(
REFIID
riid
,
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMLight_create
(
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMMeshBuilder_create
(
REFIID
riid
,
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
Direct3DRMViewport_create
(
REFIID
riid
,
IUnknown
**
ppObj
)
DECLSPEC_HIDDEN
;
...
...
dlls/d3drm/light.c
0 → 100644
View file @
107b3d2c
This diff is collapsed.
Click to expand it.
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