aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-03-29 02:16:55 +1000
committerDavid Walter Seikel2016-03-29 02:16:55 +1000
commitcb3716ffb584fe0f593b6f1669a8efdba1305104 (patch)
tree5d1ebc4b6fc17b30f4b34e7e64a2d9514893459b /src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2
parentAdd Prosody build script. (diff)
downloadSledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.zip
SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.gz
SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.bz2
SledjHamr-cb3716ffb584fe0f593b6f1669a8efdba1305104.tar.xz
Added my version of libg3d and friends.
Diffstat (limited to '')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.c82
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.h42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_nodes.h42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.c78
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h103
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.c647
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h56
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_types.h88
11 files changed, 2200 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile
new file mode 100644
index 0000000..a0d2345
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile
@@ -0,0 +1,518 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_vrml2/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_vrml2
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_vrml2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_vrml2_la_OBJECTS = imp_vrml2.lo imp_vrml_read.lo \
59 imp_vrml2_types.lo
60imp_vrml2_la_OBJECTS = $(am_imp_vrml2_la_OBJECTS)
61#am_imp_vrml2_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_vrml2_la_SOURCES)
75DIST_SOURCES = $(imp_vrml2_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
80AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
81AR = ar
82AS = as
83AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
84AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
85AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
86AWK = gawk
87CC = gcc
88CCDEPMODE = depmode=gcc3
89CFLAGS = -g -O2
90CPP = gcc -E
91CPPFLAGS =
92CXX = g++
93CXXCPP = g++ -E
94CXXDEPMODE = depmode=gcc3
95CXXFLAGS = -g -O2
96CYGPATH_W = echo
97DBG_CFLAGS = -O2
98DEBUG = 0
99DEFS = -DHAVE_CONFIG_H
100DEPDIR = .deps
101DLLTOOL = dlltool
102ECHO = echo
103ECHO_C =
104ECHO_N = -n
105ECHO_T =
106EGREP = /bin/grep -E
107EXEEXT =
108F77 =
109FFLAGS =
110GDKPIXBUF_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
111GDKPIXBUF_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
112GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
113GLIB_GENMARSHAL = glib-genmarshal
114GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
115GLIB_MKENUMS = glib-mkenums
116GOBJECT_QUERY = gobject-query
117GREP = /bin/grep
118GTKDOC_CHECK = /usr/bin/gtkdoc-check
119GTK_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
120GTK_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
121HTML_DIR = ${datadir}/gtk-doc/html
122INSTALL = /usr/bin/install -c
123INSTALL_DATA = ${INSTALL} -m 644
124INSTALL_PROGRAM = ${INSTALL}
125INSTALL_SCRIPT = ${INSTALL}
126INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
127LDFLAGS =
128LEX = flex
129LEXLIB = -lfl
130LEX_OUTPUT_ROOT = lex.yy
131LIBGSF_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
132LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
133LIBOBJS =
134LIBS = -lm
135LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
136LIBXML2_CFLAGS = -I/usr/include/libxml2
137LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
138LN_S = ln -s
139LTLIBOBJS =
140LTVERSION = 0:8:0
141MAGIC_LIBS = -lmagic
142MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
143MATH_LIBS = -lm
144MKDIR_P = /bin/mkdir -p
145OBJDUMP = objdump
146OBJEXT = o
147PACKAGE = libg3d
148PACKAGE_BUGREPORT =
149PACKAGE_NAME =
150PACKAGE_STRING =
151PACKAGE_TARNAME =
152PACKAGE_VERSION =
153PATH_SEPARATOR = :
154PKG_CONFIG = /usr/bin/pkg-config
155PLUGINS_LDFLAGS = -avoid-version -export-dynamic
156RANLIB = ranlib
157SET_MAKE =
158SHELL = /bin/bash
159STRIP = strip
160VERSION = 0.0.8
161XML2_CONFIG = /usr/bin/xml2-config
162XML_CPPFLAGS = -I/usr/include/libxml2
163XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
164Z_CFLAGS =
165Z_LIBS = -lz
166abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2
168abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
170ac_ct_CC = gcc
171ac_ct_CXX = g++
172ac_ct_F77 =
173am__include = include
174am__leading_dot = .
175am__quote =
176am__tar = ${AMTAR} chof - "$$tardir"
177am__untar = ${AMTAR} xf -
178bindir = ${exec_prefix}/bin
179build = x86_64-unknown-linux-gnu
180build_alias =
181build_cpu = x86_64
182build_os = linux-gnu
183build_vendor = unknown
184builddir = .
185datadir = ${datarootdir}
186datarootdir = ${prefix}/share
187docdir = ${datarootdir}/doc/${PACKAGE}
188dvidir = ${docdir}
189exec_prefix = ${prefix}
190host = x86_64-unknown-linux-gnu
191host_alias =
192host_cpu = x86_64
193host_os = linux-gnu
194host_vendor = unknown
195htmldir = ${docdir}
196includedir = ${prefix}/include
197infodir = ${datarootdir}/info
198install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
199libdir = ${exec_prefix}/lib
200libexecdir = ${exec_prefix}/libexec
201localedir = ${datarootdir}/locale
202localstatedir = ${prefix}/var
203mandir = ${datarootdir}/man
204mkdir_p = /bin/mkdir -p
205oldincludedir = /usr/include
206pdfdir = ${docdir}
207prefix = /usr/local
208program_transform_name = s,x,x,
209psdir = ${docdir}
210sbindir = ${exec_prefix}/sbin
211sharedstatedir = ${prefix}/com
212srcdir = .
213sysconfdir = ${prefix}/etc
214target_alias =
215top_builddir = ../../..
216top_srcdir = ../../..
217pluginimpdir = $(pkglibdir)/plugins/import
218#pluginimp_LTLIBRARIES = imp_vrml2.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 -O2 -DDEBUG=0 \
223 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_vrml2_la_SOURCES = imp_vrml2.c imp_vrml2.h \
231 imp_vrml_read.c imp_vrml_read.h \
232 imp_vrml_types.h \
233 imp_vrml2_types.c imp_vrml2_types.h \
234 imp_vrml2_nodes.h
235
236imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
237all: all-am
238
239.SUFFIXES:
240.SUFFIXES: .c .lo .o .obj
241$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
242 @for dep in $?; do \
243 case '$(am__configure_deps)' in \
244 *$$dep*) \
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
246 && exit 0; \
247 exit 1;; \
248 esac; \
249 done; \
250 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile'; \
251 cd $(top_srcdir) && \
252 $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile
253.PRECIOUS: Makefile
254Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
255 @case '$?' in \
256 *config.status*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
258 *) \
259 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
260 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
261 esac;
262
263$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265
266$(top_srcdir)/configure: $(am__configure_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268$(ACLOCAL_M4): $(am__aclocal_m4_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
271 @$(NORMAL_INSTALL)
272 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
273 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
274 if test -f $$p; then \
275 f=$(am__strip_dir) \
276 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
277 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
278 else :; fi; \
279 done
280
281uninstall-pluginimpLTLIBRARIES:
282 @$(NORMAL_UNINSTALL)
283 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
284 p=$(am__strip_dir) \
285 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
286 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
287 done
288
289clean-pluginimpLTLIBRARIES:
290 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
291 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
292 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
293 test "$$dir" != "$$p" || dir=.; \
294 echo "rm -f \"$${dir}/so_locations\""; \
295 rm -f "$${dir}/so_locations"; \
296 done
297imp_vrml2.la: $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_DEPENDENCIES)
298 $(LINK) $(am_imp_vrml2_la_rpath) $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_LIBADD) $(LIBS)
299
300mostlyclean-compile:
301 -rm -f *.$(OBJEXT)
302
303distclean-compile:
304 -rm -f *.tab.c
305
306include ./$(DEPDIR)/imp_vrml2.Plo
307include ./$(DEPDIR)/imp_vrml2_types.Plo
308include ./$(DEPDIR)/imp_vrml_read.Plo
309
310.c.o:
311 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
312 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313# source='$<' object='$@' libtool=no \
314# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
315# $(COMPILE) -c $<
316
317.c.obj:
318 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
319 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320# source='$<' object='$@' libtool=no \
321# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
322# $(COMPILE) -c `$(CYGPATH_W) '$<'`
323
324.c.lo:
325 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
327# source='$<' object='$@' libtool=yes \
328# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
329# $(LTCOMPILE) -c -o $@ $<
330
331mostlyclean-libtool:
332 -rm -f *.lo
333
334clean-libtool:
335 -rm -rf .libs _libs
336
337ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 mkid -fID $$unique
345tags: TAGS
346
347TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
348 $(TAGS_FILES) $(LISP)
349 tags=; \
350 here=`pwd`; \
351 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352 unique=`for i in $$list; do \
353 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354 done | \
355 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
358 test -n "$$unique" || unique=$$empty_fix; \
359 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
360 $$tags $$unique; \
361 fi
362ctags: CTAGS
363CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
364 $(TAGS_FILES) $(LISP)
365 tags=; \
366 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
367 unique=`for i in $$list; do \
368 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
369 done | \
370 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
371 END { if (nonempty) { for (i in files) print i; }; }'`; \
372 test -z "$(CTAGS_ARGS)$$tags$$unique" \
373 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
374 $$tags $$unique
375
376GTAGS:
377 here=`$(am__cd) $(top_builddir) && pwd` \
378 && cd $(top_srcdir) \
379 && gtags -i $(GTAGS_ARGS) $$here
380
381distclean-tags:
382 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
383
384distdir: $(DISTFILES)
385 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 list='$(DISTFILES)'; \
388 dist_files=`for file in $$list; do echo $$file; done | \
389 sed -e "s|^$$srcdirstrip/||;t" \
390 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
391 case $$dist_files in \
392 */*) $(MKDIR_P) `echo "$$dist_files" | \
393 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
394 sort -u` ;; \
395 esac; \
396 for file in $$dist_files; do \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 if test -d $$d/$$file; then \
399 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
402 fi; \
403 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
404 else \
405 test -f $(distdir)/$$file \
406 || cp -p $$d/$$file $(distdir)/$$file \
407 || exit 1; \
408 fi; \
409 done
410check-am: all-am
411check: check-am
412all-am: Makefile $(LTLIBRARIES)
413installdirs:
414 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
415 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
416 done
417install: install-am
418install-exec: install-exec-am
419install-data: install-data-am
420uninstall: uninstall-am
421
422install-am: all-am
423 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
424
425installcheck: installcheck-am
426install-strip:
427 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
428 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
429 `test -z '$(STRIP)' || \
430 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
431mostlyclean-generic:
432
433clean-generic:
434
435distclean-generic:
436 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
437
438maintainer-clean-generic:
439 @echo "This command is intended for maintainers to use"
440 @echo "it deletes files that may require special tools to rebuild."
441clean: clean-am
442
443clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
444 mostlyclean-am
445
446distclean: distclean-am
447 -rm -rf ./$(DEPDIR)
448 -rm -f Makefile
449distclean-am: clean-am distclean-compile distclean-generic \
450 distclean-tags
451
452dvi: dvi-am
453
454dvi-am:
455
456html: html-am
457
458info: info-am
459
460info-am:
461
462install-data-am: install-pluginimpLTLIBRARIES
463
464install-dvi: install-dvi-am
465
466install-exec-am:
467
468install-html: install-html-am
469
470install-info: install-info-am
471
472install-man:
473
474install-pdf: install-pdf-am
475
476install-ps: install-ps-am
477
478installcheck-am:
479
480maintainer-clean: maintainer-clean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483maintainer-clean-am: distclean-am maintainer-clean-generic
484
485mostlyclean: mostlyclean-am
486
487mostlyclean-am: mostlyclean-compile mostlyclean-generic \
488 mostlyclean-libtool
489
490pdf: pdf-am
491
492pdf-am:
493
494ps: ps-am
495
496ps-am:
497
498uninstall-am: uninstall-pluginimpLTLIBRARIES
499
500.MAKE: install-am install-strip
501
502.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
503 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
504 distclean-compile distclean-generic distclean-libtool \
505 distclean-tags distdir dvi dvi-am html html-am info info-am \
506 install install-am install-data install-data-am install-dvi \
507 install-dvi-am install-exec install-exec-am install-html \
508 install-html-am install-info install-info-am install-man \
509 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
510 install-ps install-ps-am install-strip installcheck \
511 installcheck-am installdirs maintainer-clean \
512 maintainer-clean-generic mostlyclean mostlyclean-compile \
513 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
514 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
515
516# Tell versions [3.59,3.63) of GNU make to not export all variables.
517# Otherwise a system limit (for SysV at least) may be exceeded.
518.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.am
new file mode 100644
index 0000000..981cc62
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_vrml2.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_vrml2_la_SOURCES = imp_vrml2.c imp_vrml2.h \
22 imp_vrml_read.c imp_vrml_read.h \
23 imp_vrml_types.h \
24 imp_vrml2_types.c imp_vrml2_types.h \
25 imp_vrml2_nodes.h
26imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in
new file mode 100644
index 0000000..5c08daa
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/Makefile.in
@@ -0,0 +1,518 @@
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_vrml2
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_vrml2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_vrml2_la_OBJECTS = imp_vrml2.lo imp_vrml_read.lo \
59 imp_vrml2_types.lo
60imp_vrml2_la_OBJECTS = $(am_imp_vrml2_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_vrml2_la_rpath = -rpath $(pluginimpdir)
62DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
63depcomp = $(SHELL) $(top_srcdir)/config/depcomp
64am__depfiles_maybe = depfiles
65COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
66 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
67LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
68 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
69 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
70CCLD = $(CC)
71LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
72 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
73 $(LDFLAGS) -o $@
74SOURCES = $(imp_vrml2_la_SOURCES)
75DIST_SOURCES = $(imp_vrml2_la_SOURCES)
76ETAGS = etags
77CTAGS = ctags
78DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
79ACLOCAL = @ACLOCAL@
80AMTAR = @AMTAR@
81AR = @AR@
82AS = @AS@
83AUTOCONF = @AUTOCONF@
84AUTOHEADER = @AUTOHEADER@
85AUTOMAKE = @AUTOMAKE@
86AWK = @AWK@
87CC = @CC@
88CCDEPMODE = @CCDEPMODE@
89CFLAGS = @CFLAGS@
90CPP = @CPP@
91CPPFLAGS = @CPPFLAGS@
92CXX = @CXX@
93CXXCPP = @CXXCPP@
94CXXDEPMODE = @CXXDEPMODE@
95CXXFLAGS = @CXXFLAGS@
96CYGPATH_W = @CYGPATH_W@
97DBG_CFLAGS = @DBG_CFLAGS@
98DEBUG = @DEBUG@
99DEFS = @DEFS@
100DEPDIR = @DEPDIR@
101DLLTOOL = @DLLTOOL@
102ECHO = @ECHO@
103ECHO_C = @ECHO_C@
104ECHO_N = @ECHO_N@
105ECHO_T = @ECHO_T@
106EGREP = @EGREP@
107EXEEXT = @EXEEXT@
108F77 = @F77@
109FFLAGS = @FFLAGS@
110GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
111GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
112GLIB_CFLAGS = @GLIB_CFLAGS@
113GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
114GLIB_LIBS = @GLIB_LIBS@
115GLIB_MKENUMS = @GLIB_MKENUMS@
116GOBJECT_QUERY = @GOBJECT_QUERY@
117GREP = @GREP@
118GTKDOC_CHECK = @GTKDOC_CHECK@
119GTK_CFLAGS = @GTK_CFLAGS@
120GTK_LIBS = @GTK_LIBS@
121HTML_DIR = @HTML_DIR@
122INSTALL = @INSTALL@
123INSTALL_DATA = @INSTALL_DATA@
124INSTALL_PROGRAM = @INSTALL_PROGRAM@
125INSTALL_SCRIPT = @INSTALL_SCRIPT@
126INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
127LDFLAGS = @LDFLAGS@
128LEX = @LEX@
129LEXLIB = @LEXLIB@
130LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
131LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
132LIBGSF_LIBS = @LIBGSF_LIBS@
133LIBOBJS = @LIBOBJS@
134LIBS = @LIBS@
135LIBTOOL = @LIBTOOL@ --quiet
136LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
137LIBXML2_LIBS = @LIBXML2_LIBS@
138LN_S = @LN_S@
139LTLIBOBJS = @LTLIBOBJS@
140LTVERSION = @LTVERSION@
141MAGIC_LIBS = @MAGIC_LIBS@
142MAKEINFO = @MAKEINFO@
143MATH_LIBS = @MATH_LIBS@
144MKDIR_P = @MKDIR_P@
145OBJDUMP = @OBJDUMP@
146OBJEXT = @OBJEXT@
147PACKAGE = @PACKAGE@
148PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
149PACKAGE_NAME = @PACKAGE_NAME@
150PACKAGE_STRING = @PACKAGE_STRING@
151PACKAGE_TARNAME = @PACKAGE_TARNAME@
152PACKAGE_VERSION = @PACKAGE_VERSION@
153PATH_SEPARATOR = @PATH_SEPARATOR@
154PKG_CONFIG = @PKG_CONFIG@
155PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
156RANLIB = @RANLIB@
157SET_MAKE = @SET_MAKE@
158SHELL = @SHELL@
159STRIP = @STRIP@
160VERSION = @VERSION@
161XML2_CONFIG = @XML2_CONFIG@
162XML_CPPFLAGS = @XML_CPPFLAGS@
163XML_LIBS = @XML_LIBS@
164Z_CFLAGS = @Z_CFLAGS@
165Z_LIBS = @Z_LIBS@
166abs_builddir = @abs_builddir@
167abs_srcdir = @abs_srcdir@
168abs_top_builddir = @abs_top_builddir@
169abs_top_srcdir = @abs_top_srcdir@
170ac_ct_CC = @ac_ct_CC@
171ac_ct_CXX = @ac_ct_CXX@
172ac_ct_F77 = @ac_ct_F77@
173am__include = @am__include@
174am__leading_dot = @am__leading_dot@
175am__quote = @am__quote@
176am__tar = @am__tar@
177am__untar = @am__untar@
178bindir = @bindir@
179build = @build@
180build_alias = @build_alias@
181build_cpu = @build_cpu@
182build_os = @build_os@
183build_vendor = @build_vendor@
184builddir = @builddir@
185datadir = @datadir@
186datarootdir = @datarootdir@
187docdir = @docdir@
188dvidir = @dvidir@
189exec_prefix = @exec_prefix@
190host = @host@
191host_alias = @host_alias@
192host_cpu = @host_cpu@
193host_os = @host_os@
194host_vendor = @host_vendor@
195htmldir = @htmldir@
196includedir = @includedir@
197infodir = @infodir@
198install_sh = @install_sh@
199libdir = @libdir@
200libexecdir = @libexecdir@
201localedir = @localedir@
202localstatedir = @localstatedir@
203mandir = @mandir@
204mkdir_p = @mkdir_p@
205oldincludedir = @oldincludedir@
206pdfdir = @pdfdir@
207prefix = @prefix@
208program_transform_name = @program_transform_name@
209psdir = @psdir@
210sbindir = @sbindir@
211sharedstatedir = @sharedstatedir@
212srcdir = @srcdir@
213sysconfdir = @sysconfdir@
214target_alias = @target_alias@
215top_builddir = @top_builddir@
216top_srcdir = @top_srcdir@
217pluginimpdir = $(pkglibdir)/plugins/import
218@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_vrml2.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_vrml2_la_SOURCES = imp_vrml2.c imp_vrml2.h \
231 imp_vrml_read.c imp_vrml_read.h \
232 imp_vrml_types.h \
233 imp_vrml2_types.c imp_vrml2_types.h \
234 imp_vrml2_nodes.h
235
236imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
237all: all-am
238
239.SUFFIXES:
240.SUFFIXES: .c .lo .o .obj
241$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
242 @for dep in $?; do \
243 case '$(am__configure_deps)' in \
244 *$$dep*) \
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
246 && exit 0; \
247 exit 1;; \
248 esac; \
249 done; \
250 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile'; \
251 cd $(top_srcdir) && \
252 $(AUTOMAKE) --gnu plugins/import/imp_vrml2/Makefile
253.PRECIOUS: Makefile
254Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
255 @case '$?' in \
256 *config.status*) \
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
258 *) \
259 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
260 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
261 esac;
262
263$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265
266$(top_srcdir)/configure: $(am__configure_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268$(ACLOCAL_M4): $(am__aclocal_m4_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
271 @$(NORMAL_INSTALL)
272 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
273 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
274 if test -f $$p; then \
275 f=$(am__strip_dir) \
276 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
277 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
278 else :; fi; \
279 done
280
281uninstall-pluginimpLTLIBRARIES:
282 @$(NORMAL_UNINSTALL)
283 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
284 p=$(am__strip_dir) \
285 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
286 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
287 done
288
289clean-pluginimpLTLIBRARIES:
290 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
291 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
292 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
293 test "$$dir" != "$$p" || dir=.; \
294 echo "rm -f \"$${dir}/so_locations\""; \
295 rm -f "$${dir}/so_locations"; \
296 done
297imp_vrml2.la: $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_DEPENDENCIES)
298 $(LINK) $(am_imp_vrml2_la_rpath) $(imp_vrml2_la_OBJECTS) $(imp_vrml2_la_LIBADD) $(LIBS)
299
300mostlyclean-compile:
301 -rm -f *.$(OBJEXT)
302
303distclean-compile:
304 -rm -f *.tab.c
305
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml2.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml2_types.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml_read.Plo@am__quote@
309
310.c.o:
311@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
312@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
315@am__fastdepCC_FALSE@ $(COMPILE) -c $<
316
317.c.obj:
318@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
319@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
323
324.c.lo:
325@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
326@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
327@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
328@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
329@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
330
331mostlyclean-libtool:
332 -rm -f *.lo
333
334clean-libtool:
335 -rm -rf .libs _libs
336
337ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
343 END { if (nonempty) { for (i in files) print i; }; }'`; \
344 mkid -fID $$unique
345tags: TAGS
346
347TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
348 $(TAGS_FILES) $(LISP)
349 tags=; \
350 here=`pwd`; \
351 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
352 unique=`for i in $$list; do \
353 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
354 done | \
355 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
356 END { if (nonempty) { for (i in files) print i; }; }'`; \
357 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
358 test -n "$$unique" || unique=$$empty_fix; \
359 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
360 $$tags $$unique; \
361 fi
362ctags: CTAGS
363CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
364 $(TAGS_FILES) $(LISP)
365 tags=; \
366 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
367 unique=`for i in $$list; do \
368 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
369 done | \
370 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
371 END { if (nonempty) { for (i in files) print i; }; }'`; \
372 test -z "$(CTAGS_ARGS)$$tags$$unique" \
373 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
374 $$tags $$unique
375
376GTAGS:
377 here=`$(am__cd) $(top_builddir) && pwd` \
378 && cd $(top_srcdir) \
379 && gtags -i $(GTAGS_ARGS) $$here
380
381distclean-tags:
382 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
383
384distdir: $(DISTFILES)
385 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 list='$(DISTFILES)'; \
388 dist_files=`for file in $$list; do echo $$file; done | \
389 sed -e "s|^$$srcdirstrip/||;t" \
390 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
391 case $$dist_files in \
392 */*) $(MKDIR_P) `echo "$$dist_files" | \
393 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
394 sort -u` ;; \
395 esac; \
396 for file in $$dist_files; do \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 if test -d $$d/$$file; then \
399 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
400 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
401 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
402 fi; \
403 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
404 else \
405 test -f $(distdir)/$$file \
406 || cp -p $$d/$$file $(distdir)/$$file \
407 || exit 1; \
408 fi; \
409 done
410check-am: all-am
411check: check-am
412all-am: Makefile $(LTLIBRARIES)
413installdirs:
414 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
415 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
416 done
417install: install-am
418install-exec: install-exec-am
419install-data: install-data-am
420uninstall: uninstall-am
421
422install-am: all-am
423 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
424
425installcheck: installcheck-am
426install-strip:
427 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
428 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
429 `test -z '$(STRIP)' || \
430 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
431mostlyclean-generic:
432
433clean-generic:
434
435distclean-generic:
436 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
437
438maintainer-clean-generic:
439 @echo "This command is intended for maintainers to use"
440 @echo "it deletes files that may require special tools to rebuild."
441clean: clean-am
442
443clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
444 mostlyclean-am
445
446distclean: distclean-am
447 -rm -rf ./$(DEPDIR)
448 -rm -f Makefile
449distclean-am: clean-am distclean-compile distclean-generic \
450 distclean-tags
451
452dvi: dvi-am
453
454dvi-am:
455
456html: html-am
457
458info: info-am
459
460info-am:
461
462install-data-am: install-pluginimpLTLIBRARIES
463
464install-dvi: install-dvi-am
465
466install-exec-am:
467
468install-html: install-html-am
469
470install-info: install-info-am
471
472install-man:
473
474install-pdf: install-pdf-am
475
476install-ps: install-ps-am
477
478installcheck-am:
479
480maintainer-clean: maintainer-clean-am
481 -rm -rf ./$(DEPDIR)
482 -rm -f Makefile
483maintainer-clean-am: distclean-am maintainer-clean-generic
484
485mostlyclean: mostlyclean-am
486
487mostlyclean-am: mostlyclean-compile mostlyclean-generic \
488 mostlyclean-libtool
489
490pdf: pdf-am
491
492pdf-am:
493
494ps: ps-am
495
496ps-am:
497
498uninstall-am: uninstall-pluginimpLTLIBRARIES
499
500.MAKE: install-am install-strip
501
502.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
503 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
504 distclean-compile distclean-generic distclean-libtool \
505 distclean-tags distdir dvi dvi-am html html-am info info-am \
506 install install-am install-data install-data-am install-dvi \
507 install-dvi-am install-exec install-exec-am install-html \
508 install-html-am install-info install-info-am install-man \
509 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
510 install-ps install-ps-am install-strip installcheck \
511 installcheck-am installdirs maintainer-clean \
512 maintainer-clean-generic mostlyclean mostlyclean-compile \
513 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
514 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
515
516# Tell versions [3.59,3.63) of GNU make to not export all variables.
517# Otherwise a system limit (for SysV at least) may be exceeded.
518.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.c
new file mode 100644
index 0000000..f295175
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.c
@@ -0,0 +1,82 @@
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/*
24 * an experiment to parse VRML without flex, version 2 is tried as a starter,
25 * v1 and Inventor stuff will be added if successful.
26 */
27
28#include <stdlib.h>
29#include <string.h>
30#include <locale.h>
31
32#include <g3d/types.h>
33#include <g3d/stream.h>
34
35#include "imp_vrml2.h"
36#include "imp_vrml_read.h"
37
38EAPI
39gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
40 G3DModel *model, gpointer user_data)
41{
42 gchar buf[128];
43 gboolean retval;
44 VrmlReader *reader;
45
46 setlocale(LC_NUMERIC, "C");
47
48 buf[127] = '\0';
49 g3d_stream_read_line(stream, buf, 127);
50 if(strncmp(buf, "#VRML V2.0 utf8", 15) != 0) {
51 g_warning("%s is not a valid VRML 2.0 UTF-8 stream", stream->uri);
52 return FALSE;
53 }
54
55 reader = g_new0(VrmlReader, 1);
56 reader->max_bufsize = 2048;
57 reader->buffer = g_new0(gchar, reader->max_bufsize);
58 reader->bufp = reader->buffer;
59 reader->line = 2;
60 reader->stream = stream;
61 reader->model = model;
62
63 retval = vrml_read_global(reader);
64
65 g_free(reader);
66
67 return retval;
68}
69
70EAPI
71gchar *plugin_description(void)
72{
73 return g_strdup("VRML v2 models.");
74}
75
76EAPI
77gchar **plugin_extensions(void)
78{
79 return g_strsplit("wrl", ":", 0);
80}
81
82/*****************************************************************************/
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.h
new file mode 100644
index 0000000..4946d6b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2.h
@@ -0,0 +1,42 @@
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_VRML2_H
23#define _IMP_VRML2_H
24
25#include <glib.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30typedef struct {
31 G3DStream *stream;
32 gchar *buffer;
33 gchar *bufp;
34 gsize bufsize;
35 gsize max_bufsize;
36 guint32 line;
37
38 G3DModel *model;
39 G3DObject *object;
40} VrmlReader;
41
42#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_nodes.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_nodes.h
new file mode 100644
index 0000000..837c728
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_nodes.h
@@ -0,0 +1,42 @@
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_VRML2_NODES_H
23#define _IMP_VRML2_NODES_H
24
25#include "imp_vrml_types.h"
26
27static VrmlNodeDef vrml2_nodes[] = {
28 { "Appearence", NULL },
29 { "Background", NULL },
30 { "Color", NULL },
31 { "Coordinate", NULL },
32 { "IndexedFaceSet", NULL },
33 { "Material", NULL },
34 { "Normal", NULL },
35 { "Shape", NULL },
36 { "Transform", NULL },
37 { "Viewpoint", NULL },
38
39 { NULL, NULL }
40};
41
42#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.c
new file mode 100644
index 0000000..3c10bf2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.c
@@ -0,0 +1,78 @@
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 <string.h>
23
24#include "imp_vrml_types.h"
25#include "imp_vrml_read.h"
26
27VrmlType vrml2_type_cb__float3(VrmlReader *reader)
28{
29 if(!vrml_read_skip_ws(reader))
30 return T_UNKNOWN;
31 if(*(reader->bufp) == '[')
32 return T_LIST_FLOAT3;
33 return T_FLOAT3;
34}
35
36VrmlType vrml2_type_cb__int(VrmlReader *reader)
37{
38 if(!vrml_read_skip_ws(reader))
39 return T_UNKNOWN;
40 if(*(reader->bufp) == '[')
41 return T_LIST_INT;
42 return T_INT;
43}
44
45VrmlType vrml2_type_cb_field(VrmlReader *reader)
46{
47 gchar *id;
48 VrmlType t = T_UNKNOWN;
49
50 id = vrml_read_id(reader);
51 if(!id) {
52 g_warning("VRML: vrml2_type_cb_field: failed to read id");
53 return T_UNKNOWN;
54 }
55 if(strcmp(id, "SFFloat") == 0)
56 t = T_TOKEN2; /* data 0 */
57
58 g_free(id);
59 return t;
60}
61
62VrmlType vrml2_type_cb_children(VrmlReader *reader)
63{
64 if(!vrml_read_skip_ws(reader))
65 return T_UNKNOWN;
66 if(*(reader->bufp) == '[')
67 return T_LIST_OBJECT;
68 return T_OBJECT;
69}
70
71VrmlType vrml2_type_cb_color(VrmlReader *reader)
72{
73 if(!vrml_read_skip_ws(reader))
74 return T_UNKNOWN;
75 if(*(reader->bufp) == '[')
76 return T_LIST_FLOAT3;
77 return T_OBJECT;
78}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h
new file mode 100644
index 0000000..a4747ec
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml2_types.h
@@ -0,0 +1,103 @@
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_VRML2_TYPES_H
23#define _IMP_VRML2_TYPES_H
24
25#include "imp_vrml2.h"
26#include "imp_vrml_types.h"
27
28/* list or not list */
29VrmlType vrml2_type_cb__float3(VrmlReader *reader);
30VrmlType vrml2_type_cb__int(VrmlReader *reader);
31
32VrmlType vrml2_type_cb_field(VrmlReader *reader);
33VrmlType vrml2_type_cb_children(VrmlReader *reader);
34VrmlType vrml2_type_cb_color(VrmlReader *reader);
35
36static VrmlTypeDef vrml2_types[] = {
37 { "ambientIntensity", T_FLOAT, NULL },
38 { "appearance", T_OBJECT, NULL },
39 { "autoOffset", T_BOOLEAN, NULL },
40 { "ccw", T_BOOLEAN, NULL },
41 { "center", T_FLOAT_X, NULL },
42 { "children", T_UNKNOWN, vrml2_type_cb_children },
43 { "color", T_UNKNOWN, vrml2_type_cb_color },
44 { "colorIndex", T_LIST_INT, vrml2_type_cb__int },
45 { "colorPerVertex", T_BOOLEAN, NULL },
46 { "convex", T_BOOLEAN, NULL },
47 { "coord", T_OBJECT, NULL },
48 { "coordIndex", T_LIST_INT, NULL },
49 { "creaseAngle", T_FLOAT, NULL },
50 { "cycleInterval", T_INT, NULL },
51 { "description", T_STRING, NULL },
52 { "diffuseColor", T_FLOAT3, NULL },
53 { "emissiveColor", T_FLOAT3, NULL },
54 { "eventIn", T_TOKEN2, NULL },
55 { "eventOut", T_TOKEN2, NULL },
56 { "field", T_UNKNOWN, vrml2_type_cb_field },
57 { "fieldOfView", T_FLOAT, NULL },
58 { "geometry", T_OBJECT, NULL },
59 { "groundAngle", T_LIST_FLOAT2, NULL },
60 { "groundColor", T_LIST_FLOAT3, NULL },
61 { "height", T_FLOAT, NULL },
62 { "info", T_LIST_STRING, NULL },
63 { "key", T_LIST_FLOAT, NULL },
64 { "keyValue", T_LIST_FLOAT4, NULL },
65 { "material", T_OBJECT, NULL },
66 { "maxPosition", T_FLOAT_X, NULL },
67 { "minPosition", T_FLOAT_X, NULL },
68 { "normal", T_OBJECT, NULL },
69 { "normalIndex", T_LIST_INT, NULL },
70 { "normalPerVertex", T_BOOLEAN, NULL },
71 { "offset", T_FLOAT_X, NULL },
72 { "orientation", T_FLOAT4, NULL },
73 { "parameter", T_STRING, NULL },
74 { "point", T_LIST_FLOAT_X, NULL },
75 { "position", T_FLOAT3, NULL },
76 { "radius", T_FLOAT, NULL },
77 { "repeatS", T_BOOLEAN, NULL },
78 { "repeatT", T_BOOLEAN, NULL },
79 { "rotation", T_FLOAT_X, NULL },
80 { "scale", T_FLOAT_X, NULL },
81 { "scaleOrientation", T_FLOAT_X, NULL },
82 { "shininess", T_FLOAT, NULL },
83 { "size", T_FLOAT3, NULL },
84 { "skyAngle", T_LIST_FLOAT2, NULL },
85 { "skyColor", T_LIST_FLOAT3, vrml2_type_cb__float3 },
86 { "solid", T_BOOLEAN, NULL },
87 { "specularColor", T_FLOAT3, NULL },
88 { "startTime", T_INT, NULL },
89 { "stopTime", T_INT, NULL },
90 { "texCoord", T_OBJECT, NULL },
91 { "texCoordIndex", T_LIST_INT, NULL },
92 { "texture", T_OBJECT, NULL },
93 { "textureTransform", T_OBJECT, NULL },
94 { "translation", T_FLOAT3, NULL },
95 { "transparency", T_FLOAT, NULL },
96 { "type", T_STRING, NULL },
97 { "url", T_STRING, NULL },
98 { "vector", T_LIST_FLOAT3, NULL },
99
100 { NULL, T_UNKNOWN }
101};
102
103#endif /* _IMP_VRML2_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.c
new file mode 100644
index 0000000..580c5cd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.c
@@ -0,0 +1,647 @@
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 <string.h>
23#include <stdlib.h>
24
25#include "imp_vrml_types.h"
26#include "imp_vrml_read.h"
27
28#include "imp_vrml2_nodes.h"
29#include "imp_vrml2_types.h"
30
31gboolean vrml_read_check_buffer(VrmlReader *reader)
32{
33 if(reader->bufsize > 0)
34 return TRUE;
35 if(g3d_stream_eof(reader->stream))
36 return FALSE;
37 memset(reader->buffer, '\0', reader->max_bufsize);
38 g3d_stream_read_line(reader->stream, reader->buffer,
39 reader->max_bufsize - 1);
40 reader->line ++;
41 reader->bufsize = strlen(reader->buffer);
42 reader->bufp = reader->buffer;
43 return (reader->bufsize > 0);
44}
45
46gboolean vrml_read_skip_ws(VrmlReader *reader)
47{
48 if(!vrml_read_check_buffer(reader))
49 return FALSE;
50 while(g_ascii_isspace(*(reader->bufp))) {
51 vrml_read_dec(reader);
52 if(!vrml_read_check_buffer(reader))
53 return FALSE;
54 }
55 return TRUE;
56}
57
58gchar *vrml_read_token(VrmlReader *reader)
59{
60 gchar *s = NULL;
61 gsize len = 0;
62
63 if(!vrml_read_skip_ws(reader))
64 return NULL;
65 while(vrml_read_check_buffer(reader) &&
66 !g_ascii_isspace(*(reader->bufp)) &&
67 (*(reader->bufp) != ',')) {
68 len ++;
69 s = g_realloc(s, (len + 1) * sizeof(gchar));
70 s[len - 1] = *(reader->bufp);
71 s[len - 0] = '\0';
72 vrml_read_dec(reader);
73 }
74#if DEBUG > 3
75 g_debug("token: %s", s);
76#endif
77 return s;
78}
79
80gchar *vrml_read_numeric(VrmlReader *reader)
81{
82 gchar *s = NULL;
83 gsize len = 0;
84 gboolean first = TRUE;
85
86 if(!vrml_read_skip_ws(reader))
87 return NULL;
88 while(vrml_read_check_buffer(reader) &&
89 (g_ascii_isdigit(*(reader->bufp)) ||
90 strchr(".-e", *(reader->bufp)))) {
91
92 if(first) {
93 if(*(reader->bufp) == 'e')
94 return NULL;
95 first = FALSE;
96 }
97
98 len ++;
99 s = g_realloc(s, (len + 1) * sizeof(gchar));
100 s[len - 1] = *(reader->bufp);
101 s[len - 0] = '\0';
102 vrml_read_dec(reader);
103 }
104#if DEBUG > 3
105 g_debug("numeric: %s", s);
106#endif
107 return s;
108}
109
110gchar *vrml_read_id(VrmlReader *reader)
111{
112 gchar *buf;
113 gsize bufsize;
114
115 if(!vrml_read_skip_ws(reader))
116 return NULL;
117 if(!vrml_read_check_buffer(reader))
118 return NULL;
119 bufsize = 2;
120 buf = g_new(gchar, 2 * sizeof(gchar));
121 buf[0] = *(reader->bufp);
122 buf[1] = '\0';
123 if(!(g_ascii_isalpha(buf[0]) || strchr("_", buf[0]))) {
124 g_free(buf);
125 return NULL;
126 }
127 vrml_read_dec(reader);
128 if(!vrml_read_check_buffer(reader))
129 return buf;
130 while(g_ascii_isalnum(*(reader->bufp)) || strchr("_.", *(reader->bufp))) {
131 bufsize ++;
132 buf = g_realloc(buf, bufsize * sizeof(gchar));
133 buf[bufsize - 2] = *(reader->bufp);
134 buf[bufsize - 1] = '\0';
135 vrml_read_dec(reader);
136 if(!vrml_read_check_buffer(reader))
137 return buf;
138 }
139 return buf;
140}
141
142gchar *vrml_read_string(VrmlReader *reader)
143{
144 gchar *buf = NULL;
145 gsize bufsize = 0;
146
147 if(!vrml_read_check_buffer(reader))
148 return NULL;
149 while(*(reader->bufp) != '"') {
150 bufsize ++;
151 buf = g_realloc(buf, (bufsize + 1) * sizeof(gchar));
152 buf[bufsize - 1] = *(reader->bufp);
153 buf[bufsize] = '\0';
154 vrml_read_dec(reader);
155 if(!vrml_read_check_buffer(reader))
156 return buf;
157 }
158 vrml_read_dec(reader);
159 return buf;
160}
161
162gboolean vrml_read_skip_unknown(VrmlReader *reader)
163{
164 gchar c, *s;
165#if DEBUG > 0
166 g_debug("vrml: skipping unknown stuff in line %d", reader->line);
167#endif
168
169 while(vrml_read_check_buffer(reader)) {
170 c = *(reader->bufp);
171 vrml_read_dec(reader);
172 switch(c) {
173 case '"':
174 s = vrml_read_string(reader);
175 if(s) {
176 g_debug("found string '%s'", s);
177 g_free(s);
178 }
179 break;
180 case '{':
181 case '[':
182 vrml_read_skip_unknown(reader);
183 break;
184 case '}':
185 case ']':
186 return TRUE;
187 break;
188 default:
189 break;
190 }
191 }
192 return FALSE;
193}
194
195gchar *vrml_read_nodeid(VrmlReader *reader)
196{
197 gchar *id;
198 id = vrml_read_id(reader);
199 if(id == NULL)
200 return NULL;
201 if(!g_ascii_isupper(id[0])) {
202 g_free(id);
203 return NULL;
204 }
205 return id;
206}
207
208gboolean vrml_read_expect(VrmlReader *reader, const gchar c)
209{
210 gchar b;
211 if(!vrml_read_skip_ws(reader))
212 return FALSE;
213 if(!vrml_read_check_buffer(reader))
214 return FALSE;
215 b = *(reader->bufp);
216 vrml_read_dec(reader);
217 return (b == c);
218}
219
220gboolean vrml_read_list(VrmlReader *reader, vrml_read_list_item_callback cb,
221 gpointer user_data)
222{
223 if(!vrml_read_expect(reader, '['))
224 return FALSE;
225
226 while(vrml_read_skip_ws(reader)) {
227 if(*(reader->bufp) == ']') {
228 vrml_read_dec(reader);
229 return TRUE;
230 }
231 if(!cb(reader, user_data))
232 return FALSE;
233
234 if(!vrml_read_skip_ws(reader))
235 return FALSE;
236 if(*(reader->bufp) == ',')
237 vrml_read_dec(reader);
238 }
239 /* should not be reached */
240 return vrml_read_expect(reader, ']');
241}
242
243/*****************************************************************************/
244
245static VrmlObject *vrml_lookup_object(VrmlReader *reader, const gchar *id)
246{
247 VrmlObject *object;
248
249 object = g_new0(VrmlObject, 1);
250 object->defid = g_strdup(id);
251 object->name = g_strdup("object from library");
252
253 return object;
254}
255
256static gboolean vrml_read_float_n(VrmlReader *reader, G3DFloat *a, guint32 n)
257{
258 gint i;
259 gchar *s;
260
261 for(i = 0; i < n; i ++) {
262 s = vrml_read_numeric(reader);
263 if(s) {
264 a[i] = atof(s);
265 g_free(s);
266 } else
267 return FALSE;
268 }
269 return TRUE;
270}
271
272static gboolean vrml_read_token_n(VrmlReader *reader, VrmlProperty *property,
273 guint32 n)
274{
275 gchar *token;
276 gint32 i;
277
278 for(i = 0; i < n; i ++) {
279 token = vrml_read_token(reader);
280#if DEBUG > 2
281 g_debug("Token: %s", token);
282#endif
283 g_free(token);
284 }
285
286 return TRUE;
287}
288
289/* property list callbacks */
290
291gboolean vrml_read_list_object_cb(VrmlReader *reader, gpointer data)
292{
293 VrmlProperty *property = data;
294
295 property->n_items ++;
296 property->v_object = g_realloc(property->v_object,
297 property->n_items * sizeof(VrmlObject *));
298 property->v_object[property->n_items - 1] =
299 vrml_read_object(reader, property->level + 1);
300 return (property->v_object[property->n_items - 1] != NULL);
301}
302
303gboolean vrml_read_list_string_cb(VrmlReader *reader, gpointer data)
304{
305 VrmlProperty *property = data;
306
307 if(!vrml_read_expect(reader, '"'))
308 return FALSE;
309
310 property->n_items ++;
311 property->v_str = g_realloc(property->v_str,
312 property->n_items * sizeof(gchar *));
313 property->v_str[property->n_items - 1] =
314 vrml_read_string(reader);
315 return TRUE;
316}
317
318gboolean vrml_read_list_int_cb(VrmlReader *reader, gpointer data)
319{
320 VrmlProperty *property = data;
321 gchar *s;
322
323 s = vrml_read_numeric(reader);
324 if(s) {
325 property->n_items ++;
326 property->v_int = g_realloc(property->v_int,
327 property->n_items * sizeof(gint32));
328 property->v_int[property->n_items - 1] = atoi(s);
329 g_free(s);
330 return TRUE;
331 }
332 return FALSE;
333}
334
335gboolean vrml_read_list_float_cb(VrmlReader *reader, gpointer data)
336{
337 VrmlProperty *property = data;
338
339 property->n_items ++;
340 property->v_float = g_realloc(property->v_float,
341 property->n_items * sizeof(G3DFloat));
342 return vrml_read_float_n(reader,
343 property->v_float + (property->n_items - 1), 1);
344}
345
346gboolean vrml_read_list_float2_cb(VrmlReader *reader, gpointer data)
347{
348 VrmlProperty *property = data;
349
350 property->n_items += 2;
351 property->v_float = g_realloc(property->v_float,
352 property->n_items * sizeof(G3DFloat));
353 return vrml_read_float_n(reader,
354 property->v_float + (property->n_items - 2), 2);
355}
356
357gboolean vrml_read_list_float3_cb(VrmlReader *reader, gpointer data)
358{
359 VrmlProperty *property = data;
360
361 property->n_items += 3;
362 property->v_float = g_realloc(property->v_float,
363 property->n_items * sizeof(G3DFloat));
364 return vrml_read_float_n(reader,
365 property->v_float + (property->n_items - 3), 3);
366}
367
368gboolean vrml_read_list_float4_cb(VrmlReader *reader, gpointer data)
369{
370 VrmlProperty *property = data;
371
372 property->n_items += 4;
373 property->v_float = g_realloc(property->v_float,
374 property->n_items * sizeof(G3DFloat));
375 return vrml_read_float_n(reader,
376 property->v_float + (property->n_items - 4), 4);
377}
378
379gboolean vrml_read_list_floatx_cb(VrmlReader *reader, gpointer data)
380{
381 VrmlProperty *property = data;
382 gchar *s;
383
384 s = vrml_read_numeric(reader);
385 while(s) {
386 property->n_items ++;
387 property->v_float = g_realloc(property->v_float,
388 property->n_items * sizeof(G3DFloat));
389 property->v_float[property->n_items - 1] = atof(s);
390 g_free(s);
391 s = vrml_read_numeric(reader);
392 }
393 return TRUE;
394}
395
396/* property reader */
397
398VrmlProperty *vrml_read_property(VrmlReader *reader, guint32 level)
399{
400 VrmlProperty *property;
401 VrmlTypeDef *type = NULL;
402 gint i;
403 gchar *id, *s;
404
405 id = vrml_read_id(reader);
406 if(id == NULL)
407 return NULL;
408
409 /* look up object */
410 for(i = 0; vrml2_types[i].name != NULL; i ++)
411 if(strcmp(id, vrml2_types[i].name) == 0) {
412 type = &(vrml2_types[i]);
413 break;
414 }
415 if(type == NULL) {
416 g_warning("VRML: unknown type %s in line %d", id, reader->line);
417 return NULL;
418 }
419 property = g_new0(VrmlProperty, 1);
420 property->name = id;
421 if(type->detect != NULL)
422 property->id = type->detect(reader);
423 else
424 property->id = type->id;
425 property->level = level;
426
427#if DEBUG > 0
428 g_debug("\\%sproperty '%s', type %d",
429 vrml_read_padding + strlen(vrml_read_padding) - 1 - level,
430 id, property->id);
431#endif
432
433 switch(property->id) {
434 case T_OBJECT:
435 property->n_items = 1;
436 property->v_object = g_new0(VrmlObject *, 1);
437 property->v_object[0] = vrml_read_object(reader, level + 1);
438 break;
439 case T_TOKEN2:
440 vrml_read_token_n(reader, property, 2);
441 break;
442 case T_TOKEN3:
443 vrml_read_token_n(reader, property, 3);
444 break;
445 case T_STRING:
446 property->n_items = 1;
447 if(!vrml_read_expect(reader, '"'))
448 return FALSE;
449 property->v_str = g_new0(gchar *, 1);
450 property->v_str[0] = vrml_read_string(reader);
451 break;
452 case T_BOOLEAN:
453 s = vrml_read_token(reader);
454 if(s) {
455 if(strcmp(s, "TRUE") == 0)
456 property->v_boolean = TRUE;
457 g_free(s);
458 }
459 break;
460 case T_INT:
461 s = vrml_read_numeric(reader);
462 if(s) {
463 property->n_items = 1;
464 property->v_int = g_new0(gint32, 1);
465 property->v_int[0] = atoi(s);
466 g_free(s);
467 }
468 break;
469 case T_FLOAT:
470 property->n_items = 1;
471 property->v_float = g_new0(G3DFloat, 1);
472 vrml_read_float_n(reader, property->v_float, 1);
473 break;
474 case T_FLOAT2:
475 property->n_items = 2;
476 property->v_float = g_new0(G3DFloat, 2);
477 vrml_read_float_n(reader, property->v_float, 2);
478 break;
479 case T_FLOAT3:
480 property->n_items = 3;
481 property->v_float = g_new0(G3DFloat, 3);
482 vrml_read_float_n(reader, property->v_float, 3);
483 break;
484 case T_FLOAT4:
485 property->n_items = 4;
486 property->v_float = g_new0(G3DFloat, 4);
487 vrml_read_float_n(reader, property->v_float, 4);
488 break;
489 case T_FLOAT_X:
490 s = vrml_read_numeric(reader);
491 while(s) {
492 property->n_items ++;
493 property->v_float = g_realloc(property->v_float,
494 property->n_items * sizeof(G3DFloat));
495 property->v_float[property->n_items - 1] = atof(s);
496#if DEBUG > 2
497 g_debug("T_FLOAT_X: %i: %.2f", property->n_items,
498 property->v_float[property->n_items - 1]);
499#endif
500 g_free(s);
501 s = vrml_read_numeric(reader);
502 }
503 break;
504 case T_LIST_OBJECT:
505 vrml_read_list(reader, vrml_read_list_object_cb, property);
506 break;
507 case T_LIST_STRING:
508 vrml_read_list(reader, vrml_read_list_string_cb, property);
509 break;
510 case T_LIST_INT:
511 vrml_read_list(reader, vrml_read_list_int_cb, property);
512 break;
513 case T_LIST_FLOAT:
514 vrml_read_list(reader, vrml_read_list_float_cb, property);
515 break;
516 case T_LIST_FLOAT2:
517 vrml_read_list(reader, vrml_read_list_float2_cb, property);
518 break;
519 case T_LIST_FLOAT3:
520 vrml_read_list(reader, vrml_read_list_float3_cb, property);
521 break;
522 case T_LIST_FLOAT4:
523 vrml_read_list(reader, vrml_read_list_float4_cb, property);
524 break;
525 case T_LIST_FLOAT_X:
526 vrml_read_list(reader, vrml_read_list_floatx_cb, property);
527 break;
528
529 default:
530 g_free(property->name);
531 g_free(property);
532 return NULL;
533 break;
534 }
535
536 return property;
537}
538
539static VrmlObject *vrml_read_route_object(VrmlReader *reader, guint32 level)
540{
541 VrmlObject *object;
542 gchar *id;
543#if DEBUG > 2
544 g_debug("ROUTE object");
545#endif
546 id = vrml_read_id(reader); /* source */
547 if(id == NULL) {
548 g_warning("ROUTE: could not get source");
549 return NULL;
550 }
551 g_free(id);
552 id = vrml_read_id(reader); /* TO */
553 if(id == NULL) {
554 g_warning("ROUTE: could not get TO");
555 return NULL;
556 }
557 g_free(id);
558 id = vrml_read_id(reader); /* destination */
559 if(id == NULL) {
560 g_warning("ROUTE: could not get destination");
561 return NULL;
562 }
563 g_free(id);
564 object = g_new0(VrmlObject, 1);
565 object->name = g_strdup("ROUTE object");
566 object->level = level;
567 return object;
568}
569
570VrmlObject *vrml_read_object(VrmlReader *reader, guint32 level)
571{
572 VrmlObject *object;
573 VrmlProperty *property;
574 gchar *id, *defid = NULL;
575 gboolean define = FALSE;
576
577 id = vrml_read_id(reader);
578 if(id == NULL)
579 return NULL;
580 if(strcmp(id, "NULL") == 0) {
581 return NULL;
582 } else if(strcmp(id, "DEF") == 0) {
583 define = TRUE;
584 defid = vrml_read_id(reader);
585 if(defid == NULL)
586 return NULL;
587 id = vrml_read_id(reader);
588 if(id == NULL)
589 return NULL;
590 } else if(strcmp(id, "USE") == 0) {
591 defid = vrml_read_id(reader);
592#if DEBUG > 2
593 g_debug("looking up '%s'", defid);
594#endif
595 return vrml_lookup_object(reader, defid);
596 } else if(strcmp(id, "ROUTE") == 0) {
597 return vrml_read_route_object(reader, level);
598 }
599
600 if(!vrml_read_expect(reader, '{')) {
601 g_warning("vrml_read_object: expected '{' in line %d", reader->line);
602 g_free(id);
603 if(defid)
604 g_free(defid);
605 return FALSE;
606 }
607#if DEBUG > 0
608 g_debug("\\%sobject '%s'",
609 vrml_read_padding + strlen(vrml_read_padding) - 1 - level,
610 id);
611#endif
612
613 object = g_new0(VrmlObject, 1);
614 object->name = id;
615 object->defid = defid;
616 object->define = define;
617 object->level = level;
618
619 /* read properties */
620 while(vrml_read_skip_ws(reader)) {
621#if DEBUG > 2
622 g_debug("O: '%c'", *(reader->bufp));
623#endif
624 if(*(reader->bufp) == '}') {
625 vrml_read_dec(reader);
626 return object;
627 }
628 property = vrml_read_property(reader, level + 1);
629 if(property != NULL)
630 object->properties = g_slist_append(object->properties, property);
631 else {
632 vrml_read_skip_unknown(reader);
633 return object;
634 }
635 }
636 vrml_read_expect(reader, '}');
637 return object;
638}
639
640gboolean vrml_read_global(VrmlReader *reader)
641{
642 while(vrml_read_skip_ws(reader)) {
643 if(!vrml_read_object(reader, 0))
644 return FALSE;
645 }
646 return TRUE;
647}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h
new file mode 100644
index 0000000..691eb57
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_read.h
@@ -0,0 +1,56 @@
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_VRML_READ_H
23#define _IMP_VRML_READ_H
24
25#include "imp_vrml2.h"
26#include "imp_vrml_types.h"
27
28typedef gboolean (* vrml_read_list_item_callback)(VrmlReader *reader,
29 gpointer user_data);
30
31gboolean vrml_read_global(VrmlReader *reader);
32gboolean vrml_read_check_buffer(VrmlReader *reader);
33gboolean vrml_read_skip_ws(VrmlReader *reader);
34gboolean vrml_read_skip_unknown(VrmlReader *reader);
35gboolean vrml_read_expect(VrmlReader *reader, const gchar c);
36gboolean vrml_read_list(VrmlReader *reader, vrml_read_list_item_callback cb,
37 gpointer user_data);
38
39gchar *vrml_read_token(VrmlReader *reader);
40gchar *vrml_read_numeric(VrmlReader *reader);
41gchar *vrml_read_id(VrmlReader *reader);
42gchar *vrml_read_nodeid(VrmlReader *reader);
43gchar *vrml_read_string(VrmlReader *reader);
44
45VrmlProperty *vrml_read_property(VrmlReader *reader, guint32 level);
46VrmlObject *vrml_read_object(VrmlReader *reader, guint32 level);
47
48static inline void vrml_read_dec(VrmlReader *reader)
49{
50 reader->bufp ++;
51 reader->bufsize --;
52}
53
54static gchar vrml_read_padding[] = " ";
55
56#endif /* _IMP_VRML_READ_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_types.h
new file mode 100644
index 0000000..6ca2327
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2/imp_vrml_types.h
@@ -0,0 +1,88 @@
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_VRML_TYPES_H
23#define _IMP_VRML_TYPES_H
24
25#include "imp_vrml2.h"
26
27typedef enum {
28 T_UNKNOWN = 0,
29 T_SPECIAL,
30 T_OBJECT,
31 T_TOKEN2,
32 T_TOKEN3,
33 T_STRING,
34 T_BOOLEAN,
35 T_INT,
36 T_FLOAT,
37 T_FLOAT2,
38 T_FLOAT3,
39 T_FLOAT4,
40 T_FLOAT_X,
41 T_LIST_OBJECT,
42 T_LIST_STRING,
43 T_LIST_INT,
44 T_LIST_FLOAT,
45 T_LIST_FLOAT2,
46 T_LIST_FLOAT3,
47 T_LIST_FLOAT4,
48 T_LIST_FLOAT_X,
49 N_TYPES
50} VrmlType;
51
52typedef struct {
53 gchar *name;
54 gchar *defid;
55 gboolean define;
56 guint32 level;
57 GSList *properties;
58} VrmlObject;
59
60typedef struct {
61 gchar *name;
62 VrmlType id;
63
64 gsize n_items;
65 VrmlObject **v_object;
66 gchar **v_str;
67 G3DFloat *v_float;
68 gint32 *v_int;
69 gboolean v_boolean;
70 guint32 level;
71} VrmlProperty;
72
73typedef VrmlType (* VrmlTypeDetect)(VrmlReader *reader);
74
75typedef struct {
76 const gchar *name;
77 VrmlType id;
78 VrmlTypeDetect detect;
79} VrmlTypeDef;
80
81typedef gboolean (* VrmlNodeCallback)(VrmlReader *reader, VrmlObject *object);
82
83typedef struct {
84 const gchar *name;
85 VrmlNodeCallback callback;
86} VrmlNodeDef;
87
88#endif /* _IMP_VRML_TYPES_H */