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
3231c01c
Commit
3231c01c
authored
Nov 11, 2007
by
David Adam
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Implement D3XMatrixMultiplyTranspose.
parent
43643072
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
d3dx8.spec
dlls/d3dx8/d3dx8.spec
+1
-0
math.c
dlls/d3dx8/math.c
+9
-0
math.c
dlls/d3dx8/tests/math.c
+8
-0
d3dx8math.h
include/d3dx8math.h
+1
-0
No files found.
dlls/d3dx8/d3dx8.spec
View file @
3231c01c
...
...
@@ -22,6 +22,7 @@
@ stdcall D3DXVec4Transform(ptr ptr ptr)
@ stdcall D3DXMatrixfDeterminant(ptr)
@ stdcall D3DXMatrixMultiply(ptr ptr ptr)
@ stdcall D3DXMatrixMultiplyTranspose(ptr ptr ptr)
@ stdcall D3DXMatrixTranspose(ptr ptr)
@ stdcall D3DXMatrixInverse(ptr ptr ptr)
@ stdcall D3DXMatrixScaling(ptr long long long)
...
...
dlls/d3dx8/math.c
View file @
3231c01c
...
...
@@ -158,6 +158,15 @@ D3DXMATRIX* WINAPI D3DXMatrixMultiply(D3DXMATRIX *pout, CONST D3DXMATRIX *pm1, C
return
pout
;
}
D3DXMATRIX
*
WINAPI
D3DXMatrixMultiplyTranspose
(
D3DXMATRIX
*
pout
,
CONST
D3DXMATRIX
*
pm1
,
CONST
D3DXMATRIX
*
pm2
)
{
D3DXMATRIX
temp
;
D3DXMatrixMultiply
(
&
temp
,
pm1
,
pm2
);
D3DXMatrixTranspose
(
pout
,
&
temp
);
return
pout
;
}
D3DXMATRIX
*
WINAPI
D3DXMatrixOrthoLH
(
D3DXMATRIX
*
pout
,
FLOAT
w
,
FLOAT
h
,
FLOAT
zn
,
FLOAT
zf
)
{
D3DXMatrixIdentity
(
pout
);
...
...
dlls/d3dx8/tests/math.c
View file @
3231c01c
...
...
@@ -235,6 +235,14 @@ static void D3DXMatrixTest(void)
D3DXMatrixMultiply
(
&
gotmat
,
&
mat
,
&
mat2
);
expect_mat
(
expectedmat
,
gotmat
);
/*____________D3DXMatrixMultiplyTranspose____*/
expectedmat
.
m
[
0
][
0
]
=
73
.
0
f
;
expectedmat
.
m
[
0
][
1
]
=
231
.
0
f
;
expectedmat
.
m
[
0
][
2
]
=
239
.
0
f
;
expectedmat
.
m
[
0
][
3
]
=
-
164
.
0
f
;
expectedmat
.
m
[
1
][
0
]
=
193
.
0
f
;
expectedmat
.
m
[
1
][
1
]
=
551
.
0
f
;
expectedmat
.
m
[
1
][
2
]
=
523
.
0
f
;
expectedmat
.
m
[
1
][
3
]
=
-
320
.
0
;
expectedmat
.
m
[
2
][
0
]
=
-
197
.
0
f
;
expectedmat
.
m
[
2
][
1
]
=
-
489
.
0
f
;
expectedmat
.
m
[
2
][
2
]
=
-
400
.
0
f
;
expectedmat
.
m
[
2
][
3
]
=
187
.
0
f
;
expectedmat
.
m
[
3
][
0
]
=
-
77
.
0
f
;
expectedmat
.
m
[
3
][
1
]
=
-
169
.
0
f
;
expectedmat
.
m
[
3
][
2
]
=
-
116
.
0
f
;
expectedmat
.
m
[
3
][
3
]
=
31
.
0
f
;
D3DXMatrixMultiplyTranspose
(
&
gotmat
,
&
mat
,
&
mat2
);
expect_mat
(
expectedmat
,
gotmat
);
/*____________D3DXMatrixOrthoLH_______________*/
U
(
expectedmat
).
m
[
0
][
0
]
=
0
.
8
f
;
U
(
expectedmat
).
m
[
0
][
1
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
0
][
2
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
0
][
3
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
1
][
0
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
1
][
1
]
=
0
.
270270
f
;
U
(
expectedmat
).
m
[
1
][
2
]
=
0
.
0
f
;
U
(
expectedmat
).
m
[
1
][
3
]
=
0
.
0
f
;
...
...
include/d3dx8math.h
View file @
3231c01c
...
...
@@ -264,6 +264,7 @@ D3DXMATRIX* WINAPI D3DXMatrixInverse(D3DXMATRIX *pout, FLOAT *pdeterminant, CONS
D3DXMATRIX
*
WINAPI
D3DXMatrixLookAtLH
(
D3DXMATRIX
*
pout
,
CONST
D3DXVECTOR3
*
peye
,
CONST
D3DXVECTOR3
*
pat
,
CONST
D3DXVECTOR3
*
pup
);
D3DXMATRIX
*
WINAPI
D3DXMatrixLookAtRH
(
D3DXMATRIX
*
pout
,
CONST
D3DXVECTOR3
*
peye
,
CONST
D3DXVECTOR3
*
pat
,
CONST
D3DXVECTOR3
*
pup
);
D3DXMATRIX
*
WINAPI
D3DXMatrixMultiply
(
D3DXMATRIX
*
pout
,
CONST
D3DXMATRIX
*
pm1
,
CONST
D3DXMATRIX
*
pm2
);
D3DXMATRIX
*
WINAPI
D3DXMatrixMultiplyTranspose
(
D3DXMATRIX
*
pout
,
CONST
D3DXMATRIX
*
pm1
,
CONST
D3DXMATRIX
*
pm2
);
D3DXMATRIX
*
WINAPI
D3DXMatrixOrthoLH
(
D3DXMATRIX
*
pout
,
FLOAT
w
,
FLOAT
h
,
FLOAT
zn
,
FLOAT
zf
);
D3DXMATRIX
*
WINAPI
D3DXMatrixOrthoOffCenterLH
(
D3DXMATRIX
*
pout
,
FLOAT
l
,
FLOAT
r
,
FLOAT
b
,
FLOAT
t
,
FLOAT
zn
,
FLOAT
zf
);
D3DXMATRIX
*
WINAPI
D3DXMatrixOrthoOffCenterRH
(
D3DXMATRIX
*
pout
,
FLOAT
l
,
FLOAT
r
,
FLOAT
b
,
FLOAT
t
,
FLOAT
zn
,
FLOAT
zf
);
...
...
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