diff options
Diffstat (limited to '')
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 | |||
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_vrml2 | ||
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_vrml2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la | ||
58 | am_imp_vrml2_la_OBJECTS = imp_vrml2.lo imp_vrml_read.lo \ | ||
59 | imp_vrml2_types.lo | ||
60 | imp_vrml2_la_OBJECTS = $(am_imp_vrml2_la_OBJECTS) | ||
61 | #am_imp_vrml2_la_rpath = -rpath $(pluginimpdir) | ||
62 | DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d | ||
63 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
64 | am__depfiles_maybe = depfiles | ||
65 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
66 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
67 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
68 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
69 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
70 | CCLD = $(CC) | ||
71 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
72 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
73 | $(LDFLAGS) -o $@ | ||
74 | SOURCES = $(imp_vrml2_la_SOURCES) | ||
75 | DIST_SOURCES = $(imp_vrml2_la_SOURCES) | ||
76 | ETAGS = etags | ||
77 | CTAGS = ctags | ||
78 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
79 | ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10 | ||
80 | AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar | ||
81 | AR = ar | ||
82 | AS = as | ||
83 | AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf | ||
84 | AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader | ||
85 | AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10 | ||
86 | AWK = gawk | ||
87 | CC = gcc | ||
88 | CCDEPMODE = depmode=gcc3 | ||
89 | CFLAGS = -g -O2 | ||
90 | CPP = gcc -E | ||
91 | CPPFLAGS = | ||
92 | CXX = g++ | ||
93 | CXXCPP = g++ -E | ||
94 | CXXDEPMODE = depmode=gcc3 | ||
95 | CXXFLAGS = -g -O2 | ||
96 | CYGPATH_W = echo | ||
97 | DBG_CFLAGS = -O2 | ||
98 | DEBUG = 0 | ||
99 | DEFS = -DHAVE_CONFIG_H | ||
100 | DEPDIR = .deps | ||
101 | DLLTOOL = dlltool | ||
102 | ECHO = echo | ||
103 | ECHO_C = | ||
104 | ECHO_N = -n | ||
105 | ECHO_T = | ||
106 | EGREP = /bin/grep -E | ||
107 | EXEEXT = | ||
108 | F77 = | ||
109 | FFLAGS = | ||
110 | 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 | ||
111 | 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 | ||
112 | GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include | ||
113 | GLIB_GENMARSHAL = glib-genmarshal | ||
114 | GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 | ||
115 | GLIB_MKENUMS = glib-mkenums | ||
116 | GOBJECT_QUERY = gobject-query | ||
117 | GREP = /bin/grep | ||
118 | GTKDOC_CHECK = /usr/bin/gtkdoc-check | ||
119 | 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 | ||
120 | 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 | ||
121 | HTML_DIR = ${datadir}/gtk-doc/html | ||
122 | INSTALL = /usr/bin/install -c | ||
123 | INSTALL_DATA = ${INSTALL} -m 644 | ||
124 | INSTALL_PROGRAM = ${INSTALL} | ||
125 | INSTALL_SCRIPT = ${INSTALL} | ||
126 | INSTALL_STRIP_PROGRAM = $(install_sh) -c -s | ||
127 | LDFLAGS = | ||
128 | LEX = flex | ||
129 | LEXLIB = -lfl | ||
130 | LEX_OUTPUT_ROOT = lex.yy | ||
131 | 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 | ||
132 | LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 | ||
133 | LIBOBJS = | ||
134 | LIBS = -lm | ||
135 | LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet | ||
136 | LIBXML2_CFLAGS = -I/usr/include/libxml2 | ||
137 | LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
138 | LN_S = ln -s | ||
139 | LTLIBOBJS = | ||
140 | LTVERSION = 0:8:0 | ||
141 | MAGIC_LIBS = -lmagic | ||
142 | MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo | ||
143 | MATH_LIBS = -lm | ||
144 | MKDIR_P = /bin/mkdir -p | ||
145 | OBJDUMP = objdump | ||
146 | OBJEXT = o | ||
147 | PACKAGE = libg3d | ||
148 | PACKAGE_BUGREPORT = | ||
149 | PACKAGE_NAME = | ||
150 | PACKAGE_STRING = | ||
151 | PACKAGE_TARNAME = | ||
152 | PACKAGE_VERSION = | ||
153 | PATH_SEPARATOR = : | ||
154 | PKG_CONFIG = /usr/bin/pkg-config | ||
155 | PLUGINS_LDFLAGS = -avoid-version -export-dynamic | ||
156 | RANLIB = ranlib | ||
157 | SET_MAKE = | ||
158 | SHELL = /bin/bash | ||
159 | STRIP = strip | ||
160 | VERSION = 0.0.8 | ||
161 | XML2_CONFIG = /usr/bin/xml2-config | ||
162 | XML_CPPFLAGS = -I/usr/include/libxml2 | ||
163 | XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2 | ||
164 | Z_CFLAGS = | ||
165 | Z_LIBS = -lz | ||
166 | abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2 | ||
167 | abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml2 | ||
168 | abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
169 | abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8 | ||
170 | ac_ct_CC = gcc | ||
171 | ac_ct_CXX = g++ | ||
172 | ac_ct_F77 = | ||
173 | am__include = include | ||
174 | am__leading_dot = . | ||
175 | am__quote = | ||
176 | am__tar = ${AMTAR} chof - "$$tardir" | ||
177 | am__untar = ${AMTAR} xf - | ||
178 | bindir = ${exec_prefix}/bin | ||
179 | build = x86_64-unknown-linux-gnu | ||
180 | build_alias = | ||
181 | build_cpu = x86_64 | ||
182 | build_os = linux-gnu | ||
183 | build_vendor = unknown | ||
184 | builddir = . | ||
185 | datadir = ${datarootdir} | ||
186 | datarootdir = ${prefix}/share | ||
187 | docdir = ${datarootdir}/doc/${PACKAGE} | ||
188 | dvidir = ${docdir} | ||
189 | exec_prefix = ${prefix} | ||
190 | host = x86_64-unknown-linux-gnu | ||
191 | host_alias = | ||
192 | host_cpu = x86_64 | ||
193 | host_os = linux-gnu | ||
194 | host_vendor = unknown | ||
195 | htmldir = ${docdir} | ||
196 | includedir = ${prefix}/include | ||
197 | infodir = ${datarootdir}/info | ||
198 | install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh | ||
199 | libdir = ${exec_prefix}/lib | ||
200 | libexecdir = ${exec_prefix}/libexec | ||
201 | localedir = ${datarootdir}/locale | ||
202 | localstatedir = ${prefix}/var | ||
203 | mandir = ${datarootdir}/man | ||
204 | mkdir_p = /bin/mkdir -p | ||
205 | oldincludedir = /usr/include | ||
206 | pdfdir = ${docdir} | ||
207 | prefix = /usr/local | ||
208 | program_transform_name = s,x,x, | ||
209 | psdir = ${docdir} | ||
210 | sbindir = ${exec_prefix}/sbin | ||
211 | sharedstatedir = ${prefix}/com | ||
212 | srcdir = . | ||
213 | sysconfdir = ${prefix}/etc | ||
214 | target_alias = | ||
215 | top_builddir = ../../.. | ||
216 | top_srcdir = ../../.. | ||
217 | pluginimpdir = $(pkglibdir)/plugins/import | ||
218 | #pluginimp_LTLIBRARIES = imp_vrml2.la | ||
219 | AM_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 | |||
225 | INCLUDES = -I$(top_srcdir)/include | ||
226 | AM_LDFLAGS = \ | ||
227 | -no-undefined -module \ | ||
228 | -avoid-version -export-dynamic | ||
229 | |||
230 | imp_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 | |||
236 | imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 | ||
237 | all: 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 | ||
254 | Makefile: $(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 | ||
270 | install-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 | |||
281 | uninstall-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 | |||
289 | clean-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 | ||
297 | imp_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 | |||
300 | mostlyclean-compile: | ||
301 | -rm -f *.$(OBJEXT) | ||
302 | |||
303 | distclean-compile: | ||
304 | -rm -f *.tab.c | ||
305 | |||
306 | include ./$(DEPDIR)/imp_vrml2.Plo | ||
307 | include ./$(DEPDIR)/imp_vrml2_types.Plo | ||
308 | include ./$(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 | |||
331 | mostlyclean-libtool: | ||
332 | -rm -f *.lo | ||
333 | |||
334 | clean-libtool: | ||
335 | -rm -rf .libs _libs | ||
336 | |||
337 | ID: $(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 | ||
345 | tags: TAGS | ||
346 | |||
347 | TAGS: $(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 | ||
362 | ctags: CTAGS | ||
363 | CTAGS: $(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 | |||
376 | GTAGS: | ||
377 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
378 | && cd $(top_srcdir) \ | ||
379 | && gtags -i $(GTAGS_ARGS) $$here | ||
380 | |||
381 | distclean-tags: | ||
382 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
383 | |||
384 | distdir: $(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 | ||
410 | check-am: all-am | ||
411 | check: check-am | ||
412 | all-am: Makefile $(LTLIBRARIES) | ||
413 | installdirs: | ||
414 | for dir in "$(DESTDIR)$(pluginimpdir)"; do \ | ||
415 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
416 | done | ||
417 | install: install-am | ||
418 | install-exec: install-exec-am | ||
419 | install-data: install-data-am | ||
420 | uninstall: uninstall-am | ||
421 | |||
422 | install-am: all-am | ||
423 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
424 | |||
425 | installcheck: installcheck-am | ||
426 | install-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 | ||
431 | mostlyclean-generic: | ||
432 | |||
433 | clean-generic: | ||
434 | |||
435 | distclean-generic: | ||
436 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
437 | |||
438 | maintainer-clean-generic: | ||
439 | @echo "This command is intended for maintainers to use" | ||
440 | @echo "it deletes files that may require special tools to rebuild." | ||
441 | clean: clean-am | ||
442 | |||
443 | clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ | ||
444 | mostlyclean-am | ||
445 | |||
446 | distclean: distclean-am | ||
447 | -rm -rf ./$(DEPDIR) | ||
448 | -rm -f Makefile | ||
449 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
450 | distclean-tags | ||
451 | |||
452 | dvi: dvi-am | ||
453 | |||
454 | dvi-am: | ||
455 | |||
456 | html: html-am | ||
457 | |||
458 | info: info-am | ||
459 | |||
460 | info-am: | ||
461 | |||
462 | install-data-am: install-pluginimpLTLIBRARIES | ||
463 | |||
464 | install-dvi: install-dvi-am | ||
465 | |||
466 | install-exec-am: | ||
467 | |||
468 | install-html: install-html-am | ||
469 | |||
470 | install-info: install-info-am | ||
471 | |||
472 | install-man: | ||
473 | |||
474 | install-pdf: install-pdf-am | ||
475 | |||
476 | install-ps: install-ps-am | ||
477 | |||
478 | installcheck-am: | ||
479 | |||
480 | maintainer-clean: maintainer-clean-am | ||
481 | -rm -rf ./$(DEPDIR) | ||
482 | -rm -f Makefile | ||
483 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
484 | |||
485 | mostlyclean: mostlyclean-am | ||
486 | |||
487 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
488 | mostlyclean-libtool | ||
489 | |||
490 | pdf: pdf-am | ||
491 | |||
492 | pdf-am: | ||
493 | |||
494 | ps: ps-am | ||
495 | |||
496 | ps-am: | ||
497 | |||
498 | uninstall-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 @@ | |||
1 | pluginimpdir = $(pkglibdir)/plugins/import | ||
2 | |||
3 | if EXPERIMENTAL | ||
4 | pluginimp_LTLIBRARIES = imp_vrml2.la | ||
5 | endif | ||
6 | |||
7 | AM_CFLAGS = \ | ||
8 | -Wall -ansi -pedantic \ | ||
9 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
10 | @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ | ||
11 | @GLIB_CFLAGS@ | ||
12 | |||
13 | INCLUDES = -I$(top_srcdir)/include | ||
14 | |||
15 | AM_LDFLAGS = \ | ||
16 | -no-undefined -module \ | ||
17 | @PLUGINS_LDFLAGS@ | ||
18 | |||
19 | LIBTOOL += --quiet | ||
20 | |||
21 | imp_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 | ||
26 | imp_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 | |||
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_vrml2 | ||
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_vrml2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la | ||
58 | am_imp_vrml2_la_OBJECTS = imp_vrml2.lo imp_vrml_read.lo \ | ||
59 | imp_vrml2_types.lo | ||
60 | imp_vrml2_la_OBJECTS = $(am_imp_vrml2_la_OBJECTS) | ||
61 | @EXPERIMENTAL_TRUE@am_imp_vrml2_la_rpath = -rpath $(pluginimpdir) | ||
62 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d | ||
63 | depcomp = $(SHELL) $(top_srcdir)/config/depcomp | ||
64 | am__depfiles_maybe = depfiles | ||
65 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
66 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
67 | LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
68 | --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
69 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
70 | CCLD = $(CC) | ||
71 | LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ | ||
72 | --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ | ||
73 | $(LDFLAGS) -o $@ | ||
74 | SOURCES = $(imp_vrml2_la_SOURCES) | ||
75 | DIST_SOURCES = $(imp_vrml2_la_SOURCES) | ||
76 | ETAGS = etags | ||
77 | CTAGS = ctags | ||
78 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
79 | ACLOCAL = @ACLOCAL@ | ||
80 | AMTAR = @AMTAR@ | ||
81 | AR = @AR@ | ||
82 | AS = @AS@ | ||
83 | AUTOCONF = @AUTOCONF@ | ||
84 | AUTOHEADER = @AUTOHEADER@ | ||
85 | AUTOMAKE = @AUTOMAKE@ | ||
86 | AWK = @AWK@ | ||
87 | CC = @CC@ | ||
88 | CCDEPMODE = @CCDEPMODE@ | ||
89 | CFLAGS = @CFLAGS@ | ||
90 | CPP = @CPP@ | ||
91 | CPPFLAGS = @CPPFLAGS@ | ||
92 | CXX = @CXX@ | ||
93 | CXXCPP = @CXXCPP@ | ||
94 | CXXDEPMODE = @CXXDEPMODE@ | ||
95 | CXXFLAGS = @CXXFLAGS@ | ||
96 | CYGPATH_W = @CYGPATH_W@ | ||
97 | DBG_CFLAGS = @DBG_CFLAGS@ | ||
98 | DEBUG = @DEBUG@ | ||
99 | DEFS = @DEFS@ | ||
100 | DEPDIR = @DEPDIR@ | ||
101 | DLLTOOL = @DLLTOOL@ | ||
102 | ECHO = @ECHO@ | ||
103 | ECHO_C = @ECHO_C@ | ||
104 | ECHO_N = @ECHO_N@ | ||
105 | ECHO_T = @ECHO_T@ | ||
106 | EGREP = @EGREP@ | ||
107 | EXEEXT = @EXEEXT@ | ||
108 | F77 = @F77@ | ||
109 | FFLAGS = @FFLAGS@ | ||
110 | GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@ | ||
111 | GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@ | ||
112 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
113 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
114 | GLIB_LIBS = @GLIB_LIBS@ | ||
115 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
116 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
117 | GREP = @GREP@ | ||
118 | GTKDOC_CHECK = @GTKDOC_CHECK@ | ||
119 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
120 | GTK_LIBS = @GTK_LIBS@ | ||
121 | HTML_DIR = @HTML_DIR@ | ||
122 | INSTALL = @INSTALL@ | ||
123 | INSTALL_DATA = @INSTALL_DATA@ | ||
124 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
125 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
126 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
127 | LDFLAGS = @LDFLAGS@ | ||
128 | LEX = @LEX@ | ||
129 | LEXLIB = @LEXLIB@ | ||
130 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | ||
131 | LIBGSF_CFLAGS = @LIBGSF_CFLAGS@ | ||
132 | LIBGSF_LIBS = @LIBGSF_LIBS@ | ||
133 | LIBOBJS = @LIBOBJS@ | ||
134 | LIBS = @LIBS@ | ||
135 | LIBTOOL = @LIBTOOL@ --quiet | ||
136 | LIBXML2_CFLAGS = @LIBXML2_CFLAGS@ | ||
137 | LIBXML2_LIBS = @LIBXML2_LIBS@ | ||
138 | LN_S = @LN_S@ | ||
139 | LTLIBOBJS = @LTLIBOBJS@ | ||
140 | LTVERSION = @LTVERSION@ | ||
141 | MAGIC_LIBS = @MAGIC_LIBS@ | ||
142 | MAKEINFO = @MAKEINFO@ | ||
143 | MATH_LIBS = @MATH_LIBS@ | ||
144 | MKDIR_P = @MKDIR_P@ | ||
145 | OBJDUMP = @OBJDUMP@ | ||
146 | OBJEXT = @OBJEXT@ | ||
147 | PACKAGE = @PACKAGE@ | ||
148 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
149 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
150 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
151 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
152 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
153 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
154 | PKG_CONFIG = @PKG_CONFIG@ | ||
155 | PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@ | ||
156 | RANLIB = @RANLIB@ | ||
157 | SET_MAKE = @SET_MAKE@ | ||
158 | SHELL = @SHELL@ | ||
159 | STRIP = @STRIP@ | ||
160 | VERSION = @VERSION@ | ||
161 | XML2_CONFIG = @XML2_CONFIG@ | ||
162 | XML_CPPFLAGS = @XML_CPPFLAGS@ | ||
163 | XML_LIBS = @XML_LIBS@ | ||
164 | Z_CFLAGS = @Z_CFLAGS@ | ||
165 | Z_LIBS = @Z_LIBS@ | ||
166 | abs_builddir = @abs_builddir@ | ||
167 | abs_srcdir = @abs_srcdir@ | ||
168 | abs_top_builddir = @abs_top_builddir@ | ||
169 | abs_top_srcdir = @abs_top_srcdir@ | ||
170 | ac_ct_CC = @ac_ct_CC@ | ||
171 | ac_ct_CXX = @ac_ct_CXX@ | ||
172 | ac_ct_F77 = @ac_ct_F77@ | ||
173 | am__include = @am__include@ | ||
174 | am__leading_dot = @am__leading_dot@ | ||
175 | am__quote = @am__quote@ | ||
176 | am__tar = @am__tar@ | ||
177 | am__untar = @am__untar@ | ||
178 | bindir = @bindir@ | ||
179 | build = @build@ | ||
180 | build_alias = @build_alias@ | ||
181 | build_cpu = @build_cpu@ | ||
182 | build_os = @build_os@ | ||
183 | build_vendor = @build_vendor@ | ||
184 | builddir = @builddir@ | ||
185 | datadir = @datadir@ | ||
186 | datarootdir = @datarootdir@ | ||
187 | docdir = @docdir@ | ||
188 | dvidir = @dvidir@ | ||
189 | exec_prefix = @exec_prefix@ | ||
190 | host = @host@ | ||
191 | host_alias = @host_alias@ | ||
192 | host_cpu = @host_cpu@ | ||
193 | host_os = @host_os@ | ||
194 | host_vendor = @host_vendor@ | ||
195 | htmldir = @htmldir@ | ||
196 | includedir = @includedir@ | ||
197 | infodir = @infodir@ | ||
198 | install_sh = @install_sh@ | ||
199 | libdir = @libdir@ | ||
200 | libexecdir = @libexecdir@ | ||
201 | localedir = @localedir@ | ||
202 | localstatedir = @localstatedir@ | ||
203 | mandir = @mandir@ | ||
204 | mkdir_p = @mkdir_p@ | ||
205 | oldincludedir = @oldincludedir@ | ||
206 | pdfdir = @pdfdir@ | ||
207 | prefix = @prefix@ | ||
208 | program_transform_name = @program_transform_name@ | ||
209 | psdir = @psdir@ | ||
210 | sbindir = @sbindir@ | ||
211 | sharedstatedir = @sharedstatedir@ | ||
212 | srcdir = @srcdir@ | ||
213 | sysconfdir = @sysconfdir@ | ||
214 | target_alias = @target_alias@ | ||
215 | top_builddir = @top_builddir@ | ||
216 | top_srcdir = @top_srcdir@ | ||
217 | pluginimpdir = $(pkglibdir)/plugins/import | ||
218 | @EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_vrml2.la | ||
219 | AM_CFLAGS = \ | ||
220 | -Wall -ansi -pedantic \ | ||
221 | -DG_LOG_DOMAIN=\"LibG3D\" \ | ||
222 | @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \ | ||
223 | @GLIB_CFLAGS@ | ||
224 | |||
225 | INCLUDES = -I$(top_srcdir)/include | ||
226 | AM_LDFLAGS = \ | ||
227 | -no-undefined -module \ | ||
228 | @PLUGINS_LDFLAGS@ | ||
229 | |||
230 | imp_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 | |||
236 | imp_vrml2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ | ||
237 | all: 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 | ||
254 | Makefile: $(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 | ||
270 | install-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 | |||
281 | uninstall-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 | |||
289 | clean-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 | ||
297 | imp_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 | |||
300 | mostlyclean-compile: | ||
301 | -rm -f *.$(OBJEXT) | ||
302 | |||
303 | distclean-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 | |||
331 | mostlyclean-libtool: | ||
332 | -rm -f *.lo | ||
333 | |||
334 | clean-libtool: | ||
335 | -rm -rf .libs _libs | ||
336 | |||
337 | ID: $(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 | ||
345 | tags: TAGS | ||
346 | |||
347 | TAGS: $(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 | ||
362 | ctags: CTAGS | ||
363 | CTAGS: $(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 | |||
376 | GTAGS: | ||
377 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
378 | && cd $(top_srcdir) \ | ||
379 | && gtags -i $(GTAGS_ARGS) $$here | ||
380 | |||
381 | distclean-tags: | ||
382 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
383 | |||
384 | distdir: $(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 | ||
410 | check-am: all-am | ||
411 | check: check-am | ||
412 | all-am: Makefile $(LTLIBRARIES) | ||
413 | installdirs: | ||
414 | for dir in "$(DESTDIR)$(pluginimpdir)"; do \ | ||
415 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
416 | done | ||
417 | install: install-am | ||
418 | install-exec: install-exec-am | ||
419 | install-data: install-data-am | ||
420 | uninstall: uninstall-am | ||
421 | |||
422 | install-am: all-am | ||
423 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
424 | |||
425 | installcheck: installcheck-am | ||
426 | install-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 | ||
431 | mostlyclean-generic: | ||
432 | |||
433 | clean-generic: | ||
434 | |||
435 | distclean-generic: | ||
436 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
437 | |||
438 | maintainer-clean-generic: | ||
439 | @echo "This command is intended for maintainers to use" | ||
440 | @echo "it deletes files that may require special tools to rebuild." | ||
441 | clean: clean-am | ||
442 | |||
443 | clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \ | ||
444 | mostlyclean-am | ||
445 | |||
446 | distclean: distclean-am | ||
447 | -rm -rf ./$(DEPDIR) | ||
448 | -rm -f Makefile | ||
449 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
450 | distclean-tags | ||
451 | |||
452 | dvi: dvi-am | ||
453 | |||
454 | dvi-am: | ||
455 | |||
456 | html: html-am | ||
457 | |||
458 | info: info-am | ||
459 | |||
460 | info-am: | ||
461 | |||
462 | install-data-am: install-pluginimpLTLIBRARIES | ||
463 | |||
464 | install-dvi: install-dvi-am | ||
465 | |||
466 | install-exec-am: | ||
467 | |||
468 | install-html: install-html-am | ||
469 | |||
470 | install-info: install-info-am | ||
471 | |||
472 | install-man: | ||
473 | |||
474 | install-pdf: install-pdf-am | ||
475 | |||
476 | install-ps: install-ps-am | ||
477 | |||
478 | installcheck-am: | ||
479 | |||
480 | maintainer-clean: maintainer-clean-am | ||
481 | -rm -rf ./$(DEPDIR) | ||
482 | -rm -f Makefile | ||
483 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
484 | |||
485 | mostlyclean: mostlyclean-am | ||
486 | |||
487 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
488 | mostlyclean-libtool | ||
489 | |||
490 | pdf: pdf-am | ||
491 | |||
492 | pdf-am: | ||
493 | |||
494 | ps: ps-am | ||
495 | |||
496 | ps-am: | ||
497 | |||
498 | uninstall-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 | |||
38 | EAPI | ||
39 | gboolean 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 | |||
70 | EAPI | ||
71 | gchar *plugin_description(void) | ||
72 | { | ||
73 | return g_strdup("VRML v2 models."); | ||
74 | } | ||
75 | |||
76 | EAPI | ||
77 | gchar **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 | |||
30 | typedef 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 | |||
27 | static 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 | |||
27 | VrmlType 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 | |||
36 | VrmlType 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 | |||
45 | VrmlType 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 | |||
62 | VrmlType 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 | |||
71 | VrmlType 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 */ | ||
29 | VrmlType vrml2_type_cb__float3(VrmlReader *reader); | ||
30 | VrmlType vrml2_type_cb__int(VrmlReader *reader); | ||
31 | |||
32 | VrmlType vrml2_type_cb_field(VrmlReader *reader); | ||
33 | VrmlType vrml2_type_cb_children(VrmlReader *reader); | ||
34 | VrmlType vrml2_type_cb_color(VrmlReader *reader); | ||
35 | |||
36 | static 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 | |||
31 | gboolean 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 | |||
46 | gboolean 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 | |||
58 | gchar *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 | |||
80 | gchar *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 | |||
110 | gchar *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 | |||
142 | gchar *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 | |||
162 | gboolean 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 | |||
195 | gchar *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 | |||
208 | gboolean 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 | |||
220 | gboolean 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 | |||
245 | static 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 | |||
256 | static 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 | |||
272 | static 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 | |||
291 | gboolean 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 | |||
303 | gboolean 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 | |||
318 | gboolean 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 | |||
335 | gboolean 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 | |||
346 | gboolean 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 | |||
357 | gboolean 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 | |||
368 | gboolean 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 | |||
379 | gboolean 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 | |||
398 | VrmlProperty *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 | |||
539 | static 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 | |||
570 | VrmlObject *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 | |||
640 | gboolean 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 | |||
28 | typedef gboolean (* vrml_read_list_item_callback)(VrmlReader *reader, | ||
29 | gpointer user_data); | ||
30 | |||
31 | gboolean vrml_read_global(VrmlReader *reader); | ||
32 | gboolean vrml_read_check_buffer(VrmlReader *reader); | ||
33 | gboolean vrml_read_skip_ws(VrmlReader *reader); | ||
34 | gboolean vrml_read_skip_unknown(VrmlReader *reader); | ||
35 | gboolean vrml_read_expect(VrmlReader *reader, const gchar c); | ||
36 | gboolean vrml_read_list(VrmlReader *reader, vrml_read_list_item_callback cb, | ||
37 | gpointer user_data); | ||
38 | |||
39 | gchar *vrml_read_token(VrmlReader *reader); | ||
40 | gchar *vrml_read_numeric(VrmlReader *reader); | ||
41 | gchar *vrml_read_id(VrmlReader *reader); | ||
42 | gchar *vrml_read_nodeid(VrmlReader *reader); | ||
43 | gchar *vrml_read_string(VrmlReader *reader); | ||
44 | |||
45 | VrmlProperty *vrml_read_property(VrmlReader *reader, guint32 level); | ||
46 | VrmlObject *vrml_read_object(VrmlReader *reader, guint32 level); | ||
47 | |||
48 | static inline void vrml_read_dec(VrmlReader *reader) | ||
49 | { | ||
50 | reader->bufp ++; | ||
51 | reader->bufsize --; | ||
52 | } | ||
53 | |||
54 | static 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 | |||
27 | typedef 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 | |||
52 | typedef struct { | ||
53 | gchar *name; | ||
54 | gchar *defid; | ||
55 | gboolean define; | ||
56 | guint32 level; | ||
57 | GSList *properties; | ||
58 | } VrmlObject; | ||
59 | |||
60 | typedef 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 | |||
73 | typedef VrmlType (* VrmlTypeDetect)(VrmlReader *reader); | ||
74 | |||
75 | typedef struct { | ||
76 | const gchar *name; | ||
77 | VrmlType id; | ||
78 | VrmlTypeDetect detect; | ||
79 | } VrmlTypeDef; | ||
80 | |||
81 | typedef gboolean (* VrmlNodeCallback)(VrmlReader *reader, VrmlObject *object); | ||
82 | |||
83 | typedef struct { | ||
84 | const gchar *name; | ||
85 | VrmlNodeCallback callback; | ||
86 | } VrmlNodeDef; | ||
87 | |||
88 | #endif /* _IMP_VRML_TYPES_H */ | ||