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
cfa297e2
Commit
cfa297e2
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: Implement IDirect3DRMFrameX_AddLight.
parent
107b3d2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
6 deletions
+44
-6
frame.c
dlls/d3drm/frame.c
+44
-6
No files found.
dlls/d3drm/frame.c
View file @
cfa297e2
...
...
@@ -40,6 +40,9 @@ typedef struct {
ULONG
nb_visuals
;
ULONG
visuals_capacity
;
IDirect3DRMVisual
**
visuals
;
ULONG
nb_lights
;
ULONG
lights_capacity
;
IDirect3DRMLight
**
lights
;
}
IDirect3DRMFrameImpl
;
static
inline
IDirect3DRMFrameImpl
*
impl_from_IDirect3DRMFrame2
(
IDirect3DRMFrame2
*
iface
)
...
...
@@ -213,13 +216,13 @@ static HRESULT WINAPI IDirect3DRMFrame2Impl_AddChild(IDirect3DRMFrame2* iface,
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_AddLight
(
IDirect3DRMFrame2
*
iface
,
LPDIRECT3DRMLIGHT
light
)
LPDIRECT3DRMLIGHT
light
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame2
(
iface
);
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
light
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
iface
,
This
,
light
);
return
E_NOTIMPL
;
return
IDirect3DRMFrame3_AddLight
(
&
This
->
IDirect3DRMFrame3_iface
,
light
)
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame2Impl_AddMoveCallback
(
IDirect3DRMFrame2
*
iface
,
...
...
@@ -1104,13 +1107,48 @@ static HRESULT WINAPI IDirect3DRMFrame3Impl_AddChild(IDirect3DRMFrame3* iface,
}
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_AddLight
(
IDirect3DRMFrame3
*
iface
,
LPDIRECT3DRMLIGHT
light
)
LPDIRECT3DRMLIGHT
light
)
{
IDirect3DRMFrameImpl
*
This
=
impl_from_IDirect3DRMFrame3
(
iface
);
ULONG
i
;
IDirect3DRMLight
**
lights
;
FIXME
(
"(%p/%p)->(%p): stub
\n
"
,
iface
,
This
,
light
);
TRACE
(
"(%p/%p)->(%p)
\n
"
,
iface
,
This
,
light
);
return
E_NOTIMPL
;
if
(
!
light
)
return
D3DRMERR_BADOBJECT
;
/* Check if already existing and return gracefully without increasing ref count */
for
(
i
=
0
;
i
<
This
->
nb_lights
;
i
++
)
if
(
This
->
lights
[
i
]
==
light
)
return
D3DRM_OK
;
if
((
This
->
nb_lights
+
1
)
>
This
->
lights_capacity
)
{
ULONG
new_capacity
;
if
(
!
This
->
lights_capacity
)
{
new_capacity
=
16
;
lights
=
HeapAlloc
(
GetProcessHeap
(),
0
,
new_capacity
*
sizeof
(
IDirect3DRMLight
*
));
}
else
{
new_capacity
=
This
->
lights_capacity
*
2
;
lights
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
This
->
lights
,
new_capacity
*
sizeof
(
IDirect3DRMLight
*
));
}
if
(
!
lights
)
return
E_OUTOFMEMORY
;
This
->
lights_capacity
=
new_capacity
;
This
->
lights
=
lights
;
}
This
->
lights
[
This
->
nb_lights
++
]
=
light
;
IDirect3DRMLight_AddRef
(
light
);
return
D3DRM_OK
;
}
static
HRESULT
WINAPI
IDirect3DRMFrame3Impl_AddMoveCallback
(
IDirect3DRMFrame3
*
iface
,
...
...
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