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
94ccd3f0
Commit
94ccd3f0
authored
Nov 10, 2007
by
Tony Wasserka
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Implement the C++ stuff of the D3DXPLANE structure.
parent
00bcbe25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
+65
-0
d3dx8math.h
include/d3dx8math.h
+14
-0
d3dx8math.inl
include/d3dx8math.inl
+51
-0
No files found.
include/d3dx8math.h
View file @
94ccd3f0
...
...
@@ -201,6 +201,20 @@ typedef struct D3DXQUATERNION
typedef
struct
D3DXPLANE
{
#ifdef __cplusplus
D3DXPLANE
();
D3DXPLANE
(
CONST
FLOAT
*
pf
);
D3DXPLANE
(
FLOAT
fa
,
FLOAT
fb
,
FLOAT
fc
,
FLOAT
fd
);
operator
FLOAT
*
();
operator
CONST
FLOAT
*
()
const
;
D3DXPLANE
operator
+
()
const
;
D3DXPLANE
operator
-
()
const
;
BOOL
operator
==
(
CONST
D3DXPLANE
&
)
const
;
BOOL
operator
!=
(
CONST
D3DXPLANE
&
)
const
;
#endif
/* __cplusplus */
FLOAT
a
,
b
,
c
,
d
;
}
D3DXPLANE
,
*
LPD3DXPLANE
;
...
...
include/d3dx8math.inl
View file @
94ccd3f0
...
...
@@ -639,6 +639,57 @@ inline BOOL D3DXQUATERNION::operator != (CONST D3DXQUATERNION& quat) const
return x != quat.x || y != quat.y || z != quat.z || w != quat.w;
}
inline D3DXPLANE::D3DXPLANE()
{
}
inline D3DXPLANE::D3DXPLANE(CONST FLOAT *pf)
{
if(!pf) return;
a = pf[0];
b = pf[1];
c = pf[2];
d = pf[3];
}
inline D3DXPLANE::D3DXPLANE(FLOAT fa, FLOAT fb, FLOAT fc, FLOAT fd)
{
a = fa;
b = fb;
c = fc;
d = fd;
}
inline D3DXPLANE::operator FLOAT* ()
{
return (FLOAT*)&a;
}
inline D3DXPLANE::operator CONST FLOAT* () const
{
return (CONST FLOAT*)&a;
}
inline D3DXPLANE D3DXPLANE::operator + () const
{
return *this;
}
inline D3DXPLANE D3DXPLANE::operator - () const
{
return D3DXPLANE(-a, -b, -c, -d);
}
inline BOOL D3DXPLANE::operator == (CONST D3DXPLANE& pl) const
{
return a == pl.a && b == pl.b && c == pl.c && d == pl.d;
}
inline BOOL D3DXPLANE::operator != (CONST D3DXPLANE& pl) const
{
return a != pl.a || b != pl.b || c != pl.c || d != pl.d;
}
#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