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
76e35a29
Commit
76e35a29
authored
Sep 03, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Avoid LPCVOID.
parent
77ee90b5
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
49 additions
and
48 deletions
+49
-48
d3dx9_36_private.h
dlls/d3dx9_36/d3dx9_36_private.h
+2
-1
effect.c
dlls/d3dx9_36/effect.c
+4
-4
mesh.c
dlls/d3dx9_36/mesh.c
+5
-8
shader.c
dlls/d3dx9_36/shader.c
+4
-3
skin.c
dlls/d3dx9_36/skin.c
+4
-5
asm.c
dlls/d3dx9_36/tests/asm.c
+3
-2
effect.c
dlls/d3dx9_36/tests/effect.c
+6
-6
shader.c
dlls/d3dx9_36/tests/shader.c
+3
-3
util.c
dlls/d3dx9_36/util.c
+4
-4
d3dx9effect.h
include/d3dx9effect.h
+4
-4
d3dx9mesh.h
include/d3dx9mesh.h
+6
-4
d3dx9shader.h
include/d3dx9shader.h
+1
-1
d3dx9tex.h
include/d3dx9tex.h
+1
-1
d3dx9xof.h
include/d3dx9xof.h
+2
-2
No files found.
dlls/d3dx9_36/d3dx9_36_private.h
View file @
76e35a29
...
@@ -105,6 +105,7 @@ const char *debug_d3dxparameter_type(D3DXPARAMETER_TYPE t) DECLSPEC_HIDDEN;
...
@@ -105,6 +105,7 @@ const char *debug_d3dxparameter_type(D3DXPARAMETER_TYPE t) DECLSPEC_HIDDEN;
const
char
*
debug_d3dxparameter_registerset
(
D3DXREGISTER_SET
r
)
DECLSPEC_HIDDEN
;
const
char
*
debug_d3dxparameter_registerset
(
D3DXREGISTER_SET
r
)
DECLSPEC_HIDDEN
;
/* parameter type conversion helpers */
/* parameter type conversion helpers */
void
set_number
(
LPVOID
outdata
,
D3DXPARAMETER_TYPE
outtype
,
LPCVOID
indata
,
D3DXPARAMETER_TYPE
intype
)
DECLSPEC_HIDDEN
;
void
set_number
(
void
*
outdata
,
D3DXPARAMETER_TYPE
outtype
,
const
void
*
indata
,
D3DXPARAMETER_TYPE
intype
)
DECLSPEC_HIDDEN
;
#endif
/* __WINE_D3DX9_36_PRIVATE_H */
#endif
/* __WINE_D3DX9_36_PRIVATE_H */
dlls/d3dx9_36/effect.c
View file @
76e35a29
...
@@ -3368,11 +3368,11 @@ static HRESULT WINAPI ID3DXEffectImpl_CloneEffect(ID3DXEffect *iface,
...
@@ -3368,11 +3368,11 @@ static HRESULT WINAPI ID3DXEffectImpl_CloneEffect(ID3DXEffect *iface,
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
ID3DXEffectImpl_SetRawValue
(
ID3DXEffect
*
iface
,
D3DXHANDLE
parameter
,
LPCVOID
data
,
UINT
byte_offset
,
UINT
bytes
)
static
HRESULT
WINAPI
ID3DXEffectImpl_SetRawValue
(
ID3DXEffect
*
iface
,
D3DXHANDLE
parameter
,
const
void
*
data
,
UINT
byte_offset
,
UINT
bytes
)
{
{
struct
ID3DXEffectImpl
*
This
=
impl_from_ID3DXEffect
(
iface
);
FIXME
(
"iface %p, parameter %p, data %p, byte_offset %u, bytes %u stub!
\n
"
,
iface
,
parameter
,
data
,
byte_offset
,
bytes
);
FIXME
(
"(%p)->(%p, %p, %u, %u): stub
\n
"
,
This
,
parameter
,
data
,
byte_offset
,
bytes
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
dlls/d3dx9_36/mesh.c
View file @
76e35a29
...
@@ -6872,20 +6872,17 @@ cleanup:
...
@@ -6872,20 +6872,17 @@ cleanup:
* The face re-ordering does not use the vertex cache optimally.
* The face re-ordering does not use the vertex cache optimally.
*
*
*/
*/
HRESULT
WINAPI
D3DXOptimizeFaces
(
LPCVOID
indices
,
HRESULT
WINAPI
D3DXOptimizeFaces
(
const
void
*
indices
,
UINT
num_faces
,
UINT
num_faces
,
UINT
num_vertices
,
BOOL
indices_are_32bit
,
DWORD
*
face_remap
)
UINT
num_vertices
,
BOOL
indices_are_32bit
,
DWORD
*
face_remap
)
{
{
UINT
i
;
UINT
i
;
UINT
j
=
num_faces
-
1
;
UINT
j
=
num_faces
-
1
;
UINT
limit_16_bit
=
2
<<
15
;
/* According to MSDN */
UINT
limit_16_bit
=
2
<<
15
;
/* According to MSDN */
HRESULT
hr
=
D3D_OK
;
HRESULT
hr
=
D3D_OK
;
FIXME
(
"
(%p, %u, %u, %s, %p): semi-stub. Face order will not be optimal.
\n
"
,
FIXME
(
"
indices %p, num_faces %u, num_vertices %u, indices_are_32bit %#x, face_remap %p semi-stub. "
indices
,
num_faces
,
num_vertices
,
"Face order will not be optimal.
\n
"
,
indices_are_32bit
?
"TRUE"
:
"FALSE"
,
face_remap
);
indices
,
num_faces
,
num_vertices
,
indices_are_32bit
,
face_remap
);
if
(
!
indices_are_32bit
&&
num_faces
>=
limit_16_bit
)
if
(
!
indices_are_32bit
&&
num_faces
>=
limit_16_bit
)
{
{
...
...
dlls/d3dx9_36/shader.c
View file @
76e35a29
...
@@ -174,7 +174,7 @@ HRESULT WINAPI D3DXFindShaderComment(const DWORD *byte_code, DWORD fourcc, const
...
@@ -174,7 +174,7 @@ HRESULT WINAPI D3DXFindShaderComment(const DWORD *byte_code, DWORD fourcc, const
if
(
*
(
ptr
+
1
)
==
fourcc
)
if
(
*
(
ptr
+
1
)
==
fourcc
)
{
{
UINT
ctab_size
=
(
comment_size
-
1
)
*
sizeof
(
DWORD
);
UINT
ctab_size
=
(
comment_size
-
1
)
*
sizeof
(
DWORD
);
LPCVOID
ctab_data
=
ptr
+
2
;
const
void
*
ctab_data
=
ptr
+
2
;
if
(
size
)
if
(
size
)
*
size
=
ctab_size
;
*
size
=
ctab_size
;
if
(
data
)
if
(
data
)
...
@@ -264,7 +264,8 @@ error:
...
@@ -264,7 +264,8 @@ error:
return
HRESULT_FROM_WIN32
(
GetLastError
());
return
HRESULT_FROM_WIN32
(
GetLastError
());
}
}
static
HRESULT
WINAPI
d3dincludefromfile_close
(
ID3DXInclude
*
iface
,
LPCVOID
data
)
{
static
HRESULT
WINAPI
d3dincludefromfile_close
(
ID3DXInclude
*
iface
,
const
void
*
data
)
{
HeapFree
(
GetProcessHeap
(),
0
,
*
((
char
**
)
data
-
1
));
HeapFree
(
GetProcessHeap
(),
0
,
*
((
char
**
)
data
-
1
));
HeapFree
(
GetProcessHeap
(),
0
,
(
char
**
)
data
-
1
);
HeapFree
(
GetProcessHeap
(),
0
,
(
char
**
)
data
-
1
);
return
S_OK
;
return
S_OK
;
...
@@ -1846,8 +1847,8 @@ error:
...
@@ -1846,8 +1847,8 @@ error:
HRESULT
WINAPI
D3DXGetShaderConstantTableEx
(
const
DWORD
*
byte_code
,
DWORD
flags
,
ID3DXConstantTable
**
constant_table
)
HRESULT
WINAPI
D3DXGetShaderConstantTableEx
(
const
DWORD
*
byte_code
,
DWORD
flags
,
ID3DXConstantTable
**
constant_table
)
{
{
struct
ID3DXConstantTableImpl
*
object
=
NULL
;
struct
ID3DXConstantTableImpl
*
object
=
NULL
;
const
void
*
data
;
HRESULT
hr
;
HRESULT
hr
;
LPCVOID
data
;
UINT
size
;
UINT
size
;
const
D3DXSHADER_CONSTANTTABLE
*
ctab_header
;
const
D3DXSHADER_CONSTANTTABLE
*
ctab_header
;
const
D3DXSHADER_CONSTANTINFO
*
constant_info
;
const
D3DXSHADER_CONSTANTINFO
*
constant_info
;
...
...
dlls/d3dx9_36/skin.c
View file @
76e35a29
...
@@ -378,12 +378,11 @@ static HRESULT WINAPI ID3DXSkinInfoImpl_GetDeclaration(ID3DXSkinInfo *iface, D3D
...
@@ -378,12 +378,11 @@ static HRESULT WINAPI ID3DXSkinInfoImpl_GetDeclaration(ID3DXSkinInfo *iface, D3D
return
D3D_OK
;
return
D3D_OK
;
}
}
static
HRESULT
WINAPI
ID3DXSkinInfoImpl_UpdateSkinnedMesh
(
ID3DXSkinInfo
*
iface
,
CONST
D3DXMATRIX
*
bone_transforms
,
static
HRESULT
WINAPI
ID3DXSkinInfoImpl_UpdateSkinnedMesh
(
ID3DXSkinInfo
*
iface
,
const
D3DXMATRIX
*
bone_transforms
,
CONST
D3DXMATRIX
*
bone_inv_transpose_transforms
,
LPCVOID
vertices_src
,
PVOID
vertices_dest
)
const
D3DXMATRIX
*
bone_inv_transpose_transforms
,
const
void
*
src_vertices
,
void
*
dst_vertices
)
{
{
ID3DXSkinInfoImpl
*
This
=
impl_from_ID3DXSkinInfo
(
iface
);
FIXME
(
"iface %p, bone_transforms %p, bone_inv_transpose_transforms %p, src_vertices %p, dst_vertices %p stub!
\n
"
,
iface
,
bone_transforms
,
bone_inv_transpose_transforms
,
src_vertices
,
dst_vertices
);
FIXME
(
"(%p, %p, %p, %p, %p): stub
\n
"
,
This
,
bone_transforms
,
bone_inv_transpose_transforms
,
vertices_src
,
vertices_dest
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
dlls/d3dx9_36/tests/asm.c
View file @
76e35a29
...
@@ -76,8 +76,9 @@ static HRESULT WINAPI testD3DXInclude_open(ID3DXInclude *iface, D3DXINCLUDE_TYPE
...
@@ -76,8 +76,9 @@ static HRESULT WINAPI testD3DXInclude_open(ID3DXInclude *iface, D3DXINCLUDE_TYPE
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
testD3DXInclude_close
(
ID3DXInclude
*
iface
,
LPCVOID
data
)
{
static
HRESULT
WINAPI
testD3DXInclude_close
(
ID3DXInclude
*
iface
,
const
void
*
data
)
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
data
);
{
HeapFree
(
GetProcessHeap
(),
0
,
(
void
*
)
data
);
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/d3dx9_36/tests/effect.c
View file @
76e35a29
...
@@ -39,7 +39,7 @@ static BOOL compare_float(FLOAT f, FLOAT g, UINT ulps)
...
@@ -39,7 +39,7 @@ static BOOL compare_float(FLOAT f, FLOAT g, UINT ulps)
return
TRUE
;
return
TRUE
;
}
}
static
inline
INT
get_int
(
D3DXPARAMETER_TYPE
type
,
LPCVOID
data
)
static
inline
INT
get_int
(
D3DXPARAMETER_TYPE
type
,
const
void
*
data
)
{
{
INT
i
;
INT
i
;
...
@@ -66,9 +66,9 @@ static inline INT get_int(D3DXPARAMETER_TYPE type, LPCVOID data)
...
@@ -66,9 +66,9 @@ static inline INT get_int(D3DXPARAMETER_TYPE type, LPCVOID data)
return
i
;
return
i
;
}
}
static
inline
FLOAT
get_float
(
D3DXPARAMETER_TYPE
type
,
LPCVOID
data
)
static
inline
float
get_float
(
D3DXPARAMETER_TYPE
type
,
const
void
*
data
)
{
{
FLOAT
f
;
float
f
;
switch
(
type
)
switch
(
type
)
{
{
...
@@ -93,12 +93,12 @@ static inline FLOAT get_float(D3DXPARAMETER_TYPE type, LPCVOID data)
...
@@ -93,12 +93,12 @@ static inline FLOAT get_float(D3DXPARAMETER_TYPE type, LPCVOID data)
return
f
;
return
f
;
}
}
static
inline
BOOL
get_bool
(
LPCVOID
data
)
static
inline
BOOL
get_bool
(
const
void
*
data
)
{
{
return
(
*
(
BOOL
*
)
data
)
?
TRUE
:
FALSE
;
return
!!*
(
BOOL
*
)
data
;
}
}
static
void
set_number
(
LPVOID
outdata
,
D3DXPARAMETER_TYPE
outtype
,
LPCVOID
indata
,
D3DXPARAMETER_TYPE
intype
)
static
void
set_number
(
void
*
outdata
,
D3DXPARAMETER_TYPE
outtype
,
const
void
*
indata
,
D3DXPARAMETER_TYPE
intype
)
{
{
switch
(
outtype
)
switch
(
outtype
)
{
{
...
...
dlls/d3dx9_36/tests/shader.c
View file @
76e35a29
...
@@ -305,8 +305,8 @@ static void test_get_shader_version(void)
...
@@ -305,8 +305,8 @@ static void test_get_shader_version(void)
static
void
test_find_shader_comment
(
void
)
static
void
test_find_shader_comment
(
void
)
{
{
const
void
*
data
=
(
void
*
)
0xdeadbeef
;
HRESULT
hr
;
HRESULT
hr
;
LPCVOID
data
=
(
LPVOID
)
0xdeadbeef
;
UINT
size
=
100
;
UINT
size
=
100
;
hr
=
D3DXFindShaderComment
(
NULL
,
MAKEFOURCC
(
'C'
,
'T'
,
'A'
,
'B'
),
&
data
,
&
size
);
hr
=
D3DXFindShaderComment
(
NULL
,
MAKEFOURCC
(
'C'
,
'T'
,
'A'
,
'B'
),
&
data
,
&
size
);
...
@@ -320,7 +320,7 @@ static void test_find_shader_comment(void)
...
@@ -320,7 +320,7 @@ static void test_find_shader_comment(void)
hr
=
D3DXFindShaderComment
(
shader_with_ctab
,
MAKEFOURCC
(
'C'
,
'T'
,
'A'
,
'B'
),
&
data
,
NULL
);
hr
=
D3DXFindShaderComment
(
shader_with_ctab
,
MAKEFOURCC
(
'C'
,
'T'
,
'A'
,
'B'
),
&
data
,
NULL
);
ok
(
hr
==
D3D_OK
,
"Got result %x, expected 0 (D3D_OK)
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got result %x, expected 0 (D3D_OK)
\n
"
,
hr
);
ok
(
data
==
(
LPCVOID
)(
shader_with_ctab
+
6
),
"Got result %p, expected %p
\n
"
,
data
,
shader_with_ctab
+
6
);
ok
(
data
==
shader_with_ctab
+
6
,
"Got result %p, expected %p.
\n
"
,
data
,
shader_with_ctab
+
6
);
hr
=
D3DXFindShaderComment
(
shader_with_ctab
,
0
,
&
data
,
&
size
);
hr
=
D3DXFindShaderComment
(
shader_with_ctab
,
0
,
&
data
,
&
size
);
ok
(
hr
==
S_FALSE
,
"Got result %x, expected 1 (S_FALSE)
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got result %x, expected 1 (S_FALSE)
\n
"
,
hr
);
...
@@ -334,7 +334,7 @@ static void test_find_shader_comment(void)
...
@@ -334,7 +334,7 @@ static void test_find_shader_comment(void)
hr
=
D3DXFindShaderComment
(
shader_with_ctab
,
MAKEFOURCC
(
'C'
,
'T'
,
'A'
,
'B'
),
&
data
,
&
size
);
hr
=
D3DXFindShaderComment
(
shader_with_ctab
,
MAKEFOURCC
(
'C'
,
'T'
,
'A'
,
'B'
),
&
data
,
&
size
);
ok
(
hr
==
D3D_OK
,
"Got result %x, expected 0 (D3D_OK)
\n
"
,
hr
);
ok
(
hr
==
D3D_OK
,
"Got result %x, expected 0 (D3D_OK)
\n
"
,
hr
);
ok
(
data
==
(
LPCVOID
)(
shader_with_ctab
+
6
),
"Got result %p, expected %p
\n
"
,
data
,
shader_with_ctab
+
6
);
ok
(
data
==
shader_with_ctab
+
6
,
"Got result %p, expected %p.
\n
"
,
data
,
shader_with_ctab
+
6
);
ok
(
size
==
28
,
"Got result %d, expected 28
\n
"
,
size
);
ok
(
size
==
28
,
"Got result %d, expected 28
\n
"
,
size
);
hr
=
D3DXFindShaderComment
(
shader_zero
,
MAKEFOURCC
(
'C'
,
'T'
,
'A'
,
'B'
),
&
data
,
&
size
);
hr
=
D3DXFindShaderComment
(
shader_zero
,
MAKEFOURCC
(
'C'
,
'T'
,
'A'
,
'B'
),
&
data
,
&
size
);
...
...
dlls/d3dx9_36/util.c
View file @
76e35a29
...
@@ -285,7 +285,7 @@ const char *debug_d3dxparameter_registerset(D3DXREGISTER_SET r)
...
@@ -285,7 +285,7 @@ const char *debug_d3dxparameter_registerset(D3DXREGISTER_SET r)
#undef WINE_D3DX_TO_STR
#undef WINE_D3DX_TO_STR
/* parameter type conversion helpers */
/* parameter type conversion helpers */
static
BOOL
get_bool
(
D3DXPARAMETER_TYPE
type
,
LPCVOID
data
)
static
BOOL
get_bool
(
D3DXPARAMETER_TYPE
type
,
const
void
*
data
)
{
{
switch
(
type
)
switch
(
type
)
{
{
...
@@ -303,7 +303,7 @@ static BOOL get_bool(D3DXPARAMETER_TYPE type, LPCVOID data)
...
@@ -303,7 +303,7 @@ static BOOL get_bool(D3DXPARAMETER_TYPE type, LPCVOID data)
}
}
}
}
static
INT
get_int
(
D3DXPARAMETER_TYPE
type
,
LPCVOID
data
)
static
INT
get_int
(
D3DXPARAMETER_TYPE
type
,
const
void
*
data
)
{
{
switch
(
type
)
switch
(
type
)
{
{
...
@@ -323,7 +323,7 @@ static INT get_int(D3DXPARAMETER_TYPE type, LPCVOID data)
...
@@ -323,7 +323,7 @@ static INT get_int(D3DXPARAMETER_TYPE type, LPCVOID data)
}
}
}
}
static
FLOAT
get_float
(
D3DXPARAMETER_TYPE
type
,
LPCVOID
data
)
static
FLOAT
get_float
(
D3DXPARAMETER_TYPE
type
,
const
void
*
data
)
{
{
switch
(
type
)
switch
(
type
)
{
{
...
@@ -343,7 +343,7 @@ static FLOAT get_float(D3DXPARAMETER_TYPE type, LPCVOID data)
...
@@ -343,7 +343,7 @@ static FLOAT get_float(D3DXPARAMETER_TYPE type, LPCVOID data)
}
}
}
}
void
set_number
(
LPVOID
outdata
,
D3DXPARAMETER_TYPE
outtype
,
LPCVOID
indata
,
D3DXPARAMETER_TYPE
intype
)
void
set_number
(
void
*
outdata
,
D3DXPARAMETER_TYPE
outtype
,
const
void
*
indata
,
D3DXPARAMETER_TYPE
intype
)
{
{
TRACE
(
"Changing from type %s to type %s
\n
"
,
debug_d3dxparameter_type
(
intype
),
debug_d3dxparameter_type
(
outtype
));
TRACE
(
"Changing from type %s to type %s
\n
"
,
debug_d3dxparameter_type
(
intype
),
debug_d3dxparameter_type
(
outtype
));
...
...
include/d3dx9effect.h
View file @
76e35a29
...
@@ -121,7 +121,7 @@ DECLARE_INTERFACE_(ID3DXBaseEffect, IUnknown)
...
@@ -121,7 +121,7 @@ DECLARE_INTERFACE_(ID3DXBaseEffect, IUnknown)
STDMETHOD_
(
D3DXHANDLE
,
GetFunctionByName
)(
THIS_
const
char
*
name
);
STDMETHOD_
(
D3DXHANDLE
,
GetFunctionByName
)(
THIS_
const
char
*
name
);
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotation
)(
THIS_
D3DXHANDLE
object
,
UINT
index
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotation
)(
THIS_
D3DXHANDLE
object
,
UINT
index
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotationByName
)(
THIS_
D3DXHANDLE
object
,
const
char
*
name
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotationByName
)(
THIS_
D3DXHANDLE
object
,
const
char
*
name
)
PURE
;
STDMETHOD
(
SetValue
)(
THIS_
D3DXHANDLE
parameter
,
LPCVOID
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
SetValue
)(
THIS_
D3DXHANDLE
parameter
,
const
void
*
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
GetValue
)(
THIS_
D3DXHANDLE
parameter
,
LPVOID
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
GetValue
)(
THIS_
D3DXHANDLE
parameter
,
LPVOID
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
SetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
b
)
PURE
;
STDMETHOD
(
SetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
b
)
PURE
;
STDMETHOD
(
GetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
*
b
)
PURE
;
STDMETHOD
(
GetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
*
b
)
PURE
;
...
@@ -225,7 +225,7 @@ DECLARE_INTERFACE_(ID3DXEffect, ID3DXBaseEffect)
...
@@ -225,7 +225,7 @@ DECLARE_INTERFACE_(ID3DXEffect, ID3DXBaseEffect)
STDMETHOD_
(
D3DXHANDLE
,
GetFunctionByName
)(
THIS_
const
char
*
name
);
STDMETHOD_
(
D3DXHANDLE
,
GetFunctionByName
)(
THIS_
const
char
*
name
);
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotation
)(
THIS_
D3DXHANDLE
object
,
UINT
index
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotation
)(
THIS_
D3DXHANDLE
object
,
UINT
index
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotationByName
)(
THIS_
D3DXHANDLE
object
,
const
char
*
name
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotationByName
)(
THIS_
D3DXHANDLE
object
,
const
char
*
name
)
PURE
;
STDMETHOD
(
SetValue
)(
THIS_
D3DXHANDLE
parameter
,
LPCVOID
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
SetValue
)(
THIS_
D3DXHANDLE
parameter
,
const
void
*
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
GetValue
)(
THIS_
D3DXHANDLE
parameter
,
LPVOID
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
GetValue
)(
THIS_
D3DXHANDLE
parameter
,
LPVOID
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
SetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
b
)
PURE
;
STDMETHOD
(
SetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
b
)
PURE
;
STDMETHOD
(
GetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
*
b
)
PURE
;
STDMETHOD
(
GetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
*
b
)
PURE
;
...
@@ -284,7 +284,7 @@ DECLARE_INTERFACE_(ID3DXEffect, ID3DXBaseEffect)
...
@@ -284,7 +284,7 @@ DECLARE_INTERFACE_(ID3DXEffect, ID3DXBaseEffect)
STDMETHOD
(
ApplyParameterBlock
)(
THIS_
D3DXHANDLE
parameter_block
)
PURE
;
STDMETHOD
(
ApplyParameterBlock
)(
THIS_
D3DXHANDLE
parameter_block
)
PURE
;
STDMETHOD
(
DeleteParameterBlock
)(
THIS_
D3DXHANDLE
parameter_block
)
PURE
;
STDMETHOD
(
DeleteParameterBlock
)(
THIS_
D3DXHANDLE
parameter_block
)
PURE
;
STDMETHOD
(
CloneEffect
)(
THIS_
struct
IDirect3DDevice9
*
device
,
struct
ID3DXEffect
**
effect
)
PURE
;
STDMETHOD
(
CloneEffect
)(
THIS_
struct
IDirect3DDevice9
*
device
,
struct
ID3DXEffect
**
effect
)
PURE
;
STDMETHOD
(
SetRawValue
)(
THIS_
D3DXHANDLE
parameter
,
LPCVOID
data
,
UINT
byte_offset
,
UINT
bytes
)
PURE
;
STDMETHOD
(
SetRawValue
)(
THIS_
D3DXHANDLE
parameter
,
const
void
*
data
,
UINT
byte_offset
,
UINT
bytes
)
PURE
;
};
};
#undef INTERFACE
#undef INTERFACE
...
@@ -318,7 +318,7 @@ DECLARE_INTERFACE_(ID3DXEffectCompiler, ID3DXBaseEffect)
...
@@ -318,7 +318,7 @@ DECLARE_INTERFACE_(ID3DXEffectCompiler, ID3DXBaseEffect)
STDMETHOD_
(
D3DXHANDLE
,
GetFunctionByName
)(
THIS_
const
char
*
name
);
STDMETHOD_
(
D3DXHANDLE
,
GetFunctionByName
)(
THIS_
const
char
*
name
);
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotation
)(
THIS_
D3DXHANDLE
object
,
UINT
index
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotation
)(
THIS_
D3DXHANDLE
object
,
UINT
index
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotationByName
)(
THIS_
D3DXHANDLE
object
,
const
char
*
name
)
PURE
;
STDMETHOD_
(
D3DXHANDLE
,
GetAnnotationByName
)(
THIS_
D3DXHANDLE
object
,
const
char
*
name
)
PURE
;
STDMETHOD
(
SetValue
)(
THIS_
D3DXHANDLE
parameter
,
LPCVOID
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
SetValue
)(
THIS_
D3DXHANDLE
parameter
,
const
void
*
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
GetValue
)(
THIS_
D3DXHANDLE
parameter
,
LPVOID
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
GetValue
)(
THIS_
D3DXHANDLE
parameter
,
LPVOID
data
,
UINT
bytes
)
PURE
;
STDMETHOD
(
SetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
b
)
PURE
;
STDMETHOD
(
SetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
b
)
PURE
;
STDMETHOD
(
GetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
*
b
)
PURE
;
STDMETHOD
(
GetBool
)(
THIS_
D3DXHANDLE
parameter
,
BOOL
*
b
)
PURE
;
...
...
include/d3dx9mesh.h
View file @
76e35a29
...
@@ -536,8 +536,8 @@ DECLARE_INTERFACE_(ID3DXSkinInfo, IUnknown)
...
@@ -536,8 +536,8 @@ DECLARE_INTERFACE_(ID3DXSkinInfo, IUnknown)
STDMETHOD
(
SetDeclaration
)(
THIS_
CONST
D3DVERTEXELEMENT9
*
declaration
)
PURE
;
STDMETHOD
(
SetDeclaration
)(
THIS_
CONST
D3DVERTEXELEMENT9
*
declaration
)
PURE
;
STDMETHOD_
(
DWORD
,
GetFVF
)(
THIS
)
PURE
;
STDMETHOD_
(
DWORD
,
GetFVF
)(
THIS
)
PURE
;
STDMETHOD
(
GetDeclaration
)(
THIS_
D3DVERTEXELEMENT9
declaration
[
MAX_FVF_DECL_SIZE
])
PURE
;
STDMETHOD
(
GetDeclaration
)(
THIS_
D3DVERTEXELEMENT9
declaration
[
MAX_FVF_DECL_SIZE
])
PURE
;
STDMETHOD
(
UpdateSkinnedMesh
)(
THIS_
CONST
D3DXMATRIX
*
bone_transforms
,
STDMETHOD
(
UpdateSkinnedMesh
)(
THIS_
const
D3DXMATRIX
*
bone_transforms
,
CONST
D3DXMATRIX
*
bone_inv_transpose_transforms
,
LPCVOID
vertices_src
,
PVOID
vertices_dest
)
PURE
;
const
D3DXMATRIX
*
bone_inv_transpose_transforms
,
const
void
*
src_vertices
,
void
*
dst_vertices
)
PURE
;
STDMETHOD
(
ConvertToBlendedMesh
)(
THIS_
ID3DXMesh
*
mesh_in
,
DWORD
options
,
const
DWORD
*
adjacency_in
,
STDMETHOD
(
ConvertToBlendedMesh
)(
THIS_
ID3DXMesh
*
mesh_in
,
DWORD
options
,
const
DWORD
*
adjacency_in
,
DWORD
*
adjacency_out
,
DWORD
*
face_remap
,
ID3DXBuffer
**
vertex_remap
,
DWORD
*
max_face_infl
,
DWORD
*
adjacency_out
,
DWORD
*
face_remap
,
ID3DXBuffer
**
vertex_remap
,
DWORD
*
max_face_infl
,
DWORD
*
num_bone_combinations
,
ID3DXBuffer
**
bone_combination_table
,
ID3DXMesh
**
mesh_out
)
PURE
;
DWORD
*
num_bone_combinations
,
ID3DXBuffer
**
bone_combination_table
,
ID3DXMesh
**
mesh_out
)
PURE
;
...
@@ -807,8 +807,10 @@ HRESULT WINAPI D3DXIntersectSubset(ID3DXBaseMesh *mesh, DWORD attribute_id, cons
...
@@ -807,8 +807,10 @@ HRESULT WINAPI D3DXIntersectSubset(ID3DXBaseMesh *mesh, DWORD attribute_id, cons
const
D3DXVECTOR3
*
ray_direction
,
BOOL
*
hit
,
DWORD
*
face_idx
,
float
*
u
,
float
*
v
,
float
*
distance
,
const
D3DXVECTOR3
*
ray_direction
,
BOOL
*
hit
,
DWORD
*
face_idx
,
float
*
u
,
float
*
v
,
float
*
distance
,
ID3DXBuffer
**
hits
,
DWORD
*
hit_count
);
ID3DXBuffer
**
hits
,
DWORD
*
hit_count
);
BOOL
WINAPI
D3DXIntersectTri
(
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
FLOAT
*
,
FLOAT
*
,
FLOAT
*
);
BOOL
WINAPI
D3DXIntersectTri
(
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
CONST
D3DXVECTOR3
*
,
FLOAT
*
,
FLOAT
*
,
FLOAT
*
);
HRESULT
WINAPI
D3DXOptimizeFaces
(
LPCVOID
,
UINT
,
UINT
,
BOOL
,
DWORD
*
);
HRESULT
WINAPI
D3DXOptimizeFaces
(
const
void
*
indices
,
UINT
face_count
,
HRESULT
WINAPI
D3DXOptimizeVertices
(
LPCVOID
,
UINT
,
UINT
,
BOOL
,
DWORD
*
);
UINT
vertex_count
,
BOOL
idx_32bit
,
DWORD
*
face_remap
);
HRESULT
WINAPI
D3DXOptimizeVertices
(
const
void
*
indices
,
UINT
face_count
,
UINT
vertex_count
,
BOOL
idx_32bit
,
DWORD
*
vertex_remap
);
HRESULT
WINAPI
D3DXRectPatchSize
(
CONST
FLOAT
*
,
DWORD
*
,
DWORD
*
);
HRESULT
WINAPI
D3DXRectPatchSize
(
CONST
FLOAT
*
,
DWORD
*
,
DWORD
*
);
HRESULT
WINAPI
D3DXSHPRTCompSuperCluster
(
UINT
*
cluster_ids
,
ID3DXMesh
*
scene
,
UINT
max_cluster_count
,
HRESULT
WINAPI
D3DXSHPRTCompSuperCluster
(
UINT
*
cluster_ids
,
ID3DXMesh
*
scene
,
UINT
max_cluster_count
,
UINT
cluster_count
,
UINT
*
scluster_ids
,
UINT
*
scluster_count
);
UINT
cluster_count
,
UINT
*
scluster_ids
,
UINT
*
scluster_count
);
...
...
include/d3dx9shader.h
View file @
76e35a29
...
@@ -109,7 +109,7 @@ typedef struct _D3DXCONSTANT_DESC
...
@@ -109,7 +109,7 @@ typedef struct _D3DXCONSTANT_DESC
UINT
Elements
;
UINT
Elements
;
UINT
StructMembers
;
UINT
StructMembers
;
UINT
Bytes
;
UINT
Bytes
;
LPCVOID
DefaultValue
;
const
void
*
DefaultValue
;
}
D3DXCONSTANT_DESC
,
*
LPD3DXCONSTANT_DESC
;
}
D3DXCONSTANT_DESC
,
*
LPD3DXCONSTANT_DESC
;
DEFINE_GUID
(
IID_ID3DXConstantTable
,
0x9dca3190
,
0x38b9
,
0x4fc3
,
0x92
,
0xe3
,
0x39
,
0xc6
,
0xdd
,
0xfb
,
0x35
,
0x8b
);
DEFINE_GUID
(
IID_ID3DXConstantTable
,
0x9dca3190
,
0x38b9
,
0x4fc3
,
0x92
,
0xe3
,
0x39
,
0xc6
,
0xdd
,
0xfb
,
0x35
,
0x8b
);
...
...
include/d3dx9tex.h
View file @
76e35a29
...
@@ -100,7 +100,7 @@ HRESULT WINAPI D3DXGetImageInfoFromResourceA(HMODULE module, const char *resourc
...
@@ -100,7 +100,7 @@ HRESULT WINAPI D3DXGetImageInfoFromResourceA(HMODULE module, const char *resourc
HRESULT
WINAPI
D3DXGetImageInfoFromResourceW
(
HMODULE
module
,
const
WCHAR
*
resource
,
D3DXIMAGE_INFO
*
info
);
HRESULT
WINAPI
D3DXGetImageInfoFromResourceW
(
HMODULE
module
,
const
WCHAR
*
resource
,
D3DXIMAGE_INFO
*
info
);
#define D3DXGetImageInfoFromResource WINELIB_NAME_AW(D3DXGetImageInfoFromResource)
#define D3DXGetImageInfoFromResource WINELIB_NAME_AW(D3DXGetImageInfoFromResource)
HRESULT
WINAPI
D3DXGetImageInfoFromFileInMemory
(
LPCVOID
data
,
UINT
data
size
,
D3DXIMAGE_INFO
*
info
);
HRESULT
WINAPI
D3DXGetImageInfoFromFileInMemory
(
const
void
*
data
,
UINT
data_
size
,
D3DXIMAGE_INFO
*
info
);
/* Surface Loading/Saving */
/* Surface Loading/Saving */
...
...
include/d3dx9xof.h
View file @
76e35a29
...
@@ -81,7 +81,7 @@ DECLARE_INTERFACE_IID_(ID3DXFile,IUnknown,"cef08cf9-7b4f-4429-9624-2a690a933201"
...
@@ -81,7 +81,7 @@ DECLARE_INTERFACE_IID_(ID3DXFile,IUnknown,"cef08cf9-7b4f-4429-9624-2a690a933201"
struct
ID3DXFileEnumObject
**
enum_obj
)
PURE
;
struct
ID3DXFileEnumObject
**
enum_obj
)
PURE
;
STDMETHOD
(
CreateSaveObject
)(
THIS_
const
void
*
data
,
D3DXF_FILESAVEOPTIONS
flags
,
STDMETHOD
(
CreateSaveObject
)(
THIS_
const
void
*
data
,
D3DXF_FILESAVEOPTIONS
flags
,
D3DXF_FILEFORMAT
format
,
struct
ID3DXFileSaveObject
**
save_obj
)
PURE
;
D3DXF_FILEFORMAT
format
,
struct
ID3DXFileSaveObject
**
save_obj
)
PURE
;
STDMETHOD
(
RegisterTemplates
)(
THIS_
LPCVOID
,
SIZE_T
)
PURE
;
STDMETHOD
(
RegisterTemplates
)(
THIS_
const
void
*
data
,
SIZE_T
data_size
)
PURE
;
STDMETHOD
(
RegisterEnumTemplates
)(
THIS_
struct
ID3DXFileEnumObject
*
enum_obj
)
PURE
;
STDMETHOD
(
RegisterEnumTemplates
)(
THIS_
struct
ID3DXFileEnumObject
*
enum_obj
)
PURE
;
};
};
#undef INTERFACE
#undef INTERFACE
...
@@ -147,7 +147,7 @@ DECLARE_INTERFACE_IID_(ID3DXFileData,IUnknown,"cef08cfd-7b4f-4429-9624-2a690a933
...
@@ -147,7 +147,7 @@ DECLARE_INTERFACE_IID_(ID3DXFileData,IUnknown,"cef08cfd-7b4f-4429-9624-2a690a933
STDMETHOD
(
GetEnum
)(
THIS_
ID3DXFileEnumObject
**
enum_obj
)
PURE
;
STDMETHOD
(
GetEnum
)(
THIS_
ID3DXFileEnumObject
**
enum_obj
)
PURE
;
STDMETHOD
(
GetName
)(
THIS_
char
*
name
,
SIZE_T
*
size
)
PURE
;
STDMETHOD
(
GetName
)(
THIS_
char
*
name
,
SIZE_T
*
size
)
PURE
;
STDMETHOD
(
GetId
)(
THIS_
LPGUID
)
PURE
;
STDMETHOD
(
GetId
)(
THIS_
LPGUID
)
PURE
;
STDMETHOD
(
Lock
)(
THIS_
SIZE_T
*
,
LPCVOID
*
)
PURE
;
STDMETHOD
(
Lock
)(
THIS_
SIZE_T
*
data_size
,
const
void
**
data
)
PURE
;
STDMETHOD
(
Unlock
)(
THIS
)
PURE
;
STDMETHOD
(
Unlock
)(
THIS
)
PURE
;
STDMETHOD
(
GetType
)(
THIS_
GUID
*
)
PURE
;
STDMETHOD
(
GetType
)(
THIS_
GUID
*
)
PURE
;
STDMETHOD_
(
BOOL
,
IsReference
)(
THIS
)
PURE
;
STDMETHOD_
(
BOOL
,
IsReference
)(
THIS
)
PURE
;
...
...
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