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
70a1cef5
Commit
70a1cef5
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 D3DVectorSubtract.
parent
f50800b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletion
+15
-1
d3drm.spec
dlls/d3drm/d3drm.spec
+1
-1
math.c
dlls/d3drm/math.c
+9
-0
vector.c
dlls/d3drm/tests/vector.c
+5
-0
No files found.
dlls/d3drm/d3drm.spec
View file @
70a1cef5
...
...
@@ -17,7 +17,7 @@
@ stub D3DRMVectorReflect
@ stub D3DRMVectorRotate
@ stub D3DRMVectorScale
@ st
ub D3DRMVectorSubtract
@ st
dcall D3DRMVectorSubtract(ptr ptr ptr)
@ stub Direct3DRMCreate
@ stub DllCanUnloadNow
@ stub DllGetClassObject
dlls/d3drm/math.c
View file @
70a1cef5
...
...
@@ -40,3 +40,12 @@ LPD3DVECTOR WINAPI D3DRMVectorAdd(LPD3DVECTOR d, LPD3DVECTOR s1, LPD3DVECTOR s2)
d
->
z
=
s1
->
z
+
s2
->
z
;
return
d
;
}
/* Subtract Two Vectors */
LPD3DVECTOR
WINAPI
D3DRMVectorSubtract
(
LPD3DVECTOR
d
,
LPD3DVECTOR
s1
,
LPD3DVECTOR
s2
)
{
d
->
x
=
s1
->
x
-
s2
->
x
;
d
->
y
=
s1
->
y
-
s2
->
y
;
d
->
z
=
s1
->
z
-
s2
->
z
;
return
d
;
}
dlls/d3drm/tests/vector.c
View file @
70a1cef5
...
...
@@ -41,6 +41,11 @@ void VectorTest(void)
D3DRMVectorAdd
(
&
r
,
&
u
,
&
v
);
e
.
x
=
6
.
0
;
e
.
y
=
6
.
0
;
e
.
z
=
1
.
0
;
expect_vec
(
e
,
r
);
/*_______________________VectorSubtract__________________________*/
D3DRMVectorSubtract
(
&
r
,
&
u
,
&
v
);
e
.
x
=-
2
.
0
;
e
.
y
=-
2
.
0
;
e
.
z
=
1
.
0
;
expect_vec
(
e
,
r
);
}
START_TEST
(
vector
)
...
...
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