aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c98
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c347
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h37
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h73
8 files changed, 1633 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile
new file mode 100644
index 0000000..469df7b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_iob/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_iob
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_iob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_iob_la_OBJECTS = imp_iob.lo imp_iob_callbacks.lo
59imp_iob_la_OBJECTS = $(am_imp_iob_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_iob_la_SOURCES)
73DIST_SOURCES = $(imp_iob_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_iob
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob
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_iob.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_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \
229 imp_iob_callbacks.c imp_iob_callbacks.h
230
231imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_iob.la: $(imp_iob_la_OBJECTS) $(imp_iob_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_iob_la_OBJECTS) $(imp_iob_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_iob.Plo
302include ./$(DEPDIR)/imp_iob_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am
new file mode 100644
index 0000000..295d757
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_iob.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_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \
20 imp_iob_callbacks.c imp_iob_callbacks.h
21imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in
new file mode 100644
index 0000000..907f8c3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in
@@ -0,0 +1,512 @@
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_iob
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_iob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_iob_la_OBJECTS = imp_iob.lo imp_iob_callbacks.lo
59imp_iob_la_OBJECTS = $(am_imp_iob_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_iob_la_SOURCES)
73DIST_SOURCES = $(imp_iob_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_iob.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_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \
229 imp_iob_callbacks.c imp_iob_callbacks.h
230
231imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_iob.la: $(imp_iob_la_OBJECTS) $(imp_iob_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_iob_la_OBJECTS) $(imp_iob_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_iob.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_iob_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c
new file mode 100644
index 0000000..1c4ce17
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c
@@ -0,0 +1,98 @@
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 <string.h>
25
26#include <glib.h>
27
28#include <g3d/types.h>
29#include <g3d/context.h>
30#include <g3d/model.h>
31#include <g3d/material.h>
32#include <g3d/stream.h>
33#include <g3d/iff.h>
34#include <g3d/matrix.h>
35
36#include "imp_iob_chunks.h"
37
38EAPI
39gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
40 G3DModel *model, gpointer user_data)
41{
42 G3DIffGlobal *global;
43 G3DIffLocal *local;
44 guint32 id;
45 gsize len;
46 G3DMatrix rmatrix[16];
47
48 if(!g3d_iff_check(stream, &id, &len) ||
49 (id != G3D_IFF_MKID('T','D','D','D'))) {
50 g_warning("file is not an .iob (TDDD) file %s", stream->uri);
51 return FALSE;
52 }
53
54 local = g_new0(G3DIffLocal, 1);
55 global = g_new0(G3DIffGlobal, 1);
56
57 global->context = context;
58 global->model = model;
59 global->stream = stream;
60
61 local->parent_id = id;
62 local->nb = len;
63
64 g3d_iff_read_ctnr(global, local, iob_chunks, G3D_IFF_PAD2);
65
66 g3d_matrix_identity(rmatrix);
67 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
68 g3d_model_transform(model, rmatrix);
69
70 g_free(local);
71 g_free(global);
72
73 return TRUE;
74}
75
76EAPI
77char *plugin_description(void)
78{
79 return g_strdup("Impulse Turbo Silver / Imagine models.");
80}
81
82EAPI
83char **plugin_extensions(void)
84{
85 return g_strsplit("iob", ":", 0);
86}
87
88
89/*****************************************************************************/
90/* IOB specific */
91/*****************************************************************************/
92
93G3DFloat iob_read_fract(G3DStream *stream)
94{
95 gint32 i = g3d_stream_read_int32_be(stream);
96 return (G3DFloat)(i / 0xFFFF);
97}
98
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h
new file mode 100644
index 0000000..56ee3f6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h
@@ -0,0 +1,33 @@
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#ifndef _IMP_IOB_H
24#define _IMP_IOB_H
25
26#include <stdio.h>
27#include <glib.h>
28
29#include <g3d/stream.h>
30
31G3DFloat iob_read_fract(G3DStream *stream);
32
33#endif /* _IMP_IOB_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c
new file mode 100644
index 0000000..ddbbc27
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c
@@ -0,0 +1,347 @@
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#include <g3d/iff.h>
23#include <g3d/stream.h>
24#include <g3d/material.h>
25
26#include "imp_iob.h"
27
28gboolean iob_cb_xLSx(G3DIffGlobal *global, G3DIffLocal *local)
29{
30 G3DObject *object;
31 G3DMaterial *material;
32 G3DFace *face;
33 gint32 i, nitems;
34
35 object = (G3DObject *)local->object;
36 g_return_val_if_fail(object != NULL, FALSE);
37
38 if((local->id & 0xFF) == '2')
39 {
40 nitems = g3d_stream_read_int32_be(global->stream);
41 local->nb -= 4;
42 }
43 else
44 {
45 nitems = g3d_stream_read_int16_be(global->stream);
46 local->nb -= 2;
47 }
48
49 for(i = 0; i < nitems; i ++)
50 {
51 /* TODO: find material by parameters, don't create too much
52 * materials */
53
54 /* default material + nth */
55 material = g_slist_nth_data(object->materials, i + 1);
56 if(material == NULL)
57 {
58 material = g3d_material_new();
59 material->flags |= G3D_FLAG_MAT_TWOSIDE;
60 material->name = g_strdup_printf("per face material #%d", i);
61 object->materials = g_slist_append(object->materials, material);
62
63 /* assign to face */
64 face = g_slist_nth_data(object->faces, i);
65 if(face)
66 face->material = material;
67 }
68
69 switch(local->id)
70 {
71 case G3D_IFF_MKID('C', 'L', 'S', 'T'):
72 case G3D_IFF_MKID('C', 'L', 'S', '2'):
73 material->r = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0;
74 material->g = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0;
75 material->b = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0;
76 break;
77
78 case G3D_IFF_MKID('R', 'L', 'S', 'T'):
79 case G3D_IFF_MKID('R', 'L', 'S', '2'):
80 material->specular[0] =
81 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
82 material->specular[1] =
83 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
84 material->specular[2] =
85 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
86 break;
87
88 case G3D_IFF_MKID('T', 'L', 'S', 'T'):
89 case G3D_IFF_MKID('T', 'L', 'S', '2'):
90 material->a = 1.0 - (
91 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
92 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
93 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0) / 3.0;
94 break;
95 }
96
97 local->nb -= 3;
98 }
99
100 return TRUE;
101}
102
103gboolean iob_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local)
104{
105 G3DObject *object;
106 G3DMaterial *material;
107
108 object = (G3DObject *)local->object;
109 g_return_val_if_fail(object != NULL, FALSE);
110
111 material = g_slist_nth_data(object->materials, 0);
112 g_return_val_if_fail(material != NULL, FALSE);
113
114 g3d_stream_read_int8(global->stream);
115 material->r = (float)g3d_stream_read_int8(global->stream) / 255.0;
116 material->g = (float)g3d_stream_read_int8(global->stream) / 255.0;
117 material->b = (float)g3d_stream_read_int8(global->stream) / 255.0;
118 local->nb -= 4;
119
120 return TRUE;
121}
122
123gboolean iob_cb_DESC(G3DIffGlobal *global, G3DIffLocal *local)
124{
125 G3DObject *object;
126 G3DMaterial *material;
127
128 if(local->finalize) return TRUE;
129
130 object = g_new0(G3DObject, 1);
131 global->model->objects = g_slist_append(global->model->objects, object);
132
133 material = g3d_material_new();
134 material->flags |= G3D_FLAG_MAT_TWOSIDE;
135 material->name = g_strdup("(default material)");
136
137 object->materials = g_slist_append(object->materials, material);
138
139 local->object = object;
140
141 return TRUE;
142}
143
144gboolean iob_cb_EDGx(G3DIffGlobal *global, G3DIffLocal *local)
145{
146 G3DObject *object;
147 gint32 i, nedges;
148 gint32 *edges;
149
150 object = (G3DObject *)local->object;
151 g_return_val_if_fail(object != NULL, FALSE);
152
153 if(local->id == G3D_IFF_MKID('E','D','G','E'))
154 {
155 nedges = g3d_stream_read_int16_be(global->stream);
156 local->nb -= 2;
157 }
158 else
159 {
160 nedges = g3d_stream_read_int32_be(global->stream);
161 local->nb -= 4;
162 }
163
164 edges = g_malloc(nedges * 2 * sizeof(gint32));
165 for(i = 0; i < nedges; i ++)
166 {
167 if(local->id == G3D_IFF_MKID('E','D','G','E'))
168 {
169 edges[i * 2 + 0] = g3d_stream_read_int16_be(global->stream);
170 edges[i * 2 + 1] = g3d_stream_read_int16_be(global->stream);
171 local->nb -= 4;
172 }
173 else
174 {
175 edges[i * 2 + 0] = g3d_stream_read_int32_be(global->stream);
176 edges[i * 2 + 1] = g3d_stream_read_int32_be(global->stream);
177 local->nb -= 8;
178 }
179 }
180
181 local->level_object = edges;
182
183 return TRUE;
184}
185
186gboolean iob_cb_FACx(G3DIffGlobal *global, G3DIffLocal *local)
187{
188 G3DObject *object;
189 gint32 *edges, e[3], v1, v2, v3;
190 gint32 i, nfaces;
191
192 object = (G3DObject *)local->object;
193 g_return_val_if_fail(object != NULL, FALSE);
194
195 /* edges are read in EDGE/EDG2 chunk */
196 edges = (gint32 *)local->level_object;
197 g_return_val_if_fail(edges != NULL, FALSE);
198
199 if(local->id == G3D_IFF_MKID('F','A','C','E'))
200 {
201 nfaces = g3d_stream_read_int16_be(global->stream);
202 local->nb -= 2;
203 }
204 else
205 {
206 nfaces = g3d_stream_read_int32_be(global->stream);
207 local->nb -= 4;
208 }
209
210 for(i = 0; i < nfaces; i ++)
211 {
212 G3DFace *face = g_new0(G3DFace, 1);
213 face->vertex_count = 3;
214 face->vertex_indices = g_new0(guint32, 3);
215
216 if(local->id == G3D_IFF_MKID('F','A','C','E'))
217 {
218 e[0] = g3d_stream_read_int16_be(global->stream);
219 e[1] = g3d_stream_read_int16_be(global->stream);
220 e[2] = g3d_stream_read_int16_be(global->stream);
221 local->nb -= 6;
222 }
223 else
224 {
225 e[0] = g3d_stream_read_int32_be(global->stream);
226 e[1] = g3d_stream_read_int32_be(global->stream);
227 e[2] = g3d_stream_read_int32_be(global->stream);
228 local->nb -= 12;
229 }
230
231 face->vertex_indices[0] = v1 = edges[e[0] * 2 + 0];
232 face->vertex_indices[1] = v2 = edges[e[0] * 2 + 1];
233 if((v1 != edges[e[1] * 2 + 0]) && (v2 != edges[e[1] * 2 + 0]))
234 v3 = edges[e[1] * 2 + 0];
235 else if((v1 != edges[e[1] * 2 + 1]) && (v2 != edges[e[1] * 2 + 1]))
236 v3 = edges[e[1] * 2 + 1];
237 else if((v1 != edges[e[2] * 2 + 0]) && (v2 != edges[e[2] * 2 + 0]))
238 v3 = edges[e[2] * 2 + 0];
239 else
240 v3 = edges[e[2] * 2 + 1];
241
242 face->vertex_indices[2] = v3;
243
244 face->material = g_slist_nth_data(object->materials, 0);
245 object->faces = g_slist_append(object->faces, face);
246 }
247
248 /* free edges now */
249 g_free(edges);
250 local->level_object = NULL;
251
252 return TRUE;
253}
254
255gboolean iob_cb_NAME(G3DIffGlobal *global, G3DIffLocal *local)
256{
257 G3DObject *object;
258 gchar buffer[512];
259
260 object = (G3DObject *)local->object;
261 g_return_val_if_fail(object != NULL, FALSE);
262
263 g3d_stream_read(global->stream, buffer, local->nb);
264
265 object->name = g_convert(buffer, local->nb,
266 "UTF-8", "ISO-8859-1",
267 NULL, NULL, NULL);
268
269 local->nb = 0;
270
271 return TRUE;
272}
273
274gboolean iob_cb_PNTx(G3DIffGlobal *global, G3DIffLocal *local)
275{
276 G3DObject *object;
277 gint32 i;
278
279 object = (G3DObject *)local->object;
280 g_return_val_if_fail(object != NULL, FALSE);
281
282 if(local->id == G3D_IFF_MKID('P','N','T','S'))
283 {
284 object->vertex_count = g3d_stream_read_int16_be(global->stream);
285 local->nb -= 2;
286 }
287 else
288 {
289 object->vertex_count = g3d_stream_read_int32_be(global->stream);
290 local->nb -= 4;
291 }
292
293 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
294
295 for(i = 0; i < object->vertex_count; i ++)
296 {
297 object->vertex_data[i * 3 + 0] = iob_read_fract(global->stream);
298 object->vertex_data[i * 3 + 1] = iob_read_fract(global->stream);
299 object->vertex_data[i * 3 + 2] = iob_read_fract(global->stream);
300 local->nb -= 12;
301 }
302
303 return TRUE;
304}
305
306gboolean iob_cb_REFL(G3DIffGlobal *global, G3DIffLocal *local)
307{
308 G3DObject *object;
309 G3DMaterial *material;
310 gint32 i;
311
312 object = (G3DObject *)local->object;
313 g_return_val_if_fail(object != NULL, FALSE);
314
315 material = g_slist_nth_data(object->materials, 0);
316 g_return_val_if_fail(material != NULL, FALSE);
317
318 g3d_stream_read_int8(global->stream);
319 for(i = 0; i < 3; i ++)
320 material->specular[i] =
321 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
322 local->nb -= 4;
323
324 return TRUE;
325}
326
327gboolean iob_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local)
328{
329 G3DObject *object;
330 G3DMaterial *material;
331
332 object = (G3DObject *)local->object;
333 g_return_val_if_fail(object != NULL, FALSE);
334
335 material = g_slist_nth_data(object->materials, 0);
336 g_return_val_if_fail(material != NULL, FALSE);
337
338 g3d_stream_read_int8(global->stream);
339 material->a = 1.0 - (
340 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
341 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
342 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0) / 3.0;
343 local->nb -= 4;
344
345 return TRUE;
346}
347
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h
new file mode 100644
index 0000000..f4b78a0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h
@@ -0,0 +1,37 @@
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#ifndef _IMP_IOB_CALLBACKS_H
23#define _IMP_IOB_CALLBACKS_H
24
25#include <g3d/iff.h>
26
27gboolean iob_cb_xLSx(G3DIffGlobal *global, G3DIffLocal *local);
28gboolean iob_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean iob_cb_DESC(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean iob_cb_EDGx(G3DIffGlobal *global, G3DIffLocal *local);
31gboolean iob_cb_FACx(G3DIffGlobal *global, G3DIffLocal *local);
32gboolean iob_cb_NAME(G3DIffGlobal *global, G3DIffLocal *local);
33gboolean iob_cb_PNTx(G3DIffGlobal *global, G3DIffLocal *local);
34gboolean iob_cb_REFL(G3DIffGlobal *global, G3DIffLocal *local);
35gboolean iob_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local);
36
37#endif /* _IMP_IOB_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h
new file mode 100644
index 0000000..1a10d44
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h
@@ -0,0 +1,73 @@
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#ifndef _IMP_IOB_CHUNKS_H
23#define _IMP_IOB_CHUNKS_H
24
25#include <g3d/iff.h>
26
27#include "imp_iob_callbacks.h"
28
29static G3DIffChunkInfo iob_chunks[] = {
30 { "AXIS", "coordinate system", 0, NULL },
31 { "BBOX", "bounding box data", 0, NULL },
32 { "BRS4", "brush (4)", 0, NULL },
33 { "BRS5", "brush (5)", 0, NULL },
34 { "COLR", "color", 0, iob_cb_COLR },
35 { "CLS2", "color list (2)", 0, iob_cb_xLSx },
36 { "CLST", "color list", 0, iob_cb_xLSx },
37 { "DESC", "object description", 1, iob_cb_DESC },
38 { "EDG2", "edges", 0, iob_cb_EDGx },
39 { "EDGE", "edges", 0, iob_cb_EDGx },
40 { "EFLG", "edge flags", 0, NULL },
41 { "FACE", "faces", 0, iob_cb_FACx },
42 { "FAC2", "faces (2)", 0, iob_cb_FACx },
43 { "FGR2", "face group (2)", 0, NULL },
44 { "FGR3", "face group (3)", 0, NULL },
45 { "FGR4", "face group (4)", 0, NULL },
46 { "INT1", "light intensity (1)", 0, NULL },
47 { "NAME", "name", 0, iob_cb_NAME },
48 { "OBJ ", "object", 1, NULL },
49 { "PART", "particle parameters", 0, NULL },
50 { "PNT2", "points (2)", 0, iob_cb_PNTx },
51 { "PNTS", "points", 0, iob_cb_PNTx },
52 { "POSI", "position in world", 0, NULL },
53 { "PRP1", "properties (1)", 0, NULL },
54 { "PRP2", "properties (2)", 0, NULL },
55 { "REFL", "reflection", 0, iob_cb_REFL },
56 { "RLS2", "reflection list (2)", 0, iob_cb_xLSx },
57 { "RLST", "reflection list", 0, iob_cb_xLSx },
58 { "SPC1", "specularity (1)", 0, NULL },
59 { "SPC2", "specularity (2)", 0, NULL },
60 { "SHAP", "shape type", 0, NULL },
61 { "SHP2", "shape type (2)", 0, NULL },
62 { "SIZE", "size", 0, NULL },
63 { "TLS2", "transparency list", 0, iob_cb_xLSx },
64 { "TLST", "transparency list (2)", 0, iob_cb_xLSx },
65 { "TOBJ", "end of object", 0, NULL },
66 { "TRAN", "transparency", 0, iob_cb_TRAN },
67 { "TXT3", "texture data (3)", 0, NULL },
68 { "TXT4", "texture data (4)", 0, NULL },
69
70 { NULL, NULL, 0, NULL }
71};
72
73#endif /* _IMP_IOB_CHUNKS_H */