aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c534
4 files changed, 1572 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile
new file mode 100644
index 0000000..a805d5a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ac3d/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
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
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 = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_ac3d
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__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
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ac3d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ac3d_la_OBJECTS = imp_ac3d.lo
59imp_ac3d_la_OBJECTS = $(am_imp_ac3d_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ac3d_la_SOURCES)
73DIST_SOURCES = $(imp_ac3d_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_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
109GDKPIXBUF_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
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_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
118GTK_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
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_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
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ac3d.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_ac3d_la_SOURCES = imp_ac3d.c
229imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ac3d.la: $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_ac3d.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am
new file mode 100644
index 0000000..e8833ec
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_ac3d.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_ac3d_la_SOURCES = imp_ac3d.c
20imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in
new file mode 100644
index 0000000..271bde9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in
@@ -0,0 +1,509 @@
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
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@
35subdir = plugins/import/imp_ac3d
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__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
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ac3d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ac3d_la_OBJECTS = imp_ac3d.lo
59imp_ac3d_la_OBJECTS = $(am_imp_ac3d_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ac3d_la_SOURCES)
73DIST_SOURCES = $(imp_ac3d_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ac3d.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_ac3d_la_SOURCES = imp_ac3d.c
229imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ac3d.la: $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ac3d.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c
new file mode 100644
index 0000000..61199ae
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c
@@ -0,0 +1,534 @@
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 <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <locale.h>
27
28#include <glib.h>
29
30#include <g3d/types.h>
31#include <g3d/context.h>
32#include <g3d/stream.h>
33#include <g3d/material.h>
34#include <g3d/texture.h>
35#include <g3d/debug.h>
36
37#define AC3D_FLAG_ACC 0x01
38
39struct ac3d_transform {
40 G3DFloat offx, offy, offz;
41};
42
43static gint32 ac3d_read_object(G3DStream *stream, G3DContext *context,
44 G3DModel *model, gchar *line, struct ac3d_transform *transform,
45 guint32 flags, GSList **objectlist, gint32 *rowcnt, guint32 level);
46
47EAPI
48gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
49 G3DModel *model, gpointer user_data)
50{
51 struct ac3d_transform *transform;
52 gchar buffer[2049], namebuf[257], *filename;
53 guint32 version, ti1, flags = 0;
54 G3DMaterial *material;
55 G3DFloat tf1, tf2, tf3, tf4, tf5, tf6, trans;
56 gint32 rowcnt = 0;
57
58 setlocale(LC_NUMERIC, "C");
59
60 rowcnt ++;
61 g3d_stream_read_line(stream, buffer, 2048);
62
63 if(strncmp(buffer, "AC3D", 4) != 0)
64 {
65 g_warning("file is not a AC3D model");
66 return FALSE;
67 }
68
69 filename = g3d_stream_get_uri(stream);
70 if(g_ascii_strcasecmp(filename + strlen(filename) - 4, ".acc") == 0)
71 {
72#if DEBUG > 0
73 g_debug("AC3D: .acc file");
74#endif
75 flags |= AC3D_FLAG_ACC;
76 }
77
78 version = strtoul(buffer + 4, NULL, 16);
79
80#if DEBUG > 0
81 g_debug("AC3D: version %d", version);
82#endif
83
84 while(g3d_stream_read_line(stream, buffer, 2048))
85 {
86 rowcnt ++;
87 if(strncmp(buffer, "MATERIAL", 8) == 0)
88 {
89 material = g3d_material_new();
90 if(sscanf(buffer,
91 "MATERIAL %s "
92 "rgb " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
93 "amb " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
94 "emis " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
95 "spec %f %f %f "
96 "shi %u "
97 "trans " G3D_SCANF_FLOAT,
98 namebuf,
99 &(material->r), &(material->g), &(material->b),
100 &tf1, &tf2, &tf3,
101 &tf4, &tf5, &tf6,
102 &(material->specular[0]),
103 &(material->specular[1]),
104 &(material->specular[2]),
105 &ti1,
106 &trans) != 15)
107 {
108 g_warning("AC3D: error reading material line (%s)", buffer);
109 }
110
111 material->name = g_strdup(namebuf);
112 material->a = 1.0 - trans;
113
114 model->materials = g_slist_append(model->materials, material);
115 g_debug("\\(0) Material (line %d)", rowcnt);
116 }
117 else if(strncmp(buffer, "OBJECT", 6) == 0)
118 {
119 transform = g_new0(struct ac3d_transform, 1);
120 g_debug("\\(0) Object (line %d)", rowcnt);
121 ac3d_read_object(stream, context, model, buffer, transform, flags,
122 &(model->objects), &rowcnt, 1);
123 }
124 else
125 {
126#if DEBUG > 0
127 g_warning("AC3D: unhandled line: %s", buffer);
128#endif
129 }
130 }
131
132 return TRUE;
133}
134
135EAPI
136gchar *plugin_description(G3DContext *context)
137{
138 return g_strdup("AC3D models.");
139}
140
141EAPI
142gchar **plugin_extensions(G3DContext *context)
143{
144 return g_strsplit("ac:acc", ":", 0);
145}
146
147/*
148 * AC3D specific
149 */
150
151static gchar *ac3d_remove_quotes(gchar *text)
152{
153 if(text[0] == '"')
154 return g_strndup(text + 1, strlen(text) - 2);
155 else
156 return g_strdup(text);
157}
158
159/**
160 * ac3d_read_object:
161 * returns: number of objects (including sub-objects) read, 0 in case of
162 * error.
163 */
164
165static gint32 ac3d_read_object(G3DStream *stream, G3DContext *context,
166 G3DModel *model, gchar *line, struct ac3d_transform *parent_transform,
167 guint32 flags, GSList **objectlist, gint32 *rowcnt, guint32 level)
168{
169 struct ac3d_transform *transform;
170 G3DObject *object;
171 G3DMaterial *material = NULL;
172 G3DFace *face;
173 gchar buffer[2049], namebuf[257];
174 guint32 nkids, ti1, i, surf_flags, surf_done;
175 guint32 i1, i2, i3;
176 G3DFloat u1, u2, u3, v1, v2, v3;
177 G3DFloat locx = 0.0, locy = 0.0, locz = 0.0;
178 G3DFloat texrepu = 1.0, texrepv = 1.0, texoffu = 0.0, texoffv = 0.0;
179 G3DFloat texscaleu = 1.0, texscalev = 1.0;
180 G3DFloat crease = 0.0;
181 guint32 len, facecnt = 0;
182 gchar *filename;
183 gint32 kidsread, objectcount = 0;
184 G3DFloat pcnt, prev_pcnt = 0.0;
185
186 if(sscanf(line, "OBJECT %s", namebuf) != 1)
187 {
188 g_warning("AC3D: error reading object line (%s)", line);
189 }
190
191 transform = g_new0(struct ac3d_transform, 1);
192 memcpy(transform, parent_transform, sizeof(struct ac3d_transform));
193
194 object = g_new0(G3DObject, 1);
195 objectcount ++;
196 *(objectlist) = g_slist_append(*(objectlist), object);
197
198 while(g3d_stream_read_line(stream, buffer, 2048))
199 {
200 *rowcnt += 1;
201 if(strncmp(buffer, "kids", 4) == 0)
202 {
203 /* final line of object */
204 if(sscanf(buffer, "kids %u", &nkids) != 1)
205 {
206 g_warning("AC3D: error reading kids line (%s)", buffer);
207 return 0;
208 }
209 for(i = 0; i < nkids; i ++)
210 {
211 /* read kids */
212 *rowcnt += 1;
213 g3d_stream_read_line(stream, buffer, 2048);
214#if DEBUG > 0
215 g_debug("\\%s(%d) Object (line %d)", debug_pad(level),
216 level, *rowcnt);
217#endif
218 kidsread = ac3d_read_object(stream, context, model, buffer,
219 transform, flags, &(object->objects), rowcnt, level + 1);
220 objectcount += kidsread;
221 }
222
223#if DEBUG > 0
224 g_debug("AC3D: \"%s\": %d sub-objects read",
225 object->name ? object->name : "unnamed",
226 objectcount - 1);
227#endif
228
229 if(crease > 0.0)
230 {
231 /* doesn't really work */
232#if 0
233 g3d_object_smooth(object, crease);
234#endif
235 }
236 return objectcount;
237 }
238 else if(strncmp(buffer, "name", 4) == 0)
239 {
240 if(sscanf(buffer, "name %s", namebuf) != 1)
241 {
242 g_warning("AC3D: error reading name line (%s)", buffer);
243 }
244 else
245 {
246 object->name = g_strdup(namebuf);
247 }
248 }
249 else if(strncmp(buffer, "loc", 3) == 0)
250 {
251 if(sscanf(buffer, "loc " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &locx, &locy, &locz) != 3)
252 {
253 g_warning("AC3D: error reading loc line (%s)", buffer);
254 locx = locy = locz = 0.0;
255 }
256
257 transform->offx += locx;
258 transform->offy += locy;
259 transform->offz += locz;
260 }
261 else if(strncmp(buffer, "numvert", 7) == 0)
262 {
263 if(sscanf(buffer, "numvert %u", &(object->vertex_count)) != 1)
264 {
265 g_warning("AC3D: error reading numvert line (%s)", buffer);
266 object->vertex_count = 0;
267 }
268 else
269 {
270 object->vertex_data =
271 g_new0(G3DFloat, object->vertex_count * 3);
272 for(i = 0; i < object->vertex_count; i ++)
273 {
274 if(g3d_stream_read_line(stream, buffer, 2048))
275 {
276 *rowcnt += 1;
277 if(sscanf(buffer, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
278 &(object->vertex_data[i * 3 + 0]),
279 &(object->vertex_data[i * 3 + 1]),
280 &(object->vertex_data[i * 3 + 2])) != 3)
281 {
282 g_warning("AC3D: error reading vertex (%s)",
283 buffer);
284 }
285
286 object->vertex_data[i * 3 + 0] += transform->offx;
287 object->vertex_data[i * 3 + 1] += transform->offy;
288 object->vertex_data[i * 3 + 2] += transform->offz;
289 }
290 }
291 }
292 /* END numvert */
293 }
294 else if(strncmp(buffer, "numsurf", 7) == 0)
295 {
296 /* ignore for now */
297 }
298 else if(strncmp(buffer, "SURF", 4) == 0)
299 {
300 surf_done = 0;
301
302 if(sscanf(buffer, "SURF %x", &surf_flags) != 1)
303 {
304 g_warning("AC3D: error reading surf (%s)", buffer);
305 }
306
307 while(!surf_done)
308 {
309 if(!g3d_stream_read_line(stream, buffer, 2048))
310 return 0;
311 *rowcnt += 1;
312
313 if(sscanf(buffer, "refs %u", &ti1) == 1)
314 {
315 if(!(flags & AC3D_FLAG_ACC))
316 {
317 face = g_new0(G3DFace, 1);
318 face->vertex_count = ti1;
319 face->vertex_indices =
320 g_new0(guint32, face->vertex_count);
321 face->material = material;
322
323 face->tex_image = object->tex_image;
324 if(face->tex_image)
325 {
326 face->flags |= G3D_FLAG_FAC_TEXMAP;
327 }
328
329 face->tex_vertex_count = ti1;
330 face->tex_vertex_data =
331 g_new0(G3DFloat, 2 * face->tex_vertex_count);
332
333 /* normal face */
334 for(i = 0; i < face->vertex_count; i ++)
335 {
336 if(!g3d_stream_read_line(stream, buffer, 2048))
337 return 0;
338 *rowcnt += 1;
339
340 if(sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
341 &(face->vertex_indices[i]),
342 &(face->tex_vertex_data[i * 2 + 0]),
343 &(face->tex_vertex_data[i * 2 + 1])) != 3)
344 {
345 g_warning(
346 "AC3D: error reading vertex index (%s)",
347 buffer);
348 }
349 face->tex_vertex_data[i * 2 + 0] *=
350 (texrepu * texscaleu);
351 face->tex_vertex_data[i * 2 + 1] *=
352 (texrepv * texscalev);
353
354 face->tex_vertex_data[i * 2 + 0] += texoffu;
355 face->tex_vertex_data[i * 2 + 1] += texoffv;
356
357#if 0
358 face->tex_coords[i * 2 + 0] *= texscaleu;
359 face->tex_coords[i * 2 + 1] *= texscalev;
360#endif
361 }
362
363 if(face->material && (face->vertex_count >= 3))
364 object->faces =
365 g_slist_prepend(object->faces, face);
366
367 } /* not .acc */
368 else
369 {
370 /* triangle stripes */
371 i = 0;
372 while(i < ti1)
373 {
374 face = g_new0(G3DFace, 1);
375 face->vertex_count = 3;
376 face->vertex_indices = g_new0(guint32, 3);
377
378 face->material = material;
379
380 face->tex_image = object->tex_image;
381 if(face->tex_image)
382 {
383 face->flags |= G3D_FLAG_FAC_TEXMAP;
384 }
385
386 face->tex_vertex_count = 3;
387 face->tex_vertex_data =
388 g_new0(G3DFloat, 2 * face->tex_vertex_count);
389
390 if(i == 0)
391 {
392 /* TODO: error handling */
393 g3d_stream_read_line(stream, buffer, 2048);
394 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i1, &u1, &v1);
395 g3d_stream_read_line(stream, buffer, 2048);
396 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i2, &u2, &v2);
397 g3d_stream_read_line(stream, buffer, 2048);
398 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i3, &u3, &v3);
399
400 *rowcnt += 3;
401 i += 3;
402 }
403 else
404 {
405 /* TODO: error handling */
406 i1 = i2;
407 u1 = u2;
408 v1 = v2;
409 i2 = i3;
410 u2 = u3;
411 v2 = v3;
412
413 g3d_stream_read_line(stream, buffer, 2048);
414 *rowcnt += 1;
415 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i3, &u3, &v3);
416
417 i ++;
418 }
419
420 face->vertex_indices[0] = i1;
421 face->tex_vertex_data[0] = u1;
422 face->tex_vertex_data[1] = v1;
423 if(facecnt % 2) {
424 face->vertex_indices[1] = i3;
425 face->vertex_indices[2] = i2;
426 face->tex_vertex_data[2] = u3;
427 face->tex_vertex_data[3] = v3;
428 face->tex_vertex_data[4] = u2;
429 face->tex_vertex_data[5] = v2;
430 } else {
431 face->vertex_indices[1] = i2;
432 face->vertex_indices[2] = i3;
433 face->tex_vertex_data[2] = u2;
434 face->tex_vertex_data[3] = v2;
435 face->tex_vertex_data[4] = u3;
436 face->tex_vertex_data[5] = v3;
437 }
438
439 object->faces =
440 g_slist_prepend(object->faces, face);
441 facecnt ++;
442 }
443 } /* .acc */
444
445 surf_done = 1;
446 }
447 else if(sscanf(buffer, "mat %u", &ti1) == 1)
448 {
449 material = g_slist_nth_data(model->materials, ti1);
450 }
451 }
452
453 material = NULL;
454 /* END SURF */
455 }
456 else if(strncmp(buffer, "texture", 7) == 0)
457 {
458 if(sscanf(buffer, "texture %s", namebuf) == 1)
459 {
460 filename = ac3d_remove_quotes(namebuf);
461 object->tex_image = g3d_texture_load_cached(context, model,
462 filename);
463 if(object->tex_image)
464 {
465 g3d_texture_prepare(object->tex_image);
466
467 texscaleu = object->tex_image->tex_scale_u;
468 texscalev = object->tex_image->tex_scale_v;
469 }
470 }
471 else
472 {
473 g_warning("error reading texture line (%s)", buffer);
474 }
475 }
476 else if(strncmp(buffer, "texrep", 6) == 0)
477 {
478 if(sscanf(buffer, "texrep " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &texrepu, &texrepv) != 2)
479 {
480 g_warning("error reading texrep line (%s)", buffer);
481 texrepu = 1.0;
482 texrepv = 1.0;
483 }
484
485 if(texrepu == 0.0) texrepu = 1.0;
486 if(texrepv == 0.0) texrepv = 1.0;
487 }
488 else if(strncmp(buffer, "texoff", 6) == 0)
489 {
490 if(sscanf(buffer, "texoff " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &texoffu, &texoffv) != 2)
491 {
492 g_warning("error reading texoff line (%s)", buffer);
493 }
494 }
495 else if(strncmp(buffer, "crease", 6) == 0)
496 {
497 if(sscanf(buffer, "crease " G3D_SCANF_FLOAT, &crease) != 1)
498 {
499 g_warning("AC3D: error reading crease line (%i): %s",
500 *rowcnt, buffer);
501 }
502 }
503 else if(strncmp(buffer, "data ", 5) == 0)
504 {
505 /* object data */
506 if(sscanf(buffer, "data %u", &len) != 1)
507 {
508 g_warning("AC3D: error in data line (%i): %s",
509 *rowcnt, buffer);
510 }
511 /* object data on next line */
512 g3d_stream_read_line(stream, buffer, 2048);
513 *rowcnt += 1;
514 }
515 else
516 {
517#if DEBUG > 0
518 g_warning("AC3D: unhandled line %d: %s", *rowcnt, buffer);
519#endif
520 }
521
522 pcnt = (G3DFloat)g3d_stream_tell(stream) /
523 (G3DFloat)g3d_stream_size(stream);
524 if((pcnt - prev_pcnt) > 0.005) {
525 prev_pcnt = pcnt;
526 g3d_context_update_progress_bar(context, pcnt, TRUE);
527 }
528 }
529
530 /* cleanup */
531 g_free(transform);
532
533 return 0;
534}