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
e35f1a4b
Commit
e35f1a4b
authored
Jun 29, 2011
by
Misha Koshelev
Committed by
Alexandre Julliard
Jul 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Add declarations related to D3DXFLOAT16.
parent
c7a46f5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
d3dx9math.h
include/d3dx9math.h
+18
-0
d3dx9math.inl
include/d3dx9math.inl
+31
-0
No files found.
include/d3dx9math.h
View file @
e35f1a4b
...
...
@@ -261,6 +261,21 @@ typedef struct D3DXCOLOR
FLOAT
r
,
g
,
b
,
a
;
}
D3DXCOLOR
,
*
LPD3DXCOLOR
;
typedef
struct
D3DXFLOAT16
{
#ifdef __cplusplus
D3DXFLOAT16
();
D3DXFLOAT16
(
FLOAT
f
);
D3DXFLOAT16
(
CONST
D3DXFLOAT16
&
f
);
operator
FLOAT
();
BOOL
operator
==
(
CONST
D3DXFLOAT16
&
)
const
;
BOOL
operator
!=
(
CONST
D3DXFLOAT16
&
)
const
;
#endif
/* __cplusplus */
WORD
value
;
}
D3DXFLOAT16
,
*
LPD3DXFLOAT16
;
#ifdef __cplusplus
extern
"C"
{
#endif
...
...
@@ -357,6 +372,9 @@ D3DXVECTOR4* WINAPI D3DXVec4Normalize(D3DXVECTOR4 *pout, CONST D3DXVECTOR4 *pv);
D3DXVECTOR4
*
WINAPI
D3DXVec4Transform
(
D3DXVECTOR4
*
pout
,
CONST
D3DXVECTOR4
*
pv
,
CONST
D3DXMATRIX
*
pm
);
D3DXVECTOR4
*
WINAPI
D3DXVec4TransformArray
(
D3DXVECTOR4
*
pout
,
UINT
outstride
,
CONST
D3DXVECTOR4
*
pv
,
UINT
vstride
,
CONST
D3DXMATRIX
*
pm
,
UINT
n
);
D3DXFLOAT16
*
WINAPI
D3DXFloat32To16Array
(
D3DXFLOAT16
*
pout
,
CONST
FLOAT
*
pin
,
UINT
n
);
FLOAT
*
WINAPI
D3DXFloat16To32Array
(
FLOAT
*
pout
,
CONST
D3DXFLOAT16
*
pin
,
UINT
n
);
#ifdef __cplusplus
}
#endif
...
...
include/d3dx9math.inl
View file @
e35f1a4b
...
...
@@ -851,6 +851,37 @@ inline BOOL D3DXCOLOR::operator != (CONST D3DXCOLOR& col) const
return r != col.r || g != col.g || b != col.b || a != col.a;
}
inline D3DXFLOAT16::D3DXFLOAT16()
{
}
inline D3DXFLOAT16::D3DXFLOAT16(FLOAT f)
{
D3DXFloat32To16Array(this, &f, 1);
}
inline D3DXFLOAT16::D3DXFLOAT16(CONST D3DXFLOAT16 &f)
{
value = f.value;
}
inline D3DXFLOAT16::operator FLOAT ()
{
FLOAT f;
D3DXFloat16To32Array(&f, this, 1);
return f;
}
inline BOOL D3DXFLOAT16::operator == (CONST D3DXFLOAT16 &f) const
{
return value == f.value;
}
inline BOOL D3DXFLOAT16::operator != (CONST D3DXFLOAT16 &f) const
{
return value != f.value;
}
#endif /* __cplusplus */
/*_______________D3DXCOLOR_____________________*/
...
...
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