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
1ffad656
Commit
1ffad656
authored
May 05, 2011
by
Rico Schüller
Committed by
Alexandre Julliard
May 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Implement ID3DXBaseEffect::GetAnnotationByName().
parent
7858a6f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
1 deletion
+47
-1
effect.c
dlls/d3dx9_36/effect.c
+47
-1
No files found.
dlls/d3dx9_36/effect.c
View file @
1ffad656
...
...
@@ -1061,8 +1061,54 @@ static D3DXHANDLE WINAPI ID3DXBaseEffectImpl_GetAnnotation(ID3DXBaseEffect *ifac
static
D3DXHANDLE
WINAPI
ID3DXBaseEffectImpl_GetAnnotationByName
(
ID3DXBaseEffect
*
iface
,
D3DXHANDLE
object
,
LPCSTR
name
)
{
struct
ID3DXBaseEffectImpl
*
This
=
impl_from_ID3DXBaseEffect
(
iface
);
struct
d3dx_parameter
*
param
=
is_valid_parameter
(
This
,
object
);
struct
d3dx_pass
*
pass
=
is_valid_pass
(
This
,
object
);
struct
d3dx_technique
*
technique
=
is_valid_technique
(
This
,
object
);
UINT
annotation_count
=
0
,
i
;
D3DXHANDLE
*
annotation_handles
=
NULL
;
FIXME
(
"iface %p, object %p, name %s partial stub
\n
"
,
This
,
object
,
debugstr_a
(
name
));
if
(
!
name
)
{
WARN
(
"Invalid argument specified
\n
"
);
return
NULL
;
}
FIXME
(
"iface %p, object %p, name %s stub
\n
"
,
This
,
object
,
debugstr_a
(
name
));
if
(
pass
)
{
annotation_count
=
pass
->
annotation_count
;
annotation_handles
=
pass
->
annotation_handles
;
}
else
if
(
technique
)
{
annotation_count
=
technique
->
annotation_count
;
annotation_handles
=
technique
->
annotation_handles
;
}
else
{
if
(
!
param
)
param
=
get_parameter_by_name
(
This
,
NULL
,
object
);
if
(
param
)
{
annotation_count
=
param
->
annotation_count
;
annotation_handles
=
param
->
annotation_handles
;
}
}
/* Todo: add funcs */
for
(
i
=
0
;
i
<
annotation_count
;
i
++
)
{
struct
d3dx_parameter
*
anno
=
get_parameter_struct
(
annotation_handles
[
i
]);
if
(
!
strcmp
(
anno
->
name
,
name
))
{
TRACE
(
"Returning parameter %p
\n
"
,
anno
);
return
get_parameter_handle
(
anno
);
}
}
WARN
(
"Invalid argument specified
\n
"
);
return
NULL
;
}
...
...
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