aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/ode-0.9/drawstuff/dstest
diff options
context:
space:
mode:
authordan miller2007-10-19 05:15:33 +0000
committerdan miller2007-10-19 05:15:33 +0000
commit79eca25c945a535a7a0325999034bae17da92412 (patch)
tree40ff433d94859d629aac933d5ec73b382f62ba1a /libraries/ode-0.9/drawstuff/dstest
parentadding ode source to /libraries (diff)
downloadopensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.zip
opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.gz
opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.bz2
opensim-SC_OLD-79eca25c945a535a7a0325999034bae17da92412.tar.xz
resubmitting ode
Diffstat (limited to 'libraries/ode-0.9/drawstuff/dstest')
-rw-r--r--libraries/ode-0.9/drawstuff/dstest/Makefile.am13
-rw-r--r--libraries/ode-0.9/drawstuff/dstest/Makefile.in446
-rw-r--r--libraries/ode-0.9/drawstuff/dstest/dstest.cpp125
3 files changed, 584 insertions, 0 deletions
diff --git a/libraries/ode-0.9/drawstuff/dstest/Makefile.am b/libraries/ode-0.9/drawstuff/dstest/Makefile.am
new file mode 100644
index 0000000..9d74664
--- /dev/null
+++ b/libraries/ode-0.9/drawstuff/dstest/Makefile.am
@@ -0,0 +1,13 @@
1noinst_PROGRAMS= dstest
2dstest_CXXFLAGS = -I$(top_srcdir)/include -I$(top_builddir)
3
4dstest_SOURCES= dstest.cpp
5dstest_DEPENDENCIES=$(top_builddir)/drawstuff/src/libdrawstuff.a
6dstest_LDFLAGS = -L$(top_builddir)/drawstuff/src
7dstest_LDADD=-ldrawstuff @LDFLAGS@ @GL_LIBS@ @LIBS@
8if WIN32
9dstest_DEPENDENCIES+=resources.o
10resources.o: ../src/resources.rc ../src/resource.h
11 @WINDRES@ ../src/resources.rc -o resources.o
12dstest_LDADD+= resources.o
13endif
diff --git a/libraries/ode-0.9/drawstuff/dstest/Makefile.in b/libraries/ode-0.9/drawstuff/dstest/Makefile.in
new file mode 100644
index 0000000..0b7aed3
--- /dev/null
+++ b/libraries/ode-0.9/drawstuff/dstest/Makefile.in
@@ -0,0 +1,446 @@
1# Makefile.in generated by automake 1.10 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35target_triplet = @target@
36noinst_PROGRAMS = dstest$(EXEEXT)
37@WIN32_TRUE@am__append_1 = resources.o
38@WIN32_TRUE@am__append_2 = resources.o
39subdir = drawstuff/dstest
40DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
41ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42am__aclocal_m4_deps = $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/ode/config.h
47CONFIG_CLEAN_FILES =
48PROGRAMS = $(noinst_PROGRAMS)
49am_dstest_OBJECTS = dstest-dstest.$(OBJEXT)
50dstest_OBJECTS = $(am_dstest_OBJECTS)
51dstest_LINK = $(CXXLD) $(dstest_CXXFLAGS) $(CXXFLAGS) \
52 $(dstest_LDFLAGS) $(LDFLAGS) -o $@
53DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/ode@am__isrc@
54depcomp = $(SHELL) $(top_srcdir)/depcomp
55am__depfiles_maybe = depfiles
56CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
57 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
58CXXLD = $(CXX)
59CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \
60 -o $@
61SOURCES = $(dstest_SOURCES)
62DIST_SOURCES = $(dstest_SOURCES)
63ETAGS = etags
64CTAGS = ctags
65DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
66ACLOCAL = @ACLOCAL@
67ALLOCA = @ALLOCA@
68AMTAR = @AMTAR@
69ARCHFLAGS = @ARCHFLAGS@
70AUTOCONF = @AUTOCONF@
71AUTOHEADER = @AUTOHEADER@
72AUTOMAKE = @AUTOMAKE@
73AWK = @AWK@
74CC = @CC@
75CCDEPMODE = @CCDEPMODE@
76CFLAGS = @CFLAGS@
77CPP = @CPP@
78CPPFLAGS = @CPPFLAGS@
79CXX = @CXX@
80CXXDEPMODE = @CXXDEPMODE@
81CXXFLAGS = @CXXFLAGS@
82CYGPATH_W = @CYGPATH_W@
83DEFS = @DEFS@
84DEPDIR = @DEPDIR@
85DRAWSTUFF = @DRAWSTUFF@
86ECHO_C = @ECHO_C@
87ECHO_N = @ECHO_N@
88ECHO_T = @ECHO_T@
89EGREP = @EGREP@
90EXEEXT = @EXEEXT@
91GL_LIBS = @GL_LIBS@
92GREP = @GREP@
93INSTALL = @INSTALL@
94INSTALL_DATA = @INSTALL_DATA@
95INSTALL_PROGRAM = @INSTALL_PROGRAM@
96INSTALL_SCRIPT = @INSTALL_SCRIPT@
97INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98LDFLAGS = @LDFLAGS@
99LIBOBJS = @LIBOBJS@
100LIBS = @LIBS@
101LTLIBOBJS = @LTLIBOBJS@
102MAKEINFO = @MAKEINFO@
103MKDIR_P = @MKDIR_P@
104OBJEXT = @OBJEXT@
105ODE_AGE = @ODE_AGE@
106ODE_CURRENT = @ODE_CURRENT@
107ODE_RELEASE = @ODE_RELEASE@
108ODE_REVISION = @ODE_REVISION@
109ODE_SONAME = @ODE_SONAME@
110PACKAGE = @PACKAGE@
111PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
112PACKAGE_NAME = @PACKAGE_NAME@
113PACKAGE_STRING = @PACKAGE_STRING@
114PACKAGE_TARNAME = @PACKAGE_TARNAME@
115PACKAGE_VERSION = @PACKAGE_VERSION@
116PATH_SEPARATOR = @PATH_SEPARATOR@
117RANLIB = @RANLIB@
118SET_MAKE = @SET_MAKE@
119SHARED_LDFLAGS = @SHARED_LDFLAGS@
120SHELL = @SHELL@
121STRIP = @STRIP@
122TOPDIR = @TOPDIR@
123VERSION = @VERSION@
124WINDRES = @WINDRES@
125XMKMF = @XMKMF@
126X_CFLAGS = @X_CFLAGS@
127X_EXTRA_LIBS = @X_EXTRA_LIBS@
128X_LIBS = @X_LIBS@
129X_PRE_LIBS = @X_PRE_LIBS@
130abs_builddir = @abs_builddir@
131abs_srcdir = @abs_srcdir@
132abs_top_builddir = @abs_top_builddir@
133abs_top_srcdir = @abs_top_srcdir@
134ac_ct_CC = @ac_ct_CC@
135ac_ct_CXX = @ac_ct_CXX@
136ac_ct_WINDRES = @ac_ct_WINDRES@
137am__include = @am__include@
138am__leading_dot = @am__leading_dot@
139am__quote = @am__quote@
140am__tar = @am__tar@
141am__untar = @am__untar@
142bindir = @bindir@
143build = @build@
144build_alias = @build_alias@
145build_cpu = @build_cpu@
146build_os = @build_os@
147build_vendor = @build_vendor@
148builddir = @builddir@
149datadir = @datadir@
150datarootdir = @datarootdir@
151docdir = @docdir@
152dvidir = @dvidir@
153exec_prefix = @exec_prefix@
154host = @host@
155host_alias = @host_alias@
156host_cpu = @host_cpu@
157host_os = @host_os@
158host_vendor = @host_vendor@
159htmldir = @htmldir@
160includedir = @includedir@
161infodir = @infodir@
162install_sh = @install_sh@
163libdir = @libdir@
164libexecdir = @libexecdir@
165localedir = @localedir@
166localstatedir = @localstatedir@
167mandir = @mandir@
168mkdir_p = @mkdir_p@
169oldincludedir = @oldincludedir@
170pdfdir = @pdfdir@
171prefix = @prefix@
172program_transform_name = @program_transform_name@
173psdir = @psdir@
174sbindir = @sbindir@
175sharedstatedir = @sharedstatedir@
176so_ext = @so_ext@
177srcdir = @srcdir@
178sysconfdir = @sysconfdir@
179target = @target@
180target_alias = @target_alias@
181target_cpu = @target_cpu@
182target_os = @target_os@
183target_vendor = @target_vendor@
184top_builddir = @top_builddir@
185top_srcdir = @top_srcdir@
186dstest_CXXFLAGS = -I$(top_srcdir)/include -I$(top_builddir)
187dstest_SOURCES = dstest.cpp
188dstest_DEPENDENCIES = $(top_builddir)/drawstuff/src/libdrawstuff.a \
189 $(am__append_1)
190dstest_LDFLAGS = -L$(top_builddir)/drawstuff/src
191dstest_LDADD = -ldrawstuff @LDFLAGS@ @GL_LIBS@ @LIBS@ $(am__append_2)
192all: all-am
193
194.SUFFIXES:
195.SUFFIXES: .cpp .o .obj
196$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
197 @for dep in $?; do \
198 case '$(am__configure_deps)' in \
199 *$$dep*) \
200 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
201 && exit 0; \
202 exit 1;; \
203 esac; \
204 done; \
205 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign drawstuff/dstest/Makefile'; \
206 cd $(top_srcdir) && \
207 $(AUTOMAKE) --foreign drawstuff/dstest/Makefile
208.PRECIOUS: Makefile
209Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
210 @case '$?' in \
211 *config.status*) \
212 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
213 *) \
214 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
215 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
216 esac;
217
218$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
220
221$(top_srcdir)/configure: $(am__configure_deps)
222 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
223$(ACLOCAL_M4): $(am__aclocal_m4_deps)
224 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
225
226clean-noinstPROGRAMS:
227 -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
228dstest$(EXEEXT): $(dstest_OBJECTS) $(dstest_DEPENDENCIES)
229 @rm -f dstest$(EXEEXT)
230 $(dstest_LINK) $(dstest_OBJECTS) $(dstest_LDADD) $(LIBS)
231
232mostlyclean-compile:
233 -rm -f *.$(OBJEXT)
234
235distclean-compile:
236 -rm -f *.tab.c
237
238@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dstest-dstest.Po@am__quote@
239
240.cpp.o:
241@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
242@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
243@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
244@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
245@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
246
247.cpp.obj:
248@am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
249@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
250@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
251@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
252@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
253
254dstest-dstest.o: dstest.cpp
255@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dstest_CXXFLAGS) $(CXXFLAGS) -MT dstest-dstest.o -MD -MP -MF $(DEPDIR)/dstest-dstest.Tpo -c -o dstest-dstest.o `test -f 'dstest.cpp' || echo '$(srcdir)/'`dstest.cpp
256@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/dstest-dstest.Tpo $(DEPDIR)/dstest-dstest.Po
257@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='dstest.cpp' object='dstest-dstest.o' libtool=no @AMDEPBACKSLASH@
258@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
259@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dstest_CXXFLAGS) $(CXXFLAGS) -c -o dstest-dstest.o `test -f 'dstest.cpp' || echo '$(srcdir)/'`dstest.cpp
260
261dstest-dstest.obj: dstest.cpp
262@am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dstest_CXXFLAGS) $(CXXFLAGS) -MT dstest-dstest.obj -MD -MP -MF $(DEPDIR)/dstest-dstest.Tpo -c -o dstest-dstest.obj `if test -f 'dstest.cpp'; then $(CYGPATH_W) 'dstest.cpp'; else $(CYGPATH_W) '$(srcdir)/dstest.cpp'; fi`
263@am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/dstest-dstest.Tpo $(DEPDIR)/dstest-dstest.Po
264@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='dstest.cpp' object='dstest-dstest.obj' libtool=no @AMDEPBACKSLASH@
265@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
266@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dstest_CXXFLAGS) $(CXXFLAGS) -c -o dstest-dstest.obj `if test -f 'dstest.cpp'; then $(CYGPATH_W) 'dstest.cpp'; else $(CYGPATH_W) '$(srcdir)/dstest.cpp'; fi`
267
268ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
269 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
270 unique=`for i in $$list; do \
271 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
272 done | \
273 $(AWK) ' { files[$$0] = 1; } \
274 END { for (i in files) print i; }'`; \
275 mkid -fID $$unique
276tags: TAGS
277
278TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
279 $(TAGS_FILES) $(LISP)
280 tags=; \
281 here=`pwd`; \
282 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
283 unique=`for i in $$list; do \
284 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
285 done | \
286 $(AWK) ' { files[$$0] = 1; } \
287 END { for (i in files) print i; }'`; \
288 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
289 test -n "$$unique" || unique=$$empty_fix; \
290 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
291 $$tags $$unique; \
292 fi
293ctags: CTAGS
294CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
295 $(TAGS_FILES) $(LISP)
296 tags=; \
297 here=`pwd`; \
298 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
299 unique=`for i in $$list; do \
300 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
301 done | \
302 $(AWK) ' { files[$$0] = 1; } \
303 END { for (i in files) print i; }'`; \
304 test -z "$(CTAGS_ARGS)$$tags$$unique" \
305 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
306 $$tags $$unique
307
308GTAGS:
309 here=`$(am__cd) $(top_builddir) && pwd` \
310 && cd $(top_srcdir) \
311 && gtags -i $(GTAGS_ARGS) $$here
312
313distclean-tags:
314 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
315
316distdir: $(DISTFILES)
317 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
318 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
319 list='$(DISTFILES)'; \
320 dist_files=`for file in $$list; do echo $$file; done | \
321 sed -e "s|^$$srcdirstrip/||;t" \
322 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
323 case $$dist_files in \
324 */*) $(MKDIR_P) `echo "$$dist_files" | \
325 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
326 sort -u` ;; \
327 esac; \
328 for file in $$dist_files; do \
329 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
330 if test -d $$d/$$file; then \
331 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
332 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
333 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
334 fi; \
335 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
336 else \
337 test -f $(distdir)/$$file \
338 || cp -p $$d/$$file $(distdir)/$$file \
339 || exit 1; \
340 fi; \
341 done
342check-am: all-am
343check: check-am
344all-am: Makefile $(PROGRAMS)
345installdirs:
346install: install-am
347install-exec: install-exec-am
348install-data: install-data-am
349uninstall: uninstall-am
350
351install-am: all-am
352 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
353
354installcheck: installcheck-am
355install-strip:
356 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
357 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
358 `test -z '$(STRIP)' || \
359 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
360mostlyclean-generic:
361
362clean-generic:
363
364distclean-generic:
365 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
366
367maintainer-clean-generic:
368 @echo "This command is intended for maintainers to use"
369 @echo "it deletes files that may require special tools to rebuild."
370clean: clean-am
371
372clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am
373
374distclean: distclean-am
375 -rm -rf ./$(DEPDIR)
376 -rm -f Makefile
377distclean-am: clean-am distclean-compile distclean-generic \
378 distclean-tags
379
380dvi: dvi-am
381
382dvi-am:
383
384html: html-am
385
386info: info-am
387
388info-am:
389
390install-data-am:
391
392install-dvi: install-dvi-am
393
394install-exec-am:
395
396install-html: install-html-am
397
398install-info: install-info-am
399
400install-man:
401
402install-pdf: install-pdf-am
403
404install-ps: install-ps-am
405
406installcheck-am:
407
408maintainer-clean: maintainer-clean-am
409 -rm -rf ./$(DEPDIR)
410 -rm -f Makefile
411maintainer-clean-am: distclean-am maintainer-clean-generic
412
413mostlyclean: mostlyclean-am
414
415mostlyclean-am: mostlyclean-compile mostlyclean-generic
416
417pdf: pdf-am
418
419pdf-am:
420
421ps: ps-am
422
423ps-am:
424
425uninstall-am:
426
427.MAKE: install-am install-strip
428
429.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
430 clean-noinstPROGRAMS ctags distclean distclean-compile \
431 distclean-generic distclean-tags distdir dvi dvi-am html \
432 html-am info info-am install install-am install-data \
433 install-data-am install-dvi install-dvi-am install-exec \
434 install-exec-am install-html install-html-am install-info \
435 install-info-am install-man install-pdf install-pdf-am \
436 install-ps install-ps-am install-strip installcheck \
437 installcheck-am installdirs maintainer-clean \
438 maintainer-clean-generic mostlyclean mostlyclean-compile \
439 mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
440 uninstall-am
441
442@WIN32_TRUE@resources.o: ../src/resources.rc ../src/resource.h
443@WIN32_TRUE@ @WINDRES@ ../src/resources.rc -o resources.o
444# Tell versions [3.59,3.63) of GNU make to not export all variables.
445# Otherwise a system limit (for SysV at least) may be exceeded.
446.NOEXPORT:
diff --git a/libraries/ode-0.9/drawstuff/dstest/dstest.cpp b/libraries/ode-0.9/drawstuff/dstest/dstest.cpp
new file mode 100644
index 0000000..27f042f
--- /dev/null
+++ b/libraries/ode-0.9/drawstuff/dstest/dstest.cpp
@@ -0,0 +1,125 @@
1/*************************************************************************
2 * *
3 * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. *
4 * All rights reserved. Email: russ@q12.org Web: www.q12.org *
5 * *
6 * This library is free software; you can redistribute it and/or *
7 * modify it under the terms of EITHER: *
8 * (1) The GNU Lesser General Public License as published by the Free *
9 * Software Foundation; either version 2.1 of the License, or (at *
10 * your option) any later version. The text of the GNU Lesser *
11 * General Public License is included with this library in the *
12 * file LICENSE.TXT. *
13 * (2) The BSD-style license that is included with this library in *
14 * the file LICENSE-BSD.TXT. *
15 * *
16 * This library is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files *
19 * LICENSE.TXT and LICENSE-BSD.TXT for more details. *
20 * *
21 *************************************************************************/
22
23#include <stdio.h>
24#include <math.h>
25#include <drawstuff/drawstuff.h>
26
27
28#ifndef M_PI
29#define M_PI (3.14159265358979323846)
30#endif
31
32
33void start()
34{
35 // adjust the starting viewpoint a bit
36 float xyz[3],hpr[3];
37 dsGetViewpoint (xyz,hpr);
38 hpr[0] += 7;
39 dsSetViewpoint (xyz,hpr);
40}
41
42
43void simLoop (int pause)
44{
45 float pos[3];
46 float R[12];
47 static float a = 0;
48
49 if (!pause) a += 0.02f;
50 if (a > (2*M_PI)) a -= (float) (2*M_PI);
51 float ca = (float) cos(a);
52 float sa = (float) sin(a);
53
54 dsSetTexture (DS_WOOD);
55
56 float b = (a > M_PI) ? (2*(a-(float)M_PI)) : a*2;
57 pos[0] = -0.3f;
58 pos[1] = 0;
59 pos[2] = (float) (0.1f*(2*M_PI*b - b*b) + 0.65f);
60 R[0] = ca; R[1] = 0; R[2] = -sa;
61 R[4] = 0; R[5] = 1; R[6] = 0;
62 R[8] = sa; R[9] = 0; R[10] = ca;
63 dsSetColor (1,0.8f,0.6f);
64 dsDrawSphere (pos,R,0.3f);
65
66 dsSetTexture (DS_NONE);
67
68 pos[0] = -0.2f;
69 pos[1] = 0.8f;
70 pos[2] = 0.4f;
71 R[0] = ca; R[1] = -sa; R[2] = 0;
72 R[4] = sa; R[5] = ca; R[6] = 0;
73 R[8] = 0; R[9] = 0; R[10] = 1;
74 float sides[3] = {0.1f,0.4f,0.8f};
75 dsSetColor (0.6f,0.6f,1);
76 dsDrawBox (pos,R,sides);
77
78 dsSetTexture (DS_WOOD);
79
80 float r = 0.3f; // cylinder radius
81 float d = (float)cos(a*2) * 0.4f;
82 float cd = (float)cos(-d/r);
83 float sd = (float)sin(-d/r);
84 pos[0] = -0.2f;
85 pos[1] = -1 + d;
86 pos[2] = 0.3f;
87 R[0] = 0; R[1] = 0; R[2] = -1;
88 R[4] = -sd; R[5] = cd; R[6] = 0;
89 R[8] = cd; R[9] = sd; R[10] = 0;
90 dsSetColor (0.4f,1,1);
91 dsDrawCylinder (pos,R,0.8f,r);
92
93 pos[0] = 0;
94 pos[1] = 0;
95 pos[2] = 0.2f;
96 R[0] = 0; R[1] = sa; R[2] = -ca;
97 R[4] = 0; R[5] = ca; R[6] = sa;
98 R[8] = 1; R[9] = 0; R[10] = 0;
99 dsSetColor (1,0.9f,0.2f);
100 dsDrawCappedCylinder (pos,R,0.8f,0.2f);
101}
102
103
104void command (int cmd)
105{
106 dsPrint ("received command %d (`%c')\n",cmd,cmd);
107}
108
109
110int main (int argc, char **argv)
111{
112 // setup pointers to callback functions
113 dsFunctions fn;
114 fn.version = DS_VERSION;
115 fn.start = &start;
116 fn.step = &simLoop;
117 fn.command = command;
118 fn.stop = 0;
119 fn.path_to_textures = 0; // uses default
120
121 // run simulation
122 dsSimulationLoop (argc,argv,400,400,&fn);
123
124 return 0;
125}