diff options
Diffstat (limited to 'libraries/ode-0.9/drawstuff/dstest')
-rw-r--r-- | libraries/ode-0.9/drawstuff/dstest/Makefile.am | 13 | ||||
-rw-r--r-- | libraries/ode-0.9/drawstuff/dstest/Makefile.in | 446 | ||||
-rw-r--r-- | libraries/ode-0.9/drawstuff/dstest/dstest.cpp | 125 |
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 @@ | |||
1 | noinst_PROGRAMS= dstest | ||
2 | dstest_CXXFLAGS = -I$(top_srcdir)/include -I$(top_builddir) | ||
3 | |||
4 | dstest_SOURCES= dstest.cpp | ||
5 | dstest_DEPENDENCIES=$(top_builddir)/drawstuff/src/libdrawstuff.a | ||
6 | dstest_LDFLAGS = -L$(top_builddir)/drawstuff/src | ||
7 | dstest_LDADD=-ldrawstuff @LDFLAGS@ @GL_LIBS@ @LIBS@ | ||
8 | if WIN32 | ||
9 | dstest_DEPENDENCIES+=resources.o | ||
10 | resources.o: ../src/resources.rc ../src/resource.h | ||
11 | @WINDRES@ ../src/resources.rc -o resources.o | ||
12 | dstest_LDADD+= resources.o | ||
13 | endif | ||
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 | |||
17 | VPATH = @srcdir@ | ||
18 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
19 | pkglibdir = $(libdir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
22 | install_sh_DATA = $(install_sh) -c -m 644 | ||
23 | install_sh_PROGRAM = $(install_sh) -c | ||
24 | install_sh_SCRIPT = $(install_sh) -c | ||
25 | INSTALL_HEADER = $(INSTALL_DATA) | ||
26 | transform = $(program_transform_name) | ||
27 | NORMAL_INSTALL = : | ||
28 | PRE_INSTALL = : | ||
29 | POST_INSTALL = : | ||
30 | NORMAL_UNINSTALL = : | ||
31 | PRE_UNINSTALL = : | ||
32 | POST_UNINSTALL = : | ||
33 | build_triplet = @build@ | ||
34 | host_triplet = @host@ | ||
35 | target_triplet = @target@ | ||
36 | noinst_PROGRAMS = dstest$(EXEEXT) | ||
37 | @WIN32_TRUE@am__append_1 = resources.o | ||
38 | @WIN32_TRUE@am__append_2 = resources.o | ||
39 | subdir = drawstuff/dstest | ||
40 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
41 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
42 | am__aclocal_m4_deps = $(top_srcdir)/configure.in | ||
43 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
44 | $(ACLOCAL_M4) | ||
45 | mkinstalldirs = $(install_sh) -d | ||
46 | CONFIG_HEADER = $(top_builddir)/include/ode/config.h | ||
47 | CONFIG_CLEAN_FILES = | ||
48 | PROGRAMS = $(noinst_PROGRAMS) | ||
49 | am_dstest_OBJECTS = dstest-dstest.$(OBJEXT) | ||
50 | dstest_OBJECTS = $(am_dstest_OBJECTS) | ||
51 | dstest_LINK = $(CXXLD) $(dstest_CXXFLAGS) $(CXXFLAGS) \ | ||
52 | $(dstest_LDFLAGS) $(LDFLAGS) -o $@ | ||
53 | DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/ode@am__isrc@ | ||
54 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
55 | am__depfiles_maybe = depfiles | ||
56 | CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
57 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) | ||
58 | CXXLD = $(CXX) | ||
59 | CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ | ||
60 | -o $@ | ||
61 | SOURCES = $(dstest_SOURCES) | ||
62 | DIST_SOURCES = $(dstest_SOURCES) | ||
63 | ETAGS = etags | ||
64 | CTAGS = ctags | ||
65 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
66 | ACLOCAL = @ACLOCAL@ | ||
67 | ALLOCA = @ALLOCA@ | ||
68 | AMTAR = @AMTAR@ | ||
69 | ARCHFLAGS = @ARCHFLAGS@ | ||
70 | AUTOCONF = @AUTOCONF@ | ||
71 | AUTOHEADER = @AUTOHEADER@ | ||
72 | AUTOMAKE = @AUTOMAKE@ | ||
73 | AWK = @AWK@ | ||
74 | CC = @CC@ | ||
75 | CCDEPMODE = @CCDEPMODE@ | ||
76 | CFLAGS = @CFLAGS@ | ||
77 | CPP = @CPP@ | ||
78 | CPPFLAGS = @CPPFLAGS@ | ||
79 | CXX = @CXX@ | ||
80 | CXXDEPMODE = @CXXDEPMODE@ | ||
81 | CXXFLAGS = @CXXFLAGS@ | ||
82 | CYGPATH_W = @CYGPATH_W@ | ||
83 | DEFS = @DEFS@ | ||
84 | DEPDIR = @DEPDIR@ | ||
85 | DRAWSTUFF = @DRAWSTUFF@ | ||
86 | ECHO_C = @ECHO_C@ | ||
87 | ECHO_N = @ECHO_N@ | ||
88 | ECHO_T = @ECHO_T@ | ||
89 | EGREP = @EGREP@ | ||
90 | EXEEXT = @EXEEXT@ | ||
91 | GL_LIBS = @GL_LIBS@ | ||
92 | GREP = @GREP@ | ||
93 | INSTALL = @INSTALL@ | ||
94 | INSTALL_DATA = @INSTALL_DATA@ | ||
95 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
96 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
97 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
98 | LDFLAGS = @LDFLAGS@ | ||
99 | LIBOBJS = @LIBOBJS@ | ||
100 | LIBS = @LIBS@ | ||
101 | LTLIBOBJS = @LTLIBOBJS@ | ||
102 | MAKEINFO = @MAKEINFO@ | ||
103 | MKDIR_P = @MKDIR_P@ | ||
104 | OBJEXT = @OBJEXT@ | ||
105 | ODE_AGE = @ODE_AGE@ | ||
106 | ODE_CURRENT = @ODE_CURRENT@ | ||
107 | ODE_RELEASE = @ODE_RELEASE@ | ||
108 | ODE_REVISION = @ODE_REVISION@ | ||
109 | ODE_SONAME = @ODE_SONAME@ | ||
110 | PACKAGE = @PACKAGE@ | ||
111 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
112 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
113 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
114 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
115 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
116 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
117 | RANLIB = @RANLIB@ | ||
118 | SET_MAKE = @SET_MAKE@ | ||
119 | SHARED_LDFLAGS = @SHARED_LDFLAGS@ | ||
120 | SHELL = @SHELL@ | ||
121 | STRIP = @STRIP@ | ||
122 | TOPDIR = @TOPDIR@ | ||
123 | VERSION = @VERSION@ | ||
124 | WINDRES = @WINDRES@ | ||
125 | XMKMF = @XMKMF@ | ||
126 | X_CFLAGS = @X_CFLAGS@ | ||
127 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
128 | X_LIBS = @X_LIBS@ | ||
129 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
130 | abs_builddir = @abs_builddir@ | ||
131 | abs_srcdir = @abs_srcdir@ | ||
132 | abs_top_builddir = @abs_top_builddir@ | ||
133 | abs_top_srcdir = @abs_top_srcdir@ | ||
134 | ac_ct_CC = @ac_ct_CC@ | ||
135 | ac_ct_CXX = @ac_ct_CXX@ | ||
136 | ac_ct_WINDRES = @ac_ct_WINDRES@ | ||
137 | am__include = @am__include@ | ||
138 | am__leading_dot = @am__leading_dot@ | ||
139 | am__quote = @am__quote@ | ||
140 | am__tar = @am__tar@ | ||
141 | am__untar = @am__untar@ | ||
142 | bindir = @bindir@ | ||
143 | build = @build@ | ||
144 | build_alias = @build_alias@ | ||
145 | build_cpu = @build_cpu@ | ||
146 | build_os = @build_os@ | ||
147 | build_vendor = @build_vendor@ | ||
148 | builddir = @builddir@ | ||
149 | datadir = @datadir@ | ||
150 | datarootdir = @datarootdir@ | ||
151 | docdir = @docdir@ | ||
152 | dvidir = @dvidir@ | ||
153 | exec_prefix = @exec_prefix@ | ||
154 | host = @host@ | ||
155 | host_alias = @host_alias@ | ||
156 | host_cpu = @host_cpu@ | ||
157 | host_os = @host_os@ | ||
158 | host_vendor = @host_vendor@ | ||
159 | htmldir = @htmldir@ | ||
160 | includedir = @includedir@ | ||
161 | infodir = @infodir@ | ||
162 | install_sh = @install_sh@ | ||
163 | libdir = @libdir@ | ||
164 | libexecdir = @libexecdir@ | ||
165 | localedir = @localedir@ | ||
166 | localstatedir = @localstatedir@ | ||
167 | mandir = @mandir@ | ||
168 | mkdir_p = @mkdir_p@ | ||
169 | oldincludedir = @oldincludedir@ | ||
170 | pdfdir = @pdfdir@ | ||
171 | prefix = @prefix@ | ||
172 | program_transform_name = @program_transform_name@ | ||
173 | psdir = @psdir@ | ||
174 | sbindir = @sbindir@ | ||
175 | sharedstatedir = @sharedstatedir@ | ||
176 | so_ext = @so_ext@ | ||
177 | srcdir = @srcdir@ | ||
178 | sysconfdir = @sysconfdir@ | ||
179 | target = @target@ | ||
180 | target_alias = @target_alias@ | ||
181 | target_cpu = @target_cpu@ | ||
182 | target_os = @target_os@ | ||
183 | target_vendor = @target_vendor@ | ||
184 | top_builddir = @top_builddir@ | ||
185 | top_srcdir = @top_srcdir@ | ||
186 | dstest_CXXFLAGS = -I$(top_srcdir)/include -I$(top_builddir) | ||
187 | dstest_SOURCES = dstest.cpp | ||
188 | dstest_DEPENDENCIES = $(top_builddir)/drawstuff/src/libdrawstuff.a \ | ||
189 | $(am__append_1) | ||
190 | dstest_LDFLAGS = -L$(top_builddir)/drawstuff/src | ||
191 | dstest_LDADD = -ldrawstuff @LDFLAGS@ @GL_LIBS@ @LIBS@ $(am__append_2) | ||
192 | all: 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 | ||
209 | Makefile: $(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 | |||
226 | clean-noinstPROGRAMS: | ||
227 | -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) | ||
228 | dstest$(EXEEXT): $(dstest_OBJECTS) $(dstest_DEPENDENCIES) | ||
229 | @rm -f dstest$(EXEEXT) | ||
230 | $(dstest_LINK) $(dstest_OBJECTS) $(dstest_LDADD) $(LIBS) | ||
231 | |||
232 | mostlyclean-compile: | ||
233 | -rm -f *.$(OBJEXT) | ||
234 | |||
235 | distclean-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 | |||
254 | dstest-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 | |||
261 | dstest-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 | |||
268 | ID: $(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 | ||
276 | tags: TAGS | ||
277 | |||
278 | TAGS: $(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 | ||
293 | ctags: CTAGS | ||
294 | CTAGS: $(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 | |||
308 | GTAGS: | ||
309 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
310 | && cd $(top_srcdir) \ | ||
311 | && gtags -i $(GTAGS_ARGS) $$here | ||
312 | |||
313 | distclean-tags: | ||
314 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
315 | |||
316 | distdir: $(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 | ||
342 | check-am: all-am | ||
343 | check: check-am | ||
344 | all-am: Makefile $(PROGRAMS) | ||
345 | installdirs: | ||
346 | install: install-am | ||
347 | install-exec: install-exec-am | ||
348 | install-data: install-data-am | ||
349 | uninstall: uninstall-am | ||
350 | |||
351 | install-am: all-am | ||
352 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
353 | |||
354 | installcheck: installcheck-am | ||
355 | install-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 | ||
360 | mostlyclean-generic: | ||
361 | |||
362 | clean-generic: | ||
363 | |||
364 | distclean-generic: | ||
365 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
366 | |||
367 | maintainer-clean-generic: | ||
368 | @echo "This command is intended for maintainers to use" | ||
369 | @echo "it deletes files that may require special tools to rebuild." | ||
370 | clean: clean-am | ||
371 | |||
372 | clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am | ||
373 | |||
374 | distclean: distclean-am | ||
375 | -rm -rf ./$(DEPDIR) | ||
376 | -rm -f Makefile | ||
377 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
378 | distclean-tags | ||
379 | |||
380 | dvi: dvi-am | ||
381 | |||
382 | dvi-am: | ||
383 | |||
384 | html: html-am | ||
385 | |||
386 | info: info-am | ||
387 | |||
388 | info-am: | ||
389 | |||
390 | install-data-am: | ||
391 | |||
392 | install-dvi: install-dvi-am | ||
393 | |||
394 | install-exec-am: | ||
395 | |||
396 | install-html: install-html-am | ||
397 | |||
398 | install-info: install-info-am | ||
399 | |||
400 | install-man: | ||
401 | |||
402 | install-pdf: install-pdf-am | ||
403 | |||
404 | install-ps: install-ps-am | ||
405 | |||
406 | installcheck-am: | ||
407 | |||
408 | maintainer-clean: maintainer-clean-am | ||
409 | -rm -rf ./$(DEPDIR) | ||
410 | -rm -f Makefile | ||
411 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
412 | |||
413 | mostlyclean: mostlyclean-am | ||
414 | |||
415 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | ||
416 | |||
417 | pdf: pdf-am | ||
418 | |||
419 | pdf-am: | ||
420 | |||
421 | ps: ps-am | ||
422 | |||
423 | ps-am: | ||
424 | |||
425 | uninstall-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 | |||
33 | void 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 | |||
43 | void 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 | |||
104 | void command (int cmd) | ||
105 | { | ||
106 | dsPrint ("received command %d (`%c')\n",cmd,cmd); | ||
107 | } | ||
108 | |||
109 | |||
110 | int 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 | } | ||