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
f289cf31
Commit
f289cf31
authored
Apr 19, 2007
by
David Adam
Committed by
Alexandre Julliard
Apr 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Implement D3DRMQuaternionMultiply.
parent
7fccb042
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
d3drm.spec
dlls/d3drm/d3drm.spec
+1
-1
math.c
dlls/d3drm/math.c
+12
-0
No files found.
dlls/d3drm/d3drm.spec
View file @
f289cf31
...
...
@@ -6,7 +6,7 @@
@ stub D3DRMCreateColorRGBA
@ stub D3DRMMatrixFromQuaternion
@ stub D3DRMQuaternionFromRotation
@ st
ub D3DRMQuaternionMultiply
@ st
dcall D3DRMQuaternionMultiply(ptr ptr ptr)
@ stub D3DRMQuaternionSlerp
@ stdcall D3DRMVectorAdd(ptr ptr ptr)
@ stdcall D3DRMVectorCrossProduct(ptr ptr ptr)
...
...
dlls/d3drm/math.c
View file @
f289cf31
...
...
@@ -32,6 +32,18 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
d3drm
);
/* Product of 2 quaternions */
LPD3DRMQUATERNION
WINAPI
D3DRMQuaternionMultiply
(
LPD3DRMQUATERNION
q
,
LPD3DRMQUATERNION
a
,
LPD3DRMQUATERNION
b
)
{
D3DVECTOR
cross_product
;
D3DRMVectorCrossProduct
(
&
cross_product
,
&
a
->
v
,
&
b
->
v
);
q
->
s
=
a
->
s
*
b
->
s
-
D3DRMVectorDotProduct
(
&
a
->
v
,
&
b
->
v
);
q
->
v
.
x
=
a
->
s
*
b
->
v
.
x
+
b
->
s
*
a
->
v
.
x
+
cross_product
.
x
;
q
->
v
.
y
=
a
->
s
*
b
->
v
.
y
+
b
->
s
*
a
->
v
.
y
+
cross_product
.
y
;
q
->
v
.
z
=
a
->
s
*
b
->
v
.
z
+
b
->
s
*
a
->
v
.
z
+
cross_product
.
z
;
return
q
;
}
/* Add Two Vectors */
LPD3DVECTOR
WINAPI
D3DRMVectorAdd
(
LPD3DVECTOR
d
,
LPD3DVECTOR
s1
,
LPD3DVECTOR
s2
)
{
...
...
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