diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test')
4 files changed, 1206 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile new file mode 100644 index 0000000..0b88eab --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile | |||
@@ -0,0 +1,510 @@ | |||
1 | # Makefile.in generated by automake 1.10.1 from Makefile.am. | ||
2 | # plugins/import/imp_test/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008 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 | |||
16 | |||
17 | |||
18 | pkgdatadir = $(datadir)/libg3d | ||
19 | pkglibdir = $(libdir)/libg3d | ||
20 | pkgincludedir = $(includedir)/libg3d | ||
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 = x86_64-unknown-linux-gnu | ||
34 | host_triplet = x86_64-unknown-linux-gnu | ||
35 | subdir = plugins/import/imp_test | ||
36 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
37 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
38 | am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ | ||
39 | $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ | ||
40 | $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
41 | $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ | ||
42 | $(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/g3d/config.h | ||
47 | CONFIG_CLEAN_FILES = | ||
48 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
49 | am__vpath_adj = case $$p in \ | ||
50 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
51 | *) f=$$p;; \ | ||
52 | esac; | ||
53 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | ||
54 | am__installdirs = "$(DESTDIR)$(pluginimpdir)" | ||
55 | pluginimpLTLIBRARIES_INSTALL = $(INSTALL) | ||
56 | LTLIBRARIES = $(pluginimp_LTLIBRARIES) | ||
57 | imp_test_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la | ||
58 | am_imp_test_la_OBJECTS = imp_test.lo | ||
59 | imp_test_la_OBJECTS = $(am_imp_test_la_OBJECTS) | ||
60 | #am_imp_test_la_rpath = -rpath $(pluginimpdir) | ||
61 | DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d | ||
62 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
63 | am__depfiles_maybe = depfiles | ||
64 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
65 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
66 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
67 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
68 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
69 | CCLD = $(CC) | ||
70 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
71 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
72 | $(LDFLAGS) -o $@ | ||
73 | SOURCES = $(imp_test_la_SOURCES) | ||
74 | DIST_SOURCES = $(imp_test_la_SOURCES) | ||
75 | ETAGS = etags | ||
76 | CTAGS = ctags | ||
77 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
78 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 | ||
79 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar | ||
80 | AR = ar | ||
81 | AS = as | ||
82 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf | ||
83 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader | ||
84 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 | ||
85 | AWK = gawk | ||
86 | CC = gcc | ||
87 | CCDEPMODE = depmode=gcc3 | ||
88 | CFLAGS = -g -O2 | ||
89 | CPP = gcc -E | ||
90 | CPPFLAGS = | ||
91 | CXX = g++ | ||
92 | CXXCPP = g++ -E | ||
93 | CXXDEPMODE = depmode=gcc3 | ||
94 | CXXFLAGS = -g -O2 | ||
95 | CYGPATH_W = echo | ||
96 | DBG_CFLAGS = -O2 | ||
97 | DEBUG = 0 | ||
98 | DEFS = -DHAVE_CONFIG_H | ||
99 | DEPDIR = .deps | ||
100 | DLLTOOL = dlltool | ||
101 | ECHO = echo | ||
102 | ECHO_C = | ||
103 | ECHO_N = -n | ||
104 | ECHO_T = | ||
105 | EGREP = /bin/grep -E | ||
106 | EXEEXT = | ||
107 | F77 = | ||
108 | FFLAGS = | ||
109 | GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
110 | GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
111 | GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
112 | GLIB_GENMARSHAL = glib-genmarshal | ||
113 | GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 | ||
114 | GLIB_MKENUMS = glib-mkenums | ||
115 | GOBJECT_QUERY = gobject-query | ||
116 | GREP = /bin/grep | ||
117 | GTKDOC_CHECK = /usr/bin/gtkdoc-check | ||
118 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
119 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
120 | HTML_DIR = ${datadir}/gtk-doc/html | ||
121 | INSTALL = /usr/bin/install -c | ||
122 | INSTALL_DATA = ${INSTALL} -m 644 | ||
123 | INSTALL_PROGRAM = ${INSTALL} | ||
124 | INSTALL_SCRIPT = ${INSTALL} | ||
125 | INSTALL_STRIP_PROGRAM = $(install_sh) -c -s | ||
126 | LDFLAGS = | ||
127 | LEX = flex | ||
128 | LEXLIB = -lfl | ||
129 | LEX_OUTPUT_ROOT = lex.yy | ||
130 | LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 | ||
131 | LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 | ||
132 | LIBOBJS = | ||
133 | LIBS = -lm | ||
134 | LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet | ||
135 | LIBXML2_CFLAGS = -I/usr/include/libxml2 | ||
136 | LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
137 | LN_S = ln -s | ||
138 | LTLIBOBJS = | ||
139 | LTVERSION = 0:8:0 | ||
140 | MAGIC_LIBS = -lmagic | ||
141 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo | ||
142 | MATH_LIBS = -lm | ||
143 | MKDIR_P = /bin/mkdir -p | ||
144 | OBJDUMP = objdump | ||
145 | OBJEXT = o | ||
146 | PACKAGE = libg3d | ||
147 | PACKAGE_BUGREPORT = | ||
148 | PACKAGE_NAME = | ||
149 | PACKAGE_STRING = | ||
150 | PACKAGE_TARNAME = | ||
151 | PACKAGE_VERSION = | ||
152 | PATH_SEPARATOR = : | ||
153 | PKG_CONFIG = /usr/bin/pkg-config | ||
154 | PLUGINS_LDFLAGS = -avoid-version -export-dynamic | ||
155 | RANLIB = ranlib | ||
156 | SET_MAKE = | ||
157 | SHELL = /bin/bash | ||
158 | STRIP = strip | ||
159 | VERSION = 0.0.8 | ||
160 | XML2_CONFIG = /usr/bin/xml2-config | ||
161 | XML_CPPFLAGS = -I/usr/include/libxml2 | ||
162 | XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
163 | Z_CFLAGS = | ||
164 | Z_LIBS = -lz | ||
165 | abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test | ||
166 | abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test | ||
167 | abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
168 | abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
169 | ac_ct_CC = gcc | ||
170 | ac_ct_CXX = g++ | ||
171 | ac_ct_F77 = | ||
172 | am__include = include | ||
173 | am__leading_dot = . | ||
174 | am__quote = | ||
175 | am__tar = ${AMTAR} chof - "$$tardir" | ||
176 | am__untar = ${AMTAR} xf - | ||
177 | bindir = ${exec_prefix}/bin | ||
178 | build = x86_64-unknown-linux-gnu | ||
179 | build_alias = | ||
180 | build_cpu = x86_64 | ||
181 | build_os = linux-gnu | ||
182 | build_vendor = unknown | ||
183 | builddir = . | ||
184 | datadir = ${datarootdir} | ||
185 | datarootdir = ${prefix}/share | ||
186 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
187 | dvidir = ${docdir} | ||
188 | exec_prefix = ${prefix} | ||
189 | host = x86_64-unknown-linux-gnu | ||
190 | host_alias = | ||
191 | host_cpu = x86_64 | ||
192 | host_os = linux-gnu | ||
193 | host_vendor = unknown | ||
194 | htmldir = ${docdir} | ||
195 | includedir = ${prefix}/include | ||
196 | infodir = ${datarootdir}/info | ||
197 | install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh | ||
198 | libdir = ${exec_prefix}/lib | ||
199 | libexecdir = ${exec_prefix}/libexec | ||
200 | localedir = ${datarootdir}/locale | ||
201 | localstatedir = ${prefix}/var | ||
202 | mandir = ${datarootdir}/man | ||
203 | mkdir_p = /bin/mkdir -p | ||
204 | oldincludedir = /usr/include | ||
205 | pdfdir = ${docdir} | ||
206 | prefix = /usr/local | ||
207 | program_transform_name = s,x,x, | ||
208 | psdir = ${docdir} | ||
209 | sbindir = ${exec_prefix}/sbin | ||
210 | sharedstatedir = ${prefix}/com | ||
211 | srcdir = . | ||
212 | sysconfdir = ${prefix}/etc | ||
213 | target_alias = | ||
214 | top_builddir = ../../.. | ||
215 | top_srcdir = ../../.. | ||
216 | pluginimpdir = $(pkglibdir)/plugins/import | ||
217 | #pluginimp_LTLIBRARIES = imp_test.la | ||
218 | AM_CFLAGS = \ | ||
219 | -Wall -ansi -pedantic \ | ||
220 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
221 | -O2 -DDEBUG=0 \ | ||
222 | -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
223 | |||
224 | INCLUDES = -I$(top_srcdir)/include | ||
225 | AM_LDFLAGS = \ | ||
226 | -no-undefined -module \ | ||
227 | -avoid-version -export-dynamic | ||
228 | |||
229 | imp_test_la_SOURCES = imp_test.c | ||
230 | imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 | ||
231 | all: all-am | ||
232 | |||
233 | .SUFFIXES: | ||
234 | .SUFFIXES: .c .lo .o .obj | ||
235 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
236 | @for dep in $?; do \ | ||
237 | case '$(am__configure_deps)' in \ | ||
238 | *$$dep*) \ | ||
239 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | ||
240 | && exit 0; \ | ||
241 | exit 1;; \ | ||
242 | esac; \ | ||
243 | done; \ | ||
244 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile'; \ | ||
245 | cd $(top_srcdir) && \ | ||
246 | $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile | ||
247 | .PRECIOUS: Makefile | ||
248 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
249 | @case '$?' in \ | ||
250 | *config.status*) \ | ||
251 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
252 | *) \ | ||
253 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
254 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
255 | esac; | ||
256 | |||
257 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
258 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
259 | |||
260 | $(top_srcdir)/configure: $(am__configure_deps) | ||
261 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
262 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
263 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
264 | install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) | ||
265 | @$(NORMAL_INSTALL) | ||
266 | test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" | ||
267 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
268 | if test -f $$p; then \ | ||
269 | f=$(am__strip_dir) \ | ||
270 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ | ||
271 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ | ||
272 | else :; fi; \ | ||
273 | done | ||
274 | |||
275 | uninstall-pluginimpLTLIBRARIES: | ||
276 | @$(NORMAL_UNINSTALL) | ||
277 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
278 | p=$(am__strip_dir) \ | ||
279 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ | ||
280 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ | ||
281 | done | ||
282 | |||
283 | clean-pluginimpLTLIBRARIES: | ||
284 | -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) | ||
285 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
286 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
287 | test "$$dir" != "$$p" || dir=.; \ | ||
288 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
289 | rm -f "$${dir}/so_locations"; \ | ||
290 | done | ||
291 | imp_test.la: $(imp_test_la_OBJECTS) $(imp_test_la_DEPENDENCIES) | ||
292 | $(LINK) $(am_imp_test_la_rpath) $(imp_test_la_OBJECTS) $(imp_test_la_LIBADD) $(LIBS) | ||
293 | |||
294 | mostlyclean-compile: | ||
295 | -rm -f *.$(OBJEXT) | ||
296 | |||
297 | distclean-compile: | ||
298 | -rm -f *.tab.c | ||
299 | |||
300 | include ./$(DEPDIR)/imp_test.Plo | ||
301 | |||
302 | .c.o: | ||
303 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
304 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
305 | # source='$<' object='$@' libtool=no \ | ||
306 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
307 | # $(COMPILE) -c $< | ||
308 | |||
309 | .c.obj: | ||
310 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
311 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
312 | # source='$<' object='$@' libtool=no \ | ||
313 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
314 | # $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
315 | |||
316 | .c.lo: | ||
317 | $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
318 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
319 | # source='$<' object='$@' libtool=yes \ | ||
320 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
321 | # $(LTCOMPILE) -c -o $@ $< | ||
322 | |||
323 | mostlyclean-libtool: | ||
324 | -rm -f *.lo | ||
325 | |||
326 | clean-libtool: | ||
327 | -rm -rf .libs _libs | ||
328 | |||
329 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
330 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
331 | unique=`for i in $$list; do \ | ||
332 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
333 | done | \ | ||
334 | $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ | ||
335 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
336 | mkid -fID $$unique | ||
337 | tags: TAGS | ||
338 | |||
339 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
340 | $(TAGS_FILES) $(LISP) | ||
341 | tags=; \ | ||
342 | here=`pwd`; \ | ||
343 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
344 | unique=`for i in $$list; do \ | ||
345 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
346 | done | \ | ||
347 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
348 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
349 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | ||
350 | test -n "$$unique" || unique=$$empty_fix; \ | ||
351 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
352 | $$tags $$unique; \ | ||
353 | fi | ||
354 | ctags: CTAGS | ||
355 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
356 | $(TAGS_FILES) $(LISP) | ||
357 | tags=; \ | ||
358 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
359 | unique=`for i in $$list; do \ | ||
360 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
361 | done | \ | ||
362 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
363 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
364 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
365 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
366 | $$tags $$unique | ||
367 | |||
368 | GTAGS: | ||
369 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
370 | && cd $(top_srcdir) \ | ||
371 | && gtags -i $(GTAGS_ARGS) $$here | ||
372 | |||
373 | distclean-tags: | ||
374 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
375 | |||
376 | distdir: $(DISTFILES) | ||
377 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
378 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
379 | list='$(DISTFILES)'; \ | ||
380 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
381 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
382 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
383 | case $$dist_files in \ | ||
384 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
385 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
386 | sort -u` ;; \ | ||
387 | esac; \ | ||
388 | for file in $$dist_files; do \ | ||
389 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
390 | if test -d $$d/$$file; then \ | ||
391 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
392 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
393 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
394 | fi; \ | ||
395 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
396 | else \ | ||
397 | test -f $(distdir)/$$file \ | ||
398 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
399 | || exit 1; \ | ||
400 | fi; \ | ||
401 | done | ||
402 | check-am: all-am | ||
403 | check: check-am | ||
404 | all-am: Makefile $(LTLIBRARIES) | ||
405 | installdirs: | ||
406 | for dir in "$(DESTDIR)$(pluginimpdir)"; do \ | ||
407 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
408 | done | ||
409 | install: install-am | ||
410 | install-exec: install-exec-am | ||
411 | install-data: install-data-am | ||
412 | uninstall: uninstall-am | ||
413 | |||
414 | install-am: all-am | ||
415 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
416 | |||
417 | installcheck: installcheck-am | ||
418 | install-strip: | ||
419 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
420 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
421 | `test -z '$(STRIP)' || \ | ||
422 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
423 | mostlyclean-generic: | ||
424 | |||
425 | clean-generic: | ||
426 | |||
427 | distclean-generic: | ||
428 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
429 | |||
430 | maintainer-clean-generic: | ||
431 | @echo "This command is intended for maintainers to use" | ||
432 | @echo "it deletes files that may require special tools to rebuild." | ||
433 | clean: clean-am | ||
434 | |||
435 | clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ | ||
436 | mostlyclean-am | ||
437 | |||
438 | distclean: distclean-am | ||
439 | -rm -rf ./$(DEPDIR) | ||
440 | -rm -f Makefile | ||
441 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
442 | distclean-tags | ||
443 | |||
444 | dvi: dvi-am | ||
445 | |||
446 | dvi-am: | ||
447 | |||
448 | html: html-am | ||
449 | |||
450 | info: info-am | ||
451 | |||
452 | info-am: | ||
453 | |||
454 | install-data-am: install-pluginimpLTLIBRARIES | ||
455 | |||
456 | install-dvi: install-dvi-am | ||
457 | |||
458 | install-exec-am: | ||
459 | |||
460 | install-html: install-html-am | ||
461 | |||
462 | install-info: install-info-am | ||
463 | |||
464 | install-man: | ||
465 | |||
466 | install-pdf: install-pdf-am | ||
467 | |||
468 | install-ps: install-ps-am | ||
469 | |||
470 | installcheck-am: | ||
471 | |||
472 | maintainer-clean: maintainer-clean-am | ||
473 | -rm -rf ./$(DEPDIR) | ||
474 | -rm -f Makefile | ||
475 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
476 | |||
477 | mostlyclean: mostlyclean-am | ||
478 | |||
479 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
480 | mostlyclean-libtool | ||
481 | |||
482 | pdf: pdf-am | ||
483 | |||
484 | pdf-am: | ||
485 | |||
486 | ps: ps-am | ||
487 | |||
488 | ps-am: | ||
489 | |||
490 | uninstall-am: uninstall-pluginimpLTLIBRARIES | ||
491 | |||
492 | .MAKE: install-am install-strip | ||
493 | |||
494 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
495 | clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ | ||
496 | distclean-compile distclean-generic distclean-libtool \ | ||
497 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | ||
498 | install install-am install-data install-data-am install-dvi \ | ||
499 | install-dvi-am install-exec install-exec-am install-html \ | ||
500 | install-html-am install-info install-info-am install-man \ | ||
501 | install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ | ||
502 | install-ps install-ps-am install-strip installcheck \ | ||
503 | installcheck-am installdirs maintainer-clean \ | ||
504 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
505 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
506 | tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES | ||
507 | |||
508 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
509 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
510 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am new file mode 100644 index 0000000..cbe6ea8 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am | |||
@@ -0,0 +1,22 @@ | |||
1 | pluginimpdir = $(pkglibdir)/plugins/import | ||
2 | |||
3 | if EXPERIMENTAL | ||
4 | pluginimp_LTLIBRARIES = imp_test.la | ||
5 | endif | ||
6 | |||
7 | AM_CFLAGS = \ | ||
8 | -Wall -ansi -pedantic \ | ||
9 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
10 | @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ | ||
11 | @GLIB_CFLAGS@ | ||
12 | |||
13 | INCLUDES = -I$(top_srcdir)/include | ||
14 | |||
15 | AM_LDFLAGS = \ | ||
16 | -no-undefined -module \ | ||
17 | @PLUGINS_LDFLAGS@ | ||
18 | |||
19 | LIBTOOL += --quiet | ||
20 | |||
21 | imp_test_la_SOURCES = imp_test.c | ||
22 | imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in new file mode 100644 index 0000000..aee0e06 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in | |||
@@ -0,0 +1,510 @@ | |||
1 | # Makefile.in generated by automake 1.10.1 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008 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 | subdir = plugins/import/imp_test | ||
36 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
37 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
38 | am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ | ||
39 | $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ | ||
40 | $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
41 | $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ | ||
42 | $(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/g3d/config.h | ||
47 | CONFIG_CLEAN_FILES = | ||
48 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
49 | am__vpath_adj = case $$p in \ | ||
50 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
51 | *) f=$$p;; \ | ||
52 | esac; | ||
53 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | ||
54 | am__installdirs = "$(DESTDIR)$(pluginimpdir)" | ||
55 | pluginimpLTLIBRARIES_INSTALL = $(INSTALL) | ||
56 | LTLIBRARIES = $(pluginimp_LTLIBRARIES) | ||
57 | imp_test_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la | ||
58 | am_imp_test_la_OBJECTS = imp_test.lo | ||
59 | imp_test_la_OBJECTS = $(am_imp_test_la_OBJECTS) | ||
60 | @EXPERIMENTAL_TRUE@am_imp_test_la_rpath = -rpath $(pluginimpdir) | ||
61 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d | ||
62 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
63 | am__depfiles_maybe = depfiles | ||
64 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
65 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
66 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
67 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
68 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
69 | CCLD = $(CC) | ||
70 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
71 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
72 | $(LDFLAGS) -o $@ | ||
73 | SOURCES = $(imp_test_la_SOURCES) | ||
74 | DIST_SOURCES = $(imp_test_la_SOURCES) | ||
75 | ETAGS = etags | ||
76 | CTAGS = ctags | ||
77 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
78 | ACLOCAL = @ACLOCAL@ | ||
79 | AMTAR = @AMTAR@ | ||
80 | AR = @AR@ | ||
81 | AS = @AS@ | ||
82 | AUTOCONF = @AUTOCONF@ | ||
83 | AUTOHEADER = @AUTOHEADER@ | ||
84 | AUTOMAKE = @AUTOMAKE@ | ||
85 | AWK = @AWK@ | ||
86 | CC = @CC@ | ||
87 | CCDEPMODE = @CCDEPMODE@ | ||
88 | CFLAGS = @CFLAGS@ | ||
89 | CPP = @CPP@ | ||
90 | CPPFLAGS = @CPPFLAGS@ | ||
91 | CXX = @CXX@ | ||
92 | CXXCPP = @CXXCPP@ | ||
93 | CXXDEPMODE = @CXXDEPMODE@ | ||
94 | CXXFLAGS = @CXXFLAGS@ | ||
95 | CYGPATH_W = @CYGPATH_W@ | ||
96 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
97 | DEBUG = @DEBUG@ | ||
98 | DEFS = @DEFS@ | ||
99 | DEPDIR = @DEPDIR@ | ||
100 | DLLTOOL = @DLLTOOL@ | ||
101 | ECHO = @ECHO@ | ||
102 | ECHO_C = @ECHO_C@ | ||
103 | ECHO_N = @ECHO_N@ | ||
104 | ECHO_T = @ECHO_T@ | ||
105 | EGREP = @EGREP@ | ||
106 | EXEEXT = @EXEEXT@ | ||
107 | F77 = @F77@ | ||
108 | FFLAGS = @FFLAGS@ | ||
109 | GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ | ||
110 | GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ | ||
111 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
112 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
113 | GLIB_LIBS = @GLIB_LIBS@ | ||
114 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
115 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
116 | GREP = @GREP@ | ||
117 | GTKDOC_CHECK = @GTKDOC_CHECK@ | ||
118 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
119 | GTK_LIBS = @GTK_LIBS@ | ||
120 | HTML_DIR = @HTML_DIR@ | ||
121 | INSTALL = @INSTALL@ | ||
122 | INSTALL_DATA = @INSTALL_DATA@ | ||
123 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
124 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
125 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
126 | LDFLAGS = @LDFLAGS@ | ||
127 | LEX = @LEX@ | ||
128 | LEXLIB = @LEXLIB@ | ||
129 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | ||
130 | LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ | ||
131 | LIBGSF_LIBS = @LIBGSF_LIBS@ | ||
132 | LIBOBJS = @LIBOBJS@ | ||
133 | LIBS = @LIBS@ | ||
134 | LIBTOOL = @LIBTOOL@ --quiet | ||
135 | LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ | ||
136 | LIBXML2_LIBS = @LIBXML2_LIBS@ | ||
137 | LN_S = @LN_S@ | ||
138 | LTLIBOBJS = @LTLIBOBJS@ | ||
139 | LTVERSION = @LTVERSION@ | ||
140 | MAGIC_LIBS = @MAGIC_LIBS@ | ||
141 | MAKEINFO = @MAKEINFO@ | ||
142 | MATH_LIBS = @MATH_LIBS@ | ||
143 | MKDIR_P = @MKDIR_P@ | ||
144 | OBJDUMP = @OBJDUMP@ | ||
145 | OBJEXT = @OBJEXT@ | ||
146 | PACKAGE = @PACKAGE@ | ||
147 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
148 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
149 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
150 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
151 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
152 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
153 | PKG_CONFIG = @PKG_CONFIG@ | ||
154 | PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ | ||
155 | RANLIB = @RANLIB@ | ||
156 | SET_MAKE = @SET_MAKE@ | ||
157 | SHELL = @SHELL@ | ||
158 | STRIP = @STRIP@ | ||
159 | VERSION = @VERSION@ | ||
160 | XML2_CONFIG = @XML2_CONFIG@ | ||
161 | XML_CPPFLAGS = @XML_CPPFLAGS@ | ||
162 | XML_LIBS = @XML_LIBS@ | ||
163 | Z_CFLAGS = @Z_CFLAGS@ | ||
164 | Z_LIBS = @Z_LIBS@ | ||
165 | abs_builddir = @abs_builddir@ | ||
166 | abs_srcdir = @abs_srcdir@ | ||
167 | abs_top_builddir = @abs_top_builddir@ | ||
168 | abs_top_srcdir = @abs_top_srcdir@ | ||
169 | ac_ct_CC = @ac_ct_CC@ | ||
170 | ac_ct_CXX = @ac_ct_CXX@ | ||
171 | ac_ct_F77 = @ac_ct_F77@ | ||
172 | am__include = @am__include@ | ||
173 | am__leading_dot = @am__leading_dot@ | ||
174 | am__quote = @am__quote@ | ||
175 | am__tar = @am__tar@ | ||
176 | am__untar = @am__untar@ | ||
177 | bindir = @bindir@ | ||
178 | build = @build@ | ||
179 | build_alias = @build_alias@ | ||
180 | build_cpu = @build_cpu@ | ||
181 | build_os = @build_os@ | ||
182 | build_vendor = @build_vendor@ | ||
183 | builddir = @builddir@ | ||
184 | datadir = @datadir@ | ||
185 | datarootdir = @datarootdir@ | ||
186 | docdir = @docdir@ | ||
187 | dvidir = @dvidir@ | ||
188 | exec_prefix = @exec_prefix@ | ||
189 | host = @host@ | ||
190 | host_alias = @host_alias@ | ||
191 | host_cpu = @host_cpu@ | ||
192 | host_os = @host_os@ | ||
193 | host_vendor = @host_vendor@ | ||
194 | htmldir = @htmldir@ | ||
195 | includedir = @includedir@ | ||
196 | infodir = @infodir@ | ||
197 | install_sh = @install_sh@ | ||
198 | libdir = @libdir@ | ||
199 | libexecdir = @libexecdir@ | ||
200 | localedir = @localedir@ | ||
201 | localstatedir = @localstatedir@ | ||
202 | mandir = @mandir@ | ||
203 | mkdir_p = @mkdir_p@ | ||
204 | oldincludedir = @oldincludedir@ | ||
205 | pdfdir = @pdfdir@ | ||
206 | prefix = @prefix@ | ||
207 | program_transform_name = @program_transform_name@ | ||
208 | psdir = @psdir@ | ||
209 | sbindir = @sbindir@ | ||
210 | sharedstatedir = @sharedstatedir@ | ||
211 | srcdir = @srcdir@ | ||
212 | sysconfdir = @sysconfdir@ | ||
213 | target_alias = @target_alias@ | ||
214 | top_builddir = @top_builddir@ | ||
215 | top_srcdir = @top_srcdir@ | ||
216 | pluginimpdir = $(pkglibdir)/plugins/import | ||
217 | @EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_test.la | ||
218 | AM_CFLAGS = \ | ||
219 | -Wall -ansi -pedantic \ | ||
220 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
221 | @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ | ||
222 | @GLIB_CFLAGS@ | ||
223 | |||
224 | INCLUDES = -I$(top_srcdir)/include | ||
225 | AM_LDFLAGS = \ | ||
226 | -no-undefined -module \ | ||
227 | @PLUGINS_LDFLAGS@ | ||
228 | |||
229 | imp_test_la_SOURCES = imp_test.c | ||
230 | imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ | ||
231 | all: all-am | ||
232 | |||
233 | .SUFFIXES: | ||
234 | .SUFFIXES: .c .lo .o .obj | ||
235 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
236 | @for dep in $?; do \ | ||
237 | case '$(am__configure_deps)' in \ | ||
238 | *$$dep*) \ | ||
239 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | ||
240 | && exit 0; \ | ||
241 | exit 1;; \ | ||
242 | esac; \ | ||
243 | done; \ | ||
244 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile'; \ | ||
245 | cd $(top_srcdir) && \ | ||
246 | $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile | ||
247 | .PRECIOUS: Makefile | ||
248 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
249 | @case '$?' in \ | ||
250 | *config.status*) \ | ||
251 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
252 | *) \ | ||
253 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
254 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
255 | esac; | ||
256 | |||
257 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
258 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
259 | |||
260 | $(top_srcdir)/configure: $(am__configure_deps) | ||
261 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
262 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
263 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
264 | install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) | ||
265 | @$(NORMAL_INSTALL) | ||
266 | test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" | ||
267 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
268 | if test -f $$p; then \ | ||
269 | f=$(am__strip_dir) \ | ||
270 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ | ||
271 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ | ||
272 | else :; fi; \ | ||
273 | done | ||
274 | |||
275 | uninstall-pluginimpLTLIBRARIES: | ||
276 | @$(NORMAL_UNINSTALL) | ||
277 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
278 | p=$(am__strip_dir) \ | ||
279 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ | ||
280 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ | ||
281 | done | ||
282 | |||
283 | clean-pluginimpLTLIBRARIES: | ||
284 | -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) | ||
285 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
286 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
287 | test "$$dir" != "$$p" || dir=.; \ | ||
288 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
289 | rm -f "$${dir}/so_locations"; \ | ||
290 | done | ||
291 | imp_test.la: $(imp_test_la_OBJECTS) $(imp_test_la_DEPENDENCIES) | ||
292 | $(LINK) $(am_imp_test_la_rpath) $(imp_test_la_OBJECTS) $(imp_test_la_LIBADD) $(LIBS) | ||
293 | |||
294 | mostlyclean-compile: | ||
295 | -rm -f *.$(OBJEXT) | ||
296 | |||
297 | distclean-compile: | ||
298 | -rm -f *.tab.c | ||
299 | |||
300 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_test.Plo@am__quote@ | ||
301 | |||
302 | .c.o: | ||
303 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
304 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
305 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
306 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
307 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
308 | |||
309 | .c.obj: | ||
310 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
311 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
312 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
313 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
314 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
315 | |||
316 | .c.lo: | ||
317 | @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
318 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
319 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
320 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
321 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
322 | |||
323 | mostlyclean-libtool: | ||
324 | -rm -f *.lo | ||
325 | |||
326 | clean-libtool: | ||
327 | -rm -rf .libs _libs | ||
328 | |||
329 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
330 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
331 | unique=`for i in $$list; do \ | ||
332 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
333 | done | \ | ||
334 | $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ | ||
335 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
336 | mkid -fID $$unique | ||
337 | tags: TAGS | ||
338 | |||
339 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
340 | $(TAGS_FILES) $(LISP) | ||
341 | tags=; \ | ||
342 | here=`pwd`; \ | ||
343 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
344 | unique=`for i in $$list; do \ | ||
345 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
346 | done | \ | ||
347 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
348 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
349 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | ||
350 | test -n "$$unique" || unique=$$empty_fix; \ | ||
351 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
352 | $$tags $$unique; \ | ||
353 | fi | ||
354 | ctags: CTAGS | ||
355 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
356 | $(TAGS_FILES) $(LISP) | ||
357 | tags=; \ | ||
358 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
359 | unique=`for i in $$list; do \ | ||
360 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
361 | done | \ | ||
362 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
363 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
364 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
365 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
366 | $$tags $$unique | ||
367 | |||
368 | GTAGS: | ||
369 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
370 | && cd $(top_srcdir) \ | ||
371 | && gtags -i $(GTAGS_ARGS) $$here | ||
372 | |||
373 | distclean-tags: | ||
374 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
375 | |||
376 | distdir: $(DISTFILES) | ||
377 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
378 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
379 | list='$(DISTFILES)'; \ | ||
380 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
381 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
382 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
383 | case $$dist_files in \ | ||
384 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
385 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
386 | sort -u` ;; \ | ||
387 | esac; \ | ||
388 | for file in $$dist_files; do \ | ||
389 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
390 | if test -d $$d/$$file; then \ | ||
391 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
392 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
393 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
394 | fi; \ | ||
395 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
396 | else \ | ||
397 | test -f $(distdir)/$$file \ | ||
398 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
399 | || exit 1; \ | ||
400 | fi; \ | ||
401 | done | ||
402 | check-am: all-am | ||
403 | check: check-am | ||
404 | all-am: Makefile $(LTLIBRARIES) | ||
405 | installdirs: | ||
406 | for dir in "$(DESTDIR)$(pluginimpdir)"; do \ | ||
407 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
408 | done | ||
409 | install: install-am | ||
410 | install-exec: install-exec-am | ||
411 | install-data: install-data-am | ||
412 | uninstall: uninstall-am | ||
413 | |||
414 | install-am: all-am | ||
415 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
416 | |||
417 | installcheck: installcheck-am | ||
418 | install-strip: | ||
419 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
420 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
421 | `test -z '$(STRIP)' || \ | ||
422 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
423 | mostlyclean-generic: | ||
424 | |||
425 | clean-generic: | ||
426 | |||
427 | distclean-generic: | ||
428 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
429 | |||
430 | maintainer-clean-generic: | ||
431 | @echo "This command is intended for maintainers to use" | ||
432 | @echo "it deletes files that may require special tools to rebuild." | ||
433 | clean: clean-am | ||
434 | |||
435 | clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ | ||
436 | mostlyclean-am | ||
437 | |||
438 | distclean: distclean-am | ||
439 | -rm -rf ./$(DEPDIR) | ||
440 | -rm -f Makefile | ||
441 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
442 | distclean-tags | ||
443 | |||
444 | dvi: dvi-am | ||
445 | |||
446 | dvi-am: | ||
447 | |||
448 | html: html-am | ||
449 | |||
450 | info: info-am | ||
451 | |||
452 | info-am: | ||
453 | |||
454 | install-data-am: install-pluginimpLTLIBRARIES | ||
455 | |||
456 | install-dvi: install-dvi-am | ||
457 | |||
458 | install-exec-am: | ||
459 | |||
460 | install-html: install-html-am | ||
461 | |||
462 | install-info: install-info-am | ||
463 | |||
464 | install-man: | ||
465 | |||
466 | install-pdf: install-pdf-am | ||
467 | |||
468 | install-ps: install-ps-am | ||
469 | |||
470 | installcheck-am: | ||
471 | |||
472 | maintainer-clean: maintainer-clean-am | ||
473 | -rm -rf ./$(DEPDIR) | ||
474 | -rm -f Makefile | ||
475 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
476 | |||
477 | mostlyclean: mostlyclean-am | ||
478 | |||
479 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
480 | mostlyclean-libtool | ||
481 | |||
482 | pdf: pdf-am | ||
483 | |||
484 | pdf-am: | ||
485 | |||
486 | ps: ps-am | ||
487 | |||
488 | ps-am: | ||
489 | |||
490 | uninstall-am: uninstall-pluginimpLTLIBRARIES | ||
491 | |||
492 | .MAKE: install-am install-strip | ||
493 | |||
494 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
495 | clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ | ||
496 | distclean-compile distclean-generic distclean-libtool \ | ||
497 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | ||
498 | install install-am install-data install-data-am install-dvi \ | ||
499 | install-dvi-am install-exec install-exec-am install-html \ | ||
500 | install-html-am install-info install-info-am install-man \ | ||
501 | install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ | ||
502 | install-ps install-ps-am install-strip installcheck \ | ||
503 | installcheck-am installdirs maintainer-clean \ | ||
504 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
505 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
506 | tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES | ||
507 | |||
508 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
509 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
510 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c new file mode 100644 index 0000000..0b4e062 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c | |||
@@ -0,0 +1,164 @@ | |||
1 | /* $Id$ */ | ||
2 | |||
3 | /* | ||
4 | libg3d - 3D object loading library | ||
5 | |||
6 | Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This library is free software; you can redistribute it and/or | ||
9 | modify it under the terms of the GNU Lesser General Public | ||
10 | License as published by the Free Software Foundation; either | ||
11 | version 2.1 of the License, or (at your option) any later version. | ||
12 | |||
13 | This library is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | Lesser General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU Lesser General Public | ||
19 | License along with this library; if not, write to the Free Software | ||
20 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | */ | ||
22 | |||
23 | #include <g3d/types.h> | ||
24 | #include <g3d/context.h> | ||
25 | #include <g3d/material.h> | ||
26 | #include <g3d/matrix.h> | ||
27 | #include <g3d/primitive.h> | ||
28 | #include <g3d/object.h> | ||
29 | #include <g3d/texture.h> | ||
30 | |||
31 | static gboolean test_primitive_transfrom(G3DModel *model); | ||
32 | static gboolean test_texture_uv(G3DContext *context, G3DModel *model); | ||
33 | |||
34 | /*****************************************************************************/ | ||
35 | /* plugin interface */ | ||
36 | /*****************************************************************************/ | ||
37 | |||
38 | |||
39 | EAPI | ||
40 | gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, | ||
41 | G3DModel *model, gpointer user_data) | ||
42 | { | ||
43 | guint32 test = 1; | ||
44 | |||
45 | switch(test) { | ||
46 | case 0: | ||
47 | return test_primitive_transfrom(model); | ||
48 | break; | ||
49 | case 1: | ||
50 | return test_texture_uv(context, model); | ||
51 | break; | ||
52 | default: | ||
53 | break; | ||
54 | } | ||
55 | return FALSE; | ||
56 | } | ||
57 | |||
58 | EAPI | ||
59 | gchar *plugin_description(G3DContext *context) | ||
60 | { | ||
61 | return g_strdup("Test plugin."); | ||
62 | } | ||
63 | |||
64 | EAPI | ||
65 | gchar **plugin_extensions(G3DContext *context) | ||
66 | { | ||
67 | return g_strsplit("test", ":", 0); | ||
68 | } | ||
69 | |||
70 | /****************************************************************************/ | ||
71 | |||
72 | static gboolean test_primitive_transfrom(G3DModel *model) | ||
73 | { | ||
74 | G3DObject *sphere, *cntr; | ||
75 | G3DMaterial *material; | ||
76 | G3DTransformation *tf; | ||
77 | G3DFloat matrix[16]; | ||
78 | /* gint32 i, j; */ | ||
79 | |||
80 | cntr = g_new0(G3DObject, 1); | ||
81 | cntr->name = g_strdup("container"); | ||
82 | |||
83 | tf = g_new0(G3DTransformation, 1); | ||
84 | g3d_matrix_identity(tf->matrix); | ||
85 | g3d_matrix_scale(1.0, 1.0, 2.0, tf->matrix); | ||
86 | cntr->transformation = tf; | ||
87 | model->objects = g_slist_append(model->objects, cntr); | ||
88 | |||
89 | material = g3d_material_new(); | ||
90 | model->materials = g_slist_append(model->materials, material); | ||
91 | |||
92 | /* 1 */ | ||
93 | sphere = g3d_primitive_sphere(1.0, 36, 36, material); | ||
94 | cntr->objects = g_slist_append(cntr->objects, sphere); | ||
95 | |||
96 | /* 2 */ | ||
97 | sphere = g3d_primitive_sphere(1.0, 6, 6, material); | ||
98 | cntr->objects = g_slist_append(cntr->objects, sphere); | ||
99 | |||
100 | tf = g_new0(G3DTransformation, 1); | ||
101 | g3d_matrix_identity(tf->matrix); | ||
102 | g3d_matrix_translate(2.5, 1.0, 1.0, tf->matrix); | ||
103 | sphere->transformation = tf; | ||
104 | |||
105 | /* 3 */ | ||
106 | sphere = g3d_primitive_sphere(1.0, 12, 12, material); | ||
107 | cntr->objects = g_slist_append(cntr->objects, sphere); | ||
108 | |||
109 | g3d_matrix_identity(matrix); | ||
110 | g3d_matrix_translate(5, 2.0, 2.0, matrix); | ||
111 | g3d_matrix_scale(2.0, 2.0, 1.0, matrix); | ||
112 | g3d_object_transform(sphere, matrix); | ||
113 | |||
114 | return TRUE; | ||
115 | } | ||
116 | |||
117 | static gboolean test_texture_uv(G3DContext *context, G3DModel *model) | ||
118 | { | ||
119 | G3DObject *box; | ||
120 | G3DMaterial *material; | ||
121 | G3DFace *face; | ||
122 | GSList *item; | ||
123 | |||
124 | material = g3d_material_new(); | ||
125 | material->r = 1.0; | ||
126 | material->g = 0.8; | ||
127 | material->b = 0.2; | ||
128 | material->a = 0.9; | ||
129 | material->name = g_strdup("default texture"); | ||
130 | material->tex_image = g3d_texture_load_cached(context, model, | ||
131 | "test-texture.png"); | ||
132 | |||
133 | box = g3d_primitive_box(1.0, 1.0, 1.0, material); | ||
134 | box->name = g_strdup("test box"); | ||
135 | |||
136 | if(material->tex_image != NULL) { | ||
137 | material->tex_image->tex_env = G3D_TEXENV_REPLACE; | ||
138 | |||
139 | for(item = box->faces; item != NULL; item = item->next) { | ||
140 | face = (G3DFace *)item->data; | ||
141 | face->tex_image = material->tex_image; | ||
142 | face->flags |= G3D_FLAG_FAC_TEXMAP; | ||
143 | |||
144 | #define MIN_U 0.0 | ||
145 | #define MAX_U 1.0 | ||
146 | #define MIN_V -0.5 | ||
147 | #define MAX_V 1.5 | ||
148 | |||
149 | face->tex_vertex_data[0 * 2 + 0] = MIN_U; | ||
150 | face->tex_vertex_data[0 * 2 + 1] = MIN_V; | ||
151 | face->tex_vertex_data[1 * 2 + 0] = MIN_U; | ||
152 | face->tex_vertex_data[1 * 2 + 1] = MAX_V; | ||
153 | face->tex_vertex_data[2 * 2 + 0] = MAX_U; | ||
154 | face->tex_vertex_data[2 * 2 + 1] = MAX_V; | ||
155 | face->tex_vertex_data[3 * 2 + 0] = MAX_U; | ||
156 | face->tex_vertex_data[3 * 2 + 1] = MIN_V; | ||
157 | } | ||
158 | } | ||
159 | |||
160 | model->objects = g_slist_append(model->objects, box); | ||
161 | model->materials = g_slist_append(model->materials, material); | ||
162 | |||
163 | return TRUE; | ||
164 | } | ||