diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar')
11 files changed, 2225 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile new file mode 100644 index 0000000..906d4b3 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile | |||
@@ -0,0 +1,517 @@ | |||
1 | # Makefile.in generated by automake 1.10.1 from Makefile.am. | ||
2 | # plugins/import/imp_ar/Makefile. Generated from Makefile.in by configure. | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | |||
16 | |||
17 | |||
18 | pkgdatadir = $(datadir)/libg3d | ||
19 | pkglibdir = $(libdir)/libg3d | ||
20 | pkgincludedir = $(includedir)/libg3d | ||
21 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
22 | install_sh_DATA = $(install_sh) -c -m 644 | ||
23 | install_sh_PROGRAM = $(install_sh) -c | ||
24 | install_sh_SCRIPT = $(install_sh) -c | ||
25 | INSTALL_HEADER = $(INSTALL_DATA) | ||
26 | transform = $(program_transform_name) | ||
27 | NORMAL_INSTALL = : | ||
28 | PRE_INSTALL = : | ||
29 | POST_INSTALL = : | ||
30 | NORMAL_UNINSTALL = : | ||
31 | PRE_UNINSTALL = : | ||
32 | POST_UNINSTALL = : | ||
33 | build_triplet = x86_64-unknown-linux-gnu | ||
34 | host_triplet = x86_64-unknown-linux-gnu | ||
35 | subdir = plugins/import/imp_ar | ||
36 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
37 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
38 | am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ | ||
39 | $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ | ||
40 | $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
41 | $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ | ||
42 | $(top_srcdir)/configure.in | ||
43 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
44 | $(ACLOCAL_M4) | ||
45 | mkinstalldirs = $(install_sh) -d | ||
46 | CONFIG_HEADER = $(top_builddir)/include/g3d/config.h | ||
47 | CONFIG_CLEAN_FILES = | ||
48 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
49 | am__vpath_adj = case $$p in \ | ||
50 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
51 | *) f=$$p;; \ | ||
52 | esac; | ||
53 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | ||
54 | am__installdirs = "$(DESTDIR)$(pluginimpdir)" | ||
55 | pluginimpLTLIBRARIES_INSTALL = $(INSTALL) | ||
56 | LTLIBRARIES = $(pluginimp_LTLIBRARIES) | ||
57 | imp_ar_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la | ||
58 | am_imp_ar_la_OBJECTS = imp_ar.lo imp_ar_decompress.lo imp_ar_dof.lo \ | ||
59 | imp_ar_carini.lo | ||
60 | imp_ar_la_OBJECTS = $(am_imp_ar_la_OBJECTS) | ||
61 | DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d | ||
62 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
63 | am__depfiles_maybe = depfiles | ||
64 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
65 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
66 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
67 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
68 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
69 | CCLD = $(CC) | ||
70 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
71 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
72 | $(LDFLAGS) -o $@ | ||
73 | SOURCES = $(imp_ar_la_SOURCES) | ||
74 | DIST_SOURCES = $(imp_ar_la_SOURCES) | ||
75 | ETAGS = etags | ||
76 | CTAGS = ctags | ||
77 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
78 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 | ||
79 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar | ||
80 | AR = ar | ||
81 | AS = as | ||
82 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf | ||
83 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader | ||
84 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 | ||
85 | AWK = gawk | ||
86 | CC = gcc | ||
87 | CCDEPMODE = depmode=gcc3 | ||
88 | CFLAGS = -g -O2 | ||
89 | CPP = gcc -E | ||
90 | CPPFLAGS = | ||
91 | CXX = g++ | ||
92 | CXXCPP = g++ -E | ||
93 | CXXDEPMODE = depmode=gcc3 | ||
94 | CXXFLAGS = -g -O2 | ||
95 | CYGPATH_W = echo | ||
96 | DBG_CFLAGS = -O2 | ||
97 | DEBUG = 0 | ||
98 | DEFS = -DHAVE_CONFIG_H | ||
99 | DEPDIR = .deps | ||
100 | DLLTOOL = dlltool | ||
101 | ECHO = echo | ||
102 | ECHO_C = | ||
103 | ECHO_N = -n | ||
104 | ECHO_T = | ||
105 | EGREP = /bin/grep -E | ||
106 | EXEEXT = | ||
107 | F77 = | ||
108 | FFLAGS = | ||
109 | GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
110 | GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
111 | GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
112 | GLIB_GENMARSHAL = glib-genmarshal | ||
113 | GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 | ||
114 | GLIB_MKENUMS = glib-mkenums | ||
115 | GOBJECT_QUERY = gobject-query | ||
116 | GREP = /bin/grep | ||
117 | GTKDOC_CHECK = /usr/bin/gtkdoc-check | ||
118 | GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 | ||
119 | GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 | ||
120 | HTML_DIR = ${datadir}/gtk-doc/html | ||
121 | INSTALL = /usr/bin/install -c | ||
122 | INSTALL_DATA = ${INSTALL} -m 644 | ||
123 | INSTALL_PROGRAM = ${INSTALL} | ||
124 | INSTALL_SCRIPT = ${INSTALL} | ||
125 | INSTALL_STRIP_PROGRAM = $(install_sh) -c -s | ||
126 | LDFLAGS = | ||
127 | LEX = flex | ||
128 | LEXLIB = -lfl | ||
129 | LEX_OUTPUT_ROOT = lex.yy | ||
130 | LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1 | ||
131 | LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 | ||
132 | LIBOBJS = | ||
133 | LIBS = -lm | ||
134 | LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet | ||
135 | LIBXML2_CFLAGS = -I/usr/include/libxml2 | ||
136 | LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
137 | LN_S = ln -s | ||
138 | LTLIBOBJS = | ||
139 | LTVERSION = 0:8:0 | ||
140 | MAGIC_LIBS = -lmagic | ||
141 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo | ||
142 | MATH_LIBS = -lm | ||
143 | MKDIR_P = /bin/mkdir -p | ||
144 | OBJDUMP = objdump | ||
145 | OBJEXT = o | ||
146 | PACKAGE = libg3d | ||
147 | PACKAGE_BUGREPORT = | ||
148 | PACKAGE_NAME = | ||
149 | PACKAGE_STRING = | ||
150 | PACKAGE_TARNAME = | ||
151 | PACKAGE_VERSION = | ||
152 | PATH_SEPARATOR = : | ||
153 | PKG_CONFIG = /usr/bin/pkg-config | ||
154 | PLUGINS_LDFLAGS = -avoid-version -export-dynamic | ||
155 | RANLIB = ranlib | ||
156 | SET_MAKE = | ||
157 | SHELL = /bin/bash | ||
158 | STRIP = strip | ||
159 | VERSION = 0.0.8 | ||
160 | XML2_CONFIG = /usr/bin/xml2-config | ||
161 | XML_CPPFLAGS = -I/usr/include/libxml2 | ||
162 | XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
163 | Z_CFLAGS = | ||
164 | Z_LIBS = -lz | ||
165 | abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar | ||
166 | abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar | ||
167 | abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
168 | abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
169 | ac_ct_CC = gcc | ||
170 | ac_ct_CXX = g++ | ||
171 | ac_ct_F77 = | ||
172 | am__include = include | ||
173 | am__leading_dot = . | ||
174 | am__quote = | ||
175 | am__tar = ${AMTAR} chof - "$$tardir" | ||
176 | am__untar = ${AMTAR} xf - | ||
177 | bindir = ${exec_prefix}/bin | ||
178 | build = x86_64-unknown-linux-gnu | ||
179 | build_alias = | ||
180 | build_cpu = x86_64 | ||
181 | build_os = linux-gnu | ||
182 | build_vendor = unknown | ||
183 | builddir = . | ||
184 | datadir = ${datarootdir} | ||
185 | datarootdir = ${prefix}/share | ||
186 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
187 | dvidir = ${docdir} | ||
188 | exec_prefix = ${prefix} | ||
189 | host = x86_64-unknown-linux-gnu | ||
190 | host_alias = | ||
191 | host_cpu = x86_64 | ||
192 | host_os = linux-gnu | ||
193 | host_vendor = unknown | ||
194 | htmldir = ${docdir} | ||
195 | includedir = ${prefix}/include | ||
196 | infodir = ${datarootdir}/info | ||
197 | install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh | ||
198 | libdir = ${exec_prefix}/lib | ||
199 | libexecdir = ${exec_prefix}/libexec | ||
200 | localedir = ${datarootdir}/locale | ||
201 | localstatedir = ${prefix}/var | ||
202 | mandir = ${datarootdir}/man | ||
203 | mkdir_p = /bin/mkdir -p | ||
204 | oldincludedir = /usr/include | ||
205 | pdfdir = ${docdir} | ||
206 | prefix = /usr/local | ||
207 | program_transform_name = s,x,x, | ||
208 | psdir = ${docdir} | ||
209 | sbindir = ${exec_prefix}/sbin | ||
210 | sharedstatedir = ${prefix}/com | ||
211 | srcdir = . | ||
212 | sysconfdir = ${prefix}/etc | ||
213 | target_alias = | ||
214 | top_builddir = ../../.. | ||
215 | top_srcdir = ../../.. | ||
216 | pluginimpdir = $(pkglibdir)/plugins/import | ||
217 | pluginimp_LTLIBRARIES = imp_ar.la | ||
218 | AM_CFLAGS = \ | ||
219 | -Wall -ansi -pedantic \ | ||
220 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
221 | -O2 -DDEBUG=0 \ | ||
222 | -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
223 | |||
224 | INCLUDES = -I$(top_srcdir)/include | ||
225 | AM_LDFLAGS = \ | ||
226 | -no-undefined -module \ | ||
227 | -avoid-version -export-dynamic | ||
228 | |||
229 | imp_ar_la_SOURCES = imp_ar.c imp_ar.h \ | ||
230 | imp_ar_decompress.c imp_ar_decompress.h \ | ||
231 | imp_ar_dof.c imp_ar_dof.h \ | ||
232 | imp_ar_carini.c imp_ar_carini.h | ||
233 | |||
234 | imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 | ||
235 | all: all-am | ||
236 | |||
237 | .SUFFIXES: | ||
238 | .SUFFIXES: .c .lo .o .obj | ||
239 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
240 | @for dep in $?; do \ | ||
241 | case '$(am__configure_deps)' in \ | ||
242 | *$$dep*) \ | ||
243 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | ||
244 | && exit 0; \ | ||
245 | exit 1;; \ | ||
246 | esac; \ | ||
247 | done; \ | ||
248 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile'; \ | ||
249 | cd $(top_srcdir) && \ | ||
250 | $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile | ||
251 | .PRECIOUS: Makefile | ||
252 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
253 | @case '$?' in \ | ||
254 | *config.status*) \ | ||
255 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
256 | *) \ | ||
257 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
258 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
259 | esac; | ||
260 | |||
261 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
262 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
263 | |||
264 | $(top_srcdir)/configure: $(am__configure_deps) | ||
265 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
266 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
267 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
268 | install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) | ||
269 | @$(NORMAL_INSTALL) | ||
270 | test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" | ||
271 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
272 | if test -f $$p; then \ | ||
273 | f=$(am__strip_dir) \ | ||
274 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ | ||
275 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ | ||
276 | else :; fi; \ | ||
277 | done | ||
278 | |||
279 | uninstall-pluginimpLTLIBRARIES: | ||
280 | @$(NORMAL_UNINSTALL) | ||
281 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
282 | p=$(am__strip_dir) \ | ||
283 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ | ||
284 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ | ||
285 | done | ||
286 | |||
287 | clean-pluginimpLTLIBRARIES: | ||
288 | -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) | ||
289 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
290 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
291 | test "$$dir" != "$$p" || dir=.; \ | ||
292 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
293 | rm -f "$${dir}/so_locations"; \ | ||
294 | done | ||
295 | imp_ar.la: $(imp_ar_la_OBJECTS) $(imp_ar_la_DEPENDENCIES) | ||
296 | $(LINK) -rpath $(pluginimpdir) $(imp_ar_la_OBJECTS) $(imp_ar_la_LIBADD) $(LIBS) | ||
297 | |||
298 | mostlyclean-compile: | ||
299 | -rm -f *.$(OBJEXT) | ||
300 | |||
301 | distclean-compile: | ||
302 | -rm -f *.tab.c | ||
303 | |||
304 | include ./$(DEPDIR)/imp_ar.Plo | ||
305 | include ./$(DEPDIR)/imp_ar_carini.Plo | ||
306 | include ./$(DEPDIR)/imp_ar_decompress.Plo | ||
307 | include ./$(DEPDIR)/imp_ar_dof.Plo | ||
308 | |||
309 | .c.o: | ||
310 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
311 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
312 | # source='$<' object='$@' libtool=no \ | ||
313 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
314 | # $(COMPILE) -c $< | ||
315 | |||
316 | .c.obj: | ||
317 | $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
318 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
319 | # source='$<' object='$@' libtool=no \ | ||
320 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
321 | # $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
322 | |||
323 | .c.lo: | ||
324 | $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
325 | mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
326 | # source='$<' object='$@' libtool=yes \ | ||
327 | # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ | ||
328 | # $(LTCOMPILE) -c -o $@ $< | ||
329 | |||
330 | mostlyclean-libtool: | ||
331 | -rm -f *.lo | ||
332 | |||
333 | clean-libtool: | ||
334 | -rm -rf .libs _libs | ||
335 | |||
336 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
337 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
338 | unique=`for i in $$list; do \ | ||
339 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
340 | done | \ | ||
341 | $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ | ||
342 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
343 | mkid -fID $$unique | ||
344 | tags: TAGS | ||
345 | |||
346 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
347 | $(TAGS_FILES) $(LISP) | ||
348 | tags=; \ | ||
349 | here=`pwd`; \ | ||
350 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
351 | unique=`for i in $$list; do \ | ||
352 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
353 | done | \ | ||
354 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
355 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
356 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | ||
357 | test -n "$$unique" || unique=$$empty_fix; \ | ||
358 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
359 | $$tags $$unique; \ | ||
360 | fi | ||
361 | ctags: CTAGS | ||
362 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
363 | $(TAGS_FILES) $(LISP) | ||
364 | tags=; \ | ||
365 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
366 | unique=`for i in $$list; do \ | ||
367 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
368 | done | \ | ||
369 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
370 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
371 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
372 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
373 | $$tags $$unique | ||
374 | |||
375 | GTAGS: | ||
376 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
377 | && cd $(top_srcdir) \ | ||
378 | && gtags -i $(GTAGS_ARGS) $$here | ||
379 | |||
380 | distclean-tags: | ||
381 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
382 | |||
383 | distdir: $(DISTFILES) | ||
384 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
385 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
386 | list='$(DISTFILES)'; \ | ||
387 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
388 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
389 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
390 | case $$dist_files in \ | ||
391 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
392 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
393 | sort -u` ;; \ | ||
394 | esac; \ | ||
395 | for file in $$dist_files; do \ | ||
396 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
397 | if test -d $$d/$$file; then \ | ||
398 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
399 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
400 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
401 | fi; \ | ||
402 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
403 | else \ | ||
404 | test -f $(distdir)/$$file \ | ||
405 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
406 | || exit 1; \ | ||
407 | fi; \ | ||
408 | done | ||
409 | check-am: all-am | ||
410 | check: check-am | ||
411 | all-am: Makefile $(LTLIBRARIES) | ||
412 | installdirs: | ||
413 | for dir in "$(DESTDIR)$(pluginimpdir)"; do \ | ||
414 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
415 | done | ||
416 | install: install-am | ||
417 | install-exec: install-exec-am | ||
418 | install-data: install-data-am | ||
419 | uninstall: uninstall-am | ||
420 | |||
421 | install-am: all-am | ||
422 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
423 | |||
424 | installcheck: installcheck-am | ||
425 | install-strip: | ||
426 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
427 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
428 | `test -z '$(STRIP)' || \ | ||
429 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
430 | mostlyclean-generic: | ||
431 | |||
432 | clean-generic: | ||
433 | |||
434 | distclean-generic: | ||
435 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
436 | |||
437 | maintainer-clean-generic: | ||
438 | @echo "This command is intended for maintainers to use" | ||
439 | @echo "it deletes files that may require special tools to rebuild." | ||
440 | clean: clean-am | ||
441 | |||
442 | clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ | ||
443 | mostlyclean-am | ||
444 | |||
445 | distclean: distclean-am | ||
446 | -rm -rf ./$(DEPDIR) | ||
447 | -rm -f Makefile | ||
448 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
449 | distclean-tags | ||
450 | |||
451 | dvi: dvi-am | ||
452 | |||
453 | dvi-am: | ||
454 | |||
455 | html: html-am | ||
456 | |||
457 | info: info-am | ||
458 | |||
459 | info-am: | ||
460 | |||
461 | install-data-am: install-pluginimpLTLIBRARIES | ||
462 | |||
463 | install-dvi: install-dvi-am | ||
464 | |||
465 | install-exec-am: | ||
466 | |||
467 | install-html: install-html-am | ||
468 | |||
469 | install-info: install-info-am | ||
470 | |||
471 | install-man: | ||
472 | |||
473 | install-pdf: install-pdf-am | ||
474 | |||
475 | install-ps: install-ps-am | ||
476 | |||
477 | installcheck-am: | ||
478 | |||
479 | maintainer-clean: maintainer-clean-am | ||
480 | -rm -rf ./$(DEPDIR) | ||
481 | -rm -f Makefile | ||
482 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
483 | |||
484 | mostlyclean: mostlyclean-am | ||
485 | |||
486 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
487 | mostlyclean-libtool | ||
488 | |||
489 | pdf: pdf-am | ||
490 | |||
491 | pdf-am: | ||
492 | |||
493 | ps: ps-am | ||
494 | |||
495 | ps-am: | ||
496 | |||
497 | uninstall-am: uninstall-pluginimpLTLIBRARIES | ||
498 | |||
499 | .MAKE: install-am install-strip | ||
500 | |||
501 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
502 | clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ | ||
503 | distclean-compile distclean-generic distclean-libtool \ | ||
504 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | ||
505 | install install-am install-data install-data-am install-dvi \ | ||
506 | install-dvi-am install-exec install-exec-am install-html \ | ||
507 | install-html-am install-info install-info-am install-man \ | ||
508 | install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ | ||
509 | install-ps install-ps-am install-strip installcheck \ | ||
510 | installcheck-am installdirs maintainer-clean \ | ||
511 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
512 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
513 | tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES | ||
514 | |||
515 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
516 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
517 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am new file mode 100644 index 0000000..a307d0b --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am | |||
@@ -0,0 +1,23 @@ | |||
1 | pluginimpdir = $(pkglibdir)/plugins/import | ||
2 | |||
3 | pluginimp_LTLIBRARIES = imp_ar.la | ||
4 | |||
5 | AM_CFLAGS = \ | ||
6 | -Wall -ansi -pedantic \ | ||
7 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
8 | @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ | ||
9 | @GLIB_CFLAGS@ | ||
10 | |||
11 | INCLUDES = -I$(top_srcdir)/include | ||
12 | |||
13 | AM_LDFLAGS = \ | ||
14 | -no-undefined -module \ | ||
15 | @PLUGINS_LDFLAGS@ | ||
16 | |||
17 | LIBTOOL += --quiet | ||
18 | |||
19 | imp_ar_la_SOURCES = imp_ar.c imp_ar.h \ | ||
20 | imp_ar_decompress.c imp_ar_decompress.h \ | ||
21 | imp_ar_dof.c imp_ar_dof.h \ | ||
22 | imp_ar_carini.c imp_ar_carini.h | ||
23 | imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in new file mode 100644 index 0000000..1f67984 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in | |||
@@ -0,0 +1,517 @@ | |||
1 | # Makefile.in generated by automake 1.10.1 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | VPATH = @srcdir@ | ||
18 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
19 | pkglibdir = $(libdir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
22 | install_sh_DATA = $(install_sh) -c -m 644 | ||
23 | install_sh_PROGRAM = $(install_sh) -c | ||
24 | install_sh_SCRIPT = $(install_sh) -c | ||
25 | INSTALL_HEADER = $(INSTALL_DATA) | ||
26 | transform = $(program_transform_name) | ||
27 | NORMAL_INSTALL = : | ||
28 | PRE_INSTALL = : | ||
29 | POST_INSTALL = : | ||
30 | NORMAL_UNINSTALL = : | ||
31 | PRE_UNINSTALL = : | ||
32 | POST_UNINSTALL = : | ||
33 | build_triplet = @build@ | ||
34 | host_triplet = @host@ | ||
35 | subdir = plugins/import/imp_ar | ||
36 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
37 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
38 | am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \ | ||
39 | $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \ | ||
40 | $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
41 | $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \ | ||
42 | $(top_srcdir)/configure.in | ||
43 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
44 | $(ACLOCAL_M4) | ||
45 | mkinstalldirs = $(install_sh) -d | ||
46 | CONFIG_HEADER = $(top_builddir)/include/g3d/config.h | ||
47 | CONFIG_CLEAN_FILES = | ||
48 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
49 | am__vpath_adj = case $$p in \ | ||
50 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
51 | *) f=$$p;; \ | ||
52 | esac; | ||
53 | am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; | ||
54 | am__installdirs = "$(DESTDIR)$(pluginimpdir)" | ||
55 | pluginimpLTLIBRARIES_INSTALL = $(INSTALL) | ||
56 | LTLIBRARIES = $(pluginimp_LTLIBRARIES) | ||
57 | imp_ar_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la | ||
58 | am_imp_ar_la_OBJECTS = imp_ar.lo imp_ar_decompress.lo imp_ar_dof.lo \ | ||
59 | imp_ar_carini.lo | ||
60 | imp_ar_la_OBJECTS = $(am_imp_ar_la_OBJECTS) | ||
61 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d | ||
62 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
63 | am__depfiles_maybe = depfiles | ||
64 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
65 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
66 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
67 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
68 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
69 | CCLD = $(CC) | ||
70 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
71 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
72 | $(LDFLAGS) -o $@ | ||
73 | SOURCES = $(imp_ar_la_SOURCES) | ||
74 | DIST_SOURCES = $(imp_ar_la_SOURCES) | ||
75 | ETAGS = etags | ||
76 | CTAGS = ctags | ||
77 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
78 | ACLOCAL = @ACLOCAL@ | ||
79 | AMTAR = @AMTAR@ | ||
80 | AR = @AR@ | ||
81 | AS = @AS@ | ||
82 | AUTOCONF = @AUTOCONF@ | ||
83 | AUTOHEADER = @AUTOHEADER@ | ||
84 | AUTOMAKE = @AUTOMAKE@ | ||
85 | AWK = @AWK@ | ||
86 | CC = @CC@ | ||
87 | CCDEPMODE = @CCDEPMODE@ | ||
88 | CFLAGS = @CFLAGS@ | ||
89 | CPP = @CPP@ | ||
90 | CPPFLAGS = @CPPFLAGS@ | ||
91 | CXX = @CXX@ | ||
92 | CXXCPP = @CXXCPP@ | ||
93 | CXXDEPMODE = @CXXDEPMODE@ | ||
94 | CXXFLAGS = @CXXFLAGS@ | ||
95 | CYGPATH_W = @CYGPATH_W@ | ||
96 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
97 | DEBUG = @DEBUG@ | ||
98 | DEFS = @DEFS@ | ||
99 | DEPDIR = @DEPDIR@ | ||
100 | DLLTOOL = @DLLTOOL@ | ||
101 | ECHO = @ECHO@ | ||
102 | ECHO_C = @ECHO_C@ | ||
103 | ECHO_N = @ECHO_N@ | ||
104 | ECHO_T = @ECHO_T@ | ||
105 | EGREP = @EGREP@ | ||
106 | EXEEXT = @EXEEXT@ | ||
107 | F77 = @F77@ | ||
108 | FFLAGS = @FFLAGS@ | ||
109 | GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ | ||
110 | GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ | ||
111 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
112 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
113 | GLIB_LIBS = @GLIB_LIBS@ | ||
114 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
115 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
116 | GREP = @GREP@ | ||
117 | GTKDOC_CHECK = @GTKDOC_CHECK@ | ||
118 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
119 | GTK_LIBS = @GTK_LIBS@ | ||
120 | HTML_DIR = @HTML_DIR@ | ||
121 | INSTALL = @INSTALL@ | ||
122 | INSTALL_DATA = @INSTALL_DATA@ | ||
123 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
124 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
125 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
126 | LDFLAGS = @LDFLAGS@ | ||
127 | LEX = @LEX@ | ||
128 | LEXLIB = @LEXLIB@ | ||
129 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | ||
130 | LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ | ||
131 | LIBGSF_LIBS = @LIBGSF_LIBS@ | ||
132 | LIBOBJS = @LIBOBJS@ | ||
133 | LIBS = @LIBS@ | ||
134 | LIBTOOL = @LIBTOOL@ --quiet | ||
135 | LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ | ||
136 | LIBXML2_LIBS = @LIBXML2_LIBS@ | ||
137 | LN_S = @LN_S@ | ||
138 | LTLIBOBJS = @LTLIBOBJS@ | ||
139 | LTVERSION = @LTVERSION@ | ||
140 | MAGIC_LIBS = @MAGIC_LIBS@ | ||
141 | MAKEINFO = @MAKEINFO@ | ||
142 | MATH_LIBS = @MATH_LIBS@ | ||
143 | MKDIR_P = @MKDIR_P@ | ||
144 | OBJDUMP = @OBJDUMP@ | ||
145 | OBJEXT = @OBJEXT@ | ||
146 | PACKAGE = @PACKAGE@ | ||
147 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
148 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
149 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
150 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
151 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
152 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
153 | PKG_CONFIG = @PKG_CONFIG@ | ||
154 | PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ | ||
155 | RANLIB = @RANLIB@ | ||
156 | SET_MAKE = @SET_MAKE@ | ||
157 | SHELL = @SHELL@ | ||
158 | STRIP = @STRIP@ | ||
159 | VERSION = @VERSION@ | ||
160 | XML2_CONFIG = @XML2_CONFIG@ | ||
161 | XML_CPPFLAGS = @XML_CPPFLAGS@ | ||
162 | XML_LIBS = @XML_LIBS@ | ||
163 | Z_CFLAGS = @Z_CFLAGS@ | ||
164 | Z_LIBS = @Z_LIBS@ | ||
165 | abs_builddir = @abs_builddir@ | ||
166 | abs_srcdir = @abs_srcdir@ | ||
167 | abs_top_builddir = @abs_top_builddir@ | ||
168 | abs_top_srcdir = @abs_top_srcdir@ | ||
169 | ac_ct_CC = @ac_ct_CC@ | ||
170 | ac_ct_CXX = @ac_ct_CXX@ | ||
171 | ac_ct_F77 = @ac_ct_F77@ | ||
172 | am__include = @am__include@ | ||
173 | am__leading_dot = @am__leading_dot@ | ||
174 | am__quote = @am__quote@ | ||
175 | am__tar = @am__tar@ | ||
176 | am__untar = @am__untar@ | ||
177 | bindir = @bindir@ | ||
178 | build = @build@ | ||
179 | build_alias = @build_alias@ | ||
180 | build_cpu = @build_cpu@ | ||
181 | build_os = @build_os@ | ||
182 | build_vendor = @build_vendor@ | ||
183 | builddir = @builddir@ | ||
184 | datadir = @datadir@ | ||
185 | datarootdir = @datarootdir@ | ||
186 | docdir = @docdir@ | ||
187 | dvidir = @dvidir@ | ||
188 | exec_prefix = @exec_prefix@ | ||
189 | host = @host@ | ||
190 | host_alias = @host_alias@ | ||
191 | host_cpu = @host_cpu@ | ||
192 | host_os = @host_os@ | ||
193 | host_vendor = @host_vendor@ | ||
194 | htmldir = @htmldir@ | ||
195 | includedir = @includedir@ | ||
196 | infodir = @infodir@ | ||
197 | install_sh = @install_sh@ | ||
198 | libdir = @libdir@ | ||
199 | libexecdir = @libexecdir@ | ||
200 | localedir = @localedir@ | ||
201 | localstatedir = @localstatedir@ | ||
202 | mandir = @mandir@ | ||
203 | mkdir_p = @mkdir_p@ | ||
204 | oldincludedir = @oldincludedir@ | ||
205 | pdfdir = @pdfdir@ | ||
206 | prefix = @prefix@ | ||
207 | program_transform_name = @program_transform_name@ | ||
208 | psdir = @psdir@ | ||
209 | sbindir = @sbindir@ | ||
210 | sharedstatedir = @sharedstatedir@ | ||
211 | srcdir = @srcdir@ | ||
212 | sysconfdir = @sysconfdir@ | ||
213 | target_alias = @target_alias@ | ||
214 | top_builddir = @top_builddir@ | ||
215 | top_srcdir = @top_srcdir@ | ||
216 | pluginimpdir = $(pkglibdir)/plugins/import | ||
217 | pluginimp_LTLIBRARIES = imp_ar.la | ||
218 | AM_CFLAGS = \ | ||
219 | -Wall -ansi -pedantic \ | ||
220 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
221 | @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ | ||
222 | @GLIB_CFLAGS@ | ||
223 | |||
224 | INCLUDES = -I$(top_srcdir)/include | ||
225 | AM_LDFLAGS = \ | ||
226 | -no-undefined -module \ | ||
227 | @PLUGINS_LDFLAGS@ | ||
228 | |||
229 | imp_ar_la_SOURCES = imp_ar.c imp_ar.h \ | ||
230 | imp_ar_decompress.c imp_ar_decompress.h \ | ||
231 | imp_ar_dof.c imp_ar_dof.h \ | ||
232 | imp_ar_carini.c imp_ar_carini.h | ||
233 | |||
234 | imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ | ||
235 | all: all-am | ||
236 | |||
237 | .SUFFIXES: | ||
238 | .SUFFIXES: .c .lo .o .obj | ||
239 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
240 | @for dep in $?; do \ | ||
241 | case '$(am__configure_deps)' in \ | ||
242 | *$$dep*) \ | ||
243 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | ||
244 | && exit 0; \ | ||
245 | exit 1;; \ | ||
246 | esac; \ | ||
247 | done; \ | ||
248 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile'; \ | ||
249 | cd $(top_srcdir) && \ | ||
250 | $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile | ||
251 | .PRECIOUS: Makefile | ||
252 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
253 | @case '$?' in \ | ||
254 | *config.status*) \ | ||
255 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
256 | *) \ | ||
257 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
258 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
259 | esac; | ||
260 | |||
261 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
262 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
263 | |||
264 | $(top_srcdir)/configure: $(am__configure_deps) | ||
265 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
266 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
267 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
268 | install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES) | ||
269 | @$(NORMAL_INSTALL) | ||
270 | test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)" | ||
271 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
272 | if test -f $$p; then \ | ||
273 | f=$(am__strip_dir) \ | ||
274 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \ | ||
275 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \ | ||
276 | else :; fi; \ | ||
277 | done | ||
278 | |||
279 | uninstall-pluginimpLTLIBRARIES: | ||
280 | @$(NORMAL_UNINSTALL) | ||
281 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
282 | p=$(am__strip_dir) \ | ||
283 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \ | ||
284 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \ | ||
285 | done | ||
286 | |||
287 | clean-pluginimpLTLIBRARIES: | ||
288 | -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES) | ||
289 | @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \ | ||
290 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
291 | test "$$dir" != "$$p" || dir=.; \ | ||
292 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
293 | rm -f "$${dir}/so_locations"; \ | ||
294 | done | ||
295 | imp_ar.la: $(imp_ar_la_OBJECTS) $(imp_ar_la_DEPENDENCIES) | ||
296 | $(LINK) -rpath $(pluginimpdir) $(imp_ar_la_OBJECTS) $(imp_ar_la_LIBADD) $(LIBS) | ||
297 | |||
298 | mostlyclean-compile: | ||
299 | -rm -f *.$(OBJEXT) | ||
300 | |||
301 | distclean-compile: | ||
302 | -rm -f *.tab.c | ||
303 | |||
304 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar.Plo@am__quote@ | ||
305 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_carini.Plo@am__quote@ | ||
306 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_decompress.Plo@am__quote@ | ||
307 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_dof.Plo@am__quote@ | ||
308 | |||
309 | .c.o: | ||
310 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
311 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
312 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
313 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
314 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
315 | |||
316 | .c.obj: | ||
317 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
318 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
319 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
320 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
321 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
322 | |||
323 | .c.lo: | ||
324 | @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
325 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
326 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
327 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
328 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
329 | |||
330 | mostlyclean-libtool: | ||
331 | -rm -f *.lo | ||
332 | |||
333 | clean-libtool: | ||
334 | -rm -rf .libs _libs | ||
335 | |||
336 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
337 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
338 | unique=`for i in $$list; do \ | ||
339 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
340 | done | \ | ||
341 | $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ | ||
342 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
343 | mkid -fID $$unique | ||
344 | tags: TAGS | ||
345 | |||
346 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
347 | $(TAGS_FILES) $(LISP) | ||
348 | tags=; \ | ||
349 | here=`pwd`; \ | ||
350 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
351 | unique=`for i in $$list; do \ | ||
352 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
353 | done | \ | ||
354 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
355 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
356 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | ||
357 | test -n "$$unique" || unique=$$empty_fix; \ | ||
358 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
359 | $$tags $$unique; \ | ||
360 | fi | ||
361 | ctags: CTAGS | ||
362 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
363 | $(TAGS_FILES) $(LISP) | ||
364 | tags=; \ | ||
365 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
366 | unique=`for i in $$list; do \ | ||
367 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
368 | done | \ | ||
369 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
370 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
371 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
372 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
373 | $$tags $$unique | ||
374 | |||
375 | GTAGS: | ||
376 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
377 | && cd $(top_srcdir) \ | ||
378 | && gtags -i $(GTAGS_ARGS) $$here | ||
379 | |||
380 | distclean-tags: | ||
381 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
382 | |||
383 | distdir: $(DISTFILES) | ||
384 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
385 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
386 | list='$(DISTFILES)'; \ | ||
387 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
388 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
389 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
390 | case $$dist_files in \ | ||
391 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
392 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
393 | sort -u` ;; \ | ||
394 | esac; \ | ||
395 | for file in $$dist_files; do \ | ||
396 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
397 | if test -d $$d/$$file; then \ | ||
398 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
399 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
400 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
401 | fi; \ | ||
402 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
403 | else \ | ||
404 | test -f $(distdir)/$$file \ | ||
405 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
406 | || exit 1; \ | ||
407 | fi; \ | ||
408 | done | ||
409 | check-am: all-am | ||
410 | check: check-am | ||
411 | all-am: Makefile $(LTLIBRARIES) | ||
412 | installdirs: | ||
413 | for dir in "$(DESTDIR)$(pluginimpdir)"; do \ | ||
414 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
415 | done | ||
416 | install: install-am | ||
417 | install-exec: install-exec-am | ||
418 | install-data: install-data-am | ||
419 | uninstall: uninstall-am | ||
420 | |||
421 | install-am: all-am | ||
422 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
423 | |||
424 | installcheck: installcheck-am | ||
425 | install-strip: | ||
426 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
427 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
428 | `test -z '$(STRIP)' || \ | ||
429 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
430 | mostlyclean-generic: | ||
431 | |||
432 | clean-generic: | ||
433 | |||
434 | distclean-generic: | ||
435 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
436 | |||
437 | maintainer-clean-generic: | ||
438 | @echo "This command is intended for maintainers to use" | ||
439 | @echo "it deletes files that may require special tools to rebuild." | ||
440 | clean: clean-am | ||
441 | |||
442 | clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ | ||
443 | mostlyclean-am | ||
444 | |||
445 | distclean: distclean-am | ||
446 | -rm -rf ./$(DEPDIR) | ||
447 | -rm -f Makefile | ||
448 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
449 | distclean-tags | ||
450 | |||
451 | dvi: dvi-am | ||
452 | |||
453 | dvi-am: | ||
454 | |||
455 | html: html-am | ||
456 | |||
457 | info: info-am | ||
458 | |||
459 | info-am: | ||
460 | |||
461 | install-data-am: install-pluginimpLTLIBRARIES | ||
462 | |||
463 | install-dvi: install-dvi-am | ||
464 | |||
465 | install-exec-am: | ||
466 | |||
467 | install-html: install-html-am | ||
468 | |||
469 | install-info: install-info-am | ||
470 | |||
471 | install-man: | ||
472 | |||
473 | install-pdf: install-pdf-am | ||
474 | |||
475 | install-ps: install-ps-am | ||
476 | |||
477 | installcheck-am: | ||
478 | |||
479 | maintainer-clean: maintainer-clean-am | ||
480 | -rm -rf ./$(DEPDIR) | ||
481 | -rm -f Makefile | ||
482 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
483 | |||
484 | mostlyclean: mostlyclean-am | ||
485 | |||
486 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
487 | mostlyclean-libtool | ||
488 | |||
489 | pdf: pdf-am | ||
490 | |||
491 | pdf-am: | ||
492 | |||
493 | ps: ps-am | ||
494 | |||
495 | ps-am: | ||
496 | |||
497 | uninstall-am: uninstall-pluginimpLTLIBRARIES | ||
498 | |||
499 | .MAKE: install-am install-strip | ||
500 | |||
501 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
502 | clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \ | ||
503 | distclean-compile distclean-generic distclean-libtool \ | ||
504 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | ||
505 | install install-am install-data install-data-am install-dvi \ | ||
506 | install-dvi-am install-exec install-exec-am install-html \ | ||
507 | install-html-am install-info install-info-am install-man \ | ||
508 | install-pdf install-pdf-am install-pluginimpLTLIBRARIES \ | ||
509 | install-ps install-ps-am install-strip installcheck \ | ||
510 | installcheck-am installdirs maintainer-clean \ | ||
511 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
512 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
513 | tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES | ||
514 | |||
515 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
516 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
517 | .NOEXPORT: | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c new file mode 100644 index 0000000..58bd274 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c | |||
@@ -0,0 +1,183 @@ | |||
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 | #include <stdarg.h> | ||
26 | #include <locale.h> | ||
27 | |||
28 | #include <g3d/types.h> | ||
29 | #include <g3d/read.h> | ||
30 | #include <g3d/material.h> | ||
31 | #include <g3d/matrix.h> | ||
32 | |||
33 | #include "imp_ar.h" | ||
34 | #include "imp_ar_decompress.h" | ||
35 | #include "imp_ar_dof.h" | ||
36 | #include "imp_ar_carini.h" | ||
37 | |||
38 | static GSList *ar_read_directory(G3DStream *stream); | ||
39 | static G3DObject *ar_load_subfile(G3DContext *context, G3DModel *model, | ||
40 | G3DStream *stream, const gchar *subfile); | ||
41 | |||
42 | /*****************************************************************************/ | ||
43 | /* plugin interface */ | ||
44 | |||
45 | EAPI | ||
46 | gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream, | ||
47 | G3DModel *model, gpointer plugin_data) | ||
48 | { | ||
49 | GSList *dir, *item; | ||
50 | GHashTable *carini; | ||
51 | G3DMaterial *material; | ||
52 | G3DObject *object; | ||
53 | gchar *mname; | ||
54 | G3DFloat x, y, z; | ||
55 | |||
56 | setlocale(LC_NUMERIC, "C"); | ||
57 | |||
58 | /* default material */ | ||
59 | material = g3d_material_new(); | ||
60 | material->name = g_strdup("default material"); | ||
61 | model->materials = g_slist_append(model->materials, material); | ||
62 | |||
63 | if(g_strcasecmp(stream->uri + (strlen(stream->uri) - 4), ".dof") == 0) { | ||
64 | /* single DOF file */ | ||
65 | ar_dof_load(context, model, stream); | ||
66 | } else { | ||
67 | /* compressed AR archive */ | ||
68 | carini = ar_carini_load(); | ||
69 | |||
70 | /* load directory */ | ||
71 | dir = ar_read_directory(stream); | ||
72 | |||
73 | /* decompress files */ | ||
74 | for(item = dir; item != NULL; item = item->next) | ||
75 | ar_decompress_to_file(stream, (ArDirEntry *)item->data); | ||
76 | |||
77 | /* load body */ | ||
78 | mname = g_hash_table_lookup(carini, "body.model.file"); | ||
79 | ar_load_subfile(context, model, stream, mname); | ||
80 | /* steering wheel */ | ||
81 | mname = g_hash_table_lookup(carini, "steer.model.file"); | ||
82 | if(mname != NULL) | ||
83 | { | ||
84 | printf("D: steering wheel (%s)\n", mname); | ||
85 | object = ar_load_subfile(context, model, stream, mname); | ||
86 | ar_carini_get_position(carini, "steer", &x, &y, &z); | ||
87 | object->transformation = g_new0(G3DTransformation, 1); | ||
88 | g3d_matrix_identity(object->transformation->matrix); | ||
89 | g3d_matrix_translate(x, y, z, object->transformation->matrix); | ||
90 | } | ||
91 | |||
92 | /* load wheel 0 */ | ||
93 | mname = g_hash_table_lookup(carini, "wheel0~wheel_front.model.file"); | ||
94 | if(mname != NULL) | ||
95 | { | ||
96 | printf("D: loading wheel 0 (%s)\n", mname); | ||
97 | object = ar_load_subfile(context, model, stream, mname); | ||
98 | x = ar_carini_get_float(carini, "susp0~susp_front.x"); | ||
99 | y = ar_carini_get_float(carini, "susp_front.y") - | ||
100 | ar_carini_get_float(carini, "wheel_front.radius"); | ||
101 | z = ar_carini_get_float(carini, "susp_front.z"); | ||
102 | object->transformation = g_new0(G3DTransformation, 1); | ||
103 | g3d_matrix_identity(object->transformation->matrix); | ||
104 | g3d_matrix_translate(x, y, z, object->transformation->matrix); | ||
105 | } | ||
106 | |||
107 | ar_carini_free(carini); | ||
108 | } | ||
109 | |||
110 | return TRUE; | ||
111 | } | ||
112 | |||
113 | EAPI | ||
114 | gchar *plugin_description(void) | ||
115 | { | ||
116 | return g_strdup("Racer models."); | ||
117 | } | ||
118 | |||
119 | EAPI | ||
120 | gchar **plugin_extensions(void) | ||
121 | { | ||
122 | return g_strsplit("ar:dof", ":", 0); | ||
123 | } | ||
124 | |||
125 | /*****************************************************************************/ | ||
126 | |||
127 | static GSList *ar_read_directory(G3DStream *stream) | ||
128 | { | ||
129 | ArDirEntry *dirent; | ||
130 | GSList *list = NULL; | ||
131 | guint32 fsize, dpos; | ||
132 | gint32 nbytes; | ||
133 | gchar buffer[128]; | ||
134 | |||
135 | g3d_stream_seek(stream, -4, G_SEEK_END); | ||
136 | fsize = g3d_stream_tell(stream); | ||
137 | dpos = g3d_stream_read_int32_le(stream); | ||
138 | |||
139 | /* start of directory */ | ||
140 | g3d_stream_seek(stream, dpos, G_SEEK_SET); | ||
141 | nbytes = fsize - dpos; | ||
142 | #if DEBUG > 0 | ||
143 | printf("D: AR: directory @ 0x%08x, %d bytes\n", dpos, nbytes); | ||
144 | #endif | ||
145 | |||
146 | while(nbytes > 0) { | ||
147 | dirent = g_new0(ArDirEntry, 1); | ||
148 | list = g_slist_append(list, dirent); | ||
149 | |||
150 | nbytes -= g3d_stream_read_cstr(stream, buffer, 127); | ||
151 | dirent->name = g_strdup(buffer); | ||
152 | dirent->offset = g3d_stream_read_int32_le(stream); | ||
153 | dirent->size = g3d_stream_read_int32_le(stream); | ||
154 | nbytes -= 8; | ||
155 | |||
156 | #if DEBUG > 0 | ||
157 | printf("D: AR: * %s @ 0x%08x, %d bytes\n", | ||
158 | dirent->name, dirent->offset, dirent->size); | ||
159 | #endif | ||
160 | } | ||
161 | |||
162 | return list; | ||
163 | } | ||
164 | |||
165 | static G3DObject *ar_load_subfile(G3DContext *context, G3DModel *model, | ||
166 | G3DStream *stream, const gchar *subfile) | ||
167 | { | ||
168 | G3DStream *substream; | ||
169 | G3DObject *o; | ||
170 | |||
171 | if(subfile == NULL) | ||
172 | return NULL; | ||
173 | |||
174 | substream = g3d_stream_open_file(subfile, "rb"); | ||
175 | if(substream == NULL) | ||
176 | return NULL; | ||
177 | |||
178 | o = ar_dof_load(context, model, substream); | ||
179 | g3d_stream_close(substream); | ||
180 | |||
181 | return o; | ||
182 | } | ||
183 | |||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h new file mode 100644 index 0000000..8fb2989 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.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_AR_H | ||
24 | #define _IMP_AR_H | ||
25 | |||
26 | typedef struct { | ||
27 | gchar *name; | ||
28 | guint32 offset; | ||
29 | guint32 size; | ||
30 | } ArDirEntry; | ||
31 | |||
32 | #endif /* _IMP_AR_H */ | ||
33 | |||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c new file mode 100644 index 0000000..8ff4b18 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c | |||
@@ -0,0 +1,247 @@ | |||
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 | #define _ISOC99_SOURCE 1 /* strtof() */ | ||
24 | |||
25 | #include <stdio.h> | ||
26 | #include <stdlib.h> | ||
27 | #include <string.h> | ||
28 | #include <glib.h> | ||
29 | #include <g3d/types.h> | ||
30 | |||
31 | #define CARINI_IN_VAR 1 | ||
32 | #define CARINI_IN_VALUE 2 | ||
33 | #define CARINI_IN_COMMENT 3 | ||
34 | |||
35 | static gchar *ar_carini_getpath(GQueue *queue) | ||
36 | { | ||
37 | gchar *tmp, *path = NULL; | ||
38 | gint32 i; | ||
39 | |||
40 | for(i = 0; i < g_queue_get_length(queue); i ++) | ||
41 | { | ||
42 | if(path == NULL) | ||
43 | path = g_strdup((gchar *)g_queue_peek_nth(queue, i)); | ||
44 | else | ||
45 | { | ||
46 | tmp = g_strdup_printf("%s.%s", | ||
47 | (gchar *)g_queue_peek_nth(queue, i), path); | ||
48 | g_free(path); | ||
49 | path = tmp; | ||
50 | } | ||
51 | } | ||
52 | |||
53 | return path; | ||
54 | } | ||
55 | |||
56 | GHashTable *ar_carini_load(void) | ||
57 | { | ||
58 | GHashTable *ht; | ||
59 | GQueue *q; | ||
60 | FILE *f; | ||
61 | gchar var[256], *varp; /* section or variable */ | ||
62 | gchar val[256], *valp; /* value */ | ||
63 | gchar *tmps, *varname; | ||
64 | guint32 in = CARINI_IN_VAR; | ||
65 | gint32 c; | ||
66 | |||
67 | f = fopen("car.ini", "r"); | ||
68 | if(f == NULL) | ||
69 | f = fopen("Car.ini", "r"); | ||
70 | |||
71 | if(f == NULL) | ||
72 | { | ||
73 | g_error("failed to read 'car.ini'\n"); | ||
74 | return NULL; | ||
75 | } | ||
76 | |||
77 | ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); | ||
78 | if(ht == NULL) | ||
79 | { | ||
80 | fclose(f); | ||
81 | g_error("could not create hash table"); | ||
82 | return NULL; | ||
83 | } | ||
84 | |||
85 | q = g_queue_new(); | ||
86 | |||
87 | valp = val; | ||
88 | memset(val, 0, 256); | ||
89 | varp = var; | ||
90 | memset(var, 0, 256); | ||
91 | |||
92 | while(!feof(f)) | ||
93 | { | ||
94 | c = fgetc(f); | ||
95 | switch(c) | ||
96 | { | ||
97 | case '\0': | ||
98 | case EOF: | ||
99 | break; | ||
100 | |||
101 | case '{': | ||
102 | /* push section */ | ||
103 | g_queue_push_head(q, g_strdup(var)); | ||
104 | |||
105 | in = CARINI_IN_VAR; | ||
106 | varp = var; | ||
107 | memset(var, 0, 256); | ||
108 | break; | ||
109 | |||
110 | case '}': | ||
111 | /* pop section */ | ||
112 | tmps = (gchar *)g_queue_pop_head(q); | ||
113 | g_free(tmps); | ||
114 | |||
115 | in = CARINI_IN_VAR; | ||
116 | varp = var; | ||
117 | memset(var, 0, 256); | ||
118 | break; | ||
119 | |||
120 | case ';': | ||
121 | in = CARINI_IN_COMMENT; | ||
122 | break; | ||
123 | |||
124 | case '=': | ||
125 | if(in == CARINI_IN_VAR) | ||
126 | { | ||
127 | in = CARINI_IN_VALUE; | ||
128 | valp = val; | ||
129 | memset(val, 0, 256); | ||
130 | } | ||
131 | break; | ||
132 | |||
133 | case '\n': | ||
134 | case '\r': | ||
135 | if(in == CARINI_IN_VALUE) | ||
136 | { | ||
137 | tmps = ar_carini_getpath(q); | ||
138 | if(tmps) | ||
139 | { | ||
140 | varname = g_strdup_printf("%s.%s", tmps, var); | ||
141 | g_free(tmps); | ||
142 | } | ||
143 | else | ||
144 | varname = g_strdup(var); | ||
145 | |||
146 | /* update hash table */ | ||
147 | g_hash_table_insert(ht, varname, g_strdup(val)); | ||
148 | #if DEBUG > 2 | ||
149 | printf("D: %s = %s\n", varname, val); | ||
150 | #endif | ||
151 | |||
152 | in = CARINI_IN_VAR; | ||
153 | varp = var; | ||
154 | memset(var, 0, 256); | ||
155 | } | ||
156 | else if(in == CARINI_IN_COMMENT) | ||
157 | { | ||
158 | in = CARINI_IN_VAR; | ||
159 | } | ||
160 | break; | ||
161 | |||
162 | case ' ': | ||
163 | case '\t': | ||
164 | if(in == CARINI_IN_VALUE) | ||
165 | { | ||
166 | *valp = c; | ||
167 | valp ++; | ||
168 | } | ||
169 | break; | ||
170 | |||
171 | default: | ||
172 | if(in == CARINI_IN_VALUE) | ||
173 | { | ||
174 | *valp = c; | ||
175 | valp ++; | ||
176 | } | ||
177 | else if(in == CARINI_IN_VAR) | ||
178 | { | ||
179 | *varp = c; | ||
180 | varp ++; | ||
181 | } | ||
182 | break; | ||
183 | } /* switch(c) */ | ||
184 | } /* !feof(f) */ | ||
185 | |||
186 | /* clean up */ | ||
187 | g_queue_free(q); | ||
188 | |||
189 | return ht; | ||
190 | } | ||
191 | |||
192 | void ar_carini_free(GHashTable *ht) | ||
193 | { | ||
194 | g_hash_table_destroy(ht); | ||
195 | } | ||
196 | |||
197 | G3DFloat ar_carini_get_float(GHashTable *ht, gchar *path) | ||
198 | { | ||
199 | gchar *value; | ||
200 | G3DFloat valf; | ||
201 | |||
202 | value = (gchar *)g_hash_table_lookup(ht, path); | ||
203 | if(value == NULL) | ||
204 | return 0.0; | ||
205 | |||
206 | valf = strtof(value, NULL); | ||
207 | return valf; | ||
208 | } | ||
209 | |||
210 | gboolean ar_carini_get_position(GHashTable *ht, gchar *prefix, | ||
211 | G3DFloat *x, G3DFloat *y, G3DFloat *z) | ||
212 | { | ||
213 | gchar *path, *value; | ||
214 | |||
215 | /* x */ | ||
216 | path = g_strdup_printf("%s.x", prefix); | ||
217 | value = (gchar *)g_hash_table_lookup(ht, path); | ||
218 | if(value) | ||
219 | *x = strtof(value, NULL); | ||
220 | else | ||
221 | *x = 0.0; | ||
222 | g_free(path); | ||
223 | |||
224 | /* y */ | ||
225 | path = g_strdup_printf("%s.y", prefix); | ||
226 | value = (gchar *)g_hash_table_lookup(ht, path); | ||
227 | if(value) | ||
228 | *y = strtof(value, NULL); | ||
229 | else | ||
230 | *y = 0.0; | ||
231 | g_free(path); | ||
232 | |||
233 | /* z */ | ||
234 | path = g_strdup_printf("%s.z", prefix); | ||
235 | value = (gchar *)g_hash_table_lookup(ht, path); | ||
236 | if(value) | ||
237 | *z = strtof(value, NULL); | ||
238 | else | ||
239 | *z = 0.0; | ||
240 | g_free(path); | ||
241 | |||
242 | #if DEBUG > 0 | ||
243 | printf("D: position for '%s': %.2f, %.2f, %.2f\n", prefix, *x, *y, *z); | ||
244 | #endif | ||
245 | |||
246 | return TRUE; | ||
247 | } | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h new file mode 100644 index 0000000..3c8b972 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h | |||
@@ -0,0 +1,35 @@ | |||
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_AR_CARINI_H | ||
24 | #define _IMP_AR_CARINI_H | ||
25 | |||
26 | #include <glib.h> | ||
27 | |||
28 | GHashTable *ar_carini_load(void); | ||
29 | void ar_carini_free(GHashTable *ht); | ||
30 | G3DFloat ar_carini_get_float(GHashTable *ht, gchar *path); | ||
31 | gboolean ar_carini_get_position(GHashTable *ht, gchar *prefix, | ||
32 | G3DFloat *x, G3DFloat *y, G3DFloat *z); | ||
33 | |||
34 | #endif /* _IMP_AR_CARINI_H */ | ||
35 | |||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c new file mode 100644 index 0000000..90703f4 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c | |||
@@ -0,0 +1,161 @@ | |||
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 | #include <glib.h> | ||
26 | #include <g3d/stream.h> | ||
27 | |||
28 | #include "imp_ar.h" | ||
29 | |||
30 | #define AR_FLAG_COPIED 0x80 | ||
31 | #define AR_FLAG_COMPRESS 0x40 | ||
32 | |||
33 | guint8 *ar_decompress_chunk(guint8 *src, guint16 srcsize, guint16 *dstsize) | ||
34 | { | ||
35 | guint8 *dst = NULL, bit = 16; | ||
36 | gint32 i, j = 0, k, pos, size; | ||
37 | guint16 cmd; | ||
38 | |||
39 | #if DEBUG > 2 | ||
40 | printf("D: decompressing %d bytes chunk\n", srcsize); | ||
41 | #endif | ||
42 | |||
43 | if(src[0] == AR_FLAG_COPIED) | ||
44 | { | ||
45 | *dstsize = srcsize - 1; | ||
46 | dst = g_new0(guint8, *dstsize); | ||
47 | memcpy(dst, src + 1, *dstsize); | ||
48 | return dst; | ||
49 | } | ||
50 | |||
51 | *dstsize = 0; | ||
52 | cmd = (src[1] << 8) + src[2]; | ||
53 | for(i = 3; i < srcsize;) | ||
54 | { | ||
55 | if(bit == 0) | ||
56 | { | ||
57 | /* get new command */ | ||
58 | cmd = (src[i] << 8) + src[i + 1]; | ||
59 | i += 2; | ||
60 | bit = 16; | ||
61 | } | ||
62 | |||
63 | if(cmd & 0x8000) | ||
64 | { | ||
65 | pos = (src[i] << 4) + (src[i + 1] >> 4); | ||
66 | i ++; | ||
67 | if(pos != 0) | ||
68 | { | ||
69 | /* copy known chunk */ | ||
70 | size = (src[i] & 0xF) + 3; | ||
71 | *dstsize += size; | ||
72 | dst = g_realloc(dst, *dstsize); | ||
73 | i ++; | ||
74 | for(k = 0; k < size; k ++) | ||
75 | dst[j + k] = dst[j - pos + k]; | ||
76 | j += size; | ||
77 | } | ||
78 | else | ||
79 | { | ||
80 | /* RLE style... */ | ||
81 | size = (src[i] << 8) + src[i + 1] + 16; | ||
82 | *dstsize += size; | ||
83 | dst = g_realloc(dst, *dstsize); | ||
84 | i += 2; | ||
85 | for(k = 0; k < size; k ++) | ||
86 | dst[j + k] = src[i]; | ||
87 | i ++; | ||
88 | j += size; | ||
89 | } | ||
90 | } | ||
91 | else | ||
92 | { | ||
93 | /* plain copy */ | ||
94 | *dstsize += 1; | ||
95 | dst = g_realloc(dst, *dstsize); | ||
96 | dst[j] = src[i]; | ||
97 | i ++; | ||
98 | j ++; | ||
99 | } | ||
100 | |||
101 | cmd <<= 1; | ||
102 | bit --; | ||
103 | } | ||
104 | |||
105 | return dst; | ||
106 | } | ||
107 | |||
108 | gboolean ar_decompress_to_file(G3DStream *stream, ArDirEntry *dirent) | ||
109 | { | ||
110 | FILE *o; | ||
111 | gchar cmd; | ||
112 | guint32 size; | ||
113 | guint16 srcsize, dstsize; | ||
114 | guint8 *src, *dst; | ||
115 | |||
116 | o = fopen(dirent->name, "wb"); | ||
117 | if(o == NULL) { | ||
118 | g_warning("failed to write to '%s'", dirent->name); | ||
119 | return FALSE; | ||
120 | } | ||
121 | |||
122 | /* seek to file start */ | ||
123 | g3d_stream_seek(stream, dirent->offset, G_SEEK_SET); | ||
124 | |||
125 | /* skip tags */ | ||
126 | do { | ||
127 | cmd = g3d_stream_read_int8(stream); | ||
128 | if(cmd != 'D') { | ||
129 | size = g3d_stream_read_int32_le(stream); | ||
130 | g3d_stream_skip(stream, size); | ||
131 | } | ||
132 | } while(cmd != 'D'); | ||
133 | |||
134 | #if DEBUG > 2 | ||
135 | printf("D: starting decompression part\n"); | ||
136 | #endif | ||
137 | |||
138 | /* decompress stuff */ | ||
139 | while(1) { | ||
140 | srcsize = g3d_stream_read_int16_le(stream); | ||
141 | if(srcsize == 0) | ||
142 | break; | ||
143 | |||
144 | src = g_new0(guint8, srcsize); | ||
145 | g3d_stream_read(stream, src, srcsize); | ||
146 | dst = ar_decompress_chunk(src, srcsize, &dstsize); | ||
147 | |||
148 | if(dstsize > 0) { | ||
149 | fwrite(dst, 1, dstsize, o); | ||
150 | g_free(dst); | ||
151 | } | ||
152 | |||
153 | g_free(src); | ||
154 | } | ||
155 | |||
156 | fclose(o); | ||
157 | |||
158 | return TRUE; | ||
159 | } | ||
160 | |||
161 | |||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h new file mode 100644 index 0000000..ad203a3 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h | |||
@@ -0,0 +1,30 @@ | |||
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_AR_DECOMPRESS_H | ||
24 | #define _IMP_AR_DECOMPRESS_H | ||
25 | |||
26 | #include <g3d/stream.h> | ||
27 | |||
28 | gboolean ar_decompress_to_file(G3DStream *stream, ArDirEntry *dirent); | ||
29 | |||
30 | #endif /* _IMP_AR_DECOMPRESS_H */ | ||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c new file mode 100644 index 0000000..6b2eff6 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c | |||
@@ -0,0 +1,446 @@ | |||
1 | /* $Id$ */ | ||
2 | |||
3 | /* | ||
4 | libg3d - 3D object loading library | ||
5 | |||
6 | Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de> | ||
7 | |||
8 | This library is free software; you can redistribute it and/or | ||
9 | modify it under the terms of the GNU Lesser General Public | ||
10 | License as published by the Free Software Foundation; either | ||
11 | version 2.1 of the License, or (at your option) any later version. | ||
12 | |||
13 | This library is distributed in the hope that it will be useful, | ||
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
16 | Lesser General Public License for more details. | ||
17 | |||
18 | You should have received a copy of the GNU Lesser General Public | ||
19 | License along with this library; if not, write to the Free Software | ||
20 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | */ | ||
22 | |||
23 | #include <g3d/types.h> | ||
24 | #include <g3d/stream.h> | ||
25 | #include <g3d/texture.h> | ||
26 | #include <g3d/material.h> | ||
27 | #include <g3d/iff.h> | ||
28 | |||
29 | gchar *ar_dof_read_string(G3DStream *stream, gint32 *dlen) | ||
30 | { | ||
31 | gint32 len; | ||
32 | gchar *text; | ||
33 | |||
34 | len = g3d_stream_read_int16_le(stream); | ||
35 | *dlen -= 2; | ||
36 | |||
37 | text = g_new0(gchar, len + 1); | ||
38 | g3d_stream_read(stream, text, len); | ||
39 | *dlen -= len; | ||
40 | |||
41 | return text; | ||
42 | } | ||
43 | |||
44 | G3DMaterial *ar_dof_load_mat(G3DContext *context, G3DModel *model, | ||
45 | G3DStream *stream) | ||
46 | { | ||
47 | G3DMaterial *material; | ||
48 | gint32 id, len = 0, dlen, i, ntex, trans = 0, blend = 0; | ||
49 | gchar *tmp; | ||
50 | |||
51 | id = g3d_stream_read_int32_be(stream); | ||
52 | if(id != G3D_IFF_MKID('M','A','T','0')) | ||
53 | return NULL; | ||
54 | |||
55 | material = g3d_material_new(); | ||
56 | |||
57 | dlen = g3d_stream_read_int32_le(stream); | ||
58 | do { | ||
59 | id = g3d_stream_read_int32_be(stream); | ||
60 | if(id != G3D_IFF_MKID('M','E','N','D')) | ||
61 | len = g3d_stream_read_int32_le(stream); | ||
62 | |||
63 | switch(id) { | ||
64 | case G3D_IFF_MKID('M','E','N','D'): | ||
65 | break; | ||
66 | |||
67 | case G3D_IFF_MKID('M','H','D','R'): | ||
68 | material->name = ar_dof_read_string(stream, &dlen); | ||
69 | tmp = ar_dof_read_string(stream, &dlen); | ||
70 | g_free(tmp); | ||
71 | break; | ||
72 | |||
73 | case G3D_IFF_MKID('M','C','O','L'): | ||
74 | /* ambient */ | ||
75 | material->r = g3d_stream_read_float_le(stream); | ||
76 | material->g = g3d_stream_read_float_le(stream); | ||
77 | material->b = g3d_stream_read_float_le(stream); | ||
78 | material->a = g3d_stream_read_float_le(stream); | ||
79 | dlen -= 16; | ||
80 | /* diffuse */ | ||
81 | g3d_stream_skip(stream, 16); | ||
82 | dlen -= 16; | ||
83 | /* specular */ | ||
84 | material->specular[0] = g3d_stream_read_float_le(stream); | ||
85 | material->specular[1] = g3d_stream_read_float_le(stream); | ||
86 | material->specular[2] = g3d_stream_read_float_le(stream); | ||
87 | material->specular[3] = g3d_stream_read_float_le(stream); | ||
88 | dlen -= 16; | ||
89 | /* emission */ | ||
90 | g3d_stream_skip(stream, 16); | ||
91 | dlen -= 16; | ||
92 | /* shininess */ | ||
93 | material->shininess = g3d_stream_read_float_le(stream); | ||
94 | dlen -= 4; | ||
95 | break; | ||
96 | |||
97 | case G3D_IFF_MKID('M','T','E','X'): | ||
98 | ntex = g3d_stream_read_int32_le(stream); | ||
99 | dlen -= 4; | ||
100 | for(i = 0; i < ntex; i ++) { | ||
101 | tmp = ar_dof_read_string(stream, &dlen); | ||
102 | if(i == 0) { | ||
103 | material->tex_image = | ||
104 | g3d_texture_load_cached(context, model, tmp); | ||
105 | if(material->tex_image) | ||
106 | material->tex_image->tex_id = g_str_hash(tmp); | ||
107 | } | ||
108 | g_free(tmp); | ||
109 | } | ||
110 | break; | ||
111 | |||
112 | case G3D_IFF_MKID('M','T','R','A'): | ||
113 | /* transparency */ | ||
114 | trans = g3d_stream_read_int32_le(stream); | ||
115 | /* blend mode */ | ||
116 | blend = g3d_stream_read_int32_le(stream); | ||
117 | |||
118 | printf("D: MTRA: %s: trans: 0x%04x, blend: 0x%04x\n", | ||
119 | (material->name ? material->name : "unnamed"), | ||
120 | trans, blend); | ||
121 | |||
122 | dlen -= 8; | ||
123 | break; | ||
124 | |||
125 | case G3D_IFF_MKID('M','C','F','L'): | ||
126 | /* creation flags */ | ||
127 | g3d_stream_read_int32_le(stream); | ||
128 | dlen -= 4; | ||
129 | break; | ||
130 | |||
131 | case G3D_IFF_MKID('M','U','V','W'): | ||
132 | /* u offset */ | ||
133 | g3d_stream_read_int32_le(stream); | ||
134 | /* v offset */ | ||
135 | g3d_stream_read_int32_le(stream); | ||
136 | dlen -= 8; | ||
137 | |||
138 | /* u tiling */ | ||
139 | g3d_stream_read_int32_le(stream); | ||
140 | /* v tiling */ | ||
141 | g3d_stream_read_int32_le(stream); | ||
142 | dlen -= 8; | ||
143 | |||
144 | /* angle */ | ||
145 | g3d_stream_read_float_le(stream); | ||
146 | /* blur */ | ||
147 | g3d_stream_read_float_le(stream); | ||
148 | /* blur offset */ | ||
149 | g3d_stream_read_int32_le(stream); | ||
150 | dlen -= 12; | ||
151 | break; | ||
152 | |||
153 | default: | ||
154 | g3d_stream_skip(stream, len); | ||
155 | dlen -= len; | ||
156 | break; | ||
157 | } | ||
158 | } | ||
159 | while((dlen > 0) && (id != G3D_IFF_MKID('M','E','N','D'))); | ||
160 | |||
161 | if(material->tex_image != NULL) { | ||
162 | if(blend == 1) | ||
163 | material->tex_image->tex_env = G3D_TEXENV_BLEND; | ||
164 | else | ||
165 | material->tex_image->tex_env = G3D_TEXENV_DECAL; | ||
166 | } | ||
167 | |||
168 | return material; | ||
169 | } | ||
170 | |||
171 | G3DObject *ar_dof_load_obj(G3DContext *context, G3DModel *model, | ||
172 | G3DStream *stream) | ||
173 | { | ||
174 | G3DObject *object, *pobj; | ||
175 | G3DFace *face; | ||
176 | G3DMaterial *material; | ||
177 | GSList *item; | ||
178 | gint32 id, len = 0, dlen, nverts, ntver, nnorm, nind, i, j, index; | ||
179 | G3DFloat *tex_vertices = NULL, *normals = NULL; | ||
180 | |||
181 | id = g3d_stream_read_int32_be(stream); | ||
182 | dlen = g3d_stream_read_int32_le(stream); | ||
183 | |||
184 | if(id != G3D_IFF_MKID('G','O','B','1')) { | ||
185 | g3d_stream_skip(stream, dlen); | ||
186 | return NULL; | ||
187 | } | ||
188 | |||
189 | object = g_new0(G3DObject, 1); | ||
190 | object->name = g_strdup_printf("object @ 0x%08x", | ||
191 | (guint32)g3d_stream_tell(stream)); | ||
192 | |||
193 | /* parent object for material references */ | ||
194 | pobj = (G3DObject *)g_slist_nth_data(model->objects, 0); | ||
195 | |||
196 | /* default material */ | ||
197 | material = (G3DMaterial *)g_slist_nth_data(model->materials, 0); | ||
198 | |||
199 | do { | ||
200 | id = g3d_stream_read_int32_be(stream); | ||
201 | if(id != G3D_IFF_MKID('G','E','N','D')) | ||
202 | len = g3d_stream_read_int32_le(stream); | ||
203 | |||
204 | switch(id) { | ||
205 | case G3D_IFF_MKID('G','E','N','D'): | ||
206 | /* end of object */ | ||
207 | break; | ||
208 | |||
209 | case G3D_IFF_MKID('G','H','D','R'): | ||
210 | /* object header */ | ||
211 | /* flags */ | ||
212 | i = g3d_stream_read_int32_le(stream); | ||
213 | printf("D: GHDR: flags = 0x%04X\n", i); | ||
214 | /* paint flags */ | ||
215 | i = g3d_stream_read_int32_le(stream); | ||
216 | printf("D: GHDR: paint flags = 0x%04X\n", i); | ||
217 | |||
218 | /* material ref */ | ||
219 | i = g3d_stream_read_int32_le(stream); | ||
220 | material = g_slist_nth_data(pobj->materials, i); | ||
221 | if(material == NULL) | ||
222 | material = (G3DMaterial *)g_slist_nth_data( | ||
223 | model->materials, 0); | ||
224 | |||
225 | dlen -= 12; | ||
226 | break; | ||
227 | |||
228 | case G3D_IFF_MKID('V','E','R','T'): | ||
229 | /* vertices */ | ||
230 | nverts = g3d_stream_read_int32_le(stream); | ||
231 | |||
232 | #if DEBUG > 2 | ||
233 | printf("D: %d vertices\n", nverts); | ||
234 | #endif | ||
235 | |||
236 | dlen -= 4; | ||
237 | if(nverts > 0) { | ||
238 | object->vertex_count = nverts; | ||
239 | object->vertex_data = g_new0(G3DFloat, nverts * 3); | ||
240 | for(i = 0; i < nverts; i ++) { | ||
241 | for(j = 0; j < 3; j ++) | ||
242 | object->vertex_data[i * 3 + j] = | ||
243 | g3d_stream_read_float_le(stream); | ||
244 | dlen -= 12; | ||
245 | } | ||
246 | } | ||
247 | break; | ||
248 | |||
249 | case G3D_IFF_MKID('N', 'O','R','M'): | ||
250 | /* normals */ | ||
251 | nnorm = g3d_stream_read_int32_le(stream); | ||
252 | normals = g_new0(G3DFloat, nnorm * 3); | ||
253 | dlen -= 4; | ||
254 | for(i = 0; i < nnorm; i ++) { | ||
255 | for(j = 0; j < 3; j ++) | ||
256 | normals[i * 3 + j] = g3d_stream_read_float_le(stream); | ||
257 | dlen -= 12; | ||
258 | } | ||
259 | break; | ||
260 | |||
261 | case G3D_IFF_MKID('T', 'V','E','R'): | ||
262 | /* texture vertices */ | ||
263 | ntver = g3d_stream_read_int32_le(stream); | ||
264 | tex_vertices = g_new0(G3DFloat, ntver * 2); | ||
265 | dlen -= 4; | ||
266 | |||
267 | #if DEBUG > 2 | ||
268 | printf("D: %d texture vertices @ 0x%08x\n", ntver, | ||
269 | (guint32)g3d_stream_tell(stream) - 12); | ||
270 | #endif | ||
271 | |||
272 | for(i = 0; (i < ntver) && (len > 0); i ++) { | ||
273 | tex_vertices[i * 2 + 0] = g3d_stream_read_float_le(stream); | ||
274 | tex_vertices[i * 2 + 1] = | ||
275 | 1.0 - g3d_stream_read_float_le(stream); | ||
276 | dlen -= 8; | ||
277 | } | ||
278 | break; | ||
279 | |||
280 | case G3D_IFF_MKID('B','R','S','T'): | ||
281 | /* bursts */ | ||
282 | i = g3d_stream_read_int32_le(stream); | ||
283 | dlen -= 4; | ||
284 | g3d_stream_skip(stream, i * 4); /* burstStart */ | ||
285 | g3d_stream_skip(stream, i * 4); /* burstCount */ | ||
286 | g3d_stream_skip(stream, i * 4); /* burstMtlID */ | ||
287 | g3d_stream_skip(stream, i * 4); /* burstVperP */ | ||
288 | dlen -= (4 * 4 * i); | ||
289 | break; | ||
290 | |||
291 | case G3D_IFF_MKID('V','C','O','L'): | ||
292 | /* vertex colors */ | ||
293 | i = g3d_stream_read_int32_le(stream); | ||
294 | dlen -= 4; | ||
295 | g3d_stream_skip(stream, i * 4 * 3); | ||
296 | dlen -= (i * 4 * 3); | ||
297 | break; | ||
298 | |||
299 | case G3D_IFF_MKID('I','N','D','I'): | ||
300 | /* indices */ | ||
301 | nind = g3d_stream_read_int32_le(stream); | ||
302 | dlen -= 4; | ||
303 | len -= 4; | ||
304 | |||
305 | #if DEBUG > 2 | ||
306 | printf("D: %d indices in %d bytes\n", nind, len); | ||
307 | #endif | ||
308 | |||
309 | for(i = 0; i < nind; i += 3) { | ||
310 | face = g_new0(G3DFace, 1); | ||
311 | face->material = material; | ||
312 | face->vertex_count = 3; | ||
313 | face->vertex_indices = g_new0(guint32, 3); | ||
314 | |||
315 | for(j = 0; j < 3; j ++) | ||
316 | face->vertex_indices[j] = | ||
317 | g3d_stream_read_int16_le(stream); | ||
318 | dlen -= 6; | ||
319 | len -= 6; | ||
320 | |||
321 | object->faces = g_slist_append(object->faces, face); | ||
322 | } | ||
323 | break; | ||
324 | |||
325 | default: | ||
326 | #if DEBUG > 0 | ||
327 | printf("D: skipping tag '%c%c%c%c @ 0x%08x'\n", | ||
328 | (id << 24) & 0xFF, (id << 16) & 0xFF, | ||
329 | (id << 8) & 0xFF, id & 0xFF, | ||
330 | (guint32)g3d_stream_tell(stream)); | ||
331 | #endif | ||
332 | g3d_stream_skip(stream, len); | ||
333 | dlen -= len; | ||
334 | break; | ||
335 | } | ||
336 | } while((dlen > 0) && (id != G3D_IFF_MKID('G','E','N','D'))); | ||
337 | |||
338 | /* fix faces with normals and texture vertices */ | ||
339 | for(item = object->faces; item != NULL; item = item->next) { | ||
340 | face = (G3DFace *)item->data; | ||
341 | |||
342 | if(tex_vertices != NULL) { | ||
343 | face->tex_image = material->tex_image; | ||
344 | face->tex_vertex_count = 3; | ||
345 | face->tex_vertex_data = g_new0(G3DFloat, 3 * 2); | ||
346 | for(j = 0; j < 3; j ++) { | ||
347 | index = face->vertex_indices[j]; | ||
348 | face->tex_vertex_data[j * 2 + 0] = tex_vertices[index * 2 + 0]; | ||
349 | face->tex_vertex_data[j * 2 + 1] = tex_vertices[index * 2 + 1]; | ||
350 | } | ||
351 | if(face->tex_image != NULL) | ||
352 | face->flags |= G3D_FLAG_FAC_TEXMAP; | ||
353 | } | ||
354 | |||
355 | if(normals != NULL) { | ||
356 | face->normals = g_new0(G3DFloat, 3 * 3); | ||
357 | for(j = 0; j < 3; j ++) { | ||
358 | index = face->vertex_indices[j]; | ||
359 | face->normals[j * 3 + 0] = normals[index * 3 + 0]; | ||
360 | face->normals[j * 3 + 1] = normals[index * 3 + 1]; | ||
361 | face->normals[j * 3 + 2] = normals[index * 3 + 2]; | ||
362 | } | ||
363 | face->flags |= G3D_FLAG_FAC_NORMALS; | ||
364 | } | ||
365 | } | ||
366 | |||
367 | /* cleanup */ | ||
368 | if(tex_vertices != NULL) | ||
369 | g_free(tex_vertices); | ||
370 | |||
371 | if(normals != NULL) | ||
372 | g_free(normals); | ||
373 | |||
374 | return object; | ||
375 | } | ||
376 | |||
377 | G3DObject *ar_dof_load(G3DContext *context, G3DModel *model, | ||
378 | G3DStream *stream) | ||
379 | { | ||
380 | gint32 id, dlen, len = 0, nmat, nobj, i; | ||
381 | G3DObject *object, *cobj; | ||
382 | G3DMaterial *material; | ||
383 | |||
384 | /* file is little-endian, but read IDs as big-endian to use | ||
385 | * G3D_IFF_MKID to compare */ | ||
386 | |||
387 | id = g3d_stream_read_int32_be(stream); | ||
388 | if(id != G3D_IFF_MKID('D','O','F','1')) { | ||
389 | g_warning("%s is not a DOF1 file\n", stream->uri); | ||
390 | return NULL; | ||
391 | } | ||
392 | dlen = g3d_stream_read_int32_le(stream); | ||
393 | |||
394 | object = g_new0(G3DObject, 1); | ||
395 | object->name = g_strdup(stream->uri); | ||
396 | model->objects = g_slist_append(model->objects, object); | ||
397 | |||
398 | do { | ||
399 | id = g3d_stream_read_int32_be(stream); | ||
400 | if(id != G3D_IFF_MKID('E','D','O','F')) | ||
401 | len = g3d_stream_read_int32_le(stream); | ||
402 | dlen -= 8; | ||
403 | |||
404 | switch(id) { | ||
405 | case G3D_IFF_MKID('E','D','O','F'): | ||
406 | /* end of DOF */ | ||
407 | break; | ||
408 | |||
409 | case G3D_IFF_MKID('M','A','T','S'): | ||
410 | nmat = g3d_stream_read_int32_le(stream); | ||
411 | for(i = 0; i < nmat; i ++) { | ||
412 | material = ar_dof_load_mat(context, model, stream); | ||
413 | if(material) | ||
414 | object->materials = g_slist_append(object->materials, | ||
415 | material); | ||
416 | } | ||
417 | dlen -= len; | ||
418 | break; | ||
419 | |||
420 | case G3D_IFF_MKID('G','E','O','B'): | ||
421 | nobj = g3d_stream_read_int32_le(stream); | ||
422 | for(i = 0; i < nobj; i ++) { | ||
423 | cobj = ar_dof_load_obj(context, model, stream); | ||
424 | if(cobj) | ||
425 | object->objects = | ||
426 | g_slist_append(object->objects, cobj); | ||
427 | } | ||
428 | dlen -= len; | ||
429 | break; | ||
430 | |||
431 | default: | ||
432 | g_warning("DOF: unknown ID '%c%c%c%c' @ 0x%08x", | ||
433 | (id >> 24) & 0xFF, (id >> 16) & 0xFF, | ||
434 | (id >> 8) & 0xFF, id & 0xFF, | ||
435 | (guint32)g3d_stream_tell(stream) - 8); | ||
436 | g3d_stream_skip(stream, len); | ||
437 | dlen -= len; | ||
438 | break; | ||
439 | } | ||
440 | } while((dlen > 0) && | ||
441 | (id != G3D_IFF_MKID('E','D','O','F')) && | ||
442 | (!g3d_stream_eof(stream))); | ||
443 | |||
444 | return object; | ||
445 | } | ||
446 | |||
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h new file mode 100644 index 0000000..c3aa61a --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.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_AR_DOF_H | ||
24 | #define _IMP_AR_DOF_H | ||
25 | |||
26 | #include <glib.h> | ||
27 | #include <g3d/types.h> | ||
28 | #include <g3d/stream.h> | ||
29 | |||
30 | G3DObject *ar_dof_load(G3DContext *context, G3DModel *model, | ||
31 | G3DStream *stream); | ||
32 | |||
33 | #endif | ||