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
f50800b2
Commit
f50800b2
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 D3DRMVectorAdd.
parent
0fb6b8e7
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
123 additions
and
2 deletions
+123
-2
.gitignore
.gitignore
+4
-0
Makefile.in
Makefile.in
+2
-0
configure
configure
+3
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/Makefile.in
+1
-0
Makefile.in
dlls/d3drm/Makefile.in
+3
-1
d3drm.spec
dlls/d3drm/d3drm.spec
+1
-1
math.c
dlls/d3drm/math.c
+42
-0
Makefile.in
dlls/d3drm/tests/Makefile.in
+13
-0
vector.c
dlls/d3drm/tests/vector.c
+49
-0
Makefile.in
programs/winetest/Makefile.in
+3
-0
winetest.rc
programs/winetest/winetest.rc
+1
-0
No files found.
.gitignore
View file @
f50800b2
...
...
@@ -175,6 +175,9 @@ dlls/d3d9/version.res
dlls/d3dim/libd3dim.def
dlls/d3dim/version.res
dlls/d3drm/libd3drm.def
dlls/d3drm/tests/*.ok
dlls/d3drm/tests/d3drm_crosstest.exe
dlls/d3drm/tests/testlist.c
dlls/d3drm/version.res
dlls/d3dx8/libd3dx8.def
dlls/d3dxof/libd3dxof.def
...
...
@@ -819,6 +822,7 @@ programs/winetest/comdlg32_test.exe
programs/winetest/crypt32_test.exe
programs/winetest/d3d8_test.exe
programs/winetest/d3d9_test.exe
programs/winetest/d3drm_test.exe
programs/winetest/ddraw_test.exe
programs/winetest/dinput_test.exe
programs/winetest/dnsapi_test.exe
...
...
Makefile.in
View file @
f50800b2
...
...
@@ -195,6 +195,7 @@ ALL_MAKEFILES = \
dlls/d3d9/tests/Makefile
\
dlls/d3dim/Makefile
\
dlls/d3drm/Makefile
\
dlls/d3drm/tests/Makefile
\
dlls/d3dx8/Makefile
\
dlls/d3dxof/Makefile
\
dlls/dbghelp/Makefile
\
...
...
@@ -538,6 +539,7 @@ dlls/d3d9/Makefile: dlls/d3d9/Makefile.in dlls/Makedll.rules
dlls/d3d9/tests/Makefile
:
dlls/d3d9/tests/Makefile.in dlls/Maketest.rules
dlls/d3dim/Makefile
:
dlls/d3dim/Makefile.in dlls/Makedll.rules
dlls/d3drm/Makefile
:
dlls/d3drm/Makefile.in dlls/Makedll.rules
dlls/d3drm/tests/Makefile
:
dlls/d3drm/tests/Makefile.in dlls/Maketest.rules
dlls/d3dx8/Makefile
:
dlls/d3dx8/Makefile.in dlls/Makedll.rules
dlls/d3dxof/Makefile
:
dlls/d3dxof/Makefile.in dlls/Makedll.rules
dlls/dbghelp/Makefile
:
dlls/dbghelp/Makefile.in dlls/Makedll.rules
...
...
configure
View file @
f50800b2
...
...
@@ -20395,6 +20395,8 @@ ac_config_files="$ac_config_files dlls/d3dim/Makefile"
ac_config_files
=
"
$ac_config_files
dlls/d3drm/Makefile"
ac_config_files
=
"
$ac_config_files
dlls/d3drm/tests/Makefile"
ac_config_files
=
"
$ac_config_files
dlls/d3dx8/Makefile"
ac_config_files
=
"
$ac_config_files
dlls/d3dxof/Makefile"
...
...
@@ -21580,6 +21582,7 @@ do
"dlls/d3d9/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3d9/tests/Makefile" ;;
"dlls/d3dim/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3dim/Makefile" ;;
"dlls/d3drm/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3drm/Makefile" ;;
"dlls/d3drm/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3drm/tests/Makefile" ;;
"dlls/d3dx8/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3dx8/Makefile" ;;
"dlls/d3dxof/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/d3dxof/Makefile" ;;
"dlls/dbghelp/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/dbghelp/Makefile" ;;
...
...
configure.ac
View file @
f50800b2
...
...
@@ -1522,6 +1522,7 @@ AC_CONFIG_FILES([dlls/d3d9/Makefile])
AC_CONFIG_FILES([dlls/d3d9/tests/Makefile])
AC_CONFIG_FILES([dlls/d3dim/Makefile])
AC_CONFIG_FILES([dlls/d3drm/Makefile])
AC_CONFIG_FILES([dlls/d3drm/tests/Makefile])
AC_CONFIG_FILES([dlls/d3dx8/Makefile])
AC_CONFIG_FILES([dlls/d3dxof/Makefile])
AC_CONFIG_FILES([dlls/dbghelp/Makefile])
...
...
dlls/Makefile.in
View file @
f50800b2
...
...
@@ -234,6 +234,7 @@ TESTSUBDIRS = \
crypt32/tests
\
d3d8/tests
\
d3d9/tests
\
d3drm/tests
\
ddraw/tests
\
dinput/tests
\
dnsapi/tests
\
...
...
dlls/d3drm/Makefile.in
View file @
f50800b2
...
...
@@ -6,7 +6,9 @@ MODULE = d3drm.dll
IMPORTLIB
=
libd3drm.
$(IMPLIBEXT)
IMPORTS
=
kernel32
C_SRCS
=
d3drm_main.c
C_SRCS
=
\
d3drm_main.c
\
math.c
RC_SRCS
=
version.rc
...
...
dlls/d3drm/d3drm.spec
View file @
f50800b2
...
...
@@ -8,7 +8,7 @@
@ stub D3DRMQuaternionFromRotation
@ stub D3DRMQuaternionMultiply
@ stub D3DRMQuaternionSlerp
@ st
ub D3DRMVectorAdd
@ st
dcall D3DRMVectorAdd(ptr ptr ptr)
@ stub D3DRMVectorCrossProduct
@ stub D3DRMVectorDotProduct
@ stub D3DRMVectorModulus
...
...
dlls/d3drm/math.c
0 → 100644
View file @
f50800b2
/*
* Copyright 2007 David Adam
* Copyright 2007 Vijay Kiran Kamuju
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
#include <math.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "d3drmdef.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
d3drm
);
/* Add Two Vectors */
LPD3DVECTOR
WINAPI
D3DRMVectorAdd
(
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/Makefile.in
0 → 100644
View file @
f50800b2
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
d3drm.dll
IMPORTS
=
d3drm kernel32
EXTRALIBS
=
-ldxguid
CTESTS
=
vector.c
@MAKE_TEST_RULES@
@DEPENDENCIES@
# everything below this line is overwritten by make depend
dlls/d3drm/tests/vector.c
0 → 100644
View file @
f50800b2
/*
* Copyright 2007 Vijay Kiran Kamuju
* Copyright 2007 David Adam
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <assert.h>
#include "wine/test.h"
#include "d3drmdef.h"
#include <math.h>
#define PI (4*atan(1.0))
#define admit_error 0.000001
#define expect_vec(expectedvec,gotvec) \
ok( ((fabs(expectedvec.x-gotvec.x)<admit_error)&&(fabs(expectedvec.y-gotvec.y)<admit_error)&&(fabs(expectedvec.z-gotvec.z)<admit_error)), \
"Expected Vector= (%f, %f, %f)\n , Got Vector= (%f, %f, %f)\n", \
expectedvec.x,expectedvec.y,expectedvec.z, gotvec.x, gotvec.y, gotvec.z);
void
VectorTest
(
void
)
{
D3DVECTOR
e
,
r
,
u
,
v
;
u
.
x
=
2
.
0
;
u
.
y
=
2
.
0
;
u
.
z
=
1
.
0
;
v
.
x
=
4
.
0
;
v
.
y
=
4
.
0
;
v
.
z
=
0
.
0
;
/*______________________VectorAdd_________________________________*/
D3DRMVectorAdd
(
&
r
,
&
u
,
&
v
);
e
.
x
=
6
.
0
;
e
.
y
=
6
.
0
;
e
.
z
=
1
.
0
;
expect_vec
(
e
,
r
);
}
START_TEST
(
vector
)
{
VectorTest
();
}
programs/winetest/Makefile.in
View file @
f50800b2
...
...
@@ -33,6 +33,7 @@ TESTBINS = \
crypt32_test.exe
\
d3d8_test.exe
\
d3d9_test.exe
\
d3drm_test.exe
\
ddraw_test.exe
\
dinput_test.exe
\
dnsapi_test.exe
\
...
...
@@ -105,6 +106,8 @@ d3d8_test.exe: $(DLLDIR)/d3d8/tests/d3d8_test.exe$(DLLEXT)
cp
$(DLLDIR)
/d3d8/tests/d3d8_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
d3d9_test.exe
:
$(DLLDIR)/d3d9/tests/d3d9_test.exe$(DLLEXT)
cp
$(DLLDIR)
/d3d9/tests/d3d9_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
d3drm_test.exe
:
$(DLLDIR)/d3drm/tests/d3drm_test.exe$(DLLEXT)
cp
$(DLLDIR)
/d3drm/tests/d3drm_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
ddraw_test.exe
:
$(DLLDIR)/ddraw/tests/ddraw_test.exe$(DLLEXT)
cp
$(DLLDIR)
/ddraw/tests/ddraw_test.exe
$(DLLEXT)
$@
&&
$(STRIP)
$@
dinput_test.exe
:
$(DLLDIR)/dinput/tests/dinput_test.exe$(DLLEXT)
...
...
programs/winetest/winetest.rc
View file @
f50800b2
...
...
@@ -156,6 +156,7 @@ comdlg32_test.exe TESTRES "comdlg32_test.exe"
crypt32_test.exe TESTRES "crypt32_test.exe"
d3d8_test.exe TESTRES "d3d8_test.exe"
d3d9_test.exe TESTRES "d3d9_test.exe"
d3drm_test.exe TESTRES "d3drm_test.exe"
ddraw_test.exe TESTRES "ddraw_test.exe"
dinput_test.exe TESTRES "dinput_test.exe"
dnsapi_test.exe TESTRES "dnsapi_test.exe"
...
...
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