aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/mimesh/libg3d-0.0.8/plugins/import
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile554
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.am40
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.in554
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c169
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h31
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c278
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h34
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h114
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c80
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h32
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h61
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h64
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c646
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h95
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c206
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h55
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.c992
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.h56
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_chunks.h210
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c534
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile523
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.am29
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.in523
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/README15
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c338
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h39
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.c166
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.h44
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.c127
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.h39
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf603.h359
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf625.h406
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf630.h417
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf640.h449
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf651.h456
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf700.h506
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf740.h584
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_proto.h49
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.c77
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.c79
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.h35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in517
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c183
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c247
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c161
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c446
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c257
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.in519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend.c201
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.c237
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.h35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h63
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_def.h42
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.c39
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.c467
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.h53
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_types.h100
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.am22
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c363
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c430
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.am25
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.in518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae.c126
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.c877
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.h75
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h95
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.c167
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.h38
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.c257
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.h44
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.am22
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c156
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile523
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.am28
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.in523
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c291
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h53
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.c349
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.h36
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h196
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.c130
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.h29
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h51
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_entities.h70
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.c128
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.h40
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.c233
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.h34
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h78
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_vars.h64
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile514
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.am24
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.in514
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c175
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.c999
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.h95
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h136
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c258
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/imp_heightfield.c115
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c98
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c347
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h37
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h73
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c386
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile514
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.in514
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c168
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.am24
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.in519
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw.c112
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.c124
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.h30
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.c175
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.h32
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_misc.h36
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.c121
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.c291
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.h31
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_types.h48
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad.c496
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.c633
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h62
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.am21
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.in512
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c216
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h48
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.c584
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.h41
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_chunks.h124
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile515
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.in515
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max.c358
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.c696
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.h82
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_chunks.h289
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.am25
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.in518
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya.c77
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.c645
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.h43
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h130
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.c110
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.h41
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.c60
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c292
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2_normals.h192
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c396
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c169
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c403
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile511
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am24
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in511
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c334
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.am20
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.in509
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c586
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.am23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.in513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c79
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.c418
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.h40
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_chunks.h62
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.am23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.in513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c88
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.c116
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.h32
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_chunks.h38
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile516
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.am24
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.in516
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c218
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h25
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.c614
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h59
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_chunks.h62
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.c114
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.h35
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_types.h33
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am22
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c200
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.am23
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.in513
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c77
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.c183
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.h31
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do_palette.h286
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am22
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in510
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c164
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile524
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.am26
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.in524
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml.c122
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.c2788
-rw-r--r--src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.h356
-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
285 files changed, 74555 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile
new file mode 100644
index 0000000..0d9f019
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile
@@ -0,0 +1,554 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/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
17pkgdatadir = $(datadir)/libg3d
18pkglibdir = $(libdir)/libg3d
19pkgincludedir = $(includedir)/libg3d
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = x86_64-unknown-linux-gnu
33host_triplet = x86_64-unknown-linux-gnu
34subdir = plugins/import
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
63AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
64AR = ar
65AS = as
66AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
67AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
68AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
69AWK = gawk
70CC = gcc
71CCDEPMODE = depmode=gcc3
72CFLAGS = -g -O2
73CPP = gcc -E
74CPPFLAGS =
75CXX = g++
76CXXCPP = g++ -E
77CXXDEPMODE = depmode=gcc3
78CXXFLAGS = -g -O2
79CYGPATH_W = echo
80DBG_CFLAGS = -O2
81DEBUG = 0
82DEFS = -DHAVE_CONFIG_H
83DEPDIR = .deps
84DLLTOOL = dlltool
85ECHO = echo
86ECHO_C =
87ECHO_N = -n
88ECHO_T =
89EGREP = /bin/grep -E
90EXEEXT =
91F77 =
92FFLAGS =
93GDKPIXBUF_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
94GDKPIXBUF_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
95GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
96GLIB_GENMARSHAL = glib-genmarshal
97GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
98GLIB_MKENUMS = glib-mkenums
99GOBJECT_QUERY = gobject-query
100GREP = /bin/grep
101GTKDOC_CHECK = /usr/bin/gtkdoc-check
102GTK_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
103GTK_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
104HTML_DIR = ${datadir}/gtk-doc/html
105INSTALL = /usr/bin/install -c
106INSTALL_DATA = ${INSTALL} -m 644
107INSTALL_PROGRAM = ${INSTALL}
108INSTALL_SCRIPT = ${INSTALL}
109INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
110LDFLAGS =
111LEX = flex
112LEXLIB = -lfl
113LEX_OUTPUT_ROOT = lex.yy
114LIBGSF_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
115LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
116LIBOBJS =
117LIBS = -lm
118LIBTOOL = $(SHELL) $(top_builddir)/libtool
119LIBXML2_CFLAGS = -I/usr/include/libxml2
120LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
121LN_S = ln -s
122LTLIBOBJS =
123LTVERSION = 0:8:0
124MAGIC_LIBS = -lmagic
125MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
126MATH_LIBS = -lm
127MKDIR_P = /bin/mkdir -p
128OBJDUMP = objdump
129OBJEXT = o
130PACKAGE = libg3d
131PACKAGE_BUGREPORT =
132PACKAGE_NAME =
133PACKAGE_STRING =
134PACKAGE_TARNAME =
135PACKAGE_VERSION =
136PATH_SEPARATOR = :
137PKG_CONFIG = /usr/bin/pkg-config
138PLUGINS_LDFLAGS = -avoid-version -export-dynamic
139RANLIB = ranlib
140SET_MAKE =
141SHELL = /bin/bash
142STRIP = strip
143VERSION = 0.0.8
144XML2_CONFIG = /usr/bin/xml2-config
145XML_CPPFLAGS = -I/usr/include/libxml2
146XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
147Z_CFLAGS =
148Z_LIBS = -lz
149abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import
150abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import
151abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
152abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
153ac_ct_CC = gcc
154ac_ct_CXX = g++
155ac_ct_F77 =
156am__include = include
157am__leading_dot = .
158am__quote =
159am__tar = ${AMTAR} chof - "$$tardir"
160am__untar = ${AMTAR} xf -
161bindir = ${exec_prefix}/bin
162build = x86_64-unknown-linux-gnu
163build_alias =
164build_cpu = x86_64
165build_os = linux-gnu
166build_vendor = unknown
167builddir = .
168datadir = ${datarootdir}
169datarootdir = ${prefix}/share
170docdir = ${datarootdir}/doc/${PACKAGE}
171dvidir = ${docdir}
172exec_prefix = ${prefix}
173host = x86_64-unknown-linux-gnu
174host_alias =
175host_cpu = x86_64
176host_os = linux-gnu
177host_vendor = unknown
178htmldir = ${docdir}
179includedir = ${prefix}/include
180infodir = ${datarootdir}/info
181install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
182libdir = ${exec_prefix}/lib
183libexecdir = ${exec_prefix}/libexec
184localedir = ${datarootdir}/locale
185localstatedir = ${prefix}/var
186mandir = ${datarootdir}/man
187mkdir_p = /bin/mkdir -p
188oldincludedir = /usr/include
189pdfdir = ${docdir}
190prefix = /usr/local
191program_transform_name = s,x,x,
192psdir = ${docdir}
193sbindir = ${exec_prefix}/sbin
194sharedstatedir = ${prefix}/com
195srcdir = .
196sysconfdir = ${prefix}/etc
197target_alias =
198top_builddir = ../..
199top_srcdir = ../..
200SUBDIRS = \
201 imp_3dm \
202 imp_3dmf \
203 imp_3ds \
204 imp_ac3d \
205 imp_acf \
206 imp_ar \
207 imp_ase \
208 imp_blend \
209 imp_c4d \
210 imp_cob \
211 imp_dae \
212 imp_dpm \
213 imp_dxf \
214 imp_flt \
215 imp_glb \
216 imp_heightfield \
217 imp_iob \
218 imp_joe \
219 imp_kmz \
220 imp_ldraw \
221 imp_leocad \
222 imp_lwo \
223 imp_max \
224 imp_maya \
225 imp_md2 \
226 imp_md3 \
227 imp_nff \
228 imp_obj \
229 imp_osm \
230 imp_q3o \
231 imp_r4 \
232 imp_rbh \
233 imp_skp \
234 imp_stl \
235 imp_ta \
236 imp_test \
237 imp_vrml \
238 imp_vrml2
239
240all: all-recursive
241
242.SUFFIXES:
243$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
244 @for dep in $?; do \
245 case '$(am__configure_deps)' in \
246 *$$dep*) \
247 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
248 && exit 0; \
249 exit 1;; \
250 esac; \
251 done; \
252 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/Makefile'; \
253 cd $(top_srcdir) && \
254 $(AUTOMAKE) --gnu plugins/import/Makefile
255.PRECIOUS: Makefile
256Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
257 @case '$?' in \
258 *config.status*) \
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
260 *) \
261 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
262 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
263 esac;
264
265$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267
268$(top_srcdir)/configure: $(am__configure_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270$(ACLOCAL_M4): $(am__aclocal_m4_deps)
271 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
272
273mostlyclean-libtool:
274 -rm -f *.lo
275
276clean-libtool:
277 -rm -rf .libs _libs
278
279# This directory's subdirectories are mostly independent; you can cd
280# into them and run `make' without going through this Makefile.
281# To change the values of `make' variables: instead of editing Makefiles,
282# (1) if the variable is set in `config.status', edit `config.status'
283# (which will cause the Makefiles to be regenerated when you run `make');
284# (2) otherwise, pass the desired values on the `make' command line.
285$(RECURSIVE_TARGETS):
286 @failcom='exit 1'; \
287 for f in x $$MAKEFLAGS; do \
288 case $$f in \
289 *=* | --[!k]*);; \
290 *k*) failcom='fail=yes';; \
291 esac; \
292 done; \
293 dot_seen=no; \
294 target=`echo $@ | sed s/-recursive//`; \
295 list='$(SUBDIRS)'; for subdir in $$list; do \
296 echo "Making $$target in $$subdir"; \
297 if test "$$subdir" = "."; then \
298 dot_seen=yes; \
299 local_target="$$target-am"; \
300 else \
301 local_target="$$target"; \
302 fi; \
303 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
304 || eval $$failcom; \
305 done; \
306 if test "$$dot_seen" = "no"; then \
307 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
308 fi; test -z "$$fail"
309
310$(RECURSIVE_CLEAN_TARGETS):
311 @failcom='exit 1'; \
312 for f in x $$MAKEFLAGS; do \
313 case $$f in \
314 *=* | --[!k]*);; \
315 *k*) failcom='fail=yes';; \
316 esac; \
317 done; \
318 dot_seen=no; \
319 case "$@" in \
320 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
321 *) list='$(SUBDIRS)' ;; \
322 esac; \
323 rev=''; for subdir in $$list; do \
324 if test "$$subdir" = "."; then :; else \
325 rev="$$subdir $$rev"; \
326 fi; \
327 done; \
328 rev="$$rev ."; \
329 target=`echo $@ | sed s/-recursive//`; \
330 for subdir in $$rev; do \
331 echo "Making $$target in $$subdir"; \
332 if test "$$subdir" = "."; then \
333 local_target="$$target-am"; \
334 else \
335 local_target="$$target"; \
336 fi; \
337 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
338 || eval $$failcom; \
339 done && test -z "$$fail"
340tags-recursive:
341 list='$(SUBDIRS)'; for subdir in $$list; do \
342 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
343 done
344ctags-recursive:
345 list='$(SUBDIRS)'; for subdir in $$list; do \
346 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
347 done
348
349ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 mkid -fID $$unique
357tags: TAGS
358
359TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 here=`pwd`; \
363 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
364 include_option=--etags-include; \
365 empty_fix=.; \
366 else \
367 include_option=--include; \
368 empty_fix=; \
369 fi; \
370 list='$(SUBDIRS)'; for subdir in $$list; do \
371 if test "$$subdir" = .; then :; else \
372 test ! -f $$subdir/TAGS || \
373 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
374 fi; \
375 done; \
376 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
377 unique=`for i in $$list; do \
378 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379 done | \
380 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
381 END { if (nonempty) { for (i in files) print i; }; }'`; \
382 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
383 test -n "$$unique" || unique=$$empty_fix; \
384 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
385 $$tags $$unique; \
386 fi
387ctags: CTAGS
388CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
389 $(TAGS_FILES) $(LISP)
390 tags=; \
391 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
392 unique=`for i in $$list; do \
393 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
394 done | \
395 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
396 END { if (nonempty) { for (i in files) print i; }; }'`; \
397 test -z "$(CTAGS_ARGS)$$tags$$unique" \
398 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
399 $$tags $$unique
400
401GTAGS:
402 here=`$(am__cd) $(top_builddir) && pwd` \
403 && cd $(top_srcdir) \
404 && gtags -i $(GTAGS_ARGS) $$here
405
406distclean-tags:
407 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
408
409distdir: $(DISTFILES)
410 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
412 list='$(DISTFILES)'; \
413 dist_files=`for file in $$list; do echo $$file; done | \
414 sed -e "s|^$$srcdirstrip/||;t" \
415 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
416 case $$dist_files in \
417 */*) $(MKDIR_P) `echo "$$dist_files" | \
418 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
419 sort -u` ;; \
420 esac; \
421 for file in $$dist_files; do \
422 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
423 if test -d $$d/$$file; then \
424 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
425 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
426 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
427 fi; \
428 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
429 else \
430 test -f $(distdir)/$$file \
431 || cp -p $$d/$$file $(distdir)/$$file \
432 || exit 1; \
433 fi; \
434 done
435 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
436 if test "$$subdir" = .; then :; else \
437 test -d "$(distdir)/$$subdir" \
438 || $(MKDIR_P) "$(distdir)/$$subdir" \
439 || exit 1; \
440 distdir=`$(am__cd) $(distdir) && pwd`; \
441 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
442 (cd $$subdir && \
443 $(MAKE) $(AM_MAKEFLAGS) \
444 top_distdir="$$top_distdir" \
445 distdir="$$distdir/$$subdir" \
446 am__remove_distdir=: \
447 am__skip_length_check=: \
448 distdir) \
449 || exit 1; \
450 fi; \
451 done
452check-am: all-am
453check: check-recursive
454all-am: Makefile
455installdirs: installdirs-recursive
456installdirs-am:
457install: install-recursive
458install-exec: install-exec-recursive
459install-data: install-data-recursive
460uninstall: uninstall-recursive
461
462install-am: all-am
463 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
464
465installcheck: installcheck-recursive
466install-strip:
467 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
468 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
469 `test -z '$(STRIP)' || \
470 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
471mostlyclean-generic:
472
473clean-generic:
474
475distclean-generic:
476 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
477
478maintainer-clean-generic:
479 @echo "This command is intended for maintainers to use"
480 @echo "it deletes files that may require special tools to rebuild."
481clean: clean-recursive
482
483clean-am: clean-generic clean-libtool mostlyclean-am
484
485distclean: distclean-recursive
486 -rm -f Makefile
487distclean-am: clean-am distclean-generic distclean-tags
488
489dvi: dvi-recursive
490
491dvi-am:
492
493html: html-recursive
494
495info: info-recursive
496
497info-am:
498
499install-data-am:
500
501install-dvi: install-dvi-recursive
502
503install-exec-am:
504
505install-html: install-html-recursive
506
507install-info: install-info-recursive
508
509install-man:
510
511install-pdf: install-pdf-recursive
512
513install-ps: install-ps-recursive
514
515installcheck-am:
516
517maintainer-clean: maintainer-clean-recursive
518 -rm -f Makefile
519maintainer-clean-am: distclean-am maintainer-clean-generic
520
521mostlyclean: mostlyclean-recursive
522
523mostlyclean-am: mostlyclean-generic mostlyclean-libtool
524
525pdf: pdf-recursive
526
527pdf-am:
528
529ps: ps-recursive
530
531ps-am:
532
533uninstall-am:
534
535.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
536 install-strip
537
538.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
539 all all-am check check-am clean clean-generic clean-libtool \
540 ctags ctags-recursive distclean distclean-generic \
541 distclean-libtool distclean-tags distdir dvi dvi-am html \
542 html-am info info-am install install-am install-data \
543 install-data-am install-dvi install-dvi-am install-exec \
544 install-exec-am install-html install-html-am install-info \
545 install-info-am install-man install-pdf install-pdf-am \
546 install-ps install-ps-am install-strip installcheck \
547 installcheck-am installdirs installdirs-am maintainer-clean \
548 maintainer-clean-generic mostlyclean mostlyclean-generic \
549 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
550 uninstall uninstall-am
551
552# Tell versions [3.59,3.63) of GNU make to not export all variables.
553# Otherwise a system limit (for SysV at least) may be exceeded.
554.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.am
new file mode 100644
index 0000000..de5044c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.am
@@ -0,0 +1,40 @@
1SUBDIRS = \
2 imp_3dm \
3 imp_3dmf \
4 imp_3ds \
5 imp_ac3d \
6 imp_acf \
7 imp_ar \
8 imp_ase \
9 imp_blend \
10 imp_c4d \
11 imp_cob \
12 imp_dae \
13 imp_dpm \
14 imp_dxf \
15 imp_flt \
16 imp_glb \
17 imp_heightfield \
18 imp_iob \
19 imp_joe \
20 imp_kmz \
21 imp_ldraw \
22 imp_leocad \
23 imp_lwo \
24 imp_max \
25 imp_maya \
26 imp_md2 \
27 imp_md3 \
28 imp_nff \
29 imp_obj \
30 imp_osm \
31 imp_q3o \
32 imp_r4 \
33 imp_rbh \
34 imp_skp \
35 imp_stl \
36 imp_ta \
37 imp_test \
38 imp_vrml \
39 imp_vrml2
40
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.in
new file mode 100644
index 0000000..126950d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/Makefile.in
@@ -0,0 +1,554 @@
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@
16VPATH = @srcdir@
17pkgdatadir = $(datadir)/@PACKAGE@
18pkglibdir = $(libdir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@
20am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21install_sh_DATA = $(install_sh) -c -m 644
22install_sh_PROGRAM = $(install_sh) -c
23install_sh_SCRIPT = $(install_sh) -c
24INSTALL_HEADER = $(INSTALL_DATA)
25transform = $(program_transform_name)
26NORMAL_INSTALL = :
27PRE_INSTALL = :
28POST_INSTALL = :
29NORMAL_UNINSTALL = :
30PRE_UNINSTALL = :
31POST_UNINSTALL = :
32build_triplet = @build@
33host_triplet = @host@
34subdir = plugins/import
35DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
36ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
38 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
39 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
40 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
41 $(top_srcdir)/configure.in
42am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44mkinstalldirs = $(install_sh) -d
45CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
46CONFIG_CLEAN_FILES =
47SOURCES =
48DIST_SOURCES =
49RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-dvi-recursive install-exec-recursive \
52 install-html-recursive install-info-recursive \
53 install-pdf-recursive install-ps-recursive install-recursive \
54 installcheck-recursive installdirs-recursive pdf-recursive \
55 ps-recursive uninstall-recursive
56RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
57 distclean-recursive maintainer-clean-recursive
58ETAGS = etags
59CTAGS = ctags
60DIST_SUBDIRS = $(SUBDIRS)
61DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
62ACLOCAL = @ACLOCAL@
63AMTAR = @AMTAR@
64AR = @AR@
65AS = @AS@
66AUTOCONF = @AUTOCONF@
67AUTOHEADER = @AUTOHEADER@
68AUTOMAKE = @AUTOMAKE@
69AWK = @AWK@
70CC = @CC@
71CCDEPMODE = @CCDEPMODE@
72CFLAGS = @CFLAGS@
73CPP = @CPP@
74CPPFLAGS = @CPPFLAGS@
75CXX = @CXX@
76CXXCPP = @CXXCPP@
77CXXDEPMODE = @CXXDEPMODE@
78CXXFLAGS = @CXXFLAGS@
79CYGPATH_W = @CYGPATH_W@
80DBG_CFLAGS = @DBG_CFLAGS@
81DEBUG = @DEBUG@
82DEFS = @DEFS@
83DEPDIR = @DEPDIR@
84DLLTOOL = @DLLTOOL@
85ECHO = @ECHO@
86ECHO_C = @ECHO_C@
87ECHO_N = @ECHO_N@
88ECHO_T = @ECHO_T@
89EGREP = @EGREP@
90EXEEXT = @EXEEXT@
91F77 = @F77@
92FFLAGS = @FFLAGS@
93GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
94GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
95GLIB_CFLAGS = @GLIB_CFLAGS@
96GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
97GLIB_LIBS = @GLIB_LIBS@
98GLIB_MKENUMS = @GLIB_MKENUMS@
99GOBJECT_QUERY = @GOBJECT_QUERY@
100GREP = @GREP@
101GTKDOC_CHECK = @GTKDOC_CHECK@
102GTK_CFLAGS = @GTK_CFLAGS@
103GTK_LIBS = @GTK_LIBS@
104HTML_DIR = @HTML_DIR@
105INSTALL = @INSTALL@
106INSTALL_DATA = @INSTALL_DATA@
107INSTALL_PROGRAM = @INSTALL_PROGRAM@
108INSTALL_SCRIPT = @INSTALL_SCRIPT@
109INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
110LDFLAGS = @LDFLAGS@
111LEX = @LEX@
112LEXLIB = @LEXLIB@
113LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
114LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
115LIBGSF_LIBS = @LIBGSF_LIBS@
116LIBOBJS = @LIBOBJS@
117LIBS = @LIBS@
118LIBTOOL = @LIBTOOL@
119LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
120LIBXML2_LIBS = @LIBXML2_LIBS@
121LN_S = @LN_S@
122LTLIBOBJS = @LTLIBOBJS@
123LTVERSION = @LTVERSION@
124MAGIC_LIBS = @MAGIC_LIBS@
125MAKEINFO = @MAKEINFO@
126MATH_LIBS = @MATH_LIBS@
127MKDIR_P = @MKDIR_P@
128OBJDUMP = @OBJDUMP@
129OBJEXT = @OBJEXT@
130PACKAGE = @PACKAGE@
131PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
132PACKAGE_NAME = @PACKAGE_NAME@
133PACKAGE_STRING = @PACKAGE_STRING@
134PACKAGE_TARNAME = @PACKAGE_TARNAME@
135PACKAGE_VERSION = @PACKAGE_VERSION@
136PATH_SEPARATOR = @PATH_SEPARATOR@
137PKG_CONFIG = @PKG_CONFIG@
138PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
139RANLIB = @RANLIB@
140SET_MAKE = @SET_MAKE@
141SHELL = @SHELL@
142STRIP = @STRIP@
143VERSION = @VERSION@
144XML2_CONFIG = @XML2_CONFIG@
145XML_CPPFLAGS = @XML_CPPFLAGS@
146XML_LIBS = @XML_LIBS@
147Z_CFLAGS = @Z_CFLAGS@
148Z_LIBS = @Z_LIBS@
149abs_builddir = @abs_builddir@
150abs_srcdir = @abs_srcdir@
151abs_top_builddir = @abs_top_builddir@
152abs_top_srcdir = @abs_top_srcdir@
153ac_ct_CC = @ac_ct_CC@
154ac_ct_CXX = @ac_ct_CXX@
155ac_ct_F77 = @ac_ct_F77@
156am__include = @am__include@
157am__leading_dot = @am__leading_dot@
158am__quote = @am__quote@
159am__tar = @am__tar@
160am__untar = @am__untar@
161bindir = @bindir@
162build = @build@
163build_alias = @build_alias@
164build_cpu = @build_cpu@
165build_os = @build_os@
166build_vendor = @build_vendor@
167builddir = @builddir@
168datadir = @datadir@
169datarootdir = @datarootdir@
170docdir = @docdir@
171dvidir = @dvidir@
172exec_prefix = @exec_prefix@
173host = @host@
174host_alias = @host_alias@
175host_cpu = @host_cpu@
176host_os = @host_os@
177host_vendor = @host_vendor@
178htmldir = @htmldir@
179includedir = @includedir@
180infodir = @infodir@
181install_sh = @install_sh@
182libdir = @libdir@
183libexecdir = @libexecdir@
184localedir = @localedir@
185localstatedir = @localstatedir@
186mandir = @mandir@
187mkdir_p = @mkdir_p@
188oldincludedir = @oldincludedir@
189pdfdir = @pdfdir@
190prefix = @prefix@
191program_transform_name = @program_transform_name@
192psdir = @psdir@
193sbindir = @sbindir@
194sharedstatedir = @sharedstatedir@
195srcdir = @srcdir@
196sysconfdir = @sysconfdir@
197target_alias = @target_alias@
198top_builddir = @top_builddir@
199top_srcdir = @top_srcdir@
200SUBDIRS = \
201 imp_3dm \
202 imp_3dmf \
203 imp_3ds \
204 imp_ac3d \
205 imp_acf \
206 imp_ar \
207 imp_ase \
208 imp_blend \
209 imp_c4d \
210 imp_cob \
211 imp_dae \
212 imp_dpm \
213 imp_dxf \
214 imp_flt \
215 imp_glb \
216 imp_heightfield \
217 imp_iob \
218 imp_joe \
219 imp_kmz \
220 imp_ldraw \
221 imp_leocad \
222 imp_lwo \
223 imp_max \
224 imp_maya \
225 imp_md2 \
226 imp_md3 \
227 imp_nff \
228 imp_obj \
229 imp_osm \
230 imp_q3o \
231 imp_r4 \
232 imp_rbh \
233 imp_skp \
234 imp_stl \
235 imp_ta \
236 imp_test \
237 imp_vrml \
238 imp_vrml2
239
240all: all-recursive
241
242.SUFFIXES:
243$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
244 @for dep in $?; do \
245 case '$(am__configure_deps)' in \
246 *$$dep*) \
247 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
248 && exit 0; \
249 exit 1;; \
250 esac; \
251 done; \
252 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/Makefile'; \
253 cd $(top_srcdir) && \
254 $(AUTOMAKE) --gnu plugins/import/Makefile
255.PRECIOUS: Makefile
256Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
257 @case '$?' in \
258 *config.status*) \
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
260 *) \
261 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
262 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
263 esac;
264
265$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267
268$(top_srcdir)/configure: $(am__configure_deps)
269 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
270$(ACLOCAL_M4): $(am__aclocal_m4_deps)
271 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
272
273mostlyclean-libtool:
274 -rm -f *.lo
275
276clean-libtool:
277 -rm -rf .libs _libs
278
279# This directory's subdirectories are mostly independent; you can cd
280# into them and run `make' without going through this Makefile.
281# To change the values of `make' variables: instead of editing Makefiles,
282# (1) if the variable is set in `config.status', edit `config.status'
283# (which will cause the Makefiles to be regenerated when you run `make');
284# (2) otherwise, pass the desired values on the `make' command line.
285$(RECURSIVE_TARGETS):
286 @failcom='exit 1'; \
287 for f in x $$MAKEFLAGS; do \
288 case $$f in \
289 *=* | --[!k]*);; \
290 *k*) failcom='fail=yes';; \
291 esac; \
292 done; \
293 dot_seen=no; \
294 target=`echo $@ | sed s/-recursive//`; \
295 list='$(SUBDIRS)'; for subdir in $$list; do \
296 echo "Making $$target in $$subdir"; \
297 if test "$$subdir" = "."; then \
298 dot_seen=yes; \
299 local_target="$$target-am"; \
300 else \
301 local_target="$$target"; \
302 fi; \
303 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
304 || eval $$failcom; \
305 done; \
306 if test "$$dot_seen" = "no"; then \
307 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
308 fi; test -z "$$fail"
309
310$(RECURSIVE_CLEAN_TARGETS):
311 @failcom='exit 1'; \
312 for f in x $$MAKEFLAGS; do \
313 case $$f in \
314 *=* | --[!k]*);; \
315 *k*) failcom='fail=yes';; \
316 esac; \
317 done; \
318 dot_seen=no; \
319 case "$@" in \
320 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
321 *) list='$(SUBDIRS)' ;; \
322 esac; \
323 rev=''; for subdir in $$list; do \
324 if test "$$subdir" = "."; then :; else \
325 rev="$$subdir $$rev"; \
326 fi; \
327 done; \
328 rev="$$rev ."; \
329 target=`echo $@ | sed s/-recursive//`; \
330 for subdir in $$rev; do \
331 echo "Making $$target in $$subdir"; \
332 if test "$$subdir" = "."; then \
333 local_target="$$target-am"; \
334 else \
335 local_target="$$target"; \
336 fi; \
337 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
338 || eval $$failcom; \
339 done && test -z "$$fail"
340tags-recursive:
341 list='$(SUBDIRS)'; for subdir in $$list; do \
342 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
343 done
344ctags-recursive:
345 list='$(SUBDIRS)'; for subdir in $$list; do \
346 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
347 done
348
349ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 mkid -fID $$unique
357tags: TAGS
358
359TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 here=`pwd`; \
363 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
364 include_option=--etags-include; \
365 empty_fix=.; \
366 else \
367 include_option=--include; \
368 empty_fix=; \
369 fi; \
370 list='$(SUBDIRS)'; for subdir in $$list; do \
371 if test "$$subdir" = .; then :; else \
372 test ! -f $$subdir/TAGS || \
373 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
374 fi; \
375 done; \
376 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
377 unique=`for i in $$list; do \
378 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379 done | \
380 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
381 END { if (nonempty) { for (i in files) print i; }; }'`; \
382 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
383 test -n "$$unique" || unique=$$empty_fix; \
384 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
385 $$tags $$unique; \
386 fi
387ctags: CTAGS
388CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
389 $(TAGS_FILES) $(LISP)
390 tags=; \
391 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
392 unique=`for i in $$list; do \
393 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
394 done | \
395 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
396 END { if (nonempty) { for (i in files) print i; }; }'`; \
397 test -z "$(CTAGS_ARGS)$$tags$$unique" \
398 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
399 $$tags $$unique
400
401GTAGS:
402 here=`$(am__cd) $(top_builddir) && pwd` \
403 && cd $(top_srcdir) \
404 && gtags -i $(GTAGS_ARGS) $$here
405
406distclean-tags:
407 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
408
409distdir: $(DISTFILES)
410 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
411 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
412 list='$(DISTFILES)'; \
413 dist_files=`for file in $$list; do echo $$file; done | \
414 sed -e "s|^$$srcdirstrip/||;t" \
415 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
416 case $$dist_files in \
417 */*) $(MKDIR_P) `echo "$$dist_files" | \
418 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
419 sort -u` ;; \
420 esac; \
421 for file in $$dist_files; do \
422 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
423 if test -d $$d/$$file; then \
424 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
425 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
426 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
427 fi; \
428 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
429 else \
430 test -f $(distdir)/$$file \
431 || cp -p $$d/$$file $(distdir)/$$file \
432 || exit 1; \
433 fi; \
434 done
435 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
436 if test "$$subdir" = .; then :; else \
437 test -d "$(distdir)/$$subdir" \
438 || $(MKDIR_P) "$(distdir)/$$subdir" \
439 || exit 1; \
440 distdir=`$(am__cd) $(distdir) && pwd`; \
441 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
442 (cd $$subdir && \
443 $(MAKE) $(AM_MAKEFLAGS) \
444 top_distdir="$$top_distdir" \
445 distdir="$$distdir/$$subdir" \
446 am__remove_distdir=: \
447 am__skip_length_check=: \
448 distdir) \
449 || exit 1; \
450 fi; \
451 done
452check-am: all-am
453check: check-recursive
454all-am: Makefile
455installdirs: installdirs-recursive
456installdirs-am:
457install: install-recursive
458install-exec: install-exec-recursive
459install-data: install-data-recursive
460uninstall: uninstall-recursive
461
462install-am: all-am
463 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
464
465installcheck: installcheck-recursive
466install-strip:
467 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
468 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
469 `test -z '$(STRIP)' || \
470 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
471mostlyclean-generic:
472
473clean-generic:
474
475distclean-generic:
476 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
477
478maintainer-clean-generic:
479 @echo "This command is intended for maintainers to use"
480 @echo "it deletes files that may require special tools to rebuild."
481clean: clean-recursive
482
483clean-am: clean-generic clean-libtool mostlyclean-am
484
485distclean: distclean-recursive
486 -rm -f Makefile
487distclean-am: clean-am distclean-generic distclean-tags
488
489dvi: dvi-recursive
490
491dvi-am:
492
493html: html-recursive
494
495info: info-recursive
496
497info-am:
498
499install-data-am:
500
501install-dvi: install-dvi-recursive
502
503install-exec-am:
504
505install-html: install-html-recursive
506
507install-info: install-info-recursive
508
509install-man:
510
511install-pdf: install-pdf-recursive
512
513install-ps: install-ps-recursive
514
515installcheck-am:
516
517maintainer-clean: maintainer-clean-recursive
518 -rm -f Makefile
519maintainer-clean-am: distclean-am maintainer-clean-generic
520
521mostlyclean: mostlyclean-recursive
522
523mostlyclean-am: mostlyclean-generic mostlyclean-libtool
524
525pdf: pdf-recursive
526
527pdf-am:
528
529ps: ps-recursive
530
531ps-am:
532
533uninstall-am:
534
535.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
536 install-strip
537
538.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
539 all all-am check check-am clean clean-generic clean-libtool \
540 ctags ctags-recursive distclean distclean-generic \
541 distclean-libtool distclean-tags distdir dvi dvi-am html \
542 html-am info info-am install install-am install-data \
543 install-data-am install-dvi install-dvi-am install-exec \
544 install-exec-am install-html install-html-am install-info \
545 install-info-am install-man install-pdf install-pdf-am \
546 install-ps install-ps-am install-strip installcheck \
547 installcheck-am installdirs installdirs-am maintainer-clean \
548 maintainer-clean-generic mostlyclean mostlyclean-generic \
549 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
550 uninstall uninstall-am
551
552# Tell versions [3.59,3.63) of GNU make to not export all variables.
553# Otherwise a system limit (for SysV at least) may be exceeded.
554.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile
new file mode 100644
index 0000000..0537b54
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_3dm/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_3dm
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_3dm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dm_la_OBJECTS = imp_3dm.lo imp_3dm_callbacks.lo \
59 imp_3dm_object.lo
60imp_3dm_la_OBJECTS = $(am_imp_3dm_la_OBJECTS)
61#am_imp_3dm_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_3dm_la_SOURCES)
75DIST_SOURCES = $(imp_3dm_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_3dm
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm
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_3dm.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 -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \
231 imp_3dm_callbacks.h imp_3dm_callbacks.c \
232 imp_3dm_object.c imp_3dm_object.h \
233 imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h
234
235imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_3dm.la: $(imp_3dm_la_OBJECTS) $(imp_3dm_la_DEPENDENCIES)
297 $(LINK) $(am_imp_3dm_la_rpath) $(imp_3dm_la_OBJECTS) $(imp_3dm_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305include ./$(DEPDIR)/imp_3dm.Plo
306include ./$(DEPDIR)/imp_3dm_callbacks.Plo
307include ./$(DEPDIR)/imp_3dm_object.Plo
308
309.c.o:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c $<
315
316.c.obj:
317 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319# source='$<' object='$@' libtool=no \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326# source='$<' object='$@' libtool=yes \
327# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
328# $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am
new file mode 100644
index 0000000..125488f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_3dm.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 -I$(top_builddir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \
22 imp_3dm_callbacks.h imp_3dm_callbacks.c \
23 imp_3dm_object.c imp_3dm_object.h \
24 imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h
25imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
26
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in
new file mode 100644
index 0000000..5831e8b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/Makefile.in
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
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_3dm
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_3dm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dm_la_OBJECTS = imp_3dm.lo imp_3dm_callbacks.lo \
59 imp_3dm_object.lo
60imp_3dm_la_OBJECTS = $(am_imp_3dm_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_3dm_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_3dm_la_SOURCES)
75DIST_SOURCES = $(imp_3dm_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_3dm.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 -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_3dm_la_SOURCES = imp_3dm.c imp_3dm.h \
231 imp_3dm_callbacks.h imp_3dm_callbacks.c \
232 imp_3dm_object.c imp_3dm_object.h \
233 imp_3dm_chunks.h imp_3dm_object_types.h imp_3dm_types.h
234
235imp_3dm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_3dm/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_3dm.la: $(imp_3dm_la_OBJECTS) $(imp_3dm_la_DEPENDENCIES)
297 $(LINK) $(am_imp_3dm_la_rpath) $(imp_3dm_la_OBJECTS) $(imp_3dm_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm_callbacks.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dm_object.Plo@am__quote@
308
309.c.o:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c $<
315
316.c.obj:
317@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
327@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
328@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c
new file mode 100644
index 0000000..6273fd3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.c
@@ -0,0 +1,169 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005 - 2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <ctype.h>
24#include <stdlib.h>
25#include <string.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/debug.h>
30
31#include "imp_3dm.h"
32#include "imp_3dm_chunks.h"
33
34static gboolean tdm_read_container(TdmGlobal *global, gpointer object,
35 goffset nb, guint32 level);
36
37EAPI
38gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
39 G3DModel *model, gpointer user_data)
40{
41 TdmGlobal *global;
42 G3DFloat version;
43 gchar magic[33], *pver;
44 gboolean retval;
45 guint32 max_len;
46
47 memset(magic, '\0', 33);
48 g3d_stream_read(stream, magic, 32);
49 if(strncmp(magic, "3D Geometry File Format ", 24) != 0) {
50 g_warning("%s is not an OpenNURBS 3dm file", stream->uri);
51 return FALSE;
52 }
53 pver = magic + 24;
54 while(isspace(*pver))
55 pver ++;
56 version = strtod(pver, NULL);
57#if DEBUG > 0
58 g_debug("loading %s, version %.1f", stream->uri, version);
59#endif
60
61 global = g_new0(TdmGlobal, 1);
62 global->context = context;
63 global->stream = stream;
64 global->model = model;
65 max_len = g3d_stream_size(stream);
66 if(!max_len)
67 max_len = (guint32) -1;
68 retval = tdm_read_container(global, NULL, max_len - 32, 0);
69 g_free(global);
70
71 return retval;
72}
73
74EAPI
75gchar *plugin_description(void)
76{
77 return g_strdup("OpenNURBS models.");
78}
79
80EAPI
81gchar **plugin_extensions(void)
82{
83 return g_strsplit("3dm", ":", 0);
84}
85
86/*****************************************************************************/
87
88static TdmChunkInfo *tdm_get_chunk_info(guint32 tcode)
89{
90 gint32 i;
91
92 for(i = 0; tdm_chunks[i].tcode <= tcode; i ++)
93 if(tdm_chunks[i].tcode == tcode)
94 return &(tdm_chunks[i]);
95 return NULL;
96}
97
98static gboolean tdm_read_container(TdmGlobal *global, gpointer object,
99 goffset nb, guint32 level)
100{
101 TdmChunkInfo *chunkinfo;
102 TdmLocal *local;
103 guint32 tcode;
104 guint32 len;
105 goffset off;
106
107 while(TRUE) {
108 off = g3d_stream_tell(global->stream);
109 tcode = g3d_stream_read_int32_le(global->stream);
110 len = g3d_stream_read_int32_le(global->stream);
111 nb -= 8;
112 if(tcode == 0)
113 return TRUE;
114
115 /* mask out DATA and CRC */
116 chunkinfo = tdm_get_chunk_info(tcode & 0x7FFF7FFF);
117
118#if DEBUG > 0
119 g_debug("\\%s[0x%08x][%c%c%c] %s (%d bytes @ 0x%08x)",
120 debug_pad(level), tcode,
121 (chunkinfo && chunkinfo->container) ? 'c' : ' ',
122 (chunkinfo && chunkinfo->endofcnt) ? 'e' : ' ',
123 (chunkinfo && chunkinfo->callback) ? 'f' : ' ',
124 chunkinfo ? chunkinfo->description : "unknown chunk",
125 (tcode & TCODE_DATA) ? 0 : len,
126 (guint32)off);
127#endif
128 if(chunkinfo && chunkinfo->endofcnt)
129 return TRUE;
130
131#if DEBUG > 0
132 if(tcode & TCODE_DATA)
133 g_debug("|%sdata: 0x%08x", debug_pad(level + 1), len);
134#endif
135
136 if(chunkinfo) {
137 if(chunkinfo->callback) {
138 local = g_new0(TdmLocal, 1);
139 local->tcode = tcode;
140 local->len = (tcode & TCODE_DATA) ? 0 : len;
141 local->data = (tcode & TCODE_DATA) ? len : 0;
142 local->level = level;
143 local->object = object;
144 chunkinfo->callback(global, local);
145 len = local->len;
146 object = local->object;
147 g_free(local);
148 }
149 if(chunkinfo->container) {
150 if(!tdm_read_container(global, object, len, level + 1))
151 return FALSE;
152 nb -= len;
153 len = 0;
154 if(tcode & TCODE_CRC) {
155 g3d_stream_read_int32_le(global->stream);
156 nb -= 4;
157 }
158 }
159 }
160
161 if(tcode & TCODE_DATA)
162 continue;
163
164 if(len > 0)
165 g3d_stream_skip(global->stream, len);
166 }
167
168 return TRUE;
169}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h
new file mode 100644
index 0000000..5239eb8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm.h
@@ -0,0 +1,31 @@
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_3DM_H
23#define _IMP_3DM_H
24
25#define TCODE_TABLE 0x10000000
26#define TCODE_DATA 0x80000000
27#define TCODE_CRC 0x00008000
28
29#define TCODE_ENDOFTABLE 0xFFFFFFFF
30
31#endif /* _IMP_3DM_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c
new file mode 100644
index 0000000..8eba35a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.c
@@ -0,0 +1,278 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/config.h>
23
24#include <g3d/types.h>
25#include <g3d/debug.h>
26#include <g3d/stream.h>
27#include <g3d/vector.h>
28#include <g3d/material.h>
29
30#include "imp_3dm_types.h"
31#include "imp_3dm_callbacks.h"
32#include "imp_3dm_object.h"
33#include "imp_3dm_object_types.h"
34
35static TdmObjectTypeInfo *tdm_otype_get_info(guint32 code)
36{
37 gint32 i;
38
39 if(code == 0xFFFFFFFF)
40 return NULL;
41
42 for(i = 0; tdm_object_types[i].code <= code; i ++)
43 if(tdm_object_types[i].code == code)
44 return &(tdm_object_types[i]);
45 return NULL;
46}
47
48static gboolean tdm_read_chunk_version(TdmGlobal *global, TdmLocal *local)
49{
50 guint8 ver = g3d_stream_read_int8(global->stream);
51
52 if(!ver)
53 return FALSE;
54 local->len -= 1;
55 local->major_version = (ver >> 4) & 0x0F;
56 local->minor_version = ver & 0x0F;
57
58 return TRUE;
59}
60
61/* OpenNURBS class data */
62gboolean tdm_cb_0x00027ffc(TdmGlobal *global, TdmLocal *local)
63{
64 TdmObjectRecord *obj = local->object;
65 TdmObjectTypeInfo *tinfo;
66 G3DMaterial *material;
67
68 if(!obj) {
69 g_warning("tdm_cb_0x00027FFC: expecting object...");
70 return TRUE;
71 }
72
73 tinfo = tdm_otype_get_info(obj->otype);
74 if(!tinfo) {
75 g_warning("unknown object type 0x%08x", obj->otype);
76 return TRUE;
77 }
78
79 local->level ++;
80#if DEBUG > 0
81 g_debug("\\%so: [0x%08x][%c]: %s", debug_pad(local->level),
82 obj->otype,
83 tinfo->callback ? 'f' : ' ',
84 tinfo->description);
85#endif
86 obj->object = g_new0(G3DObject, 1);
87 obj->object->name = g_strdup_printf("%s object @ 0x%08x",
88 tinfo->description, (guint32)g3d_stream_tell(global->stream));
89 global->model->objects = g_slist_append(global->model->objects,
90 obj->object);
91
92 material = g3d_material_new();
93 material->name = g_strdup("(default material)");
94 obj->object->materials = g_slist_append(obj->object->materials, material);
95
96 if(tinfo->callback)
97 tinfo->callback(global, local);
98
99 return TRUE;
100}
101
102/* object record type */
103gboolean tdm_cb_0x02000071(TdmGlobal *global, TdmLocal *local)
104{
105 TdmObjectRecord *obj = local->object;
106
107 if(obj)
108 obj->otype = local->data;
109 return TRUE;
110}
111
112/* object record end */
113gboolean tdm_cb_0x0200007f(TdmGlobal *global, TdmLocal *local)
114{
115 TdmObjectRecord *obj = local->object;
116
117 if(obj) {
118 g_free(obj);
119 }
120 return TRUE;
121}
122
123/* object record */
124gboolean tdm_cb_0x20000070(TdmGlobal *global, TdmLocal *local)
125{
126 local->object = g_new0(TdmObjectRecord, 1);
127 return TRUE;
128}
129
130/* object: mesh */
131gboolean tdm_cb_o_0x00000020(TdmGlobal *global, TdmLocal *local)
132{
133 TdmObjectRecord *obj = local->object;
134 G3DFace *face;
135 gint32 i, j;
136 guint32 vcount, fcount, isize, csize, crc;
137 guint8 c;
138
139 if(!tdm_read_chunk_version(global, local))
140 return FALSE;
141 if((local->major_version != 3) && (local->major_version != 1))
142 return TRUE;
143
144 vcount = g3d_stream_read_int32_le(global->stream);
145 fcount = g3d_stream_read_int32_le(global->stream);
146 local->len -= 8;
147
148 /* packed tex domain */
149 g3d_stream_read_double_le(global->stream);
150 g3d_stream_read_double_le(global->stream);
151 g3d_stream_read_double_le(global->stream);
152 g3d_stream_read_double_le(global->stream);
153 local->len -= 32;
154 /* srf domain */
155 g3d_stream_read_double_le(global->stream);
156 g3d_stream_read_double_le(global->stream);
157 g3d_stream_read_double_le(global->stream);
158 g3d_stream_read_double_le(global->stream);
159 local->len -= 32;
160 /* srf scale */
161 g3d_stream_read_double_le(global->stream);
162 g3d_stream_read_double_le(global->stream);
163 local->len -= 16;
164 /* vbox */
165 g3d_stream_read_float_le(global->stream);
166 g3d_stream_read_float_le(global->stream);
167 g3d_stream_read_float_le(global->stream);
168 g3d_stream_read_float_le(global->stream);
169 g3d_stream_read_float_le(global->stream);
170 g3d_stream_read_float_le(global->stream);
171 local->len -= 24;
172 /* nbox */
173 g3d_stream_read_float_le(global->stream);
174 g3d_stream_read_float_le(global->stream);
175 g3d_stream_read_float_le(global->stream);
176 g3d_stream_read_float_le(global->stream);
177 g3d_stream_read_float_le(global->stream);
178 g3d_stream_read_float_le(global->stream);
179 local->len -= 24;
180 /* tbox */
181 g3d_stream_read_float_le(global->stream);
182 g3d_stream_read_float_le(global->stream);
183 g3d_stream_read_float_le(global->stream);
184 g3d_stream_read_float_le(global->stream);
185 local->len -= 16;
186 /* closed */
187 g3d_stream_read_int32_le(global->stream);
188 local->len -= 4;
189
190#if DEBUG > 0
191 g_debug("|%svcount = %u, fcount = %u", debug_pad(local->level),
192 vcount, fcount);
193#endif
194
195 /* mesh parameters */
196 c = g3d_stream_read_int8(global->stream);
197 local->len -= 1;
198 if(c) {
199 return TRUE;
200 /* TODO */
201 }
202
203 /* mesh curvature */
204 for(i = 0; i < 4; i ++) {
205 c = g3d_stream_read_int8(global->stream);
206 local->len -= 1;
207 if(c) {
208 return TRUE;
209 /* TODO */
210 }
211 }
212
213 /* face array */
214 isize = g3d_stream_read_int32_le(global->stream);
215 local->len -= 4;
216 for(i = 0; i < fcount; i ++) {
217 face = g_new0(G3DFace, 1);
218 face->material = g_slist_nth_data(obj->object->materials, 0);
219 face->vertex_count = 4;
220 face->vertex_indices = g_new0(guint32, 4);
221 for(j = 0; j < 4; j ++) {
222 switch(isize) {
223 case 1:
224 face->vertex_indices[j] =
225 g3d_stream_read_int8(global->stream);
226 local->len -= 1;
227 break;
228 case 2:
229 face->vertex_indices[j] =
230 g3d_stream_read_int16_le(global->stream);
231 local->len -= 2;
232 break;
233 case 4:
234 face->vertex_indices[j] =
235 g3d_stream_read_int32_le(global->stream);
236 local->len -= 4;
237 break;
238 default:
239 g_warning("unsupported isize: %d", isize);
240 return TRUE;
241 break;
242 } /* switch(isize) */
243 } /* j := 0..3 */
244
245 obj->object->faces = g_slist_prepend(obj->object->faces, face);
246#if DEBUG > 0
247 g_debug("|%s[face %04d] %u, %u, %u, %u", debug_pad(local->level), i,
248 face->vertex_indices[0], face->vertex_indices[1],
249 face->vertex_indices[2], face->vertex_indices[3]);
250#endif
251 } /* i := 0..fcount */
252
253 /* vertex stuff */
254 if(local->major_version == 1) {
255 /* TODO */
256 return TRUE;
257 }
258
259 if(vcount > 0) {
260 csize = g3d_stream_read_int32_le(global->stream);
261 local->len -= 4;
262
263 crc = g3d_stream_read_int32_le(global->stream);
264 local->len -= 4;
265
266 c = g3d_stream_read_int8(global->stream);
267 local->len -= 1;
268
269 obj->object->vertex_count = vcount;
270 obj->object->vertex_data = g3d_vector_new(3, vcount);
271 if(c)
272 tdm_object_read_vertex_data_compressed(global, local);
273 else
274 tdm_object_read_vertex_data_uncompressed(global, local);
275 } /* vcount > 0 */
276
277 return TRUE;
278}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h
new file mode 100644
index 0000000..50ed6ef
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_callbacks.h
@@ -0,0 +1,34 @@
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_3DM_CALLBACKS_H
23#define _IMP_3DM_CALLBACKS_H
24
25#include "imp_3dm_types.h"
26
27gboolean tdm_cb_0x00027ffc(TdmGlobal *global, TdmLocal *local);
28gboolean tdm_cb_0x02000071(TdmGlobal *global, TdmLocal *local);
29gboolean tdm_cb_0x0200007f(TdmGlobal *global, TdmLocal *local);
30gboolean tdm_cb_0x20000070(TdmGlobal *global, TdmLocal *local);
31
32gboolean tdm_cb_o_0x00000020(TdmGlobal *global, TdmLocal *local);
33
34#endif /* _IMP_3DM_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h
new file mode 100644
index 0000000..2ce0f79
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_chunks.h
@@ -0,0 +1,114 @@
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_3DM_CHUNKS_H
23#define _IMP_3DM_CHUNKS_H
24
25#include "imp_3dm_callbacks.h"
26
27static TdmChunkInfo tdm_chunks[] = {
28 { 0x00000001, FALSE, FALSE, "comment block", NULL },
29 { 0x00007FFE, FALSE, TRUE, "end of file", NULL },
30 { 0x00007FFF, FALSE, TRUE, "end of file", NULL },
31
32 { 0x00027FF9, FALSE, FALSE, "ON class userdata header", NULL },
33 { 0x00027FFA, TRUE, FALSE, "OpenNURBS class", NULL },
34 { 0x00027FFB, FALSE, FALSE, "OpenNURBS class UUID", NULL },
35 { 0x00027FFC, FALSE, FALSE, "OpenNURBS class data", tdm_cb_0x00027ffc },
36 { 0x00027FFD, FALSE, FALSE, "OpenNURBS class userdata", NULL },
37 { 0x00027FFF, FALSE, TRUE, "OpenNURBS class end", NULL },
38
39 { 0x02000061, FALSE, FALSE, "light record attributes", NULL },
40 { 0x0200006F, FALSE, TRUE, "light record end", NULL },
41
42 { 0x02000071, FALSE, FALSE, "object record type", tdm_cb_0x02000071 },
43 { 0x02000072, FALSE, FALSE, "object record attributes", NULL },
44 { 0x0200007F, FALSE, TRUE, "object record end", tdm_cb_0x0200007f },
45
46 { 0x10000010, TRUE, FALSE, "material table", NULL },
47 { 0x10000011, TRUE, FALSE, "layer table", NULL },
48 { 0x10000012, TRUE, FALSE, "light table", NULL },
49 { 0x10000013, TRUE, FALSE, "object table", NULL },
50 { 0x10000014, TRUE, FALSE, "properties table", NULL },
51 { 0x10000015, TRUE, FALSE, "settings table", NULL },
52 { 0x10000016, TRUE, FALSE, "bitmap table", NULL },
53 { 0x10000017, TRUE, FALSE, "user table", NULL },
54 { 0x10000018, TRUE, FALSE, "group table", NULL },
55 { 0x10000019, TRUE, FALSE, "font table", NULL },
56 { 0x10000020, TRUE, FALSE, "dimension style table", NULL },
57 { 0x10000021, TRUE, FALSE, "instance definition table", NULL },
58 { 0x10000022, TRUE, FALSE, "hatch pattern table", NULL },
59 { 0x10000023, TRUE, FALSE, "linetype table", NULL },
60 { 0x10000024, TRUE, FALSE, "obsolete layer set table", NULL },
61 { 0x10000025, TRUE, FALSE, "texture mapping table", NULL },
62 { 0x10000026, TRUE, FALSE, "history record table", NULL },
63
64 { 0x20000021, FALSE, FALSE, "revision history", NULL },
65 { 0x20000022, FALSE, FALSE, "notes", NULL },
66 { 0x20000023, FALSE, FALSE, "preview image", NULL },
67 { 0x20000024, FALSE, FALSE, "application", NULL },
68 { 0x20000025, FALSE, FALSE, "compressed preview image", NULL },
69 { 0x20000026, FALSE, FALSE, "OpenNURBS version", NULL },
70
71 { 0x20000031, FALSE, FALSE, "units and tols", NULL },
72 { 0x20000032, FALSE, FALSE, "render mesh", NULL },
73 { 0x20000033, FALSE, FALSE, "analysis mesh", NULL },
74 { 0x20000034, FALSE, FALSE, "annotation", NULL },
75 { 0x20000035, FALSE, FALSE, "named cplane list", NULL },
76 { 0x20000036, FALSE, FALSE, "named view list", NULL },
77 { 0x20000037, FALSE, FALSE, "view list", NULL },
78 { 0x20000038, FALSE, FALSE, "current layer index", NULL },
79 { 0x20000039, FALSE, FALSE, "current material index", NULL },
80 { 0x2000003A, FALSE, FALSE, "current color", NULL },
81 { 0x2000003B, FALSE, FALSE, "view record", NULL },
82 { 0x2000003C, FALSE, FALSE, "current wire density", NULL },
83 { 0x2000003D, FALSE, FALSE, "render", NULL },
84 { 0x2000003E, FALSE, FALSE, "NEVER USE THIS", NULL },
85 { 0x2000003F, FALSE, FALSE, "grid defaults", NULL },
86 { 0x20000040, FALSE, FALSE, "material record", NULL },
87
88 { 0x20000050, FALSE, FALSE, "layer record", NULL },
89
90 { 0x20000060, TRUE, FALSE, "light record", NULL },
91
92 { 0x20000070, TRUE, FALSE, "object record", tdm_cb_0x20000070 },
93
94 { 0x20000073, FALSE, FALSE, "group record", NULL },
95 { 0x20000074, FALSE, FALSE, "font record", NULL },
96 { 0x20000075, FALSE, FALSE, "dimstyle record", NULL },
97 { 0x20000076, FALSE, FALSE, "instance definition record",NULL },
98 { 0x20000077, FALSE, FALSE, "hatch pattern record", NULL },
99 { 0x20000078, FALSE, FALSE, "linetype record", NULL },
100
101 { 0x20000080, FALSE, FALSE, "table id", NULL },
102 { 0x20000081, FALSE, FALSE, "user record", NULL },
103
104 { 0x20000131, FALSE, FALSE, "model url", NULL },
105 { 0x20000132, FALSE, FALSE, "current font index", NULL },
106 { 0x20000133, FALSE, FALSE, "current dimstyle index", NULL },
107 { 0x20000134, FALSE, FALSE, "attributes", NULL },
108 { 0x20000135, FALSE, FALSE, "plugin list", NULL },
109 { 0x2000013B, FALSE, FALSE, "cplane", NULL },
110
111 { 0x7FFF7FFF, FALSE, TRUE, "end of table", NULL },
112};
113
114#endif /* _IMP_3DM_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c
new file mode 100644
index 0000000..0e280a8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.c
@@ -0,0 +1,80 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/config.h>
23
24#include <g3d/types.h>
25#include <g3d/stream.h>
26
27#include "imp_3dm_types.h"
28
29static guint32 tdm_object_read_vector_data(G3DStream *stream,
30 G3DVector *vertex_data, guint32 vsize, guint32 vcount)
31{
32 gsize nb = 0;
33 gint32 i, j;
34
35 for(i = 0; i < vcount; i ++)
36 for(j = 0; j < vsize; j ++) {
37 vertex_data[i * vsize + j] = g3d_stream_read_float_le(stream);
38 nb += 4;
39 }
40 return nb;
41}
42
43gboolean tdm_object_read_vertex_data_uncompressed(TdmGlobal *global,
44 TdmLocal *local)
45{
46 TdmObjectRecord *obj = local->object;
47
48 local->len -= tdm_object_read_vector_data(global->stream,
49 obj->object->vertex_data, 3, obj->object->vertex_count);
50 return TRUE;
51}
52
53gboolean tdm_object_read_vertex_data_compressed(TdmGlobal *global,
54 TdmLocal *local)
55{
56#if HAVE_ZLIB
57 TdmObjectRecord *obj = local->object;
58 G3DStream *zstream;
59 guint32 csize;
60
61 g3d_stream_read_int32_le(global->stream); /* tcode */
62 csize = g3d_stream_read_int32_le(global->stream) - 4; /* size */
63 local->len -= 8;
64
65 zstream = g3d_stream_zlib_inflate_stream(global->stream, csize);
66 if(zstream) {
67 tdm_object_read_vector_data(zstream,
68 obj->object->vertex_data, 3, obj->object->vertex_count);
69 local->len -= csize;
70 g3d_stream_close(zstream);
71 /* CRC */
72 g3d_stream_read_int32_le(global->stream);
73 local->len -= 4;
74 return TRUE;
75 };
76#else
77 g_warning("no zlib support, unable to read deflated data");
78#endif /* HAVE_ZLIB */
79 return FALSE;
80}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h
new file mode 100644
index 0000000..3304c5f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object.h
@@ -0,0 +1,32 @@
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_3DM_OBJECT_H
23#define _IMP_3DM_OBJECT_H
24
25#include "imp_3dm_types.h"
26
27gboolean tdm_object_read_vertex_data_uncompressed(TdmGlobal *global,
28 TdmLocal *local);
29gboolean tdm_object_read_vertex_data_compressed(TdmGlobal *global,
30 TdmLocal *local);
31
32#endif /* _IMP_3DM_OBJECT_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h
new file mode 100644
index 0000000..d9574f3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_object_types.h
@@ -0,0 +1,61 @@
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_3DM_OBJECT_TYPES_H
23#define _IMP_3DM_OBJECT_TYPES_H
24
25#include "imp_3dm_callbacks.h"
26
27static TdmObjectTypeInfo tdm_object_types[] = {
28 { 0x00000000, "unknown object", NULL },
29 { 0x00000001, "point", NULL },
30 { 0x00000002, "point set", NULL },
31 { 0x00000004, "curve", NULL },
32 { 0x00000008, "surface", NULL },
33 { 0x00000010, "brep", NULL },
34 { 0x00000020, "mesh", tdm_cb_o_0x00000020 },
35 { 0x00000040, "layer", NULL },
36 { 0x00000080, "material", NULL },
37 { 0x00000100, "light", NULL },
38 { 0x00000200, "annotation", NULL },
39 { 0x00000400, "user data", NULL },
40 { 0x00000800, "instance definition", NULL },
41 { 0x00001000, "instance reference", NULL },
42 { 0x00002000, "text dot", NULL },
43 { 0x00004000, "grip", NULL },
44 { 0x00008000, "detail", NULL },
45 { 0x00010000, "hatch", NULL },
46 { 0x00020000, "morph control", NULL },
47 { 0x00080000, "loop", NULL },
48 { 0x00200000, "poly surface", NULL },
49 { 0x00400000, "edge filter", NULL },
50 { 0x00800000, "poly edge filter", NULL },
51 { 0x01000000, "mesh vertex", NULL },
52 { 0x02000000, "mesh edge", NULL },
53 { 0x04000000, "mesh face", NULL },
54 { 0x08000000, "cage", NULL },
55 { 0x10000000, "phantom", NULL },
56 { 0x20000000, "clip plane", NULL },
57
58 { 0xFFFFFFFF, "any object", NULL }
59};
60
61#endif /* _IMP_3DM_OBJECT_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h
new file mode 100644
index 0000000..1de1ce0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dm/imp_3dm_types.h
@@ -0,0 +1,64 @@
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_3DM_TYPES_H
23#define _IMP_3DM_TYPES_H
24
25#include <g3d/types.h>
26
27typedef struct {
28 G3DContext *context;
29 G3DStream *stream;
30 G3DModel *model;
31} TdmGlobal;
32
33typedef struct {
34 guint32 tcode;
35 guint32 len;
36 guint32 data;
37 guint32 level;
38 guint16 major_version;
39 guint16 minor_version;
40 gpointer object;
41} TdmLocal;
42
43typedef gboolean (* TdmCallback)(TdmGlobal *, TdmLocal *);
44
45typedef struct {
46 guint32 tcode;
47 gboolean container;
48 gboolean endofcnt;
49 const gchar *description;
50 TdmCallback callback;
51} TdmChunkInfo;
52
53typedef struct {
54 guint32 code;
55 const gchar *description;
56 TdmCallback callback;
57} TdmObjectTypeInfo;
58
59typedef struct {
60 guint32 otype;
61 G3DObject *object;
62} TdmObjectRecord;
63
64#endif /* _IMP_3DM_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile
new file mode 100644
index 0000000..f8edad7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_3dmf/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_3dmf
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_3dmf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dmf_la_OBJECTS = imp_3dmf.lo imp_3dmf_callbacks.lo
59imp_3dmf_la_OBJECTS = $(am_imp_3dmf_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3dmf_la_SOURCES)
73DIST_SOURCES = $(imp_3dmf_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3dmf.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \
229 imp_3dmf_callbacks.c imp_3dmf_callbacks.h
230
231imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3dmf.la: $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_3dmf.Plo
302include ./$(DEPDIR)/imp_3dmf_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am
new file mode 100644
index 0000000..a21a13a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_3dmf.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \
20 imp_3dmf_callbacks.c imp_3dmf_callbacks.h
21imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in
new file mode 100644
index 0000000..ac192df
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/Makefile.in
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_3dmf
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_3dmf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3dmf_la_OBJECTS = imp_3dmf.lo imp_3dmf_callbacks.lo
59imp_3dmf_la_OBJECTS = $(am_imp_3dmf_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3dmf_la_SOURCES)
73DIST_SOURCES = $(imp_3dmf_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3dmf.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_3dmf_la_SOURCES = imp_3dmf.c imp_3dmf_chunks.h \
229 imp_3dmf_callbacks.c imp_3dmf_callbacks.h
230
231imp_3dmf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3dmf/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3dmf.la: $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3dmf_la_OBJECTS) $(imp_3dmf_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dmf.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3dmf_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c
new file mode 100644
index 0000000..82a46d3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf.c
@@ -0,0 +1,646 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/context.h>
27#include <g3d/stream.h>
28#include <g3d/object.h>
29#include <g3d/vector.h>
30#include <g3d/matrix.h>
31#include <g3d/material.h>
32#include <g3d/iff.h>
33#include <g3d/debug.h>
34
35#include "imp_3dmf_chunks.h"
36
37#define X3DMF_CHUNK_CHAR(id, shift) \
38 ((((id) >> (shift)) & 0xFF) == 0) ? \
39 ' ' : ((id) >> (shift)) & 0xFF
40
41typedef struct {
42 guint32 id;
43 guint32 offset;
44 guint32 type;
45}
46X3dmfTocEntry;
47
48typedef struct {
49 guint32 num_entries;
50 X3dmfTocEntry *entries;
51}
52X3dmfToc;
53
54
55static gboolean x3dmf_read_container(G3DStream *stream, guint32 length,
56 G3DModel *model, G3DObject *object, guint32 level, X3dmfToc *toc,
57 G3DContext *context);
58static X3dmfToc *x3dmf_read_toc(G3DStream *stream, X3dmfToc *prev_toc,
59 G3DContext *context);
60
61EAPI
62gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
63 G3DModel *model, gpointer user_data)
64{
65 guint32 id, flags, tocloc, pos;
66 gsize len;
67 guint16 ver_min, ver_maj;
68 gchar txthead[10];
69 X3dmfToc *toc = NULL;
70
71 g3d_iff_read_chunk(stream, &id, &len, 0);
72 if((id != G3D_IFF_MKID('3', 'D', 'M', 'F')) || (len != 16)) {
73 g3d_stream_seek(stream, 0, G_SEEK_SET);
74 g3d_stream_read(stream, txthead, 10);
75 if(strncmp(txthead, "3DMetafile", 10) == 0) {
76 g_warning("file %s is an ASCII 3D Metafile (unhandled)\n",
77 stream->uri);
78 } else {
79 g_warning("file %s is not a 3D Metafile\n", stream->uri);
80 }
81 return FALSE;
82 }
83
84 ver_maj = g3d_stream_read_int16_be(stream);
85 ver_min = g3d_stream_read_int16_be(stream);
86
87 flags = g3d_stream_read_int32_be(stream);
88
89 g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */
90 tocloc = g3d_stream_read_int32_be(stream);
91
92 /* read TOC if available */
93 if(tocloc > 0) {
94 pos = g3d_stream_tell(stream);
95 g3d_stream_seek(stream, tocloc, G_SEEK_SET);
96 toc = x3dmf_read_toc(stream, NULL, context);
97 g3d_stream_seek(stream, pos, G_SEEK_SET);
98 }
99
100#if DEBUG > 0
101 g_debug("3DMF: version %d.%d (0x%08x) TOC @ 0x%08x",
102 ver_maj, ver_min, flags, tocloc);
103#endif
104
105 x3dmf_read_container(stream, (guint32) -1, model, NULL, 0, toc, context);
106
107 return TRUE;
108}
109
110EAPI
111gchar *plugin_description(void)
112{
113 return g_strdup("3D Metafiles.");
114}
115
116EAPI
117gchar **plugin_extensions(void)
118{
119 return g_strsplit("b3d:3mf:3dmf", ":", 0);
120}
121
122/******************************************************************************
123 * 3DMF specific
124 */
125
126static X3dmfChunkDesc *x3dmf_get_chunk_info(guint32 id)
127{
128 gint32 i;
129
130 for(i = 0; x3dmf_chunks[i].id != 0; i ++)
131 if(x3dmf_chunks[i].id == id)
132 return &(x3dmf_chunks[i]);
133 return NULL;
134}
135
136static X3dmfToc *x3dmf_read_toc(G3DStream *stream, X3dmfToc *prev_toc,
137 G3DContext *context)
138{
139 X3dmfToc *toc;
140 guint32 off_next_toc, typeseed, refseed, entrytype, entrysize, nentries;
141 guint32 noff, i;
142
143 if(prev_toc)
144 toc = prev_toc;
145 else
146 toc = g_new0(X3dmfToc, 1);
147
148 /* skip tag and size (FIXME) */
149 g3d_stream_skip(stream, 8);
150
151 g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */
152 off_next_toc = g3d_stream_read_int32_be(stream);
153 typeseed = g3d_stream_read_int32_be(stream);
154 refseed = g3d_stream_read_int32_be(stream);
155 entrytype = g3d_stream_read_int32_be(stream);
156 entrysize = g3d_stream_read_int32_be(stream);
157 nentries = g3d_stream_read_int32_be(stream);
158
159 /* resize entry array */
160 noff = toc->num_entries;
161 toc->num_entries += nentries;
162 toc->entries = (X3dmfTocEntry *)g_realloc(toc->entries,
163 toc->num_entries * sizeof(X3dmfTocEntry));
164
165 /* read TOC entries */
166 for(i = 0; i < nentries; i ++) {
167 toc->entries[noff + i].id = g3d_stream_read_int32_be(stream);
168 g3d_stream_skip(stream, 4); /* FIXME: 64bit file offsets */
169 toc->entries[noff + i].offset = g3d_stream_read_int32_be(stream);
170
171 if((entrytype == 1) && (entrysize == 16)) {
172 toc->entries[noff + i].type = g3d_stream_read_int32_be(stream);
173 }
174#if DEBUG > 0
175 g_debug("3DMF: TOC: %06d @ 0x%08x",
176 toc->entries[noff + i].id,
177 toc->entries[noff + i].offset);
178#endif
179 }
180
181 /* read next toc */
182 if(off_next_toc > 0) {
183 g3d_stream_seek(stream, off_next_toc, SEEK_SET);
184 toc = x3dmf_read_toc(stream, toc, context);
185 }
186
187 return toc;
188}
189
190static guint32 x3dmf_read_mesh(G3DStream *stream, G3DObject *object,
191 G3DContext *context)
192{
193 guint32 i, j, nconts, nfaces, nbytes = 0, ncverts, offv;
194 G3DFace *face;
195
196 g_return_val_if_fail(object != NULL, FALSE);
197
198 offv = object->vertex_count;
199 object->vertex_count += g3d_stream_read_int32_be(stream);
200 object->vertex_data = g_realloc(object->vertex_data,
201 object->vertex_count * 3 * sizeof(G3DFloat));
202 nbytes += 4;
203
204 for(i = offv; i < object->vertex_count; i ++) {
205 for(j = 0; j < 3; j ++)
206 object->vertex_data[i * 3 + j] = g3d_stream_read_float_be(stream);
207 nbytes += 12;
208
209 g3d_context_update_interface(context);
210 }
211
212 nfaces = g3d_stream_read_int32_be(stream);
213 nconts = g3d_stream_read_int32_be(stream);
214 nbytes += 8;
215
216#if DEBUG > 0
217 g_debug("|%u verts, %u faces, %u conts", object->vertex_count,
218 nfaces, nconts);
219#endif
220
221 for(i = 0; i < nfaces; i ++) {
222 face = g_new0(G3DFace, 1);
223
224 face->vertex_count = g3d_stream_read_int32_be(stream);
225 nbytes += 4;
226 face->vertex_indices = g_new0(guint32, face->vertex_count);
227
228 for(j = 0; j < face->vertex_count; j ++) {
229 face->vertex_indices[j] = offv + g3d_stream_read_int32_be(stream);
230 nbytes += 4;
231 if(face->vertex_indices[j] >= object->vertex_count) {
232 g_warning("face index wrong: %u >= %u",
233 face->vertex_indices[j], object->vertex_count);
234 face->vertex_indices[j] = 0;
235 }
236 }
237
238#if DEBUG > 3
239 g_debug("|face %u: %u %u %u", i, face->vertex_indices[0],
240 face->vertex_indices[1], face->vertex_indices[2]);
241#endif
242
243 face->material = g_slist_nth_data(object->materials, 0);
244 object->faces = g_slist_prepend(object->faces, face);
245
246 g3d_context_update_interface(context);
247 }
248
249 /* contours */
250 for(i = 0; i < nconts; i ++) {
251 ncverts = g3d_stream_read_int32_be(stream);
252 nbytes += 4;
253 for(j = 0; j < ncverts; j ++) {
254 g3d_stream_read_int32_be(stream);
255 nbytes += 4;
256 }
257 }
258
259 return nbytes;
260}
261
262static G3DObject *x3dmf_object_new(G3DStream *stream, G3DModel *model)
263{
264 G3DObject *object;
265 G3DMaterial *material;
266
267 object = g_new0(G3DObject, 1);
268 material = g3d_material_new();
269
270 object->name = g_strdup_printf("container @ 0x%08x",
271 (guint32)g3d_stream_tell(stream) - 8);
272 model->objects = g_slist_append(model->objects, object);
273 object->materials = g_slist_append(object->materials, material);
274
275 return object;
276}
277
278static guint32 x3dmf_read_packed(G3DStream *stream, guint32 maxx,
279 guint32 *nread)
280{
281 if(maxx > 0xFFFE) {
282 if(nread)
283 (*nread) += 4;
284 return g3d_stream_read_int32_be(stream);
285 } else if(maxx > 0xFE) {
286 if(nread)
287 (*nread) += 2;
288 return g3d_stream_read_int16_be(stream);
289 } else {
290 if(nread)
291 (*nread) += 1;
292 return g3d_stream_read_int8(stream);
293 }
294}
295
296/*
297 [tmsh] - TriMesh
298 http://developer.apple.com/documentation/QuickTime/QD3D/qd3dmetafile.33.htm
299
300 Uns32 numTriangles
301 Uns32 numTriangleAttributeTypes
302 Uns32 numEdges
303 Uns32 numEdgeAttributeTypes
304 Uns32 numPoints
305 Uns32 numVertexAttributeTypes
306 TriMeshTriangleData triangles[numTriangles]
307 TriMeshEdgeData edges[numEdges]
308 Point3D points[numPoints]
309 BoundingBox bBox
310*/
311
312static guint32 x3dmf_read_tmsh(G3DStream *stream, G3DObject *object,
313 G3DContext *context)
314{
315 G3DFace *face;
316 guint32 nread = 0, nfaces, nverts, nedges;
317 gint32 i, j;
318
319 nfaces = g3d_stream_read_int32_be(stream); /* numTriangles */
320 nread += 4;
321
322 g3d_stream_read_int32_be(stream); /* numTriangleAttributeTypes */
323 nread += 4;
324
325 nedges = g3d_stream_read_int32_be(stream); /* numEdges */
326 nread += 4;
327
328 g3d_stream_read_int32_be(stream); /* numEdgeAttributeTypes */
329 nread += 4;
330
331 nverts = g3d_stream_read_int32_be(stream); /* numPoints */
332 nread += 4;
333
334 g3d_stream_read_int32_be(stream); /* numVertexAttributeTypes */
335 nread += 4;
336
337#if DEBUG > 3
338 g_debug("3DMF: [tmsh] %d faces, %d edges, %d vertices",
339 nfaces, nedges, nverts);
340#endif
341
342 /* triangles */
343 for(i = 0; i < nfaces; i ++) {
344 face = g_new0(G3DFace, 1);
345
346 face->vertex_count = 3;
347 face->vertex_indices = g_new0(guint32, 3);
348 for(j = 0; j < 3; j ++) {
349 face->vertex_indices[j] =
350 x3dmf_read_packed(stream, nfaces, &nread);
351 if(face->vertex_indices[j] >= nverts) {
352 g_warning("face index error: %u >= %u",
353 face->vertex_indices[j], nverts);
354 face->vertex_indices[j] = 0;
355 }
356 }
357
358#if DEBUG > 3
359 g_debug("face %u (packed): %u %u %u", i, face->vertex_indices[0],
360 face->vertex_indices[1], face->vertex_indices[2]);
361#endif
362
363 face->material = g_slist_nth_data(object->materials, 0);
364 object->faces = g_slist_prepend(object->faces, face);
365 }
366
367 /* edges */
368 for(i = 0; i < nedges; i ++) {
369 /* pointIndices */
370 x3dmf_read_packed(stream, nedges, &nread);
371 x3dmf_read_packed(stream, nedges, &nread);
372 /* triangleIndices */
373 x3dmf_read_packed(stream, nedges, &nread);
374 x3dmf_read_packed(stream, nedges, &nread);
375 }
376
377 /* points */
378 object->vertex_count = nverts;
379 object->vertex_data = g_new0(G3DFloat, 3 * nverts);
380 for(i = 0; i < nverts; i ++) {
381 object->vertex_data[i * 3 + 0] = g3d_stream_read_float_be(stream);
382 object->vertex_data[i * 3 + 1] = g3d_stream_read_float_be(stream);
383 object->vertex_data[i * 3 + 2] = g3d_stream_read_float_be(stream);
384 nread += 12;
385 }
386
387 /* bBox */
388 /* Point3D min */
389 g3d_stream_read_float_be(stream);
390 g3d_stream_read_float_be(stream);
391 g3d_stream_read_float_be(stream);
392 nread += 12;
393 /* Point3D max */
394 g3d_stream_read_float_be(stream);
395 g3d_stream_read_float_be(stream);
396 g3d_stream_read_float_be(stream);
397 nread += 12;
398 /* boolean isEmpty */
399 g3d_stream_read_int32_be(stream);
400 nread += 4;
401
402 return nread;
403}
404
405static gboolean x3dmf_read_rfrn(G3DStream *stream, G3DModel *model,
406 X3dmfToc *toc, G3DContext *context)
407{
408 G3DObject *object;
409 guint32 id, i, refid, savedoffset;
410 gsize len;
411 X3dmfTocEntry *tocentry = NULL;
412
413 refid = g3d_stream_read_int32_be(stream);
414 if(refid == 0) {
415 /* FIXME */
416 return FALSE;
417 }
418
419 if(toc == NULL) {
420 return FALSE;
421 }
422
423 /* find reference object */
424 for(i = 0; i < toc->num_entries; i ++)
425 if(toc->entries[i].id == refid)
426 tocentry = &(toc->entries[i]);
427
428 g_return_val_if_fail(tocentry != NULL, FALSE);
429
430 savedoffset = g3d_stream_tell(stream);
431 g3d_stream_seek(stream, tocentry->offset, G_SEEK_SET);
432
433 object = x3dmf_object_new(stream, model);
434
435 g3d_iff_read_chunk(stream, &id, &len, 0);
436 switch(id) {
437 case G3D_IFF_MKID('c', 't', 'n', 'r'):
438 x3dmf_read_container(stream, len, model, NULL, 0xFF, toc, context);
439 break;
440
441 default:
442 break;
443 }
444
445 g3d_stream_seek(stream, savedoffset, G_SEEK_SET);
446
447 return TRUE;
448}
449
450static gboolean x3dmf_read_container(G3DStream *stream, guint32 length,
451 G3DModel *model, G3DObject *object, guint32 level, X3dmfToc *toc,
452 G3DContext *context)
453{
454 G3DMaterial *material = NULL;
455 X3dmfChunkDesc *chunkdesc;
456 guint32 id, chk, i;
457 gsize len;
458 G3DFloat matrix[16];
459
460 g3d_matrix_identity(matrix);
461
462 while(length > 0) {
463 if(g3d_stream_eof(stream))
464 break;
465
466 g3d_iff_read_chunk(stream, &id, &len, 0);
467 length -= 8;
468
469 if(id == 0)
470 return FALSE;
471
472 chunkdesc = x3dmf_get_chunk_info(id);
473
474#if DEBUG > 0
475 g_debug("\\%s[%c%c%c%c]: %s (%d bytes)", debug_pad(level),
476 X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16),
477 X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0),
478 chunkdesc ? chunkdesc->description : "unknown chunk",
479 len);
480#endif
481 length -= len;
482
483 switch(id) {
484 case G3D_IFF_MKID('c', 'n', 't', 'r'):
485 /* container */
486#if DEBUG > 0
487 g_debug("|%snew container @ 0x%x (%d bytes)",
488 debug_pad(level - 1),
489 (guint32)g3d_stream_tell(stream) - 8, len);
490#endif
491 x3dmf_read_container(stream, len, model, object, level + 1,
492 toc, context);
493 break;
494
495 case G3D_IFF_MKID('k', 'd', 'i', 'f'):
496 /* diffuse color */
497 if(object) {
498#if DEBUG > 2
499 g_debug("3DMF: kdif: got object");
500#endif
501 material = g_slist_nth_data(object->materials, 0);
502 material->r = g3d_stream_read_float_be(stream);
503 material->g = g3d_stream_read_float_be(stream);
504 material->b = g3d_stream_read_float_be(stream);
505 } else {
506 g3d_stream_skip(stream, len);
507 }
508 break;
509
510 case G3D_IFF_MKID('k', 's', 'p', 'c'):
511 /* specular color */
512 if(object) {
513#if DEBUG > 2
514 g_debug("3DMF: kspc: got object");
515#endif
516 material = g_slist_nth_data(object->materials, 0);
517 material->specular[0] = g3d_stream_read_float_be(stream);
518 material->specular[1] = g3d_stream_read_float_be(stream);
519 material->specular[2] = g3d_stream_read_float_be(stream);
520 } else {
521 g3d_stream_skip(stream, len);
522 }
523 break;
524
525 case G3D_IFF_MKID('k', 'x', 'p', 'r'):
526 /* transparency color */
527 if(object) {
528 /* use average as alpha */
529 material = g_slist_nth_data(object->materials, 0);
530 material->a = 1.0 -
531 (g3d_stream_read_float_be(stream) +
532 g3d_stream_read_float_be(stream) +
533 g3d_stream_read_float_be(stream)) / 3.0;
534
535 if(material->a < 0.1)
536 material->a = 0.1;
537 } else {
538 g3d_stream_skip(stream, len);
539 }
540 break;
541
542 case G3D_IFF_MKID('m', 'e', 's', 'h'):
543 /* mesh */
544 if(object == NULL)
545 object = x3dmf_object_new(stream, model);
546 material = g_slist_nth_data(object->materials, 0);
547
548 chk = x3dmf_read_mesh(stream, object, context);
549 g3d_object_transform(object, matrix);
550 if(chk != len) {
551 g_warning("3DMF: mesh: wrong length (%u != %u)\n",
552 chk, (unsigned int) len);
553 return FALSE;
554 }
555 break;
556
557 case G3D_IFF_MKID('m', 't', 'r', 'x'):
558 /* matrix */
559 for(i = 0; i < 16; i ++)
560 matrix[i] = g3d_stream_read_float_be(stream);
561 if(object) {
562#if DEBUG > 2
563 g_debug("3DMF: mtrx: object is set");
564#endif
565 g3d_object_transform(object, matrix);
566 }
567#if DEBUG > 3
568 for(i = 0; i < 4; i ++)
569 g_debug("3DMF: mtrx: %+1.2f %+1.2f %+1.2f %+1.2f",
570 matrix[i * 4 + 0], matrix[i * 4 + 1],
571 matrix[i * 4 + 2], matrix[i * 4 + 3]);
572#endif
573 break;
574
575 case G3D_IFF_MKID('r', 'f', 'r', 'n'):
576 /* reference */
577 x3dmf_read_rfrn(stream, model, toc, context);
578 break;
579
580 case G3D_IFF_MKID('s', 'e', 't', ' '):
581 /* ??: skip this cntr chunk */
582 g3d_stream_skip(stream, length);
583 length = 0;
584 break;
585
586 case G3D_IFF_MKID('t', 'm', 's', 'h'):
587 /* triangle mesh */
588 if(object == NULL)
589 object = x3dmf_object_new(stream, model);
590 material = g_slist_nth_data(object->materials, 0);
591
592 chk = x3dmf_read_tmsh(stream, object, context);
593 g3d_object_transform(object, matrix);
594 if(chk != len) {
595#if DEBUG > 0
596 g_debug("3DMF: tmsh: offset %d bytes", len - chk);
597#endif
598 g3d_stream_skip(stream, len - chk);
599 }
600 break;
601
602 case G3D_IFF_MKID('t', 'r', 'n', 's'):
603 /* translate */
604 if(object) {
605 G3DFloat x,y,z;
606 G3DFloat matrix[16];
607
608 x = g3d_stream_read_float_be(stream);
609 y = g3d_stream_read_float_be(stream);
610 z = g3d_stream_read_float_be(stream);
611
612 g3d_matrix_identity(matrix);
613 g3d_matrix_translate(x, y, z, matrix);
614
615 g3d_object_transform(object, matrix);
616 } else {
617#if DEBUG > 0
618 g_warning("3DMF: [trns] no object");
619#endif
620 g3d_stream_skip(stream, 12);
621 }
622 break;
623
624 default:
625 if(chunkdesc) {
626 g3d_stream_skip(stream, len);
627 } else {
628#if DEBUG > 0
629 g_warning("3DMF: Container: unknown chunk '%c%c%c%c'/"
630 "0x%02X%02X%02X%02X @ 0x%08x "
631 "(%d bytes)",
632 X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16),
633 X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0),
634 X3DMF_CHUNK_CHAR(id, 24), X3DMF_CHUNK_CHAR(id, 16),
635 X3DMF_CHUNK_CHAR(id, 8), X3DMF_CHUNK_CHAR(id, 0),
636 (guint32)g3d_stream_tell(stream) - 8, len);
637#endif
638 g3d_stream_skip(stream, len);
639 }
640 break;
641 }
642 }
643
644 return TRUE;
645}
646
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c
new file mode 100644
index 0000000..1c76249
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.c
@@ -0,0 +1,23 @@
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 "imp_3dmf_callbacks.h"
23
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.h
new file mode 100644
index 0000000..5cb37a6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_callbacks.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_3DMF_CALLBACKS_H
23#define _IMP_3DMF_CALLBACKS_H
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27
28typedef struct {
29 G3DContext *context;
30 G3DStream *stream;
31} X3dmfGlobal;
32
33typedef struct {
34 guint32 id;
35 guint32 parentid;
36 guint32 level;
37 G3DObject *object;
38} X3dmfLocal;
39
40typedef gboolean (* X3dmfCallback)(X3dmfGlobal *global, X3dmfLocal *local);
41
42#endif /* _IMP_3DMF_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h
new file mode 100644
index 0000000..471a14c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3dmf/imp_3dmf_chunks.h
@@ -0,0 +1,95 @@
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_3DMF_CHUNKS_H
23#define _IMP_3DMF_CHUNKS_H
24
25#include <g3d/iff.h>
26#include "imp_3dmf_callbacks.h"
27
28typedef struct {
29 guint32 id;
30 const gchar *description;
31 X3dmfCallback callback;
32} X3dmfChunkDesc;
33
34#define ID G3D_IFF_MKID
35
36static X3dmfChunkDesc x3dmf_chunks[] = {
37 { ID('a', 'm', 'b', 'n'), "ambient light", NULL },
38 { ID('a', 't', 'a', 'r'), "(registered unknown)", NULL },
39 { ID('a', 't', 't', 'r'), "attribute set", NULL },
40 { ID('b', 'g', 'n', 'g'), "begin group", NULL },
41 { ID('c', 'a', 'm', 'b'), "ambient coefficient", NULL },
42 { ID('c', 'm', 'p', 'l'), "camera placement", NULL },
43 { ID('c', 'm', 'r', 'g'), "camera range", NULL },
44 { ID('c', 'm', 'v', 'p'), "camera viewport", NULL },
45 { ID('c', 'n', 't', 'r'), "container", NULL },
46 { ID('c', 's', 'g', 'e'), "(registered unknown)", NULL },
47 { ID('c', 's', 'p', 'c'), "specular control", NULL },
48 { ID('c', 't', 'w', 'n'), "interactive renderer", NULL },
49 { ID('d', 'b', 'b', 'p'), "(registered unknown)", NULL },
50 { ID('d', 'r', 'c', 't'), "directional light", NULL },
51 { ID('e', 'n', 'd', 'g'), "end group", NULL },
52 { ID('h', 'l', 's', 't'), "highlight state", NULL },
53 { ID('i', 'm', 'c', 'c'), "image clear color", NULL },
54 { ID('i', 'm', 'd', 'm'), "image dimensions", NULL },
55 { ID('k', 'd', 'i', 'f'), "diffuse color", NULL },
56 { ID('k', 's', 'p', 'c'), "specular color", NULL },
57 { ID('k', 'x', 'p', 'r'), "transparency color", NULL },
58 { ID('l', 'g', 'h', 't'), "light data", NULL },
59 { ID('m', 'e', 's', 'h'), "mesh", NULL },
60 { ID('m', 't', 'r', 'x'), "matrix", NULL },
61 { ID('n', 'r', 'm', 'l'), "normal", NULL },
62 { ID('p', 'n', 't', 'l'), "point light", NULL },
63 { ID('r', 'f', 'r', 'n'), "reference", NULL },
64 { ID('r', 'v', 'h', 'n'), "(registered unknown)", NULL },
65 { ID('r', 'v', 't', 'x'), "(registered unknown)", NULL },
66 { ID('s', 'e', 't', ' '), "set", NULL },
67 { ID('s', 't', 'r', 'c'), "C string", NULL },
68 { ID('t', 'm', 's', 'h'), "triangle mesh", NULL },
69 { ID('t', 'o', 'c', ' '), "tabe of contents", NULL },
70 { ID('t', 'r', 'n', 's'), "translation", NULL },
71 { ID('t', 'y', 'p', 'e'), "type definition", NULL },
72 { ID('v', 'a', 'n', 'a'), "view angle aspect cam", NULL },
73 { ID('v', 'a', 's', 'l'), "vertex attr set list", NULL },
74 { ID('v', 'n', 'i', 'd'), "(registered unknown)", NULL },
75 { ID('v', 'w', 'h', 'n'), "view hints", NULL },
76 { ID('v', 'w', 'p', 'l'), "view plane camera", NULL },
77
78 { ID(0xFF, 0xFF, 0xFF, 0xE5), "0xFFFFFFE5", NULL },
79 { ID(0xFF, 0xFF, 0xFF, 0xE7), "0xFFFFFFE7", NULL },
80 { ID(0xFF, 0xFF, 0xFF, 0xE9), "0xFFFFFFE9", NULL },
81 { ID(0xFF, 0xFF, 0xFF, 0xEA), "0xFFFFFFEA", NULL },
82 { ID(0xFF, 0xFF, 0xFF, 0xEB), "0xFFFFFFEB", NULL },
83 { ID(0xFF, 0xFF, 0xFF, 0xEC), "0xFFFFFFEC", NULL },
84 { ID(0xFF, 0xFF, 0xFF, 0xEF), "0xFFFFFFEF (EoC?)", NULL },
85 { ID(0xFF, 0xFF, 0xFF, 0xF1), "0xFFFFFFF1", NULL },
86 { ID(0xFF, 0xFF, 0xFF, 0xF4), "0xFFFFFFF4", NULL },
87 { ID(0xFF, 0xFF, 0xFF, 0xF6), "0xFFFFFFF6", NULL },
88 { ID(0xFF, 0xFF, 0xFF, 0xFD), "0xFFFFFFFD", NULL },
89
90 { 0, NULL, NULL }
91};
92
93#undef ID
94
95#endif /* _IMP_3DMF_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile
new file mode 100644
index 0000000..5fba831
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_3ds/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_3ds
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_3ds_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3ds_la_OBJECTS = imp_3ds.lo imp_3ds_callbacks.lo
59imp_3ds_la_OBJECTS = $(am_imp_3ds_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3ds_la_SOURCES)
73DIST_SOURCES = $(imp_3ds_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3ds.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_3ds_la_SOURCES = imp_3ds.c imp_3ds.h imp_3ds_chunks.h \
229 imp_3ds_callbacks.c imp_3ds_callbacks.h
230
231imp_3ds_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3ds.la: $(imp_3ds_la_OBJECTS) $(imp_3ds_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3ds_la_OBJECTS) $(imp_3ds_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_3ds.Plo
302include ./$(DEPDIR)/imp_3ds_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.am
new file mode 100644
index 0000000..b18ad09
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_3ds.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_3ds_la_SOURCES = imp_3ds.c imp_3ds.h imp_3ds_chunks.h \
20 imp_3ds_callbacks.c imp_3ds_callbacks.h
21imp_3ds_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.in
new file mode 100644
index 0000000..a48d289
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/Makefile.in
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_3ds
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_3ds_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_3ds_la_OBJECTS = imp_3ds.lo imp_3ds_callbacks.lo
59imp_3ds_la_OBJECTS = $(am_imp_3ds_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_3ds_la_SOURCES)
73DIST_SOURCES = $(imp_3ds_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_3ds.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_3ds_la_SOURCES = imp_3ds.c imp_3ds.h imp_3ds_chunks.h \
229 imp_3ds_callbacks.c imp_3ds_callbacks.h
230
231imp_3ds_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_3ds/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_3ds.la: $(imp_3ds_la_OBJECTS) $(imp_3ds_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_3ds_la_OBJECTS) $(imp_3ds_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3ds.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_3ds_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c
new file mode 100644
index 0000000..6125984
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.c
@@ -0,0 +1,206 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <stdarg.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30#include <g3d/texture.h>
31#include <g3d/matrix.h>
32
33#include "imp_3ds.h"
34#include "imp_3ds_chunks.h"
35
36/*****************************************************************************/
37/* plugin interface */
38/*****************************************************************************/
39
40EAPI
41gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
42 G3DModel *model, gpointer plugin_data)
43{
44 G3DMatrix rmatrix[16];
45 gint32 nbytes, magic;
46 gboolean retval;
47 x3ds_global_data global;
48 x3ds_parent_data *parent;
49
50 magic = g3d_stream_read_int16_le(stream);
51 if((magic != 0x4D4D) && (magic != 0xC23D))
52 {
53 g_warning("file %s is not a 3ds file", stream->uri);
54 return FALSE;
55 }
56 nbytes = g3d_stream_read_int32_le(stream);
57 nbytes -= 6;
58#if DEBUG > 0
59 g_debug("\\[%4.4X] 3DS file: main length: %d", magic, nbytes);
60#endif
61
62 global.context = context;
63 global.model = model;
64 global.stream = stream;
65 global.scale = 1.0;
66 global.max_tex_id = 0;
67
68 parent = g_new0(x3ds_parent_data, 1);
69 parent->id = magic;
70 parent->nb = nbytes;
71
72 retval = x3ds_read_ctnr(&global, parent);
73
74 g3d_matrix_identity(rmatrix);
75 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
76 g3d_model_transform(model, rmatrix);
77
78 g_free(parent);
79
80 return retval;
81}
82
83EAPI
84gchar *plugin_description(void)
85{
86 return g_strdup("AutoCAD 3D Studio models.");
87}
88
89EAPI
90gchar **plugin_extensions(void)
91{
92 return g_strsplit("3ds:prj", ":", 0);
93}
94
95/*****************************************************************************/
96
97gboolean x3ds_read_ctnr(x3ds_global_data *global, x3ds_parent_data *parent)
98{
99 gint32 chunk_id, chunk_len, i;
100 x3ds_parent_data *subparent;
101 gpointer level_object;
102 gchar *padding = " ";
103
104 level_object = NULL;
105
106 while(parent->nb > 0) {
107 chunk_id = g3d_stream_read_int16_le(global->stream);
108 chunk_len = g3d_stream_read_int32_le(global->stream);
109 parent->nb -= 6;
110 chunk_len -= 6;
111
112 i = 0;
113 while((x3ds_chunks[i].id != 0) && (x3ds_chunks[i].id != chunk_id))
114 i ++;
115
116 if(x3ds_chunks[i].id == chunk_id) {
117 g_debug("\\%s(%d)[0x%04X][%c%c] %s (%d bytes)",
118 padding + (strlen(padding) - parent->level), parent->level,
119 chunk_id,
120 x3ds_chunks[i].container ? 'c' : ' ',
121 x3ds_chunks[i].callback ? 'f' : ' ',
122 x3ds_chunks[i].desc, chunk_len);
123 if (chunk_id==0) {
124 g_warning("error: bad chunk id");
125 return FALSE;
126 }
127
128 subparent = g_new0(x3ds_parent_data, 1);
129 subparent->id = parent->id;
130 subparent->object = parent->object;
131 subparent->level = parent->level + 1;
132 subparent->level_object = level_object;
133 subparent->nb = chunk_len;
134
135 if(x3ds_chunks[i].callback) {
136 /* callback may change "nb" and "object" of
137 * "subparent" structure for following container run */
138
139 x3ds_chunks[i].callback(global, subparent);
140 }
141
142 subparent->id = chunk_id;
143
144 if(x3ds_chunks[i].container) {
145 if(x3ds_read_ctnr(global, subparent) == FALSE) {
146 /* abort on error */
147 return FALSE;
148 }
149 }
150
151 if(subparent->nb)
152 g3d_stream_skip(global->stream, subparent->nb);
153
154 level_object = subparent->level_object;
155
156 g_free(subparent);
157 } else {
158 g_warning("[3DS] unknown chunk type 0x%04X", chunk_id);
159 g3d_stream_skip(global->stream, chunk_len);
160 }
161 parent->nb -= chunk_len;
162
163 /* update progress bar */
164 x3ds_update_progress(global, parent->level);
165 }
166
167 return TRUE;
168}
169
170void x3ds_update_progress(x3ds_global_data *global, guint32 level)
171{
172 goffset fpos;
173
174 /* update progress bar */
175 if(level < 4) {
176 fpos = g3d_stream_tell(global->stream);
177 g3d_context_update_progress_bar(global->context,
178 ((G3DFloat)fpos / (G3DFloat)g3d_stream_size(global->stream)), TRUE);
179 }
180}
181
182gint32 x3ds_read_cstr(G3DStream *stream, gchar *string)
183{
184 gint32 n = 0;
185 char c;
186 do {
187 c = g3d_stream_read_int8(stream);
188 string[n] = c;
189 n++;
190 } while(c != 0);
191 return n;
192}
193
194G3DObject *x3ds_newobject(G3DModel *model, const gchar *name)
195{
196 G3DObject *object = g_malloc0(sizeof(G3DObject));
197 G3DMaterial *material = g3d_material_new();
198
199 object->name = g_strdup(name);
200 object->faces = NULL;
201 model->objects = g_slist_append(model->objects, object);
202 object->materials = g_slist_append(object->materials, material);
203
204 return object;
205}
206
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h
new file mode 100644
index 0000000..80a2c8c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds.h
@@ -0,0 +1,55 @@
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_3DS_H
23#define _IMP_3DS_H
24
25#include <stdio.h>
26#include <glib.h>
27#include <g3d/g3d.h>
28#include <g3d/stream.h>
29
30typedef struct {
31 G3DContext *context;
32 G3DModel *model;
33 G3DStream *stream;
34 G3DFloat scale;
35 gint32 max_tex_id;
36} x3ds_global_data;
37
38typedef struct {
39 gint32 id;
40 gpointer object;
41 gpointer misc_object;
42 gint32 level;
43 gpointer level_object;
44 guint32 nb;
45} x3ds_parent_data;
46
47typedef gboolean (* x3ds_callback)(x3ds_global_data *global,
48 x3ds_parent_data *parent);
49
50gboolean x3ds_read_ctnr(x3ds_global_data *global, x3ds_parent_data *parent);
51void x3ds_update_progress(x3ds_global_data *global, guint32 level);
52gint32 x3ds_read_cstr(G3DStream *stream, gchar *string);
53G3DObject *x3ds_newobject(G3DModel *model, const gchar *name);
54
55#endif /* _IMP_3DS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.c
new file mode 100644
index 0000000..fdd9823
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.c
@@ -0,0 +1,992 @@
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 <math.h>
24
25#include <g3d/stream.h>
26#include <g3d/texture.h>
27#include <g3d/vector.h>
28#include <g3d/matrix.h>
29
30#include "imp_3ds_callbacks.h"
31
32#define X3DS_FLAG_TENSION 0x01
33#define X3DS_FLAG_CONTINUITY 0x02
34#define X3DS_FLAG_BIAS 0x04
35#define X3DS_FLAG_EASE_TO 0x08
36#define X3DS_FLAG_EASE_FROM 0x10
37
38gboolean x3ds_cb_0x0002(x3ds_global_data *global, x3ds_parent_data *parent)
39{
40 gint32 version;
41
42 version = g3d_stream_read_int32_le(global->stream);
43 parent->nb -= 4;
44#if DEBUG > 0
45 g_debug("[3DS] M3D version %d", version);
46#endif
47 return TRUE;
48}
49
50/* color float */
51gboolean x3ds_cb_0x0010(x3ds_global_data *global, x3ds_parent_data *parent)
52{
53 G3DMaterial *material;
54 G3DFloat r, g, b;
55
56 r = g3d_stream_read_float_le(global->stream);
57 g = g3d_stream_read_float_le(global->stream);
58 b = g3d_stream_read_float_le(global->stream);
59 parent->nb -= 12;
60
61 switch(parent->id)
62 {
63 case 0x1200: /* SOLID_BGND */
64 g3d_context_set_bgcolor(global->context, r, g, b, 1.0);
65 break;
66
67 case 0xA010: /* ambient color */
68 break;
69
70 case 0xA020: /* diffuse color */
71 material = (G3DMaterial *)parent->object;
72 g_return_val_if_fail(material, FALSE);
73
74 material->r = r;
75 material->g = g;
76 material->b = b;
77 break;
78
79 case 0xA030: /* specular color */
80 material = (G3DMaterial *)parent->object;
81 g_return_val_if_fail(material, FALSE);
82
83 material->specular[0] = r;
84 material->specular[1] = g;
85 material->specular[2] = b;
86 material->specular[3] = 0.25;
87 break;
88
89 default:
90#if DEBUG > 0
91 g_warning("[3DS] unhandled COLOR_F in 0x%04X", parent->id);
92#endif
93 break;
94 }
95
96 return TRUE;
97}
98
99/* color 24 */
100gboolean x3ds_cb_0x0011(x3ds_global_data *global, x3ds_parent_data *parent)
101{
102 G3DMaterial *material;
103 gint32 r, g, b;
104
105 material = (G3DMaterial *)parent->object;
106 g_return_val_if_fail(material, FALSE);
107
108 r = g3d_stream_read_int8(global->stream);
109 g = g3d_stream_read_int8(global->stream);
110 b = g3d_stream_read_int8(global->stream);
111 parent->nb -= 3;
112
113 switch(parent->id)
114 {
115
116 case 0xA010: /* ambient color */
117 break;
118
119 case 0xA020: /* diffuse color */
120 material->r = (G3DFloat)r / 255.0;
121 material->g = (G3DFloat)g / 255.0;
122 material->b = (G3DFloat)b / 255.0;
123 break;
124
125 case 0xA030: /* specular color */
126 material->specular[0] = (GLfloat)r / 255.0;
127 material->specular[1] = (GLfloat)g / 255.0;
128 material->specular[2] = (GLfloat)b / 255.0;
129 material->specular[3] = 0.25;
130 break;
131
132 default:
133#if DEBUG > 0
134 g_warning("[3DS] unhandled COLOR_24 in 0x%04X", parent->id);
135#endif
136 break;
137 }
138
139 return TRUE;
140}
141
142/* short percentage */
143gboolean x3ds_cb_0x0030(x3ds_global_data *global, x3ds_parent_data *parent)
144{
145 G3DMaterial *material;
146 gint32 percent;
147
148 material = (G3DMaterial *)parent->object;
149 g_return_val_if_fail(material, FALSE);
150
151 percent = g3d_stream_read_int16_le(global->stream);
152 parent->nb -= 2;
153
154 switch(parent->id)
155 {
156 case 0xA040: /* shininess */
157 material->shininess = (G3DFloat)percent / 100.0;
158 break;
159
160 case 0xA041: /* shininess (2) */
161 /* TODO: do something here? */
162 break;
163
164 case 0xA050: /* transparency */
165 material->a = 1.0 - ((G3DFloat)percent / 100.0);
166 break;
167
168 case 0xA052: /* fallthrough */
169 /* TODO: do something here? */
170 break;
171
172 case 0xA053: /* blur */
173 /* TODO: do something here? */
174 break;
175
176 case 0xA084: /* self illumination */
177 /* TODO: do something here? */
178 break;
179
180 case 0xA200: /* texture map */
181 /* TODO: do something here? */
182 break;
183
184 case 0xA210: /* opacity map */
185 /* TODO: do something here? */
186 g_debug("[3DS] opacity percentage: %d%%\n", percent);
187 break;
188
189 case 0xA220: /* reflection map */
190 /* TODO: do something here? */
191 break;
192
193 case 0xA230: /* bump map */
194 /* TODO: do something here? */
195 break;
196
197 default:
198#if DEBUG > 0
199 g_warning("[3DS] unhandled INT_PERCENTAGE in 0x%04X",
200 parent->id);
201#endif
202 break;
203 }
204
205 return TRUE;
206}
207
208/* float percentage */
209gboolean x3ds_cb_0x0031(x3ds_global_data *global, x3ds_parent_data *parent)
210{
211 G3DMaterial *material;
212 G3DFloat percent;
213
214 material = (G3DMaterial *)parent->object;
215 g_return_val_if_fail(material, FALSE);
216
217 percent = g3d_stream_read_float_le(global->stream);
218 parent->nb -= 4;
219
220 switch(parent->id)
221 {
222 case 0xA040: /* shininess */
223 material->shininess = percent;
224 break;
225
226 case 0xA050: /* transparency */
227 material->a = 1.0 - percent;
228 break;
229
230 default:
231#if DEBUG > 0
232 g_warning("[3DS] unhandled FLOAT_PERCENTAGE in 0x%04X",
233 parent->id);
234#endif
235 break;
236 }
237
238 return TRUE;
239}
240
241/* master scale */
242gboolean x3ds_cb_0x0100(x3ds_global_data *global, x3ds_parent_data *parent)
243{
244 global->scale = g3d_stream_read_float_le(global->stream);
245 parent->nb -= 4;
246
247 return TRUE;
248}
249
250/* named object */
251gboolean x3ds_cb_0x4000(x3ds_global_data *global, x3ds_parent_data *parent)
252{
253 gchar buffer[1024];
254
255 parent->nb -= x3ds_read_cstr(global->stream, buffer);
256 parent->object = x3ds_newobject(global->model, buffer);
257
258 return TRUE;
259}
260
261/* point array */
262gboolean x3ds_cb_0x4110(x3ds_global_data *global, x3ds_parent_data *parent)
263{
264 G3DObject *object;
265 gint32 i;
266
267 object = (G3DObject *)parent->object;
268 g_return_val_if_fail(object, FALSE);
269
270 object->vertex_count = g3d_stream_read_int16_le(global->stream);
271 parent->nb -= 2;
272
273 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
274 for(i = 0; i < object->vertex_count; i ++)
275 {
276 object->vertex_data[i * 3 + 0] = g3d_stream_read_float_le(global->stream);
277 object->vertex_data[i * 3 + 1] = g3d_stream_read_float_le(global->stream);
278 object->vertex_data[i * 3 + 2] = g3d_stream_read_float_le(global->stream);
279
280 parent->nb -= 12;
281
282 if((i % 1000) == 0) x3ds_update_progress(global, parent->level);
283 }
284 return TRUE;
285}
286
287/* face array */
288gboolean x3ds_cb_0x4120(x3ds_global_data *global, x3ds_parent_data *parent)
289{
290 gint32 i, flags, nfaces;
291#define X3DS_REORDER_FACES
292#ifdef X3DS_REORDER_FACES
293 gint32 p1 = -1, p2 = -1, bottle;
294#endif
295 G3DFace *face;
296 G3DObject *object;
297
298 object = (G3DObject *)parent->object;
299 g_return_val_if_fail(object, FALSE);
300
301 nfaces = g3d_stream_read_int16_le(global->stream);
302 parent->nb -= 2;
303
304 for(i = 0; i < nfaces; i ++)
305 {
306 face = g_new0(G3DFace, 1);
307
308 face->vertex_count = 3;
309 face->vertex_indices = g_malloc(3 * sizeof(guint32));
310
311 face->vertex_indices[0] = g3d_stream_read_int16_le(global->stream);
312 face->vertex_indices[1] = g3d_stream_read_int16_le(global->stream);
313 face->vertex_indices[2] = g3d_stream_read_int16_le(global->stream);
314 flags = g3d_stream_read_int16_le(global->stream);
315 parent->nb -= 8;
316
317#ifdef X3DS_REORDER_FACES
318 /* try to put all faces in the same direction */
319 if((p1 == face->vertex_indices[0]) && (p2 == face->vertex_indices[1]))
320 {
321 bottle = face->vertex_indices[0];
322 face->vertex_indices[0] = face->vertex_indices[2];
323 face->vertex_indices[2] = bottle;
324 }
325
326 p1 = face->vertex_indices[0];
327 p2 = face->vertex_indices[1];
328#endif
329
330 face->material = g_slist_nth_data(object->materials, 0);
331
332 object->faces = g_slist_append(object->faces, face);
333
334 if((i % 1000) == 0) x3ds_update_progress(global, parent->level);
335 }
336
337 return TRUE;
338}
339
340/* mesh mat group */
341gboolean x3ds_cb_0x4130(x3ds_global_data *global, x3ds_parent_data *parent)
342{
343 G3DObject *object;
344 gint32 i, j, facenum, nfaces;
345 gchar buffer[512];
346 G3DMaterial *material = NULL, *mat;
347 G3DFace *face;
348 GSList *mlist;
349
350 object = (G3DObject *)parent->object;
351 g_return_val_if_fail(object, FALSE);
352
353 /* name of material */
354 parent->nb -= x3ds_read_cstr(global->stream, buffer);
355
356 /* find material in list */
357 mlist = global->model->materials;
358 while(mlist != NULL)
359 {
360 mat = (G3DMaterial*)mlist->data;
361 if(strcmp(mat->name, buffer) == 0)
362 {
363 material = mat;
364 break;
365 }
366 mlist = mlist->next;
367 }
368
369 nfaces = g3d_stream_read_int16_le(global->stream);
370 parent->nb -= 2;
371
372 for(i = 0; i < nfaces; i ++)
373 {
374 facenum = g3d_stream_read_int16_le(global->stream);
375 parent->nb -= 2;
376
377 if(material != NULL)
378 {
379 face = (G3DFace*)g_slist_nth_data(object->faces, facenum);
380 if(face == NULL) continue;
381
382 face->material = material;
383
384 if(face->material->tex_image && object->tex_vertex_data)
385 {
386 face->flags |= G3D_FLAG_FAC_TEXMAP;
387 face->tex_image = face->material->tex_image;
388 face->tex_vertex_count = 3;
389 face->tex_vertex_data = g_new0(G3DFloat, 6);
390 for(j = 0; j < 3; j ++)
391 {
392 face->tex_vertex_data[j * 2 + 0] = object->tex_vertex_data[
393 face->vertex_indices[j] * 2 + 0];
394 face->tex_vertex_data[j * 2 + 1] = object->tex_vertex_data[
395 face->vertex_indices[j] * 2 + 1];
396 }
397 } /* textured face */
398 } /* material != NULL */
399
400 if((i % 1000) == 0) x3ds_update_progress(global, parent->level);
401 } /* 0..nfaces */
402
403 return TRUE;
404}
405
406/* texture vertices */
407gboolean x3ds_cb_0x4140(x3ds_global_data *global, x3ds_parent_data *parent)
408{
409 G3DObject *object;
410 gint32 i;
411
412 object = (G3DObject *)parent->object;
413 g_return_val_if_fail(object, FALSE);
414
415 object->tex_vertex_count = g3d_stream_read_int16_le(global->stream);
416 parent->nb -= 2;
417
418 object->tex_vertex_data = g_new0(G3DFloat, object->tex_vertex_count * 2);
419
420 for(i = 0; i < object->tex_vertex_count; i ++)
421 {
422 object->tex_vertex_data[i * 2 + 0] = g3d_stream_read_float_le(global->stream);
423 object->tex_vertex_data[i * 2 + 1] = g3d_stream_read_float_le(global->stream);
424 parent->nb -= 8;
425
426 if((i % 1000) == 0) x3ds_update_progress(global, parent->level);
427 }
428
429 return TRUE;
430}
431
432/* smoothing groups */
433gboolean x3ds_cb_0x4150(x3ds_global_data *global, x3ds_parent_data *parent)
434{
435 G3DObject *object;
436 G3DFace *face;
437 GSList *oface;
438 gint32 i, j, k, n=0, polynum, group;
439 guint32 *smooth_list;
440 G3DFloat *pnormal_list, *vertex_normal_buf;
441 G3DFloat a[3],b[3], *p0,*p1,*p2,*r;
442
443 /* read data */
444 object = (G3DObject *)parent->object;
445 g_return_val_if_fail(object, FALSE);
446
447 oface=object->faces;
448 polynum=0;
449 for(oface = object->faces; oface != NULL ; oface = oface->next)
450 polynum++; /* count polygons */
451
452 /* polygon normal list */
453 pnormal_list = g_new(float, 3 * polynum);
454 /* normals per vertice */
455 vertex_normal_buf = g_new0(float, 3 * object->vertex_count);
456
457 smooth_list = g_new(guint32, polynum);
458
459 for(i = 0 ; i < polynum ; i ++)
460 smooth_list[i] = g3d_stream_read_int32_le(global->stream);
461
462 parent->nb -= polynum * 4;
463 /* first, we calculate the normal by the polygon vertices (just vector
464 * product) */
465 i = 0;
466 for(oface = object->faces; oface != NULL ; oface=oface->next)
467 {
468 face = (G3DFace *)oface->data;
469 r = &(pnormal_list[i*3]);
470 p0 = &(object->vertex_data[3 * face->vertex_indices[0]]);
471 p1 = &(object->vertex_data[3 * face->vertex_indices[1]]);
472 p2 = &(object->vertex_data[3 * face->vertex_indices[2]]);
473
474 a[0]=p1[0] - p0[0];
475 a[1]=p1[1] - p0[1];
476 a[2]=p1[2] - p0[2];
477 b[0]=p2[0] - p0[0];
478 b[1]=p2[1] - p0[1];
479 b[2]=p2[2] - p0[2];
480
481 g3d_vector_normal(a[0], a[1], a[2], b[0], b[1], b[2],
482 &r[0], &r[1], &r[2]);
483
484 g3d_vector_unify(&r[0], &r[1], &r[2]);
485
486 face->flags |= G3D_FLAG_FAC_NORMALS;
487 i ++;
488 }
489
490 do {
491 /* find a suitable group. -1 means we've already taken care */
492 group = -1;
493 for(i = 0; i < polynum; i ++)
494 if((group = smooth_list[i]) != -1) /* found a group */
495 break;
496 /* handle this group */
497 if(group != -1)
498 {
499 /* SMOOTH
500 * we add normals of the polygons's vertices so each vertex will
501 * finally have
502 * the sum of the polygons normals where the vertex is part of.
503 *
504 * run0: clear the vertex_normal_buf for this group */
505 for(i = 0; i < object->vertex_count * 3; i ++)
506 vertex_normal_buf[i] = 0.0;
507 /* run1: add normals on themselves into the vertex_normal_buf */
508 i = 0;
509 for(oface = object->faces; oface != NULL ; oface = oface->next)
510 {
511 face = (G3DFace *) oface->data;
512 if(smooth_list[i] == group)
513 {
514 /* for all 3 vertices of the polygon */
515 for(j = 0; j < 3; j ++)
516 {
517 k = face->vertex_indices[j];
518 for(n = 0; n < 3; n ++)
519 vertex_normal_buf[k * 3 + n] +=
520 pnormal_list[i * 3 + n];
521 }
522 }
523 i ++;
524 }
525 i = 0;
526 /* run2: apply to the final vertex buffer */
527 for(oface = object->faces; oface != NULL ; oface = oface->next)
528 {
529 face = (G3DFace *)oface->data;
530 if(smooth_list[i] == group)
531 {
532 face->normals = g_new(G3DFloat, 9);
533 for(j = 0; j < 3; j ++)
534 {
535 k = face->vertex_indices[j];
536
537 g3d_vector_unify(
538 &(vertex_normal_buf[k * 3 + 0]),
539 &(vertex_normal_buf[k * 3 + 1]),
540 &(vertex_normal_buf[k * 3 + 2]));
541
542 if(vertex_normal_buf[k * 3 + 0] != 0.0F)
543 /* finally, we save the normal in our normal
544 * buffer */
545 memcpy(face->normals + j * 3,
546 vertex_normal_buf + k * 3,
547 sizeof(G3DFloat) * 3);
548 else
549 /* use the pbuf normal */
550 memcpy(face->normals + j * 3,
551 pnormal_list + i * 3,
552 sizeof(G3DFloat) * 3);
553
554 }
555 smooth_list[i] = -1; /* finished this polygon */
556 }
557 i++;
558 }
559 /* SMOOTH END */
560 }
561 } while (group != -1);
562
563 g_free(pnormal_list);
564 g_free(vertex_normal_buf);
565 g_free(smooth_list);
566 return TRUE;
567}
568
569/* mesh matrix */
570gboolean x3ds_cb_0x4160(x3ds_global_data *global, x3ds_parent_data *parent)
571{
572 G3DFloat matrix[16];
573 gint32 i;
574 G3DFloat det;
575
576 g3d_matrix_identity(matrix);
577 for(i = 0; i < 12; i ++)
578 matrix[(i / 3) * 4 + (i % 3)] = g3d_stream_read_float_le(global->stream);
579 parent->nb -= 48;
580
581 det = g3d_matrix_determinant(matrix);
582
583 g3d_matrix_dump(matrix);
584 g_debug("det: %f", det);
585
586
587 if(det < 0.0) {
588#if 0
589 G3DFloat scale[16];
590 g3d_matrix_identity(scale);
591 g3d_matrix_scale(-1.0, 1.0, 1.0, scale);
592 g3d_matrix_multiply(scale, matrix, matrix);
593 g3d_matrix_dump(matrix);
594#endif
595#define X3DS_MESH_TRANSFORM 0
596#if X3DS_MESH_TRANSFORM
597 object = parent->object;
598 if(object) {
599 object->transformation = g_new0(G3DTransformation, 1);
600 memcpy(object->transformation->matrix, matrix, 16 * sizeof(G3DFloat));
601 }
602
603#if 0
604 if(parent->object) {
605 g3d_object_transform(parent->object, matrix);
606 }
607#endif
608#endif
609 }
610 return TRUE;
611}
612
613/* material name */
614gboolean x3ds_cb_0xA000(x3ds_global_data *global, x3ds_parent_data *parent)
615{
616 G3DMaterial *material;
617 gchar buffer[1024];
618
619 g_return_val_if_fail(parent->object, FALSE);
620
621 parent->nb -= x3ds_read_cstr(global->stream, buffer);
622 material = (G3DMaterial *)(parent->object);
623
624 material->name = g_strdup(buffer);
625
626 return TRUE;
627}
628
629/* two sided material */
630gboolean x3ds_cb_0xA081(x3ds_global_data *global, x3ds_parent_data *parent)
631{
632 G3DMaterial *material;
633
634 material = (G3DMaterial *)parent->object;
635 g_return_val_if_fail(material, FALSE);
636
637 material->flags |= G3D_FLAG_MAT_TWOSIDE;
638
639 return TRUE;
640}
641
642/* texture map name */
643gboolean x3ds_cb_0xA300(x3ds_global_data *global, x3ds_parent_data *parent)
644{
645 G3DMaterial *material;
646 G3DImage *image;
647 gchar buffer[512];
648
649 material = (G3DMaterial *)parent->object;
650 g_return_val_if_fail(material, FALSE);
651
652 parent->nb -= x3ds_read_cstr(global->stream, buffer);
653
654 switch(parent->id)
655 {
656 case 0xA200: /* texture map */
657 material->tex_image = g3d_texture_load_cached(global->context,
658 global->model, buffer);
659 if(material->tex_image)
660 {
661 g3d_texture_flip_y(material->tex_image);
662 material->tex_image->tex_id = ++ global->max_tex_id;
663 }
664 break;
665
666 case 0xA210: /* opacity map */
667 image = g3d_texture_load(global->context, buffer);
668 if(image != NULL)
669 {
670 g3d_texture_flip_y(image);
671 material->tex_image = g3d_texture_merge_alpha(
672 material->tex_image, image);
673 g3d_texture_free(image);
674 }
675 break;
676
677 case 0xA220: /* reflection map */
678 /* TODO: implement */
679 break;
680
681 case 0xA230: /* bump map */
682 /* TODO: implement */
683 break;
684
685 default:
686#if DEBUG > 0
687 g_warning("[3DS] unhandled texture name in 0x%04X", parent->id);
688#endif
689
690 break;
691 }
692
693 return TRUE;
694}
695
696/* texture map scale u */
697gboolean x3ds_cb_0xA354(x3ds_global_data *global, x3ds_parent_data *parent)
698{
699 G3DMaterial *material;
700 G3DImage *image;
701 G3DFloat scale;
702
703 material = (G3DMaterial *)parent->object;
704 g_return_val_if_fail(material, FALSE);
705
706 image = material->tex_image;
707 g_return_val_if_fail(image, FALSE);
708
709 scale = g3d_stream_read_float_le(global->stream);
710 parent->nb -= 4;
711
712 image->tex_scale_u = scale;
713#if DEBUG > 3
714 g_debug("[3DS] scale_u: %f", image->tex_scale_u);
715#endif
716
717 return TRUE;
718}
719
720/* texture map scale v */
721gboolean x3ds_cb_0xA356(x3ds_global_data *global, x3ds_parent_data *parent)
722{
723 G3DMaterial *material;
724 G3DImage *image;
725 G3DFloat scale;
726
727 material = (G3DMaterial *)parent->object;
728 g_return_val_if_fail(material, FALSE);
729
730 image = material->tex_image;
731 g_return_val_if_fail(image, FALSE);
732
733 scale = g3d_stream_read_float_le(global->stream);
734 parent->nb -= 4;
735
736 image->tex_scale_v = scale;
737#if DEBUG > 3
738 g_debug("[3DS] scale_v: %f", image->tex_scale_v);
739#endif
740
741 return TRUE;
742}
743
744/* material */
745gboolean x3ds_cb_0xAFFF(x3ds_global_data *global, x3ds_parent_data *parent)
746{
747 G3DMaterial *material;
748 G3DObject *object;
749
750 material = g3d_material_new();
751
752 if(parent->object)
753 {
754 object = (G3DObject *)parent->object;
755 object->materials = g_slist_append(object->materials, material);
756 }
757 else
758 {
759 global->model->materials = g_slist_append(global->model->materials,
760 material);
761 }
762
763 parent->object = material;
764
765 return TRUE;
766}
767
768/* keyframe data header */
769gboolean x3ds_cb_0xB00A(x3ds_global_data *global, x3ds_parent_data *parent)
770{
771 gint32 rev, len;
772 gchar buffer[512];
773
774 rev = g3d_stream_read_int16_le(global->stream);
775 parent->nb -= 2;
776 parent->nb -= x3ds_read_cstr(global->stream, buffer);
777 len = g3d_stream_read_int16_le(global->stream);
778 parent->nb -= 2;
779
780#if DEBUG > 0
781 g_debug("[3DS] keyframe data: r%d, %d frames, \"%s\"",
782 rev, len, buffer);
783#endif
784 return TRUE;
785}
786
787/* node header */
788gboolean x3ds_cb_0xB010(x3ds_global_data *global, x3ds_parent_data *parent)
789{
790 GSList *olist;
791 G3DObject *object;
792 gchar buffer[512];
793
794 parent->nb -= x3ds_read_cstr(global->stream, buffer);
795#if DEBUG > 3
796 g_debug("[3DS] NODE_HDR: %s", buffer);
797#endif
798
799 /* find object by name */
800 olist = global->model->objects;
801 while(olist)
802 {
803 object = (G3DObject *)olist->data;
804 if(strcmp(object->name, buffer) == 0)
805 {
806 parent->level_object = object;
807 break;
808 }
809 olist = olist->next;
810 }
811
812 g3d_stream_read_int16_le(global->stream); /* flags 1 */
813 g3d_stream_read_int16_le(global->stream); /* flags 2 */
814 g3d_stream_read_int16_le(global->stream); /* ? */
815 parent->nb -= 6;
816
817 return TRUE;
818}
819
820/* pivot */
821gboolean x3ds_cb_0xB013(x3ds_global_data *global, x3ds_parent_data *parent)
822{
823 G3DObject *object;
824#if 0
825 gint32 i;
826#endif
827 G3DFloat x, y, z;
828
829 object = parent->level_object;
830 if(object == NULL) return FALSE;
831
832 x = g3d_stream_read_float_le(global->stream);
833 y = g3d_stream_read_float_le(global->stream);
834 z = g3d_stream_read_float_le(global->stream);
835 parent->nb -= 12;
836
837#if DEBUG > 3
838 g_debug("[3DS]: PIVOT: (%.2f,%.2f,%.2f)", x, y, z);
839#endif
840
841 return TRUE;
842}
843
844#define X3DS_ENABLE_POS_TRACK_TAG 0
845
846/* position tracking tag */
847gboolean x3ds_cb_0xB020(x3ds_global_data *global, x3ds_parent_data *parent)
848{
849 G3DObject *object;
850 gint32 i, flags, fflags, nkeys, fnum;
851#if X3DS_ENABLE_POS_TRACK_TAG
852 gint32 j;
853#endif
854 G3DFloat x, y, z;
855
856 object = parent->level_object;
857 if(object == NULL) return FALSE;
858
859 flags = g3d_stream_read_int16_le(global->stream);
860 g3d_stream_skip(global->stream, 8);
861 nkeys = g3d_stream_read_int32_le(global->stream);
862
863 parent->nb -= 14;
864
865 for(i = 0; i < nkeys; i ++)
866 {
867 fnum = g3d_stream_read_int32_le(global->stream);
868 fflags = g3d_stream_read_int16_le(global->stream);
869 parent->nb -= 6;
870
871 if(fflags & X3DS_FLAG_TENSION)
872 {
873 g3d_stream_read_float_le(global->stream);
874 parent->nb -= 4;
875 }
876 if(fflags & X3DS_FLAG_CONTINUITY)
877 {
878 g3d_stream_read_float_le(global->stream);
879 parent->nb -= 4;
880 }
881 if(fflags & X3DS_FLAG_BIAS)
882 {
883 g3d_stream_read_float_le(global->stream);
884 parent->nb -= 4;
885 }
886 if(fflags & X3DS_FLAG_EASE_TO)
887 {
888 g3d_stream_read_float_le(global->stream);
889 parent->nb -= 4;
890 }
891 if(fflags & X3DS_FLAG_EASE_FROM)
892 {
893 g3d_stream_read_float_le(global->stream);
894 parent->nb -= 4;
895 }
896
897 x = g3d_stream_read_float_le(global->stream);
898 y = g3d_stream_read_float_le(global->stream);
899 z = g3d_stream_read_float_le(global->stream);
900 parent->nb -= 12;
901#if DEBUG > 3
902 g_debug("[3DS]: POS_TRACK_TAG: frame %d: (%.2f,%.2f,%.2f) (0x%X) "
903 "object: %s",
904 fnum, x, y, z, fflags, object->name);
905#endif
906
907#if X3DS_ENABLE_POS_TRACK_TAG
908 if(fnum == 0)
909 {
910#if 1
911 for(j = 0; j < object->vertex_count; j ++)
912 {
913 object->vertex_data[j * 3 + 0] -= x;
914 object->vertex_data[j * 3 + 1] -= y;
915 object->vertex_data[j * 3 + 2] -= z;
916 }
917#endif
918 }
919#endif
920 }
921
922 return TRUE;
923}
924
925/* rotation tracking tag */
926gboolean x3ds_cb_0xB021(x3ds_global_data *global, x3ds_parent_data *parent)
927{
928 G3DObject *object;
929 gint32 i, j, flags, nkeys, fnum;
930 G3DFloat x, y, z, rot;
931 G3DFloat matrix[16];
932
933 object = parent->level_object;
934 if(object == NULL) return FALSE;
935
936 flags = g3d_stream_read_int16_le(global->stream);
937 g3d_stream_skip(global->stream, 8);
938 nkeys = g3d_stream_read_int16_le(global->stream);
939 g3d_stream_read_int16_le(global->stream);
940 parent->nb -= 14;
941
942 for(i = 0; i < nkeys; i ++)
943 {
944 fnum = g3d_stream_read_int16_le(global->stream);
945 g3d_stream_read_int32_le(global->stream);
946 parent->nb -= 6;
947
948 rot = g3d_stream_read_float_le(global->stream);
949 x = g3d_stream_read_float_le(global->stream);
950 y = g3d_stream_read_float_le(global->stream);
951 z = g3d_stream_read_float_le(global->stream);
952 parent->nb -= 16;
953#if DEBUG > 3
954 g_debug(
955 "[3DS]: ROT_TRACK_TAG: frame %d: (%.2f,%.2f,%.2f), %.2f rad",
956 fnum, x, y, z, rot);
957#endif
958 if(fnum == -1)
959 {
960#if 1
961 g3d_matrix_identity(matrix);
962 g3d_matrix_rotate(rot, x, y, z, matrix);
963
964 for(j = 0; j < object->vertex_count; j ++)
965 {
966 g3d_vector_transform(
967 &(object->vertex_data[j * 3 + 0]),
968 &(object->vertex_data[j * 3 + 1]),
969 &(object->vertex_data[j * 3 + 2]),
970 matrix);
971 }
972#endif
973 }
974 }
975
976 return TRUE;
977
978}
979
980/* node id */
981gboolean x3ds_cb_0xB030(x3ds_global_data *global, x3ds_parent_data *parent)
982{
983 gint32 id;
984
985 id = g3d_stream_read_int16_le(global->stream);
986 parent->nb -= 2;
987#if DEBUG > 3
988 g_debug("[3DS] NODE_ID: %d", id);
989#endif
990
991 return TRUE;
992}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.h
new file mode 100644
index 0000000..f548bea
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_callbacks.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_3DS_CALLBACKS_H
23#define _IMP_3DS_CALLBACKS_H
24
25#include "imp_3ds.h"
26
27gboolean x3ds_cb_0x0002(x3ds_global_data *global, x3ds_parent_data *parent);
28gboolean x3ds_cb_0x0010(x3ds_global_data *global, x3ds_parent_data *parent);
29gboolean x3ds_cb_0x0011(x3ds_global_data *global, x3ds_parent_data *parent);
30gboolean x3ds_cb_0x0030(x3ds_global_data *global, x3ds_parent_data *parent);
31gboolean x3ds_cb_0x0031(x3ds_global_data *global, x3ds_parent_data *parent);
32gboolean x3ds_cb_0x0100(x3ds_global_data *global, x3ds_parent_data *parent);
33
34gboolean x3ds_cb_0x4000(x3ds_global_data *global, x3ds_parent_data *parent);
35gboolean x3ds_cb_0x4110(x3ds_global_data *global, x3ds_parent_data *parent);
36gboolean x3ds_cb_0x4120(x3ds_global_data *global, x3ds_parent_data *parent);
37gboolean x3ds_cb_0x4130(x3ds_global_data *global, x3ds_parent_data *parent);
38gboolean x3ds_cb_0x4140(x3ds_global_data *global, x3ds_parent_data *parent);
39gboolean x3ds_cb_0x4150(x3ds_global_data *global, x3ds_parent_data *parent);
40gboolean x3ds_cb_0x4160(x3ds_global_data *global, x3ds_parent_data *parent);
41
42gboolean x3ds_cb_0xA000(x3ds_global_data *global, x3ds_parent_data *parent);
43gboolean x3ds_cb_0xA081(x3ds_global_data *global, x3ds_parent_data *parent);
44gboolean x3ds_cb_0xA300(x3ds_global_data *global, x3ds_parent_data *parent);
45gboolean x3ds_cb_0xA354(x3ds_global_data *global, x3ds_parent_data *parent);
46gboolean x3ds_cb_0xA356(x3ds_global_data *global, x3ds_parent_data *parent);
47gboolean x3ds_cb_0xAFFF(x3ds_global_data *global, x3ds_parent_data *parent);
48
49gboolean x3ds_cb_0xB00A(x3ds_global_data *global, x3ds_parent_data *parent);
50gboolean x3ds_cb_0xB010(x3ds_global_data *global, x3ds_parent_data *parent);
51gboolean x3ds_cb_0xB013(x3ds_global_data *global, x3ds_parent_data *parent);
52gboolean x3ds_cb_0xB020(x3ds_global_data *global, x3ds_parent_data *parent);
53gboolean x3ds_cb_0xB021(x3ds_global_data *global, x3ds_parent_data *parent);
54gboolean x3ds_cb_0xB030(x3ds_global_data *global, x3ds_parent_data *parent);
55
56#endif /* _IMP_3DS_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_chunks.h
new file mode 100644
index 0000000..0c4cd54
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_3ds/imp_3ds_chunks.h
@@ -0,0 +1,210 @@
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_3DS_CHUNKS_H
23#define _IMP_3DS_CHUNKS_H
24
25#include <glib.h>
26
27#include "imp_3ds_callbacks.h"
28
29typedef struct {
30 guint32 id;
31 char *desc;
32 gboolean container;
33 x3ds_callback callback;
34} x3ds_chunk_desc;
35
36static x3ds_chunk_desc x3ds_chunks[] = {
37 { 0x0002, "M3D version", 0, x3ds_cb_0x0002 },
38 { 0x0001, "(unknown)", 0, NULL },
39 { 0x0010, "color (float)", 0, x3ds_cb_0x0010 },
40 { 0x0011, "color (24 bit)", 0, x3ds_cb_0x0011 },
41 { 0x0012, "line color (24 bit)", 0, NULL },
42 { 0x0013, "line color (float)", 0, NULL },
43 { 0x0030, "percentage (short)", 0, x3ds_cb_0x0030 },
44 { 0x0031, "percentage (float)", 0, x3ds_cb_0x0031 },
45 { 0x0100, "global scale", 0, NULL },
46
47 { 0x1100, "BIT_MAP", 0, NULL },
48 { 0x1101, "USE_BIT_MAP", 0, NULL },
49 { 0x1200, "SOLID_BGND", 1, NULL },
50 { 0x1201, "USE_SOLID_BGND", 0, NULL },
51 { 0x1300, "V_GRADIENT", 0, NULL },
52 { 0x1301, "USE_V_GRADIENT", 0, NULL },
53 { 0x1400, "LO_SHADOW_BIAS", 0, NULL },
54 { 0x1410, "HI_SHADOW_BIAS", 0, NULL },
55 { 0x1420, "SHADOW_MAP_SIZE", 0, NULL },
56 { 0x1430, "SHADOW_SAMPLES", 0, NULL },
57 { 0x1440, "SHADOW_RANGE", 0, NULL },
58 { 0x1450, "SHADOW_FILTER", 0, NULL },
59 { 0x1460, "RAY_BIAS", 0, NULL },
60 { 0x1500, "O_CONSTS", 0, NULL },
61
62 { 0x2100, "AMBIENT_LIGHT", 0, NULL },
63 { 0x2200, "FOG", 0, NULL },
64 { 0x2300, "DISTANCE_CUE", 0, NULL },
65 { 0x2301, "USE_DISTANCE_CUE", 0, NULL },
66 { 0x2302, "LAYER_FOG", 0, NULL },
67 { 0x2D2D, "SMAGIC", 0, NULL },
68 { 0x2D3D, "LMAGIC", 0, NULL },
69
70 { 0x3000, "default view", 1, NULL },
71 { 0x3010, "VIEW_TOP", 0, NULL },
72 { 0x3020, "VIEW_BOTTOM", 0, NULL },
73 { 0x3030, "VIEW_LEFT", 0, NULL },
74 { 0x3040, "VIEW_RIGHT", 0, NULL },
75 { 0x3050, "VIEW_FRONT", 0, NULL },
76 { 0x3060, "VIEW_BACK", 0, NULL },
77 { 0x3070, "VIEW_USER", 0, NULL },
78 { 0x3080, "VIEW_CAMERA", 0, NULL },
79 { 0x3090, "VIEW_WINDOW", 0, NULL },
80 { 0x3D3D, "mesh", 1, NULL },
81 { 0x3D3E, "mesh version", 0, NULL },
82
83 { 0x4000, "named object", 1, x3ds_cb_0x4000 },
84 { 0x4010, "object hidden", 0, NULL },
85 { 0x4011, "object vis lofter", 0, NULL },
86 { 0x4012, "object doesnt cast", 0, NULL },
87 { 0x4013, "object matte", 0, NULL },
88 { 0x4014, "object fast", 0, NULL },
89 { 0x4015, "object procedural", 0, NULL },
90 { 0x4016, "object frozen", 0, NULL },
91 { 0x4017, "object dont recv shadow", 0, NULL },
92 { 0x4100, "triangle object", 1, NULL },
93 { 0x4110, "point array", 0, x3ds_cb_0x4110 },
94 { 0x4111, "point flag array", 0, NULL },
95 { 0x4120, "face array", 1, x3ds_cb_0x4120 },
96 { 0x4130, "mesh mat group", 0, x3ds_cb_0x4130 },
97 { 0x4140, "texture vertices", 0, x3ds_cb_0x4140 },
98 { 0x4150, "smooth group", 0, x3ds_cb_0x4150 },
99 { 0x4160, "mesh matrix", 0, x3ds_cb_0x4160 },
100 { 0x4165, "mesh color", 0, NULL },
101 { 0x4170, "texture info", 0, NULL },
102 { 0x4600, "N_DIRECT_LIGHT", 0, NULL },
103 { 0x4700, "N_CAMERA", 0, NULL },
104
105 { 0x7001, "VIEWPORT_LAYOUT", 0, NULL },
106
107 { 0x8000, "XDATA_SECTION", 0, NULL },
108
109 { 0xA000, "material name", 0, x3ds_cb_0xA000 },
110 { 0xA010, "ambient color", 1, NULL },
111 { 0xA020, "diffuse color", 1, NULL },
112 { 0xA030, "specular color", 1, NULL },
113 { 0xA040, "shininess", 1, NULL },
114 { 0xA041, "shininess (2)", 1, NULL },
115 { 0xA042, "shininess (3)", 1, NULL },
116 { 0xA050, "transparency", 1, NULL },
117 { 0xA052, "fallthrough", 1, NULL },
118 { 0xA053, "blur", 1, NULL },
119 { 0xA081, "two-sided", 0, x3ds_cb_0xA081 },
120 { 0xA082, "decal", 0, NULL },
121 { 0xA083, "additive", 0, NULL },
122 { 0xA084, "self illumination", 1, NULL },
123 { 0xA085, "wire", 0, NULL },
124 { 0xA086, "super-sampling", 0, NULL },
125 { 0xA087, "wire size", 0, NULL },
126 { 0xA088, "MAT_FACEMAP", 0, NULL },
127 { 0xA08A, "MAT_XPFALLIN", 0, NULL },
128 { 0xA08C, "MAT_PHONGSOFT", 0, NULL },
129 { 0xA08E, "MAT_WIREABS", 0, NULL },
130 { 0xA100, "shading", 0, NULL },
131 { 0xA200, "texture map", 1, NULL },
132 { 0xA204, "spec map", 1, NULL },
133 { 0xA210, "opacity map", 1, NULL },
134 { 0xA220, "reflection map", 1, NULL },
135 { 0xA230, "bump map", 1, NULL },
136 { 0xA240, "mat use xpfall", 0, NULL },
137 { 0xA250, "mat use refblur", 0, NULL },
138 { 0xA252, "bump percentage", 0, NULL },
139 { 0xA300, "texture map name", 0, x3ds_cb_0xA300 },
140 { 0xA310, "MAT_ACUBIC", 0, NULL },
141 { 0xA320, "MAT_SXP_TEXT_DATA", 0, NULL },
142 { 0xA324, "MAT_SXP_BUMP_DATA", 0, NULL },
143 { 0xA33A, "MAT_TEX2MAP", 0, NULL },
144 { 0xA351, "texture map tiling", 0, NULL },
145 { 0xA352, "texture map blurring (old)", 0, NULL },
146 { 0xA353, "texture map blurring", 0, NULL },
147 { 0xA354, "texture map scale u", 0, x3ds_cb_0xA354 },
148 { 0xA356, "texture map scale v", 0, x3ds_cb_0xA356 },
149 { 0xA358, "texture map offset u", 0, NULL },
150 { 0xA35A, "texture map offset v", 0, NULL },
151 { 0xAFFF, "material", 1, x3ds_cb_0xAFFF },
152
153 { 0xB000, "keyframe data", 1, NULL },
154 { 0xB001, "ambient data node", 1, NULL },
155 { 0xB002, "object node", 1, NULL },
156 { 0xB003, "camera node", 1, NULL },
157 { 0xB004, "target node", 1, NULL },
158 { 0xB005, "light node", 1, NULL },
159 { 0xB006, "L_TARGET_NODE_TAG", 1, NULL },
160 { 0xB007, "spotlight node", 1, NULL },
161 { 0xB008, "KFSEG", 0, NULL },
162 { 0xB009, "KFCURTIME", 0, NULL },
163 { 0xB00A, "keyframe data header", 0, x3ds_cb_0xB00A },
164 { 0xB010, "node header", 0, x3ds_cb_0xB010 },
165 { 0xB011, "instance name", 0, NULL },
166 { 0xB012, "PRESCALE", 0, NULL },
167 { 0xB013, "pivot", 0, x3ds_cb_0xB013 },
168 { 0xB014, "bounding box", 0, NULL },
169 { 0xB015, "MORPH_SMOOTH", 0, NULL },
170 { 0xB020, "position tracking tag", 0, x3ds_cb_0xB020 },
171 { 0xB021, "rotation tracking tag", 0, x3ds_cb_0xB021 },
172 { 0xB022, "scale tracking tag", 0, NULL },
173 { 0xB023, "FOV_TRACK_TAG", 0, NULL },
174 { 0xB024, "ROLL_TRACK_TAG", 0, NULL },
175 { 0xB025, "COL_TRACK_TAG", 0, NULL },
176 { 0xB026, "MORPH_TRACK_TAG", 0, NULL },
177 { 0xB027, "HOT_TRACK_TAG", 0, NULL },
178 { 0xB028, "FALL_TRACK_TAG", 0, NULL },
179 { 0xB029, "HIDE_TRACK_TAG", 0, NULL },
180 { 0xB030, "node identification", 0, x3ds_cb_0xB030 },
181
182 { 0xC010, "C_MDRAWER", 0, NULL },
183 { 0xC030, "C_SHPDRAWER", 0, NULL },
184 { 0xC040, "C_MODDRAWER", 0, NULL },
185 { 0xC060, "C_TXDRAWER", 0, NULL },
186 { 0xC064, "C_MTLDRAWER", 0, NULL },
187 { 0xC066, "C_FLIDRAWER", 0, NULL },
188 { 0xC067, "C_CUBDRAWER", 0, NULL },
189 { 0xC070, "C_MFILE", 0, NULL },
190 { 0xC080, "C_SHPFILE", 0, NULL },
191 { 0xC090, "C_MODFILE", 0, NULL },
192 { 0xC0B0, "C_TXFILE", 0, NULL },
193 { 0xC0B4, "C_MTLFILE", 0, NULL },
194 { 0xC0B6, "C_FLIFILE", 0, NULL },
195 { 0xC0B8, "C_PALFILE", 0, NULL },
196 { 0xC0C0, "C_TX_STRING", 0, NULL },
197 { 0xC0D0, "C_CONSTS", 0, NULL },
198 { 0xC0E0, "C_SNAPS", 0, NULL },
199 { 0xC0F0, "C_GRIDS", 0, NULL },
200 { 0xC100, "C_ASNAPS", 0, NULL },
201 { 0xC25B, "C_BITMAP_DRAWER", 0, NULL },
202 { 0xC525, "C_CUR_MNAME", 0, NULL },
203 { 0xCA00, "C_MAPDRAWER", 0, NULL },
204
205 { 0xD000, "VPDATA", 0, NULL },
206
207 { 0x0000, NULL, 0, NULL }
208};
209
210#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile
new file mode 100644
index 0000000..a805d5a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ac3d/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_ac3d
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ac3d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ac3d_la_OBJECTS = imp_ac3d.lo
59imp_ac3d_la_OBJECTS = $(am_imp_ac3d_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ac3d_la_SOURCES)
73DIST_SOURCES = $(imp_ac3d_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ac3d.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_ac3d_la_SOURCES = imp_ac3d.c
229imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ac3d.la: $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_ac3d.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am
new file mode 100644
index 0000000..e8833ec
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_ac3d.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_ac3d_la_SOURCES = imp_ac3d.c
20imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in
new file mode 100644
index 0000000..271bde9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_ac3d
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_ac3d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ac3d_la_OBJECTS = imp_ac3d.lo
59imp_ac3d_la_OBJECTS = $(am_imp_ac3d_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ac3d_la_SOURCES)
73DIST_SOURCES = $(imp_ac3d_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ac3d.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_ac3d_la_SOURCES = imp_ac3d.c
229imp_ac3d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ac3d/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ac3d.la: $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ac3d_la_OBJECTS) $(imp_ac3d_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ac3d.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c
new file mode 100644
index 0000000..61199ae
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ac3d/imp_ac3d.c
@@ -0,0 +1,534 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <locale.h>
27
28#include <glib.h>
29
30#include <g3d/types.h>
31#include <g3d/context.h>
32#include <g3d/stream.h>
33#include <g3d/material.h>
34#include <g3d/texture.h>
35#include <g3d/debug.h>
36
37#define AC3D_FLAG_ACC 0x01
38
39struct ac3d_transform {
40 G3DFloat offx, offy, offz;
41};
42
43static gint32 ac3d_read_object(G3DStream *stream, G3DContext *context,
44 G3DModel *model, gchar *line, struct ac3d_transform *transform,
45 guint32 flags, GSList **objectlist, gint32 *rowcnt, guint32 level);
46
47EAPI
48gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
49 G3DModel *model, gpointer user_data)
50{
51 struct ac3d_transform *transform;
52 gchar buffer[2049], namebuf[257], *filename;
53 guint32 version, ti1, flags = 0;
54 G3DMaterial *material;
55 G3DFloat tf1, tf2, tf3, tf4, tf5, tf6, trans;
56 gint32 rowcnt = 0;
57
58 setlocale(LC_NUMERIC, "C");
59
60 rowcnt ++;
61 g3d_stream_read_line(stream, buffer, 2048);
62
63 if(strncmp(buffer, "AC3D", 4) != 0)
64 {
65 g_warning("file is not a AC3D model");
66 return FALSE;
67 }
68
69 filename = g3d_stream_get_uri(stream);
70 if(g_ascii_strcasecmp(filename + strlen(filename) - 4, ".acc") == 0)
71 {
72#if DEBUG > 0
73 g_debug("AC3D: .acc file");
74#endif
75 flags |= AC3D_FLAG_ACC;
76 }
77
78 version = strtoul(buffer + 4, NULL, 16);
79
80#if DEBUG > 0
81 g_debug("AC3D: version %d", version);
82#endif
83
84 while(g3d_stream_read_line(stream, buffer, 2048))
85 {
86 rowcnt ++;
87 if(strncmp(buffer, "MATERIAL", 8) == 0)
88 {
89 material = g3d_material_new();
90 if(sscanf(buffer,
91 "MATERIAL %s "
92 "rgb " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
93 "amb " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
94 "emis " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
95 "spec %f %f %f "
96 "shi %u "
97 "trans " G3D_SCANF_FLOAT,
98 namebuf,
99 &(material->r), &(material->g), &(material->b),
100 &tf1, &tf2, &tf3,
101 &tf4, &tf5, &tf6,
102 &(material->specular[0]),
103 &(material->specular[1]),
104 &(material->specular[2]),
105 &ti1,
106 &trans) != 15)
107 {
108 g_warning("AC3D: error reading material line (%s)", buffer);
109 }
110
111 material->name = g_strdup(namebuf);
112 material->a = 1.0 - trans;
113
114 model->materials = g_slist_append(model->materials, material);
115 g_debug("\\(0) Material (line %d)", rowcnt);
116 }
117 else if(strncmp(buffer, "OBJECT", 6) == 0)
118 {
119 transform = g_new0(struct ac3d_transform, 1);
120 g_debug("\\(0) Object (line %d)", rowcnt);
121 ac3d_read_object(stream, context, model, buffer, transform, flags,
122 &(model->objects), &rowcnt, 1);
123 }
124 else
125 {
126#if DEBUG > 0
127 g_warning("AC3D: unhandled line: %s", buffer);
128#endif
129 }
130 }
131
132 return TRUE;
133}
134
135EAPI
136gchar *plugin_description(G3DContext *context)
137{
138 return g_strdup("AC3D models.");
139}
140
141EAPI
142gchar **plugin_extensions(G3DContext *context)
143{
144 return g_strsplit("ac:acc", ":", 0);
145}
146
147/*
148 * AC3D specific
149 */
150
151static gchar *ac3d_remove_quotes(gchar *text)
152{
153 if(text[0] == '"')
154 return g_strndup(text + 1, strlen(text) - 2);
155 else
156 return g_strdup(text);
157}
158
159/**
160 * ac3d_read_object:
161 * returns: number of objects (including sub-objects) read, 0 in case of
162 * error.
163 */
164
165static gint32 ac3d_read_object(G3DStream *stream, G3DContext *context,
166 G3DModel *model, gchar *line, struct ac3d_transform *parent_transform,
167 guint32 flags, GSList **objectlist, gint32 *rowcnt, guint32 level)
168{
169 struct ac3d_transform *transform;
170 G3DObject *object;
171 G3DMaterial *material = NULL;
172 G3DFace *face;
173 gchar buffer[2049], namebuf[257];
174 guint32 nkids, ti1, i, surf_flags, surf_done;
175 guint32 i1, i2, i3;
176 G3DFloat u1, u2, u3, v1, v2, v3;
177 G3DFloat locx = 0.0, locy = 0.0, locz = 0.0;
178 G3DFloat texrepu = 1.0, texrepv = 1.0, texoffu = 0.0, texoffv = 0.0;
179 G3DFloat texscaleu = 1.0, texscalev = 1.0;
180 G3DFloat crease = 0.0;
181 guint32 len, facecnt = 0;
182 gchar *filename;
183 gint32 kidsread, objectcount = 0;
184 G3DFloat pcnt, prev_pcnt = 0.0;
185
186 if(sscanf(line, "OBJECT %s", namebuf) != 1)
187 {
188 g_warning("AC3D: error reading object line (%s)", line);
189 }
190
191 transform = g_new0(struct ac3d_transform, 1);
192 memcpy(transform, parent_transform, sizeof(struct ac3d_transform));
193
194 object = g_new0(G3DObject, 1);
195 objectcount ++;
196 *(objectlist) = g_slist_append(*(objectlist), object);
197
198 while(g3d_stream_read_line(stream, buffer, 2048))
199 {
200 *rowcnt += 1;
201 if(strncmp(buffer, "kids", 4) == 0)
202 {
203 /* final line of object */
204 if(sscanf(buffer, "kids %u", &nkids) != 1)
205 {
206 g_warning("AC3D: error reading kids line (%s)", buffer);
207 return 0;
208 }
209 for(i = 0; i < nkids; i ++)
210 {
211 /* read kids */
212 *rowcnt += 1;
213 g3d_stream_read_line(stream, buffer, 2048);
214#if DEBUG > 0
215 g_debug("\\%s(%d) Object (line %d)", debug_pad(level),
216 level, *rowcnt);
217#endif
218 kidsread = ac3d_read_object(stream, context, model, buffer,
219 transform, flags, &(object->objects), rowcnt, level + 1);
220 objectcount += kidsread;
221 }
222
223#if DEBUG > 0
224 g_debug("AC3D: \"%s\": %d sub-objects read",
225 object->name ? object->name : "unnamed",
226 objectcount - 1);
227#endif
228
229 if(crease > 0.0)
230 {
231 /* doesn't really work */
232#if 0
233 g3d_object_smooth(object, crease);
234#endif
235 }
236 return objectcount;
237 }
238 else if(strncmp(buffer, "name", 4) == 0)
239 {
240 if(sscanf(buffer, "name %s", namebuf) != 1)
241 {
242 g_warning("AC3D: error reading name line (%s)", buffer);
243 }
244 else
245 {
246 object->name = g_strdup(namebuf);
247 }
248 }
249 else if(strncmp(buffer, "loc", 3) == 0)
250 {
251 if(sscanf(buffer, "loc " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &locx, &locy, &locz) != 3)
252 {
253 g_warning("AC3D: error reading loc line (%s)", buffer);
254 locx = locy = locz = 0.0;
255 }
256
257 transform->offx += locx;
258 transform->offy += locy;
259 transform->offz += locz;
260 }
261 else if(strncmp(buffer, "numvert", 7) == 0)
262 {
263 if(sscanf(buffer, "numvert %u", &(object->vertex_count)) != 1)
264 {
265 g_warning("AC3D: error reading numvert line (%s)", buffer);
266 object->vertex_count = 0;
267 }
268 else
269 {
270 object->vertex_data =
271 g_new0(G3DFloat, object->vertex_count * 3);
272 for(i = 0; i < object->vertex_count; i ++)
273 {
274 if(g3d_stream_read_line(stream, buffer, 2048))
275 {
276 *rowcnt += 1;
277 if(sscanf(buffer, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
278 &(object->vertex_data[i * 3 + 0]),
279 &(object->vertex_data[i * 3 + 1]),
280 &(object->vertex_data[i * 3 + 2])) != 3)
281 {
282 g_warning("AC3D: error reading vertex (%s)",
283 buffer);
284 }
285
286 object->vertex_data[i * 3 + 0] += transform->offx;
287 object->vertex_data[i * 3 + 1] += transform->offy;
288 object->vertex_data[i * 3 + 2] += transform->offz;
289 }
290 }
291 }
292 /* END numvert */
293 }
294 else if(strncmp(buffer, "numsurf", 7) == 0)
295 {
296 /* ignore for now */
297 }
298 else if(strncmp(buffer, "SURF", 4) == 0)
299 {
300 surf_done = 0;
301
302 if(sscanf(buffer, "SURF %x", &surf_flags) != 1)
303 {
304 g_warning("AC3D: error reading surf (%s)", buffer);
305 }
306
307 while(!surf_done)
308 {
309 if(!g3d_stream_read_line(stream, buffer, 2048))
310 return 0;
311 *rowcnt += 1;
312
313 if(sscanf(buffer, "refs %u", &ti1) == 1)
314 {
315 if(!(flags & AC3D_FLAG_ACC))
316 {
317 face = g_new0(G3DFace, 1);
318 face->vertex_count = ti1;
319 face->vertex_indices =
320 g_new0(guint32, face->vertex_count);
321 face->material = material;
322
323 face->tex_image = object->tex_image;
324 if(face->tex_image)
325 {
326 face->flags |= G3D_FLAG_FAC_TEXMAP;
327 }
328
329 face->tex_vertex_count = ti1;
330 face->tex_vertex_data =
331 g_new0(G3DFloat, 2 * face->tex_vertex_count);
332
333 /* normal face */
334 for(i = 0; i < face->vertex_count; i ++)
335 {
336 if(!g3d_stream_read_line(stream, buffer, 2048))
337 return 0;
338 *rowcnt += 1;
339
340 if(sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
341 &(face->vertex_indices[i]),
342 &(face->tex_vertex_data[i * 2 + 0]),
343 &(face->tex_vertex_data[i * 2 + 1])) != 3)
344 {
345 g_warning(
346 "AC3D: error reading vertex index (%s)",
347 buffer);
348 }
349 face->tex_vertex_data[i * 2 + 0] *=
350 (texrepu * texscaleu);
351 face->tex_vertex_data[i * 2 + 1] *=
352 (texrepv * texscalev);
353
354 face->tex_vertex_data[i * 2 + 0] += texoffu;
355 face->tex_vertex_data[i * 2 + 1] += texoffv;
356
357#if 0
358 face->tex_coords[i * 2 + 0] *= texscaleu;
359 face->tex_coords[i * 2 + 1] *= texscalev;
360#endif
361 }
362
363 if(face->material && (face->vertex_count >= 3))
364 object->faces =
365 g_slist_prepend(object->faces, face);
366
367 } /* not .acc */
368 else
369 {
370 /* triangle stripes */
371 i = 0;
372 while(i < ti1)
373 {
374 face = g_new0(G3DFace, 1);
375 face->vertex_count = 3;
376 face->vertex_indices = g_new0(guint32, 3);
377
378 face->material = material;
379
380 face->tex_image = object->tex_image;
381 if(face->tex_image)
382 {
383 face->flags |= G3D_FLAG_FAC_TEXMAP;
384 }
385
386 face->tex_vertex_count = 3;
387 face->tex_vertex_data =
388 g_new0(G3DFloat, 2 * face->tex_vertex_count);
389
390 if(i == 0)
391 {
392 /* TODO: error handling */
393 g3d_stream_read_line(stream, buffer, 2048);
394 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i1, &u1, &v1);
395 g3d_stream_read_line(stream, buffer, 2048);
396 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i2, &u2, &v2);
397 g3d_stream_read_line(stream, buffer, 2048);
398 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i3, &u3, &v3);
399
400 *rowcnt += 3;
401 i += 3;
402 }
403 else
404 {
405 /* TODO: error handling */
406 i1 = i2;
407 u1 = u2;
408 v1 = v2;
409 i2 = i3;
410 u2 = u3;
411 v2 = v3;
412
413 g3d_stream_read_line(stream, buffer, 2048);
414 *rowcnt += 1;
415 sscanf(buffer, "%u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i3, &u3, &v3);
416
417 i ++;
418 }
419
420 face->vertex_indices[0] = i1;
421 face->tex_vertex_data[0] = u1;
422 face->tex_vertex_data[1] = v1;
423 if(facecnt % 2) {
424 face->vertex_indices[1] = i3;
425 face->vertex_indices[2] = i2;
426 face->tex_vertex_data[2] = u3;
427 face->tex_vertex_data[3] = v3;
428 face->tex_vertex_data[4] = u2;
429 face->tex_vertex_data[5] = v2;
430 } else {
431 face->vertex_indices[1] = i2;
432 face->vertex_indices[2] = i3;
433 face->tex_vertex_data[2] = u2;
434 face->tex_vertex_data[3] = v2;
435 face->tex_vertex_data[4] = u3;
436 face->tex_vertex_data[5] = v3;
437 }
438
439 object->faces =
440 g_slist_prepend(object->faces, face);
441 facecnt ++;
442 }
443 } /* .acc */
444
445 surf_done = 1;
446 }
447 else if(sscanf(buffer, "mat %u", &ti1) == 1)
448 {
449 material = g_slist_nth_data(model->materials, ti1);
450 }
451 }
452
453 material = NULL;
454 /* END SURF */
455 }
456 else if(strncmp(buffer, "texture", 7) == 0)
457 {
458 if(sscanf(buffer, "texture %s", namebuf) == 1)
459 {
460 filename = ac3d_remove_quotes(namebuf);
461 object->tex_image = g3d_texture_load_cached(context, model,
462 filename);
463 if(object->tex_image)
464 {
465 g3d_texture_prepare(object->tex_image);
466
467 texscaleu = object->tex_image->tex_scale_u;
468 texscalev = object->tex_image->tex_scale_v;
469 }
470 }
471 else
472 {
473 g_warning("error reading texture line (%s)", buffer);
474 }
475 }
476 else if(strncmp(buffer, "texrep", 6) == 0)
477 {
478 if(sscanf(buffer, "texrep " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &texrepu, &texrepv) != 2)
479 {
480 g_warning("error reading texrep line (%s)", buffer);
481 texrepu = 1.0;
482 texrepv = 1.0;
483 }
484
485 if(texrepu == 0.0) texrepu = 1.0;
486 if(texrepv == 0.0) texrepv = 1.0;
487 }
488 else if(strncmp(buffer, "texoff", 6) == 0)
489 {
490 if(sscanf(buffer, "texoff " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &texoffu, &texoffv) != 2)
491 {
492 g_warning("error reading texoff line (%s)", buffer);
493 }
494 }
495 else if(strncmp(buffer, "crease", 6) == 0)
496 {
497 if(sscanf(buffer, "crease " G3D_SCANF_FLOAT, &crease) != 1)
498 {
499 g_warning("AC3D: error reading crease line (%i): %s",
500 *rowcnt, buffer);
501 }
502 }
503 else if(strncmp(buffer, "data ", 5) == 0)
504 {
505 /* object data */
506 if(sscanf(buffer, "data %u", &len) != 1)
507 {
508 g_warning("AC3D: error in data line (%i): %s",
509 *rowcnt, buffer);
510 }
511 /* object data on next line */
512 g3d_stream_read_line(stream, buffer, 2048);
513 *rowcnt += 1;
514 }
515 else
516 {
517#if DEBUG > 0
518 g_warning("AC3D: unhandled line %d: %s", *rowcnt, buffer);
519#endif
520 }
521
522 pcnt = (G3DFloat)g3d_stream_tell(stream) /
523 (G3DFloat)g3d_stream_size(stream);
524 if((pcnt - prev_pcnt) > 0.005) {
525 prev_pcnt = pcnt;
526 g3d_context_update_progress_bar(context, pcnt, TRUE);
527 }
528 }
529
530 /* cleanup */
531 g_free(transform);
532
533 return 0;
534}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile
new file mode 100644
index 0000000..c862376
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile
@@ -0,0 +1,523 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_acf/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_acf
36DIST_COMMON = README $(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_acf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_acf_la_OBJECTS = imp_acf.lo imp_acf_detect.lo \
59 imp_acf_airfoil.lo imp_acf_wing.lo imp_acf_def.lo
60imp_acf_la_OBJECTS = $(am_imp_acf_la_OBJECTS)
61#am_imp_acf_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_acf_la_SOURCES)
75DIST_SOURCES = $(imp_acf_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_acf
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf
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_acf.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_acf_la_SOURCES = imp_acf.c imp_acf.h \
231 imp_acf_detect.c imp_acf_detect.h \
232 imp_acf_airfoil.c imp_acf_airfoil.h \
233 imp_acf_wing.c imp_acf_wing.h \
234 imp_acf_def.c imp_acf_def.h imp_acf_def_proto.h \
235 imp_acf_def_acf603.h imp_acf_def_acf625.h imp_acf_def_acf630.h \
236 imp_acf_def_acf640.h imp_acf_def_acf651.h \
237 imp_acf_def_acf700.h imp_acf_def_acf740.h
238
239imp_acf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_acf.la: $(imp_acf_la_OBJECTS) $(imp_acf_la_DEPENDENCIES)
301 $(LINK) $(am_imp_acf_la_rpath) $(imp_acf_la_OBJECTS) $(imp_acf_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309include ./$(DEPDIR)/imp_acf.Plo
310include ./$(DEPDIR)/imp_acf_airfoil.Plo
311include ./$(DEPDIR)/imp_acf_def.Plo
312include ./$(DEPDIR)/imp_acf_detect.Plo
313include ./$(DEPDIR)/imp_acf_wing.Plo
314
315.c.o:
316 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318# source='$<' object='$@' libtool=no \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(COMPILE) -c $<
321
322.c.obj:
323 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
325# source='$<' object='$@' libtool=no \
326# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
327# $(COMPILE) -c `$(CYGPATH_W) '$<'`
328
329.c.lo:
330 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
332# source='$<' object='$@' libtool=yes \
333# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
334# $(LTCOMPILE) -c -o $@ $<
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446clean: clean-am
447
448clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
449 mostlyclean-am
450
451distclean: distclean-am
452 -rm -rf ./$(DEPDIR)
453 -rm -f Makefile
454distclean-am: clean-am distclean-compile distclean-generic \
455 distclean-tags
456
457dvi: dvi-am
458
459dvi-am:
460
461html: html-am
462
463info: info-am
464
465info-am:
466
467install-data-am: install-pluginimpLTLIBRARIES
468
469install-dvi: install-dvi-am
470
471install-exec-am:
472
473install-html: install-html-am
474
475install-info: install-info-am
476
477install-man:
478
479install-pdf: install-pdf-am
480
481install-ps: install-ps-am
482
483installcheck-am:
484
485maintainer-clean: maintainer-clean-am
486 -rm -rf ./$(DEPDIR)
487 -rm -f Makefile
488maintainer-clean-am: distclean-am maintainer-clean-generic
489
490mostlyclean: mostlyclean-am
491
492mostlyclean-am: mostlyclean-compile mostlyclean-generic \
493 mostlyclean-libtool
494
495pdf: pdf-am
496
497pdf-am:
498
499ps: ps-am
500
501ps-am:
502
503uninstall-am: uninstall-pluginimpLTLIBRARIES
504
505.MAKE: install-am install-strip
506
507.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
508 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
509 distclean-compile distclean-generic distclean-libtool \
510 distclean-tags distdir dvi dvi-am html html-am info info-am \
511 install install-am install-data install-data-am install-dvi \
512 install-dvi-am install-exec install-exec-am install-html \
513 install-html-am install-info install-info-am install-man \
514 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
515 install-ps install-ps-am install-strip installcheck \
516 installcheck-am installdirs maintainer-clean \
517 maintainer-clean-generic mostlyclean mostlyclean-compile \
518 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
519 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
520
521# Tell versions [3.59,3.63) of GNU make to not export all variables.
522# Otherwise a system limit (for SysV at least) may be exceeded.
523.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.am
new file mode 100644
index 0000000..e15421e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.am
@@ -0,0 +1,29 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_acf.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_acf_la_SOURCES = imp_acf.c imp_acf.h \
22 imp_acf_detect.c imp_acf_detect.h \
23 imp_acf_airfoil.c imp_acf_airfoil.h \
24 imp_acf_wing.c imp_acf_wing.h \
25 imp_acf_def.c imp_acf_def.h imp_acf_def_proto.h \
26 imp_acf_def_acf603.h imp_acf_def_acf625.h imp_acf_def_acf630.h \
27 imp_acf_def_acf640.h imp_acf_def_acf651.h \
28 imp_acf_def_acf700.h imp_acf_def_acf740.h
29imp_acf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.in
new file mode 100644
index 0000000..57c9b96
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/Makefile.in
@@ -0,0 +1,523 @@
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_acf
36DIST_COMMON = README $(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_acf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_acf_la_OBJECTS = imp_acf.lo imp_acf_detect.lo \
59 imp_acf_airfoil.lo imp_acf_wing.lo imp_acf_def.lo
60imp_acf_la_OBJECTS = $(am_imp_acf_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_acf_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_acf_la_SOURCES)
75DIST_SOURCES = $(imp_acf_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_acf.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_acf_la_SOURCES = imp_acf.c imp_acf.h \
231 imp_acf_detect.c imp_acf_detect.h \
232 imp_acf_airfoil.c imp_acf_airfoil.h \
233 imp_acf_wing.c imp_acf_wing.h \
234 imp_acf_def.c imp_acf_def.h imp_acf_def_proto.h \
235 imp_acf_def_acf603.h imp_acf_def_acf625.h imp_acf_def_acf630.h \
236 imp_acf_def_acf640.h imp_acf_def_acf651.h \
237 imp_acf_def_acf700.h imp_acf_def_acf740.h
238
239imp_acf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_acf/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_acf.la: $(imp_acf_la_OBJECTS) $(imp_acf_la_DEPENDENCIES)
301 $(LINK) $(am_imp_acf_la_rpath) $(imp_acf_la_OBJECTS) $(imp_acf_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf.Plo@am__quote@
310@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_airfoil.Plo@am__quote@
311@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_def.Plo@am__quote@
312@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_detect.Plo@am__quote@
313@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_acf_wing.Plo@am__quote@
314
315.c.o:
316@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(COMPILE) -c $<
321
322.c.obj:
323@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
325@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
327@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
328
329.c.lo:
330@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
332@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
333@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
334@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446clean: clean-am
447
448clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
449 mostlyclean-am
450
451distclean: distclean-am
452 -rm -rf ./$(DEPDIR)
453 -rm -f Makefile
454distclean-am: clean-am distclean-compile distclean-generic \
455 distclean-tags
456
457dvi: dvi-am
458
459dvi-am:
460
461html: html-am
462
463info: info-am
464
465info-am:
466
467install-data-am: install-pluginimpLTLIBRARIES
468
469install-dvi: install-dvi-am
470
471install-exec-am:
472
473install-html: install-html-am
474
475install-info: install-info-am
476
477install-man:
478
479install-pdf: install-pdf-am
480
481install-ps: install-ps-am
482
483installcheck-am:
484
485maintainer-clean: maintainer-clean-am
486 -rm -rf ./$(DEPDIR)
487 -rm -f Makefile
488maintainer-clean-am: distclean-am maintainer-clean-generic
489
490mostlyclean: mostlyclean-am
491
492mostlyclean-am: mostlyclean-compile mostlyclean-generic \
493 mostlyclean-libtool
494
495pdf: pdf-am
496
497pdf-am:
498
499ps: ps-am
500
501ps-am:
502
503uninstall-am: uninstall-pluginimpLTLIBRARIES
504
505.MAKE: install-am install-strip
506
507.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
508 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
509 distclean-compile distclean-generic distclean-libtool \
510 distclean-tags distdir dvi dvi-am html html-am info info-am \
511 install install-am install-data install-data-am install-dvi \
512 install-dvi-am install-exec install-exec-am install-html \
513 install-html-am install-info install-info-am install-man \
514 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
515 install-ps install-ps-am install-strip installcheck \
516 installcheck-am installdirs maintainer-clean \
517 maintainer-clean-generic mostlyclean mostlyclean-compile \
518 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
519 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
520
521# Tell versions [3.59,3.63) of GNU make to not export all variables.
522# Otherwise a system limit (for SysV at least) may be exceeded.
523.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/README b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/README
new file mode 100644
index 0000000..484bbf0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/README
@@ -0,0 +1,15 @@
1Airfoils:
2=========
3
4* get airfoil data in .dat format, e.g. from:
5 http://www.ae.uiuc.edu/m-selig/ads/archives/coord_seligFmt.tar.gz
6 (search for "UIUC Airfoil Coordinates Database" if this link is broken).
7 This data can be used according to the GNU General Public License.
8* set the environment variable AIRFOIL_DIR to the path containing the
9 dat files.
10* without airfoil data .acf models are still loadable, but wings and stuff
11 are missing.
12* to minimize libg3d loading times (the airfoil data is loaded when this
13 plugin is initialized, you don't have to try to load an .acf file) you
14 could only install a selected subset of airfoil data files.
15 Libg3d will complain about missing airfoil data files.
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c
new file mode 100644
index 0000000..5a73a1a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.c
@@ -0,0 +1,338 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <math.h>
25
26#include <g3d/types.h>
27#include <g3d/stream.h>
28#include <g3d/object.h>
29#include <g3d/face.h>
30#include <g3d/material.h>
31#include <g3d/matrix.h>
32#include <g3d/vector.h>
33
34#include "imp_acf.h"
35#include "imp_acf_airfoil.h"
36#include "imp_acf_wing.h"
37#include "imp_acf_def.h"
38#include "imp_acf_detect.h"
39
40static gboolean acf_load_body(AcfGlobalData *global);
41static gboolean acf_load_wings(AcfGlobalData *global);
42
43EAPI
44gpointer plugin_init(G3DContext *context)
45{
46 return acf_airfoil_init();
47}
48
49EAPI
50void plugin_cleanup(gpointer user_data)
51{
52 AcfAirfoilDb *db = user_data;
53
54 if(db)
55 acf_airfoil_cleanup(db);
56}
57
58EAPI
59gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
60 G3DModel *model, gpointer user_data)
61{
62 AcfGlobalData *global;
63 const AcfDef *def;
64 gboolean bigendian;
65 gchar magic;
66
67 magic = g3d_stream_read_int8(stream);
68 if(magic == 'i') {
69 bigendian = FALSE;
70 g_debug("ACF: intel file found");
71 } else if(magic == 'a') {
72 bigendian = TRUE;
73 g_debug("ACF: apple file found");
74 } else {
75 g_warning("ACF: not a valid .acf file");
76 return FALSE;
77 }
78
79 g3d_stream_seek(stream, 0, G_SEEK_SET);
80
81 global = g_new0(AcfGlobalData, 1);
82 global->context = context;
83 global->model = model;
84 global->stream = stream;
85 global->afldb = user_data;
86
87 def = acf_detect_version(global);
88 if(def == NULL) {
89 g_free(global);
90 return FALSE;
91 }
92
93 global->acf = acf_def_read(stream, def, bigendian);
94 if(global->acf == NULL) {
95 g_free(global);
96 return FALSE;
97 }
98
99 if(!acf_load_body(global)) {
100 acf_def_free(global->acf);
101 g_free(global);
102 return FALSE;
103 }
104 if(!acf_load_wings(global)) {
105 acf_def_free(global->acf);
106 g_free(global);
107 return FALSE;
108 }
109
110 acf_def_free(global->acf);
111 g_free(global);
112
113 return TRUE;
114}
115
116EAPI
117gchar *plugin_description(void)
118{
119 return g_strdup("XPlane models.");
120}
121
122EAPI
123gchar **plugin_extensions(void)
124{
125 return g_strsplit("acf", ":", 0);
126}
127
128/*****************************************************************************/
129
130#define ACF_OBJECT_MIN 44
131#define ACF_OBJECT_MAX 66
132#define ACF_BODY_NUMSEC 20
133#define ACF_BODY_SECVER 18
134#define ACF_VERTS_PER_OBJECT (ACF_BODY_NUMSEC * ACF_BODY_SECVER)
135
136#define ACF_REQUIRE_PART(var, name, t) do { \
137 var = acf_def_lookup(global->acf, name); \
138 if((var == NULL) || (var->type != t)) { \
139 g_warning("ACF: %s is missing or has wrong type", name); \
140 return FALSE; \
141 } } while(0);
142
143#define ACF_USE_PART(var, name, t) do { \
144 var = acf_def_lookup(global->acf, name); \
145 if((var != NULL) && (var->type != t)) { \
146 g_warning("ACF: %s has wrong type", name); \
147 var = NULL; \
148 } } while(0);
149
150static gboolean acf_load_body(AcfGlobalData *global)
151{
152 AcfValue *vpart_eq, *vbody_x, *vbody_y, *vbody_z, *vbody_r;
153 AcfValue *vxarm, *vyarm, *vzarm, *vx_body, *vy_body, *vz_body;
154 G3DObject *object;
155 G3DMaterial *material;
156 G3DFace *face;
157 gint32 i, j;
158 guint32 min_obj, max_obj;
159
160 /* lookup some required data in library an return FALSE if one of
161 * them is missing */
162 ACF_REQUIRE_PART(vpart_eq, "PARTS_part_eq", XINT);
163 ACF_REQUIRE_PART(vbody_x, "PARTS_body_X", XFLT);
164 ACF_REQUIRE_PART(vbody_y, "PARTS_body_Y", XFLT);
165 ACF_REQUIRE_PART(vbody_z, "PARTS_body_Z", XFLT);
166 ACF_REQUIRE_PART(vxarm, "PARTS_Xarm", XFLT);
167 ACF_REQUIRE_PART(vyarm, "PARTS_Yarm", XFLT);
168 ACF_REQUIRE_PART(vzarm, "PARTS_Zarm", XFLT);
169 ACF_REQUIRE_PART(vx_body, "PARTS_X_body_aero", XFLT);
170 ACF_REQUIRE_PART(vy_body, "PARTS_Y_body_aero", XFLT);
171 ACF_REQUIRE_PART(vz_body, "PARTS_Z_body_aero", XFLT);
172 ACF_REQUIRE_PART(vbody_r, "PARTS_body_r", XFLT);
173
174 material = g3d_material_new();
175 material->name = g_strdup("(default material)");
176 global->model->materials = g_slist_append(global->model->materials,
177 material);
178
179 min_obj = ACF_OBJECT_MIN;
180 max_obj = MIN(ACF_OBJECT_MAX, (vpart_eq->num - 1));
181 if(vpart_eq->num <= 57) {
182 min_obj = 30;
183 max_obj = 49;
184 }
185
186 for(i = min_obj; i <= max_obj; i ++) {
187 if(!vpart_eq->xint[i])
188 continue;
189
190 g_debug("ACF: part[%i]: (%.2f, %.2f, %.2f), %.2f", i,
191 vx_body->xflt[i], vy_body->xflt[i], vz_body->xflt[i],
192 vbody_r->xflt[i]);
193
194 object = g_new0(G3DObject, 1);
195 object->name = g_strdup_printf("object[%d]", i);
196 object->vertex_count = ACF_VERTS_PER_OBJECT;
197 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
198 for(j = 0; j < object->vertex_count; j ++) {
199 object->vertex_data[j * 3 + 0] =
200 vbody_x->xflt[i * ACF_VERTS_PER_OBJECT + j] + vxarm->xflt[i];
201 object->vertex_data[j * 3 + 1] =
202 vbody_y->xflt[i * ACF_VERTS_PER_OBJECT + j] + vyarm->xflt[i];
203 object->vertex_data[j * 3 + 2] =
204 vbody_z->xflt[i * ACF_VERTS_PER_OBJECT + j] + vzarm->xflt[i];
205#if DEBUG > 3
206 g_debug("\tVERT: (%04d) %.3f, %.3f, %.3f", j,
207 object->vertex_data[j * 3 + 0],
208 object->vertex_data[j * 3 + 1],
209 object->vertex_data[j * 3 + 2]);
210#endif
211 }
212
213 global->model->objects = g_slist_append(global->model->objects,
214 object);
215
216 for(j = 0; j < (ACF_VERTS_PER_OBJECT - ACF_BODY_SECVER - 1); j ++) {
217 face = g3d_face_new_tri(material, j + 1, j, j + ACF_BODY_SECVER);
218 object->faces = g_slist_prepend(object->faces, face);
219
220 face = g3d_face_new_tri(material, j + ACF_BODY_SECVER,
221 j + ACF_BODY_SECVER + 1, j + 1);
222 object->faces = g_slist_prepend(object->faces, face);
223 }
224 }
225
226 return TRUE;
227}
228
229static gboolean acf_load_wings(AcfGlobalData *global)
230{
231 AcfValue *vpart_eq, *vrafl0, *vtafl0;
232 AcfValue *vctip, *vcroot, *vdihed, *vsweep, *vels;
233 AcfValue *vxarm, *vyarm, *vzarm, *visleft, *vlatsign;
234 AcfValue *vslseg, *vsljnd, *vpartss, *vpartse;
235 AcfAirfoil *afrt, *aftp;
236 G3DObject *object;
237 G3DMaterial *material;
238 gint32 i;
239 guint32 cnt;
240 G3DFloat m_dihed[16], m_sweep[16], m_trans[16];
241 G3DFloat vecrt[3], vectp[3], lf, ls;
242 gchar *title;
243
244 ACF_REQUIRE_PART(vpart_eq, "PARTS_part_eq", XINT);
245 ACF_REQUIRE_PART(vrafl0, "PARTS_Rafl0", XCHR);
246 ACF_REQUIRE_PART(vtafl0, "PARTS_Tafl0", XCHR);
247 ACF_REQUIRE_PART(vcroot, "PARTS_Croot", XFLT);
248 ACF_REQUIRE_PART(vctip, "PARTS_Ctip", XFLT);
249 ACF_REQUIRE_PART(vels, "PARTS_els", XINT);
250 ACF_REQUIRE_PART(vxarm, "PARTS_Xarm", XFLT);
251 ACF_REQUIRE_PART(vyarm, "PARTS_Yarm", XFLT);
252 ACF_REQUIRE_PART(vzarm, "PARTS_Zarm", XFLT);
253
254 ACF_USE_PART(vdihed, "PARTS_dihed", XFLT);
255 if(vdihed == NULL)
256 ACF_REQUIRE_PART(vdihed, "PARTS_dihed1", XFLT);
257 ACF_USE_PART(vsweep, "PARTS_sweep", XFLT);
258 if(vsweep == NULL)
259 ACF_REQUIRE_PART(vsweep, "PARTS_sweep1", XFLT);
260
261 ACF_REQUIRE_PART(vpartss, "PARTS_s", XFLT);
262 ACF_REQUIRE_PART(vpartse, "PARTS_e", XFLT);
263 ACF_REQUIRE_PART(vlatsign, "OVERFLOW_lat_sign", XFLT);
264 ACF_REQUIRE_PART(vslseg, "PARTS_semilen_SEG", XFLT);
265 ACF_REQUIRE_PART(vsljnd, "PARTS_semilen_JND", XFLT);
266
267 ACF_USE_PART(visleft, "OVERFLOW_is_left", XINT);
268
269
270 material = g_slist_nth_data(global->model->materials, 0);
271
272 cnt = vrafl0->num / vpart_eq->num;
273
274 for(i = 8; i < vpart_eq->num; i ++) {
275 if(strlen(vrafl0->xchr + i * cnt) == 0)
276 continue;
277 if(vels->xint[i] == 0)
278 continue;
279#if DEBUG > 0
280 g_debug("PARTS_Rafl0[%d]: %s", i, vrafl0->xchr + i * cnt);
281 g_debug("PARTS_Tafl0[%d]: %s", i, vtafl0->xchr + i * cnt);
282 g_debug(
283 "[%i] lat_sign=%.2f, Croot=%.2f, Ctip=%.2f, dihed=%.2f, els=%i", i,
284 vlatsign->xflt[i],
285 vcroot->xflt[i], vctip->xflt[i],
286 vdihed ? vdihed->xflt[i] : -1337.0,
287 vels->xint[i]);
288 g_debug("[%i] semilen_SEG=%.2f, semilen_JND=%.2f, parts_e=%.2f", i,
289 vslseg->xflt[i], vsljnd->xflt[i], vpartse->xflt[i]);
290 g_debug("PARTS_s[%i]: %f, %f ... %f, %f", i,
291 vpartss->xflt[i * 10 + 0], vpartss->xflt[i * 10 + 1],
292 vpartss->xflt[i * 10 + 8], vpartss->xflt[i * 10 + 9]);
293#endif
294 afrt = acf_airfoil_lookup(global->afldb, "naca16006.dat");
295 aftp = acf_airfoil_lookup(global->afldb, "naca16006.dat");
296 if((afrt == NULL) || (aftp == NULL))
297 continue;
298
299 if(afrt->vertex_count != aftp->vertex_count) {
300 g_warning("ACF: airfoil vertex count mismatch: %s=%d, %s=%d",
301 afrt->filename, afrt->vertex_count,
302 aftp->filename, aftp->vertex_count);
303 continue;
304 }
305
306 lf = ((visleft && visleft->xint[i]) ? -1 : 1);
307 ls = (vlatsign ? vlatsign->xflt[i] : 1.0);
308
309 /* translation */
310 g3d_matrix_identity(m_trans);
311 g3d_matrix_translate(vxarm->xflt[i], vyarm->xflt[i], vzarm->xflt[i],
312 m_trans);
313
314 /* rotation matrices */
315 g3d_matrix_rotate(lf * vdihed->xflt[i] * G_PI / 180.0,
316 0.0, 0.0, 1.0, m_dihed);
317 g3d_matrix_rotate(lf * -1.0 * vsweep->xflt[i] * G_PI / 180.0,
318 0.0, 1.0, 0.0, m_sweep);
319
320 /* wing root & tip center */
321 memset(vecrt, 0, sizeof(vecrt));
322 memset(vectp, 0, sizeof(vectp));
323 vectp[0] = vslseg->xflt[i];
324 g3d_vector_transform(vectp, vectp + 1, vectp + 2, m_dihed);
325 g3d_vector_transform(vectp, vectp + 1, vectp + 2, m_sweep);
326
327 title = g_strdup_printf("Wing[%d]", i);
328 object = acf_wing(material, title,
329 m_sweep, m_dihed, m_trans,
330 vecrt, vectp,
331 afrt, aftp,
332 vcroot->xflt[i], vctip->xflt[i], lf);
333 g_free(title);
334 global->model->objects = g_slist_append(global->model->objects,
335 object);
336 }
337 return TRUE;
338}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h
new file mode 100644
index 0000000..02ad6f0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf.h
@@ -0,0 +1,39 @@
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_ACF_H
23#define _IMP_ACF_H
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27
28#include "imp_acf_def.h"
29#include "imp_acf_airfoil.h"
30
31typedef struct {
32 G3DContext *context;
33 G3DModel *model;
34 G3DStream *stream;
35 AcfAirfoilDb *afldb;
36 AcfFile *acf;
37} AcfGlobalData;
38
39#endif /* _IMP_ACF_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.c
new file mode 100644
index 0000000..169725d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.c
@@ -0,0 +1,166 @@
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#include <stdio.h>
25#include <locale.h>
26
27#include <glib.h>
28#include <g3d/types.h>
29
30#include "imp_acf_airfoil.h"
31
32static AcfAirfoil *acf_airfoil_read(const gchar *path);
33
34AcfAirfoilDb *acf_airfoil_init(void)
35{
36 AcfAirfoilDb *db;
37 AcfAirfoil *afl;
38 GDir *dir;
39 const gchar *dirname, *filename;
40 gchar *path;
41 GError *error = NULL;
42
43 setlocale(LC_NUMERIC, "C");
44
45 dirname = g_getenv("AIRFOIL_DIR");
46 if(!(dirname && g_file_test(dirname, G_FILE_TEST_IS_DIR))) {
47#if DEBUG > 0
48 g_warning("ACF: could not load airfoils");
49#endif
50 return NULL;
51 }
52
53 dir = g_dir_open(dirname, 0, &error);
54 if(error != NULL) {
55 g_warning("ACF: failed to open airfoil directory '%s': %s",
56 dirname, error->message);
57 g_error_free(error);
58 return NULL;
59 }
60
61 db = g_new0(AcfAirfoilDb, 1);
62 db->db = g_hash_table_new(g_str_hash, g_str_equal);
63
64 filename = g_dir_read_name(dir);
65 while(filename != NULL) {
66 if(strcmp(filename + strlen(filename) - 4, ".dat") == 0) {
67 path = g_strdup_printf("%s%c%s", dirname, G_DIR_SEPARATOR,
68 filename);
69 afl = acf_airfoil_read(path);
70 g_free(path);
71 if(afl != NULL) {
72 g_hash_table_insert(db->db, afl->filename, afl);
73 db->airfoils = g_slist_append(db->airfoils, afl);
74#if DEBUG > 2
75 g_debug("ACF: airfoil %s loaded", filename);
76#endif
77 }
78 }
79 filename = g_dir_read_name(dir);
80 }
81
82#if DEBUG > 0
83 g_debug("ACF: %d airfoils loaded", g_slist_length(db->airfoils));
84#endif
85 g_dir_close(dir);
86
87 return db;
88}
89
90void acf_airfoil_free(AcfAirfoil *afl)
91{
92 if(afl->filename)
93 g_free(afl->filename);
94 if(afl->description)
95 g_free(afl->description);
96 if(afl->vertex_data)
97 g_free(afl->vertex_data);
98 g_free(afl);
99}
100
101void acf_airfoil_cleanup(AcfAirfoilDb *db)
102{
103 AcfAirfoil *afl;
104 GSList *item;
105
106 g_hash_table_destroy(db->db);
107 item = db->airfoils;
108 while(item) {
109 afl = item->data;
110 item = g_slist_remove(item, afl);
111 acf_airfoil_free(afl);
112 }
113 g_free(db);
114}
115
116AcfAirfoil *acf_airfoil_lookup(AcfAirfoilDb *db, const gchar *aflname)
117{
118 return g_hash_table_lookup(db->db, aflname);
119}
120
121static AcfAirfoil *acf_airfoil_read(const gchar *path)
122{
123 AcfAirfoil *afl;
124 FILE *f;
125 gchar buffer[BUFSIZ + 1];
126 guint32 off;
127 G3DFloat x, y;
128
129 f = fopen(path, "r");
130 if(f == NULL)
131 return NULL;
132
133 afl = g_new0(AcfAirfoil, 1);
134 fgets(buffer, BUFSIZ, f);
135 buffer[BUFSIZ] = '\0';
136 g_strstrip(buffer);
137 afl->filename = g_path_get_basename(path);
138 afl->description = g_strdup(buffer);
139
140 while(!feof(f)) {
141 memset(buffer, '\0', BUFSIZ + 1);
142 fgets(buffer, BUFSIZ, f);
143 g_strstrip(buffer);
144 if(strlen(buffer) == 0)
145 continue;
146 if(sscanf(buffer, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &x, &y) == 2) {
147 if((x < 0.0) || (x > 1.0))
148 continue;
149 off = afl->vertex_count;
150 afl->vertex_count ++;
151 afl->vertex_data = g_realloc(afl->vertex_data,
152 afl->vertex_count * 2 * sizeof(G3DFloat));
153 afl->vertex_data[off * 2 + 0] = x;
154 afl->vertex_data[off * 2 + 1] = y;
155 } else {
156#if DEBUG > 2
157 g_debug("ACF: airfoil: failed to parse line in %s: %s",
158 afl->filename, buffer);
159#endif
160 }
161 }
162
163 fclose(f);
164
165 return afl;
166}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.h
new file mode 100644
index 0000000..117292d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_airfoil.h
@@ -0,0 +1,44 @@
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_ACF_AIRFOIL_H
23#define _IMP_ACF_AIRFOIL_H
24
25#include <glib.h>
26
27typedef struct {
28 gchar *filename;
29 gchar *description;
30 /* 2D vertexes */
31 guint32 vertex_count;
32 G3DFloat *vertex_data;
33} AcfAirfoil;
34
35typedef struct {
36 GHashTable *db;
37 GSList *airfoils;
38} AcfAirfoilDb;
39
40AcfAirfoilDb *acf_airfoil_init(void);
41void acf_airfoil_cleanup(AcfAirfoilDb *db);
42AcfAirfoil *acf_airfoil_lookup(AcfAirfoilDb *db, const gchar *aflname);
43
44#endif /* _IMP_ACF_AIRFOIL_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.c
new file mode 100644
index 0000000..bf310b1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.c
@@ -0,0 +1,127 @@
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 <glib.h>
23
24#include "imp_acf_def.h"
25
26#define ACF_DEBUG_TYPES 2
27
28AcfFile *acf_def_read(G3DStream *stream, const AcfDef *def,
29 gboolean bigendian)
30{
31 AcfFile *acf;
32 AcfValue *value;
33 gint32 i, j;
34
35 acf = g_new0(AcfFile, 1);
36 acf->db = g_hash_table_new(g_str_hash, g_str_equal);
37
38 for(i = 0; def[i].type != XEOF; i ++) {
39 value = g_new0(AcfValue, 1);
40 value->name = g_strdup(def[i].description);
41 value->type = def[i].type;
42 value->num = def[i].num;
43 switch(value->type) {
44 case XCHR:
45 value->xchr = g_new0(gchar, value->num + 1);
46 g3d_stream_read(stream, value->xchr, value->num);
47#if DEBUG > ACF_DEBUG_TYPES
48 g_debug("ACF: XCHR: %s = %s", value->name, value->xchr);
49#endif
50 break;
51 case XINT:
52 value->xint = g_new0(gint32, value->num);
53 for(j = 0; j < value->num; j ++)
54 value->xint[j] = bigendian ?
55 g3d_stream_read_int32_be(stream) :
56 g3d_stream_read_int32_le(stream);
57#if DEBUG > ACF_DEBUG_TYPES
58 g_debug("ACF: XINT: %s(1/%d) = %i", value->name, value->num,
59 value->xint[0]);
60#endif
61 break;
62 case XFLT:
63 value->xflt = g_new0(G3DFloat, value->num);
64 for(j = 0; j < value->num; j ++)
65 value->xflt[j] = bigendian ?
66 g3d_stream_read_float_be(stream) :
67 g3d_stream_read_float_le(stream);
68#if DEBUG > ACF_DEBUG_TYPES
69 g_debug("ACF: XFLT: %s(1/%d) = %f", value->name, value->num,
70 value->xflt[0]);
71#endif
72 break;
73 case XEOF:
74 /* should never happen, just make compiler happy */
75 break;
76 }
77 g_hash_table_insert(acf->db, def[i].description, value);
78 }
79
80 return acf;
81}
82
83static gboolean acf_def_remove_value_cb(gpointer key, gpointer hashvalue,
84 gpointer data)
85{
86 AcfValue *value = hashvalue;
87
88 if(value->xchr)
89 g_free(value->xchr);
90 if(value->xint)
91 g_free(value->xint);
92 if(value->xflt)
93 g_free(value->xflt);
94 g_free(value->name);
95 g_free(value);
96 return TRUE;
97}
98
99void acf_def_free(AcfFile *acf)
100{
101 g_hash_table_foreach_remove(acf->db, acf_def_remove_value_cb, NULL);
102 g_free(acf);
103}
104
105AcfValue *acf_def_lookup(AcfFile *acf, const gchar *name)
106{
107 return g_hash_table_lookup(acf->db, name);
108}
109
110void acf_def_dump(AcfValue *value)
111{
112 gint32 i;
113
114 if(value->type == XCHR) {
115 g_debug("ACF: %s: %s", value->name, value->xchr);
116 return;
117 }
118
119 g_debug("ACF: %s: dumping %d %s items", value->name, value->num,
120 (value->type == XINT) ? "XINT" : "XFLT");
121 for(i = 0; i < value->num; i ++) {
122 if(value->type == XINT)
123 g_debug("\tXINT: %s[%i] = %i", value->name, i, value->xint[i]);
124 else if(value->type == XFLT)
125 g_debug("\tXFLT: %s[%i] = %f", value->name, i, value->xflt[i]);
126 }
127}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.h
new file mode 100644
index 0000000..ecaed52
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def.h
@@ -0,0 +1,39 @@
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_ACF_DEF_H
23#define _IMP_ACF_DEF_H
24
25#include <g3d/stream.h>
26
27#include "imp_acf_def_proto.h"
28
29typedef struct {
30 GHashTable *db;
31} AcfFile;
32
33AcfFile *acf_def_read(G3DStream *stream, const AcfDef *def,
34 gboolean bigendian);
35void acf_def_free(AcfFile *acf);
36AcfValue *acf_def_lookup(AcfFile *acf, const gchar *name);
37void acf_def_dump(AcfValue *value);
38
39#endif /* _IMP_ACF_DEF_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf603.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf603.h
new file mode 100644
index 0000000..79243a6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf603.h
@@ -0,0 +1,359 @@
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_ACF_DEF_ACF603
23#define _IMP_ACF_DEF_ACF603
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf603[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XCHR, "VIEW__Filler", 4 },
30 { XCHR, "VIEW__tailnum", 40 },
31 { XCHR, "VIEW__author", 500 },
32 { XCHR, "VIEW__descrip", 500 },
33 { XFLT, "VIEW__size_x", 1 },
34 { XFLT, "VIEW__size_z", 1 },
35 { XINT, "VIEW__is_APL", 1 },
36 { XINT, "VIEW__actype", 1 },
37 { XINT, "VIEW__HUDtype", 1 },
38 { XINT, "VIEW__asi_kts", 1 },
39 { XINT, "VIEW__cockpit_type", 1 },
40 { XINT, "VIEW__has_fd", 1 },
41 { XINT, "VIEW__has_stallwarn", 1 },
42 { XINT, "VIEW__has_litemap_tex", 1 },
43 { XFLT, "VIEW__peX", 1 },
44 { XFLT, "VIEW__peY", 1 },
45 { XFLT, "VIEW__peZ", 1 },
46 { XFLT, "VIEW__Vso", 1 },
47 { XFLT, "VIEW__Vs", 1 },
48 { XFLT, "VIEW__Vfe", 1 },
49 { XFLT, "VIEW__Vno", 1 },
50 { XFLT, "VIEW__Vne", 1 },
51 { XFLT, "VIEW__Mmo", 1 },
52 { XFLT, "VIEW__Gneg", 1 },
53 { XFLT, "VIEW__Gpos", 1 },
54 { XFLT, "VIEW__est_Vs", 1 },
55 { XFLT, "VIEW__yawstringx", 1 },
56 { XFLT, "VIEW__yawstringy", 1 },
57 { XFLT, "VIEW__HUD_cntr", 1 },
58 { XFLT, "VIEW__HUD_cntry", 1 },
59 { XFLT, "VIEW__HUD_del", 1 },
60 { XFLT, "VIEW__HUD_dely", 1 },
61 { XINT, "VIEW__has_lanlite1", 1 },
62 { XFLT, "VIEW__lanlite1X", 1 },
63 { XFLT, "VIEW__lanlite1Y", 1 },
64 { XFLT, "VIEW__lanlite1Z", 1 },
65 { XFLT, "VIEW__lanlite_the", 1 },
66 { XINT, "VIEW__has_lanlite2", 1 },
67 { XFLT, "VIEW__lanlite2X", 1 },
68 { XFLT, "VIEW__lanlite2Y", 1 },
69 { XFLT, "VIEW__lanlite2Z", 1 },
70 { XINT, "VIEW__has_lanlite3", 1 },
71 { XFLT, "VIEW__lanlite3X", 1 },
72 { XFLT, "VIEW__lanlite3Y", 1 },
73 { XFLT, "VIEW__lanlite3Z", 1 },
74 { XINT, "VIEW__has_fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1", 1 },
76 { XFLT, "VIEW__fuserb1", 1 },
77 { XFLT, "VIEW__fuserb1Z", 1 },
78 { XINT, "VIEW__has_fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2", 1 },
80 { XFLT, "VIEW__fuserb2", 1 },
81 { XFLT, "VIEW__fuserb2Z", 1 },
82 { XINT, "VIEW__has_taillite", 1 },
83 { XFLT, "VIEW__tailliteX", 1 },
84 { XFLT, "VIEW__tailliteY", 1 },
85 { XFLT, "VIEW__tailliteZ", 1 },
86 { XINT, "VIEW__has_navlites", 1 },
87 { XINT, "PANEL_ins_type", 200 },
88 { XFLT, "PANEL_ins_size", 200 },
89 { XFLT, "PANEL_ins_x", 200 },
90 { XFLT, "PANEL_ins_y", 200 },
91 { XFLT, "PANEL_ins_delx", 200 },
92 { XFLT, "PANEL_ins_dely", 200 },
93 { XINT, "FORCE_Hydraulic", 1 },
94 { XINT, "FORCE_Stickshaker", 1 },
95 { XINT, "ENG___number_engines", 1 },
96 { XINT, "ENG___auto_feather_EQ", 1 },
97 { XFLT, "ENG___throtmax_FW", 1 },
98 { XFLT, "ENG___throtmax_REV", 1 },
99 { XFLT, "ENG___omegaminRS", 1 },
100 { XFLT, "ENG___omegamaxRSC", 1 },
101 { XFLT, "ENG___omegamingreenRSC", 1 },
102 { XFLT, "ENG___omegamaxgreenRSC", 1 },
103 { XFLT, "ENG___pmax", 1 },
104 { XFLT, "ENG___tmax", 1 },
105 { XFLT, "ENG___burnerinc", 1 },
106 { XFLT, "ENG___critalt", 1 },
107 { XFLT, "ENG___mpmax", 1 },
108 { XFLT, "ENG___gearrat", 1 },
109 { XFLT, "ENG___face_jet", 1 },
110 { XFLT, "ENG___face_rocket", 1 },
111 { XFLT, "ENG___spooltime", 1 },
112 { XFLT, "ENG___max_mach_eff", 1 },
113 { XFLT, "ENG___fmax_sl", 1 },
114 { XFLT, "ENG___fmax_opt", 1 },
115 { XFLT, "ENG___fmax_vac", 1 },
116 { XFLT, "ENG___h_opt", 1 },
117 { XFLT, "ENG___tip_mach_des_50", 1 },
118 { XFLT, "ENG___tip_mach_des_100", 1 },
119 { XFLT, "ENG___rotor_mi_rat", 1 },
120 { XFLT, "ENG___tip_weight", 1 },
121 { XFLT, "ENG___trotor_rat", 1 },
122 { XINT, "PROP__engine_type", 8 },
123 { XINT, "PROP__revthrust_eq", 8 },
124 { XINT, "PROP__prop_type", 8 },
125 { XFLT, "PROP__prop_dir", 8 },
126 { XFLT, "PROP__num_blades", 8 },
127 { XFLT, "PROP__SFC", 8 },
128 { XFLT, "PROP__minpitch", 8 },
129 { XFLT, "PROP__maxpitch", 8 },
130 { XFLT, "PROP__revpitch", 8 },
131 { XFLT, "PROP__sidecant", 8 },
132 { XFLT, "PROP__vertcant", 8 },
133 { XFLT, "PROP__miprop_rpm", 8 },
134 { XFLT, "PROP__miprop_pitch", 8 },
135 { XFLT, "PROP__discarea", 8 },
136 { XFLT, "PROP__ringarea", 80 },
137 { XFLT, "PROP__bladesweep", 80 },
138 { XFLT, "PROP__des_rpm_prp", 8 },
139 { XFLT, "PROP__des_kts_prp", 8 },
140 { XFLT, "PROP__des_kts_acf", 8 },
141 { XINT, "PARTS_part_eq", 57 },
142 { XCHR, "PARTS_Rafl0", 2280 },
143 { XCHR, "PARTS_Rafl1", 2280 },
144 { XCHR, "PARTS_Tafl0", 2280 },
145 { XCHR, "PARTS_Tafl1", 2280 },
146 { XINT, "PARTS_els", 57 },
147 { XFLT, "PARTS_Xarm", 57 },
148 { XFLT, "PARTS_Yarm", 57 },
149 { XFLT, "PARTS_Zarm", 57 },
150 { XFLT, "PARTS_X_body_aero", 57 },
151 { XFLT, "PARTS_Y_body_aero", 57 },
152 { XFLT, "PARTS_Z_body_aero", 57 },
153 { XFLT, "PARTS_Croot", 57 },
154 { XFLT, "PARTS_Ctip", 57 },
155 { XFLT, "PARTS_dihed", 57 },
156 { XFLT, "PARTS_sweep1", 57 },
157 { XFLT, "PARTS_sweep2", 57 },
158 { XFLT, "PARTS_sweepnow", 57 },
159 { XINT, "PARTS_varsweepEQ", 57 },
160 { XFLT, "PARTS_semilen_SEG", 57 },
161 { XFLT, "PARTS_semilen_JND", 57 },
162 { XFLT, "PARTS_e", 57 },
163 { XFLT, "PARTS_AR", 57 },
164 { XFLT, "PARTS_al_D_al0", 57 },
165 { XFLT, "PARTS_cl_D_cl0", 57 },
166 { XFLT, "PARTS_cm_D_cm0", 57 },
167 { XFLT, "PARTS_delta_fac", 57 },
168 { XFLT, "PARTS_spec_wash", 57 },
169 { XFLT, "PARTS_alpha_max", 57 },
170 { XFLT, "PARTS_slat_effect", 57 },
171 { XFLT, "PARTS_s", 570 },
172 { XFLT, "PARTS_mac", 570 },
173 { XFLT, "PARTS_anginc", 570 },
174 { XINT, "PARTS_ail1", 570 },
175 { XINT, "PARTS_ail2", 570 },
176 { XINT, "PARTS_splr", 570 },
177 { XINT, "PARTS_flap", 570 },
178 { XINT, "PARTS_flapEQ", 1 },
179 { XINT, "PARTS_slat", 570 },
180 { XINT, "PARTS_slatEQ", 1 },
181 { XINT, "PARTS_sbrk", 570 },
182 { XINT, "PARTS_sbrkEQ", 1 },
183 { XINT, "PARTS_drud", 570 },
184 { XINT, "PARTS_elev", 570 },
185 { XINT, "PARTS_rudd", 570 },
186 { XINT, "PARTS_in_downwash", 32490 },
187 { XFLT, "PARTS_body_r", 57 },
188 { XFLT, "PARTS_body_X", 20520 },
189 { XFLT, "PARTS_body_Y", 20520 },
190 { XFLT, "PARTS_body_Z", 20520 },
191 { XINT, "PARTS_gear_type", 57 },
192 { XFLT, "PARTS_gear_latE", 57 },
193 { XFLT, "PARTS_gear_lonE", 57 },
194 { XFLT, "PARTS_gear_axiE", 57 },
195 { XFLT, "PARTS_gear_latR", 57 },
196 { XFLT, "PARTS_gear_lonR", 57 },
197 { XFLT, "PARTS_gear_axiR", 57 },
198 { XFLT, "PARTS_gear_latN", 57 },
199 { XFLT, "PARTS_gear_lonN", 57 },
200 { XFLT, "PARTS_gear_axiN", 57 },
201 { XFLT, "PARTS_gear_leglen", 57 },
202 { XFLT, "PARTS_gear_tirrad", 57 },
203 { XFLT, "PARTS_gearcon", 57 },
204 { XFLT, "PARTS_geardmp", 57 },
205 { XFLT, "PARTS_gearstatdef", 57 },
206 { XFLT, "PARTS_gear_def", 57 },
207 { XFLT, "PARTS_gear_deploy", 57 },
208 { XFLT, "PARTS_gear_xnodef", 57 },
209 { XFLT, "PARTS_gear_ynodef", 57 },
210 { XFLT, "PARTS_gear_znodef", 57 },
211 { XFLT, "BODY__fuse_cd", 1 },
212 { XFLT, "CTRLS_ail1_crat", 1 },
213 { XFLT, "CTRLS_ail1_up", 1 },
214 { XFLT, "CTRLS_ail1_d", 1 },
215 { XFLT, "CTRLS_lail1def", 1 },
216 { XFLT, "CTRLS_rail1def", 1 },
217 { XFLT, "CTRLS_ail2_crat", 1 },
218 { XFLT, "CTRLS_ail2_up", 1 },
219 { XFLT, "CTRLS_ail2_d", 1 },
220 { XFLT, "CTRLS_lail2def", 1 },
221 { XFLT, "CTRLS_rail2def", 1 },
222 { XFLT, "CTRLS_elev_crat", 1 },
223 { XFLT, "CTRLS_elev_up", 1 },
224 { XFLT, "CTRLS_elev_d", 1 },
225 { XFLT, "CTRLS_lhstbdef", 1 },
226 { XFLT, "CTRLS_rhstbdef", 1 },
227 { XFLT, "CTRLS_rudd_crat", 1 },
228 { XFLT, "CTRLS_rudd_l", 1 },
229 { XFLT, "CTRLS_rudd1def", 1 },
230 { XFLT, "CTRLS_rudd2def", 1 },
231 { XFLT, "CTRLS_splr_crat", 1 },
232 { XFLT, "CTRLS_splr_u", 1 },
233 { XFLT, "CTRLS_lsplrdef", 1 },
234 { XFLT, "CTRLS_rsplrdef", 1 },
235 { XFLT, "CTRLS_drud_crat", 1 },
236 { XFLT, "CTRLS_drud_u", 1 },
237 { XFLT, "CTRLS_ldruddef", 1 },
238 { XFLT, "CTRLS_rdruddef", 1 },
239 { XFLT, "CTRLS_sbrk_crat", 1 },
240 { XFLT, "CTRLS_sbrk_up", 1 },
241 { XFLT, "CTRLS_flap_crat", 1 },
242 { XFLT, "CTRLS_flap_dn", 7 },
243 { XFLT, "CTRLS_lflapdef", 1 },
244 { XFLT, "CTRLS_rflapdef", 1 },
245 { XFLT, "CTRLS_hstb_trim_up", 1 },
246 { XFLT, "CTRLS_hstb_trim_d", 1 },
247 { XFLT, "CTRLS_hstb_trim_def", 1 },
248 { XINT, "CTRLS_hstabtype", 1 },
249 { XINT, "CTRLS_vstabtype", 1 },
250 { XINT, "CTRLS_flap_type", 1 },
251 { XINT, "CTRLS_con_smooth", 1 },
252 { XFLT, "CTRLS_flap_cl", 1 },
253 { XFLT, "CTRLS_flap_cd", 1 },
254 { XFLT, "CTRLS_flap_cm", 1 },
255 { XINT, "CTRLS_flap_detents", 1 },
256 { XFLT, "CTRLS_flap_deftime", 1 },
257 { XFLT, "CTRLS_slat_inc", 1 },
258 { XFLT, "CTRLS_blownflap_addspeed", 1 },
259 { XFLT, "CTRLS_blownflap_throtred", 1 },
260 { XFLT, "CTRLS_blownflap_minengag", 1 },
261 { XINT, "GEAR__gear_retract", 1 },
262 { XINT, "GEAR__is_taildragger", 1 },
263 { XINT, "GEAR__gear_is_skid", 1 },
264 { XFLT, "GEAR__gear_deptime", 1 },
265 { XFLT, "GEAR__nwsteerdeg1", 1 },
266 { XFLT, "GEAR__nwsteerdeg2", 1 },
267 { XFLT, "GEAR__nwsteerspd", 1 },
268 { XFLT, "GEAR__water_rud_longarm", 1 },
269 { XFLT, "GEAR__water_rud_area", 1 },
270 { XFLT, "GEAR__water_rud_maxdef", 1 },
271 { XFLT, "GEAR__h_eqlbm", 1 },
272 { XFLT, "GEAR__the_eqlbm", 1 },
273 { XINT, "GEAR__gear_door_use", 10 },
274 { XFLT, "GEAR__gear_door_loc", 30 },
275 { XFLT, "GEAR__gear_door_geo", 120 },
276 { XFLT, "GEAR__gear_door_axi_rot", 10 },
277 { XFLT, "GEAR__gear_door_ext_ang", 10 },
278 { XFLT, "GEAR__gear_door_ret_ang", 10 },
279 { XFLT, "GEAR__gear_door_ang_now", 10 },
280 { XFLT, "WEIGHTcgY", 1 },
281 { XFLT, "WEIGHTcgZ", 1 },
282 { XFLT, "WEIGHTJxx_unitmass", 1 },
283 { XFLT, "WEIGHTJyy_unitmass", 1 },
284 { XFLT, "WEIGHTJzz_unitmass", 1 },
285 { XFLT, "WEIGHTm_empty", 1 },
286 { XFLT, "WEIGHTm_displaced", 1 },
287 { XFLT, "WEIGHTm_max", 1 },
288 { XFLT, "WEIGHTm_fuel", 1 },
289 { XFLT, "WEIGHTm_jettison", 1 },
290 { XFLT, "WEIGHTm_displaced_y", 1 },
291 { XFLT, "SPEC__jato_theta", 1 },
292 { XFLT, "SPEC__jato_thrust", 1 },
293 { XFLT, "SPEC__jato_dur", 1 },
294 { XFLT, "SPEC__jato_sfc", 1 },
295 { XFLT, "SPEC__jato_Y", 1 },
296 { XFLT, "SPEC__jato_Z", 1 },
297 { XFLT, "SPEC__brake_area", 1 },
298 { XFLT, "SPEC__brake_Y", 1 },
299 { XFLT, "SPEC__brake_Z", 1 },
300 { XFLT, "SPEC__chute_area", 1 },
301 { XFLT, "SPEC__chute_Y", 1 },
302 { XFLT, "SPEC__chute_Z", 1 },
303 { XFLT, "SPEC__ail1pitch", 1 },
304 { XFLT, "SPEC__ail1flaps", 1 },
305 { XFLT, "SPEC__ail2pitch", 1 },
306 { XFLT, "SPEC__ail2flaps", 1 },
307 { XFLT, "SPEC__stabroll", 1 },
308 { XFLT, "SPEC__stabhdng", 1 },
309 { XFLT, "SPEC__ail2vmax", 1 },
310 { XFLT, "SPEC__tvec_ptch", 1 },
311 { XFLT, "SPEC__tvec_roll", 1 },
312 { XFLT, "SPEC__tvec_hdng", 1 },
313 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
314 { XINT, "SPEC__arrestingEQ", 1 },
315 { XINT, "SPEC__antiiceEQ", 1 },
316 { XINT, "SPEC__bitchinbettyEQ", 1 },
317 { XINT, "SPEC__gearhornEQ", 1 },
318 { XINT, "SPEC__autosbrkEQ", 1 },
319 { XINT, "SPEC__autofbrkEQ", 1 },
320 { XINT, "SPEC__autosweepEQ", 1 },
321 { XINT, "SPEC__autoslatEQ", 1 },
322 { XINT, "VTOL__vectEQ", 1 },
323 { XFLT, "VTOL__vectarm", 1 },
324 { XFLT, "VTOL__cyclic_elev", 1 },
325 { XFLT, "VTOL__cyclic_ailn", 1 },
326 { XFLT, "VTOL__delta3", 1 },
327 { XFLT, "VTOL__puffL", 1 },
328 { XFLT, "VTOL__puffM", 1 },
329 { XFLT, "VTOL__puffN", 1 },
330 { XFLT, "VTOL__tail_with_coll", 1 },
331 { XFLT, "VTOL__diff_coll_with_roll", 1 },
332 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
333 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
334 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
335 { XFLT, "VTOL__rotor_trim_max", 1 },
336 { XFLT, "VTOL__rotor_trim_ptch_cyc_rat", 1 },
337 { XFLT, "ASTAB_AShiV", 1 },
338 { XFLT, "ASTAB_ASloV", 1 },
339 { XFLT, "ASTAB_ASmaxp1", 1 },
340 { XFLT, "ASTAB_ASp1", 1 },
341 { XFLT, "ASTAB_ASmaxp2", 1 },
342 { XFLT, "ASTAB_ASp2", 1 },
343 { XFLT, "ASTAB_ASmaxh1", 1 },
344 { XFLT, "ASTAB_ASh1", 1 },
345 { XFLT, "ASTAB_ASmaxh2", 1 },
346 { XFLT, "ASTAB_ASh2", 1 },
347 { XFLT, "ASTAB_ASmaxr1", 1 },
348 { XFLT, "ASTAB_ASr1", 1 },
349 { XFLT, "ASTAB_ASmaxr2", 1 },
350 { XFLT, "ASTAB_ASr2", 1 },
351 { XFLT, "ASTAB_ASminG", 1 },
352 { XFLT, "ASTAB_ASmaxG", 1 },
353 { XFLT, "OVER__flt_overflow", 300 },
354 { XINT, "OVER__drive_by_wire", 1 },
355
356 { XEOF, NULL, 0 }
357};
358
359#endif /* _IMP_ACF_DEF_ACF603 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf625.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf625.h
new file mode 100644
index 0000000..dc22f18
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf625.h
@@ -0,0 +1,406 @@
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_ACF_DEF_ACF625
23#define _IMP_ACF_DEF_ACF625
24
25static const AcfDef acf_def_acf625[] = {
26 { XCHR, "VIEW__PlatForm", 1 },
27 { XCHR, "VIEW__Filler", 4 },
28 { XCHR, "VIEW__tailnum", 40 },
29 { XCHR, "VIEW__author", 500 },
30 { XCHR, "VIEW__descrip", 500 },
31 { XFLT, "VIEW__size_x", 1 },
32 { XFLT, "VIEW__size_z", 1 },
33 { XINT, "VIEW__is_APL", 1 },
34 { XINT, "VIEW__actype", 1 },
35 { XINT, "VIEW__HUDtype", 1 },
36 { XINT, "VIEW__asi_kts", 1 },
37 { XINT, "VIEW__cockpit_type", 1 },
38 { XINT, "VIEW__has_fd", 1 },
39 { XINT, "VIEW__has_stallwarn", 1 },
40 { XINT, "VIEW__has_litemap_tex", 1 },
41 { XFLT, "VIEW__peX", 1 },
42 { XFLT, "VIEW__peY", 1 },
43 { XFLT, "VIEW__peZ", 1 },
44 { XFLT, "VIEW__Vso", 1 },
45 { XFLT, "VIEW__Vs", 1 },
46 { XFLT, "VIEW__Vfe", 1 },
47 { XFLT, "VIEW__Vno", 1 },
48 { XFLT, "VIEW__Vne", 1 },
49 { XFLT, "VIEW__Mmo", 1 },
50 { XFLT, "VIEW__Gneg", 1 },
51 { XFLT, "VIEW__Gpos", 1 },
52 { XFLT, "VIEW__est_Vs", 1 },
53 { XFLT, "VIEW__yawstringx", 1 },
54 { XFLT, "VIEW__yawstringy", 1 },
55 { XFLT, "VIEW__HUD_cntr", 1 },
56 { XFLT, "VIEW__HUD_cntry", 1 },
57 { XFLT, "VIEW__HUD_del", 1 },
58 { XFLT, "VIEW__HUD_dely", 1 },
59 { XINT, "VIEW__has_lanlite1", 1 },
60 { XFLT, "VIEW__lanlite1X", 1 },
61 { XFLT, "VIEW__lanlite1Y", 1 },
62 { XFLT, "VIEW__lanlite1Z", 1 },
63 { XFLT, "VIEW__lanlite_the", 1 },
64 { XINT, "VIEW__has_lanlite2", 1 },
65 { XFLT, "VIEW__lanlite2X", 1 },
66 { XFLT, "VIEW__lanlite2Y", 1 },
67 { XFLT, "VIEW__lanlite2Z", 1 },
68 { XINT, "VIEW__has_lanlite3", 1 },
69 { XFLT, "VIEW__lanlite3X", 1 },
70 { XFLT, "VIEW__lanlite3Y", 1 },
71 { XFLT, "VIEW__lanlite3Z", 1 },
72 { XINT, "VIEW__has_fuserb1", 1 },
73 { XFLT, "VIEW__fuserb1", 1 },
74 { XFLT, "VIEW__fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1Z", 1 },
76 { XINT, "VIEW__has_fuserb2", 1 },
77 { XFLT, "VIEW__fuserb2", 1 },
78 { XFLT, "VIEW__fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2Z", 1 },
80 { XINT, "VIEW__has_taillite", 1 },
81 { XFLT, "VIEW__tailliteX", 1 },
82 { XFLT, "VIEW__tailliteY", 1 },
83 { XFLT, "VIEW__tailliteZ", 1 },
84 { XINT, "VIEW__has_navlites", 1 },
85 { XINT, "PANEL_ins_type", 200 },
86 { XFLT, "PANEL_ins_size", 200 },
87 { XFLT, "PANEL_ins_x", 200 },
88 { XFLT, "PANEL_ins_y", 200 },
89 { XFLT, "PANEL_ins_delx", 200 },
90 { XFLT, "PANEL_ins_dely", 200 },
91 { XINT, "FORCE_Hydraulic", 1 },
92 { XINT, "FORCE_Stickshaker", 1 },
93 { XINT, "ENG___number_engines", 1 },
94 { XINT, "ENG___auto_feather_EQ", 1 },
95 { XFLT, "ENG___throtmax_FW", 1 },
96 { XFLT, "ENG___throtmax_REV", 1 },
97 { XFLT, "ENG___omegaminRS", 1 },
98 { XFLT, "ENG___omegamaxRSC", 1 },
99 { XFLT, "ENG___omegamingreenRSC", 1 },
100 { XFLT, "ENG___omegamaxgreenRSC", 1 },
101 { XFLT, "ENG___pmax", 1 },
102 { XFLT, "ENG___tmax", 1 },
103 { XFLT, "ENG___burnerinc", 1 },
104 { XFLT, "ENG___critalt", 1 },
105 { XFLT, "ENG___mpmax", 1 },
106 { XFLT, "ENG___gearrat", 1 },
107 { XFLT, "ENG___face_jet", 1 },
108 { XFLT, "ENG___face_rocket", 1 },
109 { XFLT, "ENG___spooltime", 1 },
110 { XFLT, "ENG___max_mach_eff", 1 },
111 { XFLT, "ENG___fmax_sl", 1 },
112 { XFLT, "ENG___fmax_opt", 1 },
113 { XFLT, "ENG___fmax_vac", 1 },
114 { XFLT, "ENG___h_opt", 1 },
115 { XFLT, "ENG___tip_mach_des_50", 1 },
116 { XFLT, "ENG___tip_mach_des_100", 1 },
117 { XFLT, "ENG___rotor_mi_rat", 1 },
118 { XFLT, "ENG___tip_weight", 1 },
119 { XFLT, "ENG___trotor_rat", 1 },
120 { XINT, "PROP__engine_type", 8 },
121 { XINT, "PROP__revthrust_eq", 8 },
122 { XINT, "PROP__prop_type", 8 },
123 { XFLT, "PROP__prop_dir", 8 },
124 { XFLT, "PROP__num_blades", 8 },
125 { XFLT, "PROP__SFC", 8 },
126 { XFLT, "PROP__minpitch", 8 },
127 { XFLT, "PROP__maxpitch", 8 },
128 { XFLT, "PROP__revpitch", 8 },
129 { XFLT, "PROP__sidecant", 8 },
130 { XFLT, "PROP__vertcant", 8 },
131 { XFLT, "PROP__miprop_rpm", 8 },
132 { XFLT, "PROP__miprop_pitch", 8 },
133 { XFLT, "PROP__discarea", 8 },
134 { XFLT, "PROP__ringarea", 80 },
135 { XFLT, "PROP__bladesweep", 80 },
136 { XFLT, "PROP__des_rpm_prp", 8 },
137 { XFLT, "PROP__des_kts_prp", 8 },
138 { XFLT, "PROP__des_kts_acf", 8 },
139 { XINT, "PARTS_part_eq", 57 },
140 { XCHR, "PARTS_Rafl0", 2280 },
141 { XCHR, "PARTS_Rafl1", 2280 },
142 { XCHR, "PARTS_Tafl0", 2280 },
143 { XCHR, "PARTS_Tafl1", 2280 },
144 { XINT, "PARTS_els", 57 },
145 { XFLT, "PARTS_Xarm", 57 },
146 { XFLT, "PARTS_Yarm", 57 },
147 { XFLT, "PARTS_Zarm", 57 },
148 { XFLT, "PARTS_X_body_aero", 57 },
149 { XFLT, "PARTS_Y_body_aero", 57 },
150 { XFLT, "PARTS_Z_body_aero", 57 },
151 { XFLT, "PARTS_Croot", 57 },
152 { XFLT, "PARTS_Ctip", 57 },
153 { XFLT, "PARTS_dihed", 57 },
154 { XFLT, "PARTS_sweep1", 57 },
155 { XFLT, "PARTS_sweep2", 57 },
156 { XFLT, "PARTS_sweepnow", 57 },
157 { XINT, "PARTS_varsweepEQ", 57 },
158 { XFLT, "PARTS_semilen_SEG", 57 },
159 { XFLT, "PARTS_semilen_JND", 57 },
160 { XFLT, "PARTS_e", 57 },
161 { XFLT, "PARTS_AR", 57 },
162 { XFLT, "PARTS_al_D_al0", 57 },
163 { XFLT, "PARTS_cl_D_cl0", 57 },
164 { XFLT, "PARTS_cm_D_cm0", 57 },
165 { XFLT, "PARTS_delta_fac", 57 },
166 { XFLT, "PARTS_spec_wash", 57 },
167 { XFLT, "PARTS_alpha_max", 57 },
168 { XFLT, "PARTS_slat_effect", 57 },
169 { XFLT, "PARTS_s", 570 },
170 { XFLT, "PARTS_mac", 570 },
171 { XFLT, "PARTS_anginc", 570 },
172 { XINT, "PARTS_ail1", 570 },
173 { XINT, "PARTS_ail2", 570 },
174 { XINT, "PARTS_splr", 570 },
175 { XINT, "PARTS_flap", 570 },
176 { XINT, "PARTS_flapEQ", 1 },
177 { XINT, "PARTS_slat", 570 },
178 { XINT, "PARTS_slatEQ", 1 },
179 { XINT, "PARTS_sbrk", 570 },
180 { XINT, "PARTS_sbrkEQ", 1 },
181 { XINT, "PARTS_drud", 570 },
182 { XINT, "PARTS_elev", 570 },
183 { XINT, "PARTS_rudd", 570 },
184 { XINT, "PARTS_in_downwash", 32490 },
185 { XFLT, "PARTS_body_r", 57 },
186 { XFLT, "PARTS_body_X", 20520 },
187 { XFLT, "PARTS_body_Y", 20520 },
188 { XFLT, "PARTS_body_Z", 20520 },
189 { XINT, "PARTS_gear_type", 57 },
190 { XFLT, "PARTS_gear_latE", 57 },
191 { XFLT, "PARTS_gear_lonE", 57 },
192 { XFLT, "PARTS_gear_axiE", 57 },
193 { XFLT, "PARTS_gear_latR", 57 },
194 { XFLT, "PARTS_gear_lonR", 57 },
195 { XFLT, "PARTS_gear_axiR", 57 },
196 { XFLT, "PARTS_gear_latN", 57 },
197 { XFLT, "PARTS_gear_lonN", 57 },
198 { XFLT, "PARTS_gear_axiN", 57 },
199 { XFLT, "PARTS_gear_leglen", 57 },
200 { XFLT, "PARTS_gear_tirrad", 57 },
201 { XFLT, "PARTS_gearcon", 57 },
202 { XFLT, "PARTS_geardmp", 57 },
203 { XFLT, "PARTS_gearstatdef", 57 },
204 { XFLT, "PARTS_gear_def", 57 },
205 { XFLT, "PARTS_gear_deploy", 57 },
206 { XFLT, "PARTS_gear_xnodef", 57 },
207 { XFLT, "PARTS_gear_ynodef", 57 },
208 { XFLT, "PARTS_gear_znodef", 57 },
209 { XFLT, "BODY__fuse_cd", 1 },
210 { XFLT, "CTRLS_ail1_crat", 1 },
211 { XFLT, "CTRLS_ail1_up", 1 },
212 { XFLT, "CTRLS_ail1_d", 1 },
213 { XFLT, "CTRLS_lail1def", 1 },
214 { XFLT, "CTRLS_rail1def", 1 },
215 { XFLT, "CTRLS_ail2_crat", 1 },
216 { XFLT, "CTRLS_ail2_up", 1 },
217 { XFLT, "CTRLS_ail2_d", 1 },
218 { XFLT, "CTRLS_lail2def", 1 },
219 { XFLT, "CTRLS_rail2def", 1 },
220 { XFLT, "CTRLS_elev_crat", 1 },
221 { XFLT, "CTRLS_elev_up", 1 },
222 { XFLT, "CTRLS_elev_d", 1 },
223 { XFLT, "CTRLS_lhstbdef", 1 },
224 { XFLT, "CTRLS_rhstbdef", 1 },
225 { XFLT, "CTRLS_rudd_crat", 1 },
226 { XFLT, "CTRLS_rudd_l", 1 },
227 { XFLT, "CTRLS_rudd1def", 1 },
228 { XFLT, "CTRLS_rudd2def", 1 },
229 { XFLT, "CTRLS_splr_crat", 1 },
230 { XFLT, "CTRLS_splr_u", 1 },
231 { XFLT, "CTRLS_lsplrdef", 1 },
232 { XFLT, "CTRLS_rsplrdef", 1 },
233 { XFLT, "CTRLS_drud_crat", 1 },
234 { XFLT, "CTRLS_drud_u", 1 },
235 { XFLT, "CTRLS_ldruddef", 1 },
236 { XFLT, "CTRLS_rdruddef", 1 },
237 { XFLT, "CTRLS_sbrk_crat", 1 },
238 { XFLT, "CTRLS_sbrk_up", 1 },
239 { XFLT, "CTRLS_flap_crat", 1 },
240 { XFLT, "CTRLS_flap_dn", 7 },
241 { XFLT, "CTRLS_lflapdef", 1 },
242 { XFLT, "CTRLS_rflapdef", 1 },
243 { XFLT, "CTRLS_hstb_trim_up", 1 },
244 { XFLT, "CTRLS_hstb_trim_d", 1 },
245 { XFLT, "CTRLS_hstb_trim_def", 1 },
246 { XINT, "CTRLS_hstabtype", 1 },
247 { XINT, "CTRLS_vstabtype", 1 },
248 { XINT, "CTRLS_flap_type", 1 },
249 { XINT, "CTRLS_con_smooth", 1 },
250 { XFLT, "CTRLS_flap_cl", 1 },
251 { XFLT, "CTRLS_flap_cd", 1 },
252 { XFLT, "CTRLS_flap_cm", 1 },
253 { XINT, "CTRLS_flap_detents", 1 },
254 { XFLT, "CTRLS_flap_deftime", 1 },
255 { XFLT, "CTRLS_slat_inc", 1 },
256 { XFLT, "CTRLS_blownflap_addspeed", 1 },
257 { XFLT, "CTRLS_blownflap_throtred", 1 },
258 { XFLT, "CTRLS_blownflap_minengag", 1 },
259 { XINT, "GEAR__gear_retract", 1 },
260 { XINT, "GEAR__is_taildragger", 1 },
261 { XINT, "GEAR__gear_is_skid", 1 },
262 { XFLT, "GEAR__gear_deptime", 1 },
263 { XFLT, "GEAR__nwsteerdeg1", 1 },
264 { XFLT, "GEAR__nwsteerdeg2", 1 },
265 { XFLT, "GEAR__nwsteerspd", 1 },
266 { XFLT, "GEAR__water_rud_longarm", 1 },
267 { XFLT, "GEAR__water_rud_area", 1 },
268 { XFLT, "GEAR__water_rud_maxdef", 1 },
269 { XFLT, "GEAR__h_eqlbm", 1 },
270 { XFLT, "GEAR__the_eqlbm", 1 },
271 { XINT, "GEAR__gear_door_use", 10 },
272 { XFLT, "GEAR__gear_door_loc", 30 },
273 { XFLT, "GEAR__gear_door_geo", 120 },
274 { XFLT, "GEAR__gear_door_axi_rot", 10 },
275 { XFLT, "GEAR__gear_door_ext_ang", 10 },
276 { XFLT, "GEAR__gear_door_ret_ang", 10 },
277 { XFLT, "GEAR__gear_door_ang_now", 10 },
278 { XFLT, "WEIGHTcgY", 1 },
279 { XFLT, "WEIGHTcgZ", 1 },
280 { XFLT, "WEIGHTJxx_unitmass", 1 },
281 { XFLT, "WEIGHTJyy_unitmass", 1 },
282 { XFLT, "WEIGHTJzz_unitmass", 1 },
283 { XFLT, "WEIGHTm_empty", 1 },
284 { XFLT, "WEIGHTm_displaced", 1 },
285 { XFLT, "WEIGHTm_max", 1 },
286 { XFLT, "WEIGHTm_fuel", 1 },
287 { XFLT, "WEIGHTm_jettison", 1 },
288 { XFLT, "WEIGHTm_displaced_y", 1 },
289 { XFLT, "SPEC__jato_theta", 1 },
290 { XFLT, "SPEC__jato_thrust", 1 },
291 { XFLT, "SPEC__jato_dur", 1 },
292 { XFLT, "SPEC__jato_sfc", 1 },
293 { XFLT, "SPEC__jato_Y", 1 },
294 { XFLT, "SPEC__jato_Z", 1 },
295 { XFLT, "SPEC__brake_area", 1 },
296 { XFLT, "SPEC__brake_Y", 1 },
297 { XFLT, "SPEC__brake_Z", 1 },
298 { XFLT, "SPEC__chute_area", 1 },
299 { XFLT, "SPEC__chute_Y", 1 },
300 { XFLT, "SPEC__chute_Z", 1 },
301 { XFLT, "SPEC__ail1pitch", 1 },
302 { XFLT, "SPEC__ail1flaps", 1 },
303 { XFLT, "SPEC__ail2pitch", 1 },
304 { XFLT, "SPEC__ail2flaps", 1 },
305 { XFLT, "SPEC__stabroll", 1 },
306 { XFLT, "SPEC__stabhdng", 1 },
307 { XFLT, "SPEC__ail2vmax", 1 },
308 { XFLT, "SPEC__tvec_ptch", 1 },
309 { XFLT, "SPEC__tvec_roll", 1 },
310 { XFLT, "SPEC__tvec_hdng", 1 },
311 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
312 { XINT, "SPEC__arrestingEQ", 1 },
313 { XINT, "SPEC__antiiceEQ", 1 },
314 { XINT, "SPEC__bitchinbettyEQ", 1 },
315 { XINT, "SPEC__gearhornEQ", 1 },
316 { XINT, "SPEC__autosbrkEQ", 1 },
317 { XINT, "SPEC__autofbrkEQ", 1 },
318 { XINT, "SPEC__autosweepEQ", 1 },
319 { XINT, "SPEC__autoslatEQ", 1 },
320 { XINT, "VTOL__vectEQ", 1 },
321 { XFLT, "VTOL__vectarm", 1 },
322 { XFLT, "VTOL__cyclic_elev", 1 },
323 { XFLT, "VTOL__cyclic_ailn", 1 },
324 { XFLT, "VTOL__delta3", 1 },
325 { XFLT, "VTOL__puffL", 1 },
326 { XFLT, "VTOL__puffM", 1 },
327 { XFLT, "VTOL__puffN", 1 },
328 { XFLT, "VTOL__tail_with_coll", 1 },
329 { XFLT, "VTOL__diff_coll_with_roll", 1 },
330 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
331 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
332 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
333 { XFLT, "VTOL__rotor_trim_max_fwd", 1 },
334 { XFLT, "VTOL__rotor_trim_max_aft", 1 },
335 { XFLT, "ASTAB_AShiV", 1 },
336 { XFLT, "ASTAB_ASloV", 1 },
337 { XFLT, "ASTAB_Asmaxp_lo", 1 },
338 { XFLT, "ASTAB_Asp_lo_rate", 1 },
339 { XFLT, "ASTAB_Asmaxp_hi", 1 },
340 { XFLT, "ASTAB_Asp_hi_pos", 1 },
341 { XFLT, "ASTAB_Asmaxh_lo", 1 },
342 { XFLT, "ASTAB_Ash_lo_rate", 1 },
343 { XFLT, "ASTAB_Asmaxh_hi", 1 },
344 { XFLT, "ASTAB_Ash_hi_pos", 1 },
345 { XFLT, "ASTAB_Asmaxr_lo", 1 },
346 { XFLT, "ASTAB_Asr_lo_rate", 1 },
347 { XFLT, "ASTAB_Asmaxr_hi", 1 },
348 { XFLT, "ASTAB_Asr_hi_rate", 1 },
349 { XFLT, "fdummy1", 1 },
350 { XFLT, "fdummy2", 1 },
351 { XFLT, "element_len", 57 },
352 { XFLT, "gear_door_size", 1 },
353 { XFLT, "stab_change_to_redline", 1 },
354 { XFLT, "Vmca", 1 },
355 { XFLT, "Vyse", 1 },
356 { XFLT, "flap_arm", 1 },
357 { XFLT, "tank_xyz12", 6 },
358 { XFLT, "cgZ_fwd", 1 },
359 { XFLT, "cgZ_aft", 1 },
360 { XFLT, "gear_cyc_time", 5 },
361 { XFLT, "refuel_X", 1 },
362 { XFLT, "refuel_Y", 1 },
363 { XFLT, "refuel_Z", 1 },
364 { XCHR, "gear_steers", 57 },
365 { XCHR, "hybrid_gear", 1 },
366 { XCHR, "chr_overflow", 2 },
367 { XINT, "vardihedEQ", 57 },
368 { XFLT, "dihed2", 57 },
369 { XFLT, "dihednow", 57 },
370 { XFLT, "jett_xyz", 3 },
371 { XFLT, "puffX", 1 },
372 { XFLT, "puffY", 1 },
373 { XFLT, "puffZ", 1 },
374 { XFLT, "Vle", 1 },
375 { XFLT, "ASp_hi_rate", 1 },
376 { XFLT, "ASh_hi_rate", 1 },
377 { XFLT, "spooltime_prop", 1 },
378 { XFLT, "elevflaps", 1 },
379 { XFLT, "tank_xyz3", 3 },
380 { XFLT, "tank_rat", 3 },
381 { XFLT, "stall_warn_alpha", 1 },
382 { XFLT, "mass_shift", 1 },
383 { XFLT, "mass_shift_dx", 1 },
384 { XFLT, "mass_shift_dz", 1 },
385 { XFLT, "feathered_pitch", 1 },
386 { XFLT, "ASmaxg_hi", 1 },
387 { XFLT, "ASg_hi_pos", 1 },
388 { XFLT, "ASg_hi_rate", 1 },
389 { XFLT, "flt_overflow", 11 },
390 { XINT, "OVER__drive_by_wire", 1 },
391 { XINT, "is_glossy", 1 },
392 { XINT, "num_tanks", 1 },
393 { XINT, "has_refuel", 1 },
394 { XINT, "draw_geo_frnt_views", 1 },
395 { XINT, "draw_geo_side_views", 1 },
396 { XINT, "jett_is_slung", 1 },
397 { XFLT, "eng_mass", 57 },
398 { XINT, "phase_tvect", 1 },
399 { XINT, "auto_trim", 1 },
400 { XINT, "has_DC_fd", 1 },
401 { XINT, "int_overflow", 23 },
402
403 { XEOF, NULL, 0 }
404};
405
406#endif /* _IMP_ACF_DEF_ACF625 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf630.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf630.h
new file mode 100644
index 0000000..283896d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf630.h
@@ -0,0 +1,417 @@
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_ACF_DEF_ACF630
23#define _IMP_ACF_DEF_ACF630
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf630[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XCHR, "VIEW__Filler", 4 },
30 { XCHR, "VIEW__tailnum", 40 },
31 { XCHR, "VIEW__author", 500 },
32 { XCHR, "VIEW__descrip", 500 },
33 { XFLT, "VIEW__size_x", 1 },
34 { XFLT, "VIEW__size_z", 1 },
35 { XINT, "VIEW__is_APL", 1 },
36 { XINT, "VIEW__actype", 1 },
37 { XINT, "VIEW__HUDtype", 1 },
38 { XINT, "VIEW__asi_kts", 1 },
39 { XINT, "VIEW__cockpit_type", 1 },
40 { XINT, "VIEW__has_fd", 1 },
41 { XINT, "VIEW__has_stallwarn", 1 },
42 { XINT, "VIEW__has_litemap_tex", 1 },
43 { XFLT, "VIEW__peX", 1 },
44 { XFLT, "VIEW__peY", 1 },
45 { XFLT, "VIEW__peZ", 1 },
46 { XFLT, "VIEW__Vso", 1 },
47 { XFLT, "VIEW__Vs", 1 },
48 { XFLT, "VIEW__Vfe", 1 },
49 { XFLT, "VIEW__Vno", 1 },
50 { XFLT, "VIEW__Vne", 1 },
51 { XFLT, "VIEW__Mmo", 1 },
52 { XFLT, "VIEW__Gneg", 1 },
53 { XFLT, "VIEW__Gpos", 1 },
54 { XFLT, "VIEW__est_Vs", 1 },
55 { XFLT, "VIEW__yawstringx", 1 },
56 { XFLT, "VIEW__yawstringy", 1 },
57 { XFLT, "VIEW__HUD_cntr", 1 },
58 { XFLT, "VIEW__HUD_cntry", 1 },
59 { XFLT, "VIEW__HUD_del", 1 },
60 { XFLT, "VIEW__HUD_dely", 1 },
61 { XINT, "VIEW__has_lanlite1", 1 },
62 { XFLT, "VIEW__lanlite1X", 1 },
63 { XFLT, "VIEW__lanlite1Y", 1 },
64 { XFLT, "VIEW__lanlite1Z", 1 },
65 { XFLT, "VIEW__lanlite_the", 1 },
66 { XINT, "VIEW__has_lanlite2", 1 },
67 { XFLT, "VIEW__lanlite2X", 1 },
68 { XFLT, "VIEW__lanlite2Y", 1 },
69 { XFLT, "VIEW__lanlite2Z", 1 },
70 { XINT, "VIEW__has_lanlite3", 1 },
71 { XFLT, "VIEW__lanlite3X", 1 },
72 { XFLT, "VIEW__lanlite3Y", 1 },
73 { XFLT, "VIEW__lanlite3Z", 1 },
74 { XINT, "VIEW__has_fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1", 1 },
76 { XFLT, "VIEW__fuserb1", 1 },
77 { XFLT, "VIEW__fuserb1Z", 1 },
78 { XINT, "VIEW__has_fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2", 1 },
80 { XFLT, "VIEW__fuserb2", 1 },
81 { XFLT, "VIEW__fuserb2Z", 1 },
82 { XINT, "VIEW__has_taillite", 1 },
83 { XFLT, "VIEW__tailliteX", 1 },
84 { XFLT, "VIEW__tailliteY", 1 },
85 { XFLT, "VIEW__tailliteZ", 1 },
86 { XINT, "VIEW__has_navlites", 1 },
87 { XINT, "PANEL_ins_type", 200 },
88 { XFLT, "PANEL_ins_size", 200 },
89 { XFLT, "PANEL_ins_x", 200 },
90 { XFLT, "PANEL_ins_y", 200 },
91 { XFLT, "PANEL_ins_delx", 200 },
92 { XFLT, "PANEL_ins_dely", 200 },
93 { XINT, "FORCE_Hydraulic", 1 },
94 { XINT, "FORCE_Stickshaker", 1 },
95 { XINT, "ENG___number_engines", 1 },
96 { XINT, "ENG___auto_feather_EQ", 1 },
97 { XFLT, "ENG___throtmax_FW", 1 },
98 { XFLT, "ENG___throtmax_REV", 1 },
99 { XFLT, "ENG___omegaminRS", 1 },
100 { XFLT, "ENG___omegamaxRSC", 1 },
101 { XFLT, "ENG___omegamingreenRSC", 1 },
102 { XFLT, "ENG___omegamaxgreenRSC", 1 },
103 { XFLT, "ENG___pmax", 1 },
104 { XFLT, "ENG___tmax", 1 },
105 { XFLT, "ENG___burnerinc", 1 },
106 { XFLT, "ENG___critalt", 1 },
107 { XFLT, "ENG___mpmax", 1 },
108 { XFLT, "ENG___gearrat", 1 },
109 { XFLT, "ENG___face_jet", 1 },
110 { XFLT, "ENG___face_rocket", 1 },
111 { XFLT, "ENG___spooltime", 1 },
112 { XFLT, "ENG___max_mach_eff", 1 },
113 { XFLT, "ENG___fmax_sl", 1 },
114 { XFLT, "ENG___fmax_opt", 1 },
115 { XFLT, "ENG___fmax_vac", 1 },
116 { XFLT, "ENG___h_opt", 1 },
117 { XFLT, "ENG___tip_mach_des_50", 1 },
118 { XFLT, "ENG___tip_mach_des_100", 1 },
119 { XFLT, "ENG___rotor_mi_rat", 1 },
120 { XFLT, "ENG___tip_weight", 1 },
121 { XFLT, "ENG___trotor_rat", 1 },
122 { XINT, "PROP__engine_type", 8 },
123 { XINT, "PROP__revthrust_eq", 8 },
124 { XINT, "PROP__prop_type", 8 },
125 { XFLT, "PROP__prop_dir", 8 },
126 { XFLT, "PROP__num_blades", 8 },
127 { XFLT, "PROP__SFC", 8 },
128 { XFLT, "PROP__minpitch", 8 },
129 { XFLT, "PROP__maxpitch", 8 },
130 { XFLT, "PROP__revpitch", 8 },
131 { XFLT, "PROP__sidecant", 8 },
132 { XFLT, "PROP__vertcant", 8 },
133 { XFLT, "PROP__miprop_rpm", 8 },
134 { XFLT, "PROP__miprop_pitch", 8 },
135 { XFLT, "PROP__discarea", 8 },
136 { XFLT, "PROP__ringarea", 80 },
137 { XFLT, "PROP__bladesweep", 80 },
138 { XFLT, "PROP__des_rpm_prp", 8 },
139 { XFLT, "PROP__des_kts_prp", 8 },
140 { XFLT, "PROP__des_kts_acf", 8 },
141 { XINT, "PARTS_part_eq", 57 },
142 { XCHR, "PARTS_Rafl0", 2280 },
143 { XCHR, "PARTS_Rafl1", 2280 },
144 { XCHR, "PARTS_Tafl0", 2280 },
145 { XCHR, "PARTS_Tafl1", 2280 },
146 { XINT, "PARTS_els", 57 },
147 { XFLT, "PARTS_Xarm", 57 },
148 { XFLT, "PARTS_Yarm", 57 },
149 { XFLT, "PARTS_Zarm", 57 },
150 { XFLT, "PARTS_X_body_aero", 57 },
151 { XFLT, "PARTS_Y_body_aero", 57 },
152 { XFLT, "PARTS_Z_body_aero", 57 },
153 { XFLT, "PARTS_Croot", 57 },
154 { XFLT, "PARTS_Ctip", 57 },
155 { XFLT, "PARTS_dihed", 57 },
156 { XFLT, "PARTS_sweep1", 57 },
157 { XFLT, "PARTS_sweep2", 57 },
158 { XFLT, "PARTS_sweepnow", 57 },
159 { XINT, "PARTS_varsweepEQ", 57 },
160 { XFLT, "PARTS_semilen_SEG", 57 },
161 { XFLT, "PARTS_semilen_JND", 57 },
162 { XFLT, "PARTS_e", 57 },
163 { XFLT, "PARTS_AR", 57 },
164 { XFLT, "PARTS_al_D_al0", 57 },
165 { XFLT, "PARTS_cl_D_cl0", 57 },
166 { XFLT, "PARTS_cm_D_cm0", 57 },
167 { XFLT, "PARTS_delta_fac", 57 },
168 { XFLT, "PARTS_spec_wash", 57 },
169 { XFLT, "PARTS_alpha_max", 57 },
170 { XFLT, "PARTS_slat_effect", 57 },
171 { XFLT, "PARTS_s", 570 },
172 { XFLT, "PARTS_mac", 570 },
173 { XFLT, "PARTS_anginc", 570 },
174 { XINT, "PARTS_ail1", 570 },
175 { XINT, "PARTS_ail2", 570 },
176 { XINT, "PARTS_splr", 570 },
177 { XINT, "PARTS_flap", 570 },
178 { XINT, "PARTS_flapEQ", 1 },
179 { XINT, "PARTS_slat", 570 },
180 { XINT, "PARTS_slatEQ", 1 },
181 { XINT, "PARTS_sbrk", 570 },
182 { XINT, "PARTS_sbrkEQ", 1 },
183 { XINT, "PARTS_drud", 570 },
184 { XINT, "PARTS_elev", 570 },
185 { XINT, "PARTS_rudd", 570 },
186 { XINT, "PARTS_in_downwash", 32490 },
187 { XFLT, "PARTS_body_r", 57 },
188 { XFLT, "PARTS_body_X", 20520 },
189 { XFLT, "PARTS_body_Y", 20520 },
190 { XFLT, "PARTS_body_Z", 20520 },
191 { XINT, "PARTS_gear_type", 57 },
192 { XFLT, "PARTS_gear_latE", 57 },
193 { XFLT, "PARTS_gear_lonE", 57 },
194 { XFLT, "PARTS_gear_axiE", 57 },
195 { XFLT, "PARTS_gear_latR", 57 },
196 { XFLT, "PARTS_gear_lonR", 57 },
197 { XFLT, "PARTS_gear_axiR", 57 },
198 { XFLT, "PARTS_gear_latN", 57 },
199 { XFLT, "PARTS_gear_lonN", 57 },
200 { XFLT, "PARTS_gear_axiN", 57 },
201 { XFLT, "PARTS_gear_leglen", 57 },
202 { XFLT, "PARTS_gear_tirrad", 57 },
203 { XFLT, "PARTS_gearcon", 57 },
204 { XFLT, "PARTS_geardmp", 57 },
205 { XFLT, "PARTS_gearstatdef", 57 },
206 { XFLT, "PARTS_gear_def", 57 },
207 { XFLT, "PARTS_gear_deploy", 57 },
208 { XFLT, "PARTS_gear_xnodef", 57 },
209 { XFLT, "PARTS_gear_ynodef", 57 },
210 { XFLT, "PARTS_gear_znodef", 57 },
211 { XFLT, "BODY__fuse_cd", 1 },
212 { XFLT, "CTRLS_ail1_crat", 1 },
213 { XFLT, "CTRLS_ail1_up", 1 },
214 { XFLT, "CTRLS_ail1_d", 1 },
215 { XFLT, "CTRLS_lail1def", 1 },
216 { XFLT, "CTRLS_rail1def", 1 },
217 { XFLT, "CTRLS_ail2_crat", 1 },
218 { XFLT, "CTRLS_ail2_up", 1 },
219 { XFLT, "CTRLS_ail2_d", 1 },
220 { XFLT, "CTRLS_lail2def", 1 },
221 { XFLT, "CTRLS_rail2def", 1 },
222 { XFLT, "CTRLS_elev_crat", 1 },
223 { XFLT, "CTRLS_elev_up", 1 },
224 { XFLT, "CTRLS_elev_d", 1 },
225 { XFLT, "CTRLS_lhstbdef", 1 },
226 { XFLT, "CTRLS_rhstbdef", 1 },
227 { XFLT, "CTRLS_rudd_crat", 1 },
228 { XFLT, "CTRLS_rudd_l", 1 },
229 { XFLT, "CTRLS_rudd1def", 1 },
230 { XFLT, "CTRLS_rudd2def", 1 },
231 { XFLT, "CTRLS_splr_crat", 1 },
232 { XFLT, "CTRLS_splr_u", 1 },
233 { XFLT, "CTRLS_lsplrdef", 1 },
234 { XFLT, "CTRLS_rsplrdef", 1 },
235 { XFLT, "CTRLS_drud_crat", 1 },
236 { XFLT, "CTRLS_drud_u", 1 },
237 { XFLT, "CTRLS_ldruddef", 1 },
238 { XFLT, "CTRLS_rdruddef", 1 },
239 { XFLT, "CTRLS_sbrk_crat", 1 },
240 { XFLT, "CTRLS_sbrk_up", 1 },
241 { XFLT, "CTRLS_flap_crat", 1 },
242 { XFLT, "CTRLS_flap_dn", 7 },
243 { XFLT, "CTRLS_lflapdef", 1 },
244 { XFLT, "CTRLS_rflapdef", 1 },
245 { XFLT, "CTRLS_hstb_trim_up", 1 },
246 { XFLT, "CTRLS_hstb_trim_d", 1 },
247 { XFLT, "CTRLS_hstb_trim_def", 1 },
248 { XINT, "CTRLS_hstabtype", 1 },
249 { XINT, "CTRLS_vstabtype", 1 },
250 { XINT, "CTRLS_flap_type", 1 },
251 { XINT, "CTRLS_con_smooth", 1 },
252 { XFLT, "CTRLS_flap_cl", 1 },
253 { XFLT, "CTRLS_flap_cd", 1 },
254 { XFLT, "CTRLS_flap_cm", 1 },
255 { XINT, "CTRLS_flap_detents", 1 },
256 { XFLT, "CTRLS_flap_deftime", 1 },
257 { XFLT, "CTRLS_slat_inc", 1 },
258 { XFLT, "CTRLS_blownflap_addspeed", 1 },
259 { XFLT, "CTRLS_blownflap_throtred", 1 },
260 { XFLT, "CTRLS_blownflap_minengag", 1 },
261 { XINT, "GEAR__gear_retract", 1 },
262 { XINT, "GEAR__is_taildragger", 1 },
263 { XINT, "GEAR__gear_is_skid", 1 },
264 { XFLT, "GEAR__gear_deptime", 1 },
265 { XFLT, "GEAR__nwsteerdeg1", 1 },
266 { XFLT, "GEAR__nwsteerdeg2", 1 },
267 { XFLT, "GEAR__nwsteerspd", 1 },
268 { XFLT, "GEAR__water_rud_longarm", 1 },
269 { XFLT, "GEAR__water_rud_area", 1 },
270 { XFLT, "GEAR__water_rud_maxdef", 1 },
271 { XFLT, "GEAR__h_eqlbm", 1 },
272 { XFLT, "GEAR__the_eqlbm", 1 },
273 { XINT, "GEAR__gear_door_use", 10 },
274 { XFLT, "GEAR__gear_door_loc", 30 },
275 { XFLT, "GEAR__gear_door_geo", 120 },
276 { XFLT, "GEAR__gear_door_axi_rot", 10 },
277 { XFLT, "GEAR__gear_door_ext_ang", 10 },
278 { XFLT, "GEAR__gear_door_ret_ang", 10 },
279 { XFLT, "GEAR__gear_door_ang_now", 10 },
280 { XFLT, "WEIGHTcgY", 1 },
281 { XFLT, "WEIGHTcgZ", 1 },
282 { XFLT, "WEIGHTJxx_unitmass", 1 },
283 { XFLT, "WEIGHTJyy_unitmass", 1 },
284 { XFLT, "WEIGHTJzz_unitmass", 1 },
285 { XFLT, "WEIGHTm_empty", 1 },
286 { XFLT, "WEIGHTm_displaced", 1 },
287 { XFLT, "WEIGHTm_max", 1 },
288 { XFLT, "WEIGHTm_fuel", 1 },
289 { XFLT, "WEIGHTm_jettison", 1 },
290 { XFLT, "WEIGHTm_displaced_y", 1 },
291 { XFLT, "SPEC__jato_theta", 1 },
292 { XFLT, "SPEC__jato_thrust", 1 },
293 { XFLT, "SPEC__jato_dur", 1 },
294 { XFLT, "SPEC__jato_sfc", 1 },
295 { XFLT, "SPEC__jato_Y", 1 },
296 { XFLT, "SPEC__jato_Z", 1 },
297 { XFLT, "SPEC__brake_area", 1 },
298 { XFLT, "SPEC__brake_Y", 1 },
299 { XFLT, "SPEC__brake_Z", 1 },
300 { XFLT, "SPEC__chute_area", 1 },
301 { XFLT, "SPEC__chute_Y", 1 },
302 { XFLT, "SPEC__chute_Z", 1 },
303 { XFLT, "SPEC__ail1pitch", 1 },
304 { XFLT, "SPEC__ail1flaps", 1 },
305 { XFLT, "SPEC__ail2pitch", 1 },
306 { XFLT, "SPEC__ail2flaps", 1 },
307 { XFLT, "SPEC__stabroll", 1 },
308 { XFLT, "SPEC__stabhdng", 1 },
309 { XFLT, "SPEC__ail2vmax", 1 },
310 { XFLT, "SPEC__tvec_ptch", 1 },
311 { XFLT, "SPEC__tvec_roll", 1 },
312 { XFLT, "SPEC__tvec_hdng", 1 },
313 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
314 { XINT, "SPEC__arrestingEQ", 1 },
315 { XINT, "SPEC__antiiceEQ", 1 },
316 { XINT, "SPEC__bitchinbettyEQ", 1 },
317 { XINT, "SPEC__gearhornEQ", 1 },
318 { XINT, "SPEC__autosbrkEQ", 1 },
319 { XINT, "SPEC__autofbrkEQ", 1 },
320 { XINT, "SPEC__autosweepEQ", 1 },
321 { XINT, "SPEC__autoslatEQ", 1 },
322 { XINT, "VTOL__vectEQ", 1 },
323 { XFLT, "VTOL__vectarm", 1 },
324 { XFLT, "VTOL__cyclic_elev", 1 },
325 { XFLT, "VTOL__cyclic_ailn", 1 },
326 { XFLT, "VTOL__delta3", 1 },
327 { XFLT, "VTOL__puffL", 1 },
328 { XFLT, "VTOL__puffM", 1 },
329 { XFLT, "VTOL__puffN", 1 },
330 { XFLT, "VTOL__tail_with_coll", 1 },
331 { XFLT, "VTOL__diff_coll_with_roll", 1 },
332 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
333 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
334 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
335 { XFLT, "VTOL__rotor_trim_max_fwd", 1 },
336 { XFLT, "VTOL__rotor_trim_max_aft", 1 },
337 { XFLT, "ASTAB_AShiV", 1 },
338 { XFLT, "ASTAB_ASloV", 1 },
339 { XFLT, "ASTAB_Asmaxp_lo", 1 },
340 { XFLT, "ASTAB_Asp_lo_rate", 1 },
341 { XFLT, "ASTAB_Asmaxp_hi", 1 },
342 { XFLT, "ASTAB_Asp_hi_pos", 1 },
343 { XFLT, "ASTAB_Asmaxh_lo", 1 },
344 { XFLT, "ASTAB_Ash_lo_rate", 1 },
345 { XFLT, "ASTAB_Asmaxh_hi", 1 },
346 { XFLT, "ASTAB_Ash_hi_pos", 1 },
347 { XFLT, "ASTAB_Asmaxr_lo", 1 },
348 { XFLT, "ASTAB_Asr_lo_rate", 1 },
349 { XFLT, "ASTAB_Asmaxr_hi", 1 },
350 { XFLT, "ASTAB_Asr_hi_rate", 1 },
351 { XFLT, "fdummy1", 1 },
352 { XFLT, "fdummy2", 1 },
353 { XFLT, "element_len", 57 },
354 { XFLT, "gear_door_size", 1 },
355 { XFLT, "stab_change_to_redline", 1 },
356 { XFLT, "Vmca", 1 },
357 { XFLT, "Vyse", 1 },
358 { XFLT, "flap_arm", 1 },
359 { XFLT, "tank_xyz12", 6 },
360 { XFLT, "cgZ_fwd", 1 },
361 { XFLT, "cgZ_aft", 1 },
362 { XFLT, "gear_cyc_time", 5 },
363 { XFLT, "refuel_X", 1 },
364 { XFLT, "refuel_Y", 1 },
365 { XFLT, "refuel_Z", 1 },
366 { XCHR, "gear_steers", 57 },
367 { XCHR, "hybrid_gear", 1 },
368 { XCHR, "chr_overflow", 2 },
369 { XINT, "vardihedEQ", 57 },
370 { XFLT, "dihed2", 57 },
371 { XFLT, "dihednow", 57 },
372 { XFLT, "jett_xyz", 3 },
373 { XFLT, "puffX", 1 },
374 { XFLT, "puffY", 1 },
375 { XFLT, "puffZ", 1 },
376 { XFLT, "Vle", 1 },
377 { XFLT, "ASp_hi_rate", 1 },
378 { XFLT, "ASh_hi_rate", 1 },
379 { XFLT, "spooltime_prop", 1 },
380 { XFLT, "elevflaps", 1 },
381 { XFLT, "tank_xyz3", 3 },
382 { XFLT, "tank_rat", 3 },
383 { XFLT, "stall_warn_alpha", 1 },
384 { XFLT, "mass_shift", 1 },
385 { XFLT, "mass_shift_dx", 1 },
386 { XFLT, "mass_shift_dz", 1 },
387 { XFLT, "feathered_pitch", 1 },
388 { XFLT, "ASmaxg_hi", 1 },
389 { XFLT, "ASg_hi_pos", 1 },
390 { XFLT, "ASg_hi_rate", 1 },
391 { XFLT, "flt_overflow", 11 },
392 { XINT, "OVER__drive_by_wire", 1 },
393 { XINT, "is_glossy", 1 },
394 { XINT, "num_tanks", 1 },
395 { XINT, "has_refuel", 1 },
396 { XINT, "draw_geo_frnt_views", 1 },
397 { XINT, "draw_geo_side_views", 1 },
398 { XINT, "jett_is_slung", 1 },
399 { XFLT, "eng_mass", 57 },
400 { XINT, "phase_tvect", 1 },
401 { XINT, "auto_trim", 1 },
402 { XINT, "has_DC_fd", 1 },
403 { XINT, "flaps_with_gearEQ", 1 },
404 { XINT, "rev_on_touchdown", 1 },
405 { XINT, "int_overflow", 20 },
406 { XINT, "old_struct_last_dat", 1 },
407 { XCHR, "wpn_name", 12000 },
408 { XFLT, "Xwpn_att", 24 },
409 { XFLT, "Ywpn_att", 24 },
410 { XFLT, "Zwpn_att", 24 },
411 { XFLT, "xflt_overflow", 1000 },
412 { XINT, "xint_overflow", 1000 },
413
414 { XEOF, NULL, 0 }
415};
416
417#endif /* _IMP_ACF_DEF_ACF630 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf640.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf640.h
new file mode 100644
index 0000000..93de1e8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf640.h
@@ -0,0 +1,449 @@
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_ACF_DEF_ACF640
23#define _IMP_ACF_DEF_ACF640
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf640[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XCHR, "VIEW__Filler", 4 },
30 { XCHR, "VIEW__tailnum", 40 },
31 { XCHR, "VIEW__author", 500 },
32 { XCHR, "VIEW__descrip", 500 },
33 { XFLT, "VIEW__size_x", 1 },
34 { XFLT, "VIEW__size_z", 1 },
35 { XINT, "VIEW__is_APL", 1 },
36 { XINT, "VIEW__actype", 1 },
37 { XINT, "VIEW__HUDtype", 1 },
38 { XINT, "VIEW__asi_kts", 1 },
39 { XINT, "VIEW__cockpit_type", 1 },
40 { XINT, "VIEW__has_SC_fd", 1 },
41 { XINT, "VIEW__has_stallwarn", 1 },
42 { XINT, "VIEW__has_litemap_tex", 1 },
43 { XFLT, "VIEW__peX", 1 },
44 { XFLT, "VIEW__peY", 1 },
45 { XFLT, "VIEW__peZ", 1 },
46 { XFLT, "VIEW__Vso", 1 },
47 { XFLT, "VIEW__Vs", 1 },
48 { XFLT, "VIEW__Vfe", 1 },
49 { XFLT, "VIEW__Vno", 1 },
50 { XFLT, "VIEW__Vne", 1 },
51 { XFLT, "VIEW__Mmo", 1 },
52 { XFLT, "VIEW__Gneg", 1 },
53 { XFLT, "VIEW__Gpos", 1 },
54 { XFLT, "VIEW__est_Vs", 1 },
55 { XFLT, "VIEW__yawstringx", 1 },
56 { XFLT, "VIEW__yawstringy", 1 },
57 { XFLT, "VIEW__HUD_cntrx", 1 },
58 { XFLT, "VIEW__HUD_cntry", 1 },
59 { XFLT, "VIEW__HUD_delx", 1 },
60 { XFLT, "VIEW__HUD_dely", 1 },
61 { XINT, "VIEW__has_lanlite1", 1 },
62 { XFLT, "VIEW__lanlite1X", 1 },
63 { XFLT, "VIEW__lanlite1Y", 1 },
64 { XFLT, "VIEW__lanlite1Z", 1 },
65 { XFLT, "VIEW__lanlite_the", 1 },
66 { XINT, "VIEW__has_lanlite2", 1 },
67 { XFLT, "VIEW__lanlite2X", 1 },
68 { XFLT, "VIEW__lanlite2Y", 1 },
69 { XFLT, "VIEW__lanlite2Z", 1 },
70 { XINT, "VIEW__has_lanlite3", 1 },
71 { XFLT, "VIEW__lanlite3X", 1 },
72 { XFLT, "VIEW__lanlite3Y", 1 },
73 { XFLT, "VIEW__lanlite3Z", 1 },
74 { XINT, "VIEW__has_fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1X", 1 },
76 { XFLT, "VIEW__fuserb1Y", 1 },
77 { XFLT, "VIEW__fuserb1Z", 1 },
78 { XINT, "VIEW__has_fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2X", 1 },
80 { XFLT, "VIEW__fuserb2Y", 1 },
81 { XFLT, "VIEW__fuserb2Z", 1 },
82 { XINT, "VIEW__has_taillite", 1 },
83 { XFLT, "VIEW__tailliteX", 1 },
84 { XFLT, "VIEW__tailliteY", 1 },
85 { XFLT, "VIEW__tailliteZ", 1 },
86 { XINT, "VIEW__has_navlites", 1 },
87 { XINT, "PANEL_ins_type", 200 },
88 { XFLT, "PANEL_ins_size", 200 },
89 { XFLT, "PANEL_ins_x", 200 },
90 { XFLT, "PANEL_ins_y", 200 },
91 { XFLT, "PANEL_ins_delx", 200 },
92 { XFLT, "PANEL_ins_dely", 200 },
93 { XINT, "FORCE_Hydraulic", 1 },
94 { XINT, "FORCE_Stickshaker", 1 },
95 { XINT, "ENG___number_engines", 1 },
96 { XINT, "ENG___auto_feather_EQ", 1 },
97 { XFLT, "ENG___throtmax_FWD", 1 },
98 { XFLT, "ENG___throtmax_REV", 1 },
99 { XFLT, "ENG___omegaminRSC", 1 },
100 { XFLT, "ENG___omegamaxRSC", 1 },
101 { XFLT, "ENG___omegamingreenRSC", 1 },
102 { XFLT, "ENG___omegamaxgreenRSC", 1 },
103 { XFLT, "ENG___pmax", 1 },
104 { XFLT, "ENG___tmax", 1 },
105 { XFLT, "ENG___burnerinc", 1 },
106 { XFLT, "ENG___critalt", 1 },
107 { XFLT, "ENG___mpmax", 1 },
108 { XFLT, "ENG___gearrat", 1 },
109 { XFLT, "ENG___face_jet", 1 },
110 { XFLT, "ENG___face_rocket", 1 },
111 { XFLT, "ENG___spooltime", 1 },
112 { XFLT, "ENG___max_mach_eff", 1 },
113 { XFLT, "ENG___fmax_sl", 1 },
114 { XFLT, "ENG___fmax_opt", 1 },
115 { XFLT, "ENG___fmax_vac", 1 },
116 { XFLT, "ENG___h_opt", 1 },
117 { XFLT, "ENG___tip_mach_des_50", 1 },
118 { XFLT, "ENG___tip_mach_des_100", 1 },
119 { XFLT, "ENG___rotor_mi_rat", 1 },
120 { XFLT, "ENG___tip_weight", 1 },
121 { XFLT, "ENG___tail_or_main_omegarat", 1 },
122 { XINT, "PROP__engine_type", 8 },
123 { XINT, "PROP__revthrust_eq", 8 },
124 { XINT, "PROP__prop_type", 8 },
125 { XFLT, "PROP__prop_dir", 8 },
126 { XFLT, "PROP__num_blades", 8 },
127 { XFLT, "PROP__SFC", 8 },
128 { XFLT, "PROP__minpitch", 8 },
129 { XFLT, "PROP__maxpitch", 8 },
130 { XFLT, "PROP__revpitch", 8 },
131 { XFLT, "PROP__sidecant", 8 },
132 { XFLT, "PROP__vertcant", 8 },
133 { XFLT, "PROP__prop_mass", 8 },
134 { XFLT, "PROP__miprop_pitch", 8 },
135 { XFLT, "PROP__discarea", 8 },
136 { XFLT, "PROP__ringarea", 80 },
137 { XFLT, "PROP__bladesweep", 80 },
138 { XFLT, "PROP__des_rpm_prp", 8 },
139 { XFLT, "PROP__des_kts_prp", 8 },
140 { XFLT, "PROP__des_kts_acf", 8 },
141 { XINT, "PARTS_part_eq", 57 },
142 { XCHR, "PARTS_Rafl0", 2280 },
143 { XCHR, "PARTS_Rafl1", 2280 },
144 { XCHR, "PARTS_Tafl0", 2280 },
145 { XCHR, "PARTS_Tafl1", 2280 },
146 { XINT, "PARTS_els", 57 },
147 { XFLT, "PARTS_Xarm", 57 },
148 { XFLT, "PARTS_Yarm", 57 },
149 { XFLT, "PARTS_Zarm", 57 },
150 { XFLT, "PARTS_X_body_aero", 57 },
151 { XFLT, "PARTS_Y_body_aero", 57 },
152 { XFLT, "PARTS_Z_body_aero", 57 },
153 { XFLT, "PARTS_Croot", 57 },
154 { XFLT, "PARTS_Ctip", 57 },
155 { XFLT, "PARTS_dihed", 57 },
156 { XFLT, "PARTS_sweep1", 57 },
157 { XFLT, "PARTS_sweep2", 57 },
158 { XFLT, "PARTS_sweepnow", 57 },
159 { XINT, "PARTS_varsweepEQ", 57 },
160 { XFLT, "PARTS_semilen_SEG", 57 },
161 { XFLT, "PARTS_semilen_JND", 57 },
162 { XFLT, "PARTS_e", 57 },
163 { XFLT, "PARTS_AR", 57 },
164 { XFLT, "PARTS_al_D_al0", 57 },
165 { XFLT, "PARTS_cl_D_cl0", 57 },
166 { XFLT, "PARTS_cm_D_cm0", 57 },
167 { XFLT, "PARTS_delta_fac", 57 },
168 { XFLT, "PARTS_spec_wash", 57 },
169 { XFLT, "PARTS_alpha_max", 57 },
170 { XFLT, "PARTS_slat_effect", 57 },
171 { XFLT, "PARTS_s", 570 },
172 { XFLT, "PARTS_mac", 570 },
173 { XFLT, "PARTS_anginc", 570 },
174 { XINT, "PARTS_ail1", 570 },
175 { XINT, "PARTS_ail2", 570 },
176 { XINT, "PARTS_splr", 570 },
177 { XINT, "PARTS_flap", 570 },
178 { XINT, "PARTS_flapEQ", 1 },
179 { XINT, "PARTS_slat", 570 },
180 { XINT, "PARTS_slatEQ", 1 },
181 { XINT, "PARTS_sbrk", 570 },
182 { XINT, "PARTS_sbrkEQ", 1 },
183 { XINT, "PARTS_drud", 570 },
184 { XINT, "PARTS_elev", 570 },
185 { XINT, "PARTS_rudd", 570 },
186 { XINT, "PARTS_in_downwash", 32490 },
187 { XFLT, "PARTS_body_r", 57 },
188 { XFLT, "PARTS_body_X", 20520 },
189 { XFLT, "PARTS_body_Y", 20520 },
190 { XFLT, "PARTS_body_Z", 20520 },
191 { XINT, "PARTS_gear_type", 57 },
192 { XFLT, "PARTS_gear_latE", 57 },
193 { XFLT, "PARTS_gear_lonE", 57 },
194 { XFLT, "PARTS_gear_axiE", 57 },
195 { XFLT, "PARTS_gear_latR", 57 },
196 { XFLT, "PARTS_gear_lonR", 57 },
197 { XFLT, "PARTS_gear_axiR", 57 },
198 { XFLT, "PARTS_gear_latN", 57 },
199 { XFLT, "PARTS_gear_lonN", 57 },
200 { XFLT, "PARTS_gear_axiN", 57 },
201 { XFLT, "PARTS_gear_leglen", 57 },
202 { XFLT, "PARTS_gear_tirrad", 57 },
203 { XFLT, "PARTS_gearcon", 57 },
204 { XFLT, "PARTS_geardmp", 57 },
205 { XFLT, "PARTS_gearstatdef", 57 },
206 { XFLT, "PARTS_gear_def", 57 },
207 { XFLT, "PARTS_gear_deploy", 57 },
208 { XFLT, "PARTS_gear_xnodef", 57 },
209 { XFLT, "PARTS_gear_ynodef", 57 },
210 { XFLT, "PARTS_gear_znodef", 57 },
211 { XFLT, "BODY__fuse_cd", 1 },
212 { XFLT, "CTRLS_ail1_crat", 1 },
213 { XFLT, "CTRLS_ail1_up", 1 },
214 { XFLT, "CTRLS_ail1_dn", 1 },
215 { XFLT, "CTRLS_d01", 1 },
216 { XFLT, "CTRLS_d02", 1 },
217 { XFLT, "CTRLS_ail2_crat", 1 },
218 { XFLT, "CTRLS_ail2_up", 1 },
219 { XFLT, "CTRLS_ail2_dn", 1 },
220 { XFLT, "CTRLS_d03", 1 },
221 { XFLT, "CTRLS_d04", 1 },
222 { XFLT, "CTRLS_elev_crat", 1 },
223 { XFLT, "CTRLS_elev_up", 1 },
224 { XFLT, "CTRLS_elev_dn", 1 },
225 { XFLT, "CTRLS_d05", 1 },
226 { XFLT, "CTRLS_d06", 1 },
227 { XFLT, "CTRLS_rudd_crat", 1 },
228 { XFLT, "CTRLS_rudd_lr", 1 },
229 { XFLT, "CTRLS_d07", 1 },
230 { XFLT, "CTRLS_d08", 1 },
231 { XFLT, "CTRLS_splr_crat", 1 },
232 { XFLT, "CTRLS_splr_up", 1 },
233 { XFLT, "CTRLS_d09", 1 },
234 { XFLT, "CTRLS_d10", 1 },
235 { XFLT, "CTRLS_drud_crat", 1 },
236 { XFLT, "CTRLS_drud_ud", 1 },
237 { XFLT, "CTRLS_d11", 1 },
238 { XFLT, "CTRLS_d12", 1 },
239 { XFLT, "CTRLS_sbrk_crat", 1 },
240 { XFLT, "CTRLS_sbrk_up", 1 },
241 { XFLT, "CTRLS_flap_crat", 1 },
242 { XFLT, "CTRLS_flap_dn", 7 },
243 { XFLT, "CTRLS_d13", 1 },
244 { XFLT, "CTRLS_d14", 1 },
245 { XFLT, "CTRLS_hstb_trim_up", 1 },
246 { XFLT, "CTRLS_hstb_trim_dn", 1 },
247 { XFLT, "CTRLS_d15", 1 },
248 { XINT, "CTRLS_hstabtype", 1 },
249 { XINT, "CTRLS_vstabtype", 1 },
250 { XINT, "CTRLS_flap_type", 1 },
251 { XINT, "CTRLS_con_smooth", 1 },
252 { XFLT, "CTRLS_flap_cl", 1 },
253 { XFLT, "CTRLS_flap_cd", 1 },
254 { XFLT, "CTRLS_flap_cm", 1 },
255 { XINT, "CTRLS_flap_detents", 1 },
256 { XFLT, "CTRLS_flap_deftime", 1 },
257 { XFLT, "CTRLS_slat_inc", 1 },
258 { XFLT, "CTRLS_blownflap_addspeed", 1 },
259 { XFLT, "CTRLS_blownflap_throtred", 1 },
260 { XFLT, "CTRLS_blownflap_minengag", 1 },
261 { XINT, "GEAR__gear_retract", 1 },
262 { XINT, "GEAR__is_taildragger", 1 },
263 { XINT, "GEAR__gear_is_skid", 1 },
264 { XFLT, "GEAR__OLD_OVERALL_RETRACT_TIME", 1 },
265 { XFLT, "GEAR__nwsteerdeg1", 1 },
266 { XFLT, "GEAR__nwsteerdeg2", 1 },
267 { XFLT, "GEAR__nwsteerspd", 1 },
268 { XFLT, "GEAR__water_rud_longarm", 1 },
269 { XFLT, "GEAR__water_rud_area", 1 },
270 { XFLT, "GEAR__water_rud_maxdef", 1 },
271 { XFLT, "GEAR__h_eqlbm", 1 },
272 { XFLT, "GEAR__the_eqlbm", 1 },
273 { XINT, "GEAR__gear_door_typ", 10 },
274 { XFLT, "GEAR__gear_door_loc", 30 },
275 { XFLT, "GEAR__gear_door_geo", 120 },
276 { XFLT, "GEAR__gear_door_axi_rot", 10 },
277 { XFLT, "GEAR__gear_door_ext_ang", 10 },
278 { XFLT, "GEAR__gear_door_ret_ang", 10 },
279 { XFLT, "GEAR__gear_door_ang_now", 10 },
280 { XFLT, "WEIGHTcgY", 1 },
281 { XFLT, "WEIGHTcgZ", 1 },
282 { XFLT, "WEIGHTJxx_unitmass", 1 },
283 { XFLT, "WEIGHTJyy_unitmass", 1 },
284 { XFLT, "WEIGHTJzz_unitmass", 1 },
285 { XFLT, "WEIGHTm_empty", 1 },
286 { XFLT, "WEIGHTm_displaced", 1 },
287 { XFLT, "WEIGHTm_max", 1 },
288 { XFLT, "WEIGHTm_fuel", 1 },
289 { XFLT, "WEIGHTm_jettison", 1 },
290 { XFLT, "WEIGHTm_displaced_y", 1 },
291 { XFLT, "SPEC__jato_theta", 1 },
292 { XFLT, "SPEC__jato_thrust", 1 },
293 { XFLT, "SPEC__jato_dur", 1 },
294 { XFLT, "SPEC__jato_sfc", 1 },
295 { XFLT, "SPEC__jato_Y", 1 },
296 { XFLT, "SPEC__jato_Z", 1 },
297 { XFLT, "SPEC__brake_area", 1 },
298 { XFLT, "SPEC__brake_Y", 1 },
299 { XFLT, "SPEC__brake_Z", 1 },
300 { XFLT, "SPEC__chute_area", 1 },
301 { XFLT, "SPEC__chute_Y", 1 },
302 { XFLT, "SPEC__chute_Z", 1 },
303 { XFLT, "SPEC__ail1pitch", 1 },
304 { XFLT, "SPEC__ail1flaps", 1 },
305 { XFLT, "SPEC__ail2pitch", 1 },
306 { XFLT, "SPEC__ail2flaps", 1 },
307 { XFLT, "SPEC__stabroll", 1 },
308 { XFLT, "SPEC__stabhdng", 1 },
309 { XFLT, "SPEC__ail2vmax", 1 },
310 { XFLT, "SPEC__tvec_ptch", 1 },
311 { XFLT, "SPEC__tvec_roll", 1 },
312 { XFLT, "SPEC__tvec_hdng", 1 },
313 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
314 { XINT, "SPEC__arrestingEQ", 1 },
315 { XINT, "SPEC__antiiceEQ", 1 },
316 { XINT, "SPEC__warn1EQ", 1 },
317 { XINT, "SPEC__gearhornEQ", 1 },
318 { XINT, "SPEC__autosbrkEQ", 1 },
319 { XINT, "SPEC__autofbrkEQ", 1 },
320 { XINT, "SPEC__autosweepEQ", 1 },
321 { XINT, "SPEC__autoslatEQ", 1 },
322 { XINT, "VTOL__vectEQ", 1 },
323 { XFLT, "VTOL__vectarm", 1 },
324 { XFLT, "VTOL__cyclic_elev", 1 },
325 { XFLT, "VTOL__cyclic_ailn", 1 },
326 { XFLT, "VTOL__delta3", 1 },
327 { XFLT, "VTOL__puffL", 1 },
328 { XFLT, "VTOL__puffM", 1 },
329 { XFLT, "VTOL__puffN", 1 },
330 { XFLT, "VTOL__tail_with_coll", 1 },
331 { XFLT, "VTOL__diff_coll_with_roll", 1 },
332 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
333 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
334 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
335 { XFLT, "VTOL__rotor_trim_max_fwd", 1 },
336 { XFLT, "VTOL__rotor_trim_max_aft", 1 },
337 { XFLT, "ASTAB_AShiV", 1 },
338 { XFLT, "ASTAB_ASloV", 1 },
339 { XFLT, "ASTAB_Asmaxp_lo", 1 },
340 { XFLT, "ASTAB_Asp_lo_rate", 1 },
341 { XFLT, "ASTAB_Asmaxp_hi", 1 },
342 { XFLT, "ASTAB_Asp_hi_pos", 1 },
343 { XFLT, "ASTAB_Asmaxh_lo", 1 },
344 { XFLT, "ASTAB_Ash_lo_rate", 1 },
345 { XFLT, "ASTAB_Asmaxh_hi", 1 },
346 { XFLT, "ASTAB_Ash_hi_pos", 1 },
347 { XFLT, "ASTAB_Asmaxr_lo", 1 },
348 { XFLT, "ASTAB_Asr_lo_rate", 1 },
349 { XFLT, "ASTAB_Asmaxr_hi", 1 },
350 { XFLT, "ASTAB_Asr_hi_rate", 1 },
351 { XFLT, "EXTRA_fdummy1", 1 },
352 { XFLT, "EXTRA_fdummy2", 1 },
353 { XFLT, "EXTRA_element_len", 57 },
354 { XFLT, "EXTRA_gear_door_size", 1 },
355 { XFLT, "EXTRA_stab_delinc_to_Vne", 1 },
356 { XFLT, "EXTRA_Vmca", 1 },
357 { XFLT, "EXTRA_Vyse", 1 },
358 { XFLT, "EXTRA_flap_arm", 1 },
359 { XFLT, "EXTRA_tank_xyz12", 6 },
360 { XFLT, "EXTRA_cgZ_fwd", 1 },
361 { XFLT, "EXTRA_cgZ_aft", 1 },
362 { XFLT, "EXTRA_gear_cyc_time", 5 },
363 { XFLT, "EXTRA_refuel_X", 1 },
364 { XFLT, "EXTRA_refuel_Y", 1 },
365 { XFLT, "EXTRA_refuel_Z", 1 },
366 { XCHR, "EXTRA_gear_steers", 57 },
367 { XCHR, "EXTRA_hybrid_gear", 1 },
368 { XCHR, "EXTRA_chr_overflow", 2 },
369 { XINT, "EXTRA_vardihedEQ", 57 },
370 { XFLT, "EXTRA_dihed2", 57 },
371 { XFLT, "EXTRA_dihednow", 57 },
372 { XFLT, "EXTRA_jett_xyz", 3 },
373 { XFLT, "EXTRA_puffX", 1 },
374 { XFLT, "EXTRA_puffY", 1 },
375 { XFLT, "EXTRA_puffZ", 1 },
376 { XFLT, "EXTRA_Vle", 1 },
377 { XFLT, "EXTRA_ASp_hi_rate", 1 },
378 { XFLT, "EXTRA_ASh_hi_rate", 1 },
379 { XFLT, "EXTRA_spooltime_prop", 1 },
380 { XFLT, "EXTRA_elevflaps", 1 },
381 { XFLT, "EXTRA_tank_xyz3", 3 },
382 { XFLT, "EXTRA_tank_rat", 3 },
383 { XFLT, "EXTRA_stall_warn_alpha", 1 },
384 { XFLT, "EXTRA_mass_shift", 1 },
385 { XFLT, "EXTRA_mass_shift_dx", 1 },
386 { XFLT, "EXTRA_mass_shift_dz", 1 },
387 { XFLT, "EXTRA_feathered_pitch", 1 },
388 { XFLT, "EXTRA_ASmaxg_hi", 1 },
389 { XFLT, "EXTRA_ASg_hi_pos", 1 },
390 { XFLT, "EXTRA_ASg_hi_rate", 1 },
391 { XFLT, "EXTRA_wing_tilt_ptch", 1 },
392 { XFLT, "EXTRA_wing_tilt_roll", 1 },
393 { XFLT, "EXTRA_max_press_diff", 1 },
394 { XFLT, "EXTRA_diff_coll_with_ptch", 1 },
395 { XFLT, "EXTRA_flap_roll,flap_ptch", 1 },
396 { XFLT, "EXTRA_lift_fan_rat", 1 },
397 { XFLT, "EXTRA_diff_cycl_with_hdng_lat", 1 },
398 { XINT, "EXTRA_phase_tvect_out_at_90", 1 },
399 { XFLT, "EXTRA_flt_overflow", 2 },
400 { XINT, "EXTRA_drive_by_wire", 1 },
401 { XINT, "EXTRA_is_glossy", 1 },
402 { XINT, "EXTRA_num_tanks", 1 },
403 { XINT, "EXTRA_has_refuel", 1 },
404 { XINT, "EXTRA_draw_geo_frnt_views", 1 },
405 { XINT, "EXTRA_draw_geo_side_views", 1 },
406 { XINT, "EXTRA_jett_is_slung", 1 },
407 { XFLT, "EXTRA_eng_mass", 57 },
408 { XINT, "EXTRA_phase_tvect_out_at_00", 1 },
409 { XINT, "EXTRA_auto_trimEQ", 1 },
410 { XINT, "EXTRA_has_DC_fd", 1 },
411 { XINT, "EXTRA_flaps_with_gearEQ", 1 },
412 { XINT, "EXTRA_rev_on_touchdown", 1 },
413 { XINT, "EXTRA_flaps_with_vecEQ", 1 },
414 { XINT, "EXTRA_blow_all_controls", 1 },
415 { XINT, "EXTRA_warn2EQ", 1 },
416 { XINT, "EXTRA_num_thrustpoints", 1 },
417 { XINT, "EXTRA_props_linked", 1 },
418 { XINT, "EXTRA_int_overflow", 15 },
419 { XINT, "EXTRA_old_struct_last_data", 1 },
420 { XCHR, "EXTRA_wpn_name", 12000 },
421 { XFLT, "EXTRA_Xwpn_att", 24 },
422 { XFLT, "EXTRA_Ywpn_att", 24 },
423 { XFLT, "EXTRA_Zwpn_att", 24 },
424 { XINT, "EXTRA_cus_rnd_use", 50 },
425 { XFLT, "EXTRA_cus_rnd_lo_val", 50 },
426 { XFLT, "EXTRA_cus_rnd_hi_val", 50 },
427 { XFLT, "EXTRA_cus_rnd_lo_ang", 50 },
428 { XFLT, "EXTRA_cus_rnd_hi_ang", 50 },
429 { XINT, "EXTRA_dummy_int", 50 },
430 { XINT, "EXTRA_cus_rnd_mirror", 50 },
431 { XINT, "EXTRA_cus_rnd_label", 50 },
432 { XINT, "EXTRA_cus_dig_use", 50 },
433 { XFLT, "EXTRA_cus_dig_offset", 50 },
434 { XFLT, "EXTRA_cus_dig_scale", 50 },
435 { XINT, "EXTRA_cus_dig_dig", 50 },
436 { XINT, "EXTRA_cus_dig_dec", 50 },
437 { XINT, "EXTRA_inc_ail", 570 },
438 { XINT, "EXTRA_inc_vec", 570 },
439 { XFLT, "EXTRA_tow_hook_Y", 1 },
440 { XFLT, "EXTRA_tow_hook_Z", 1 },
441 { XFLT, "EXTRA_win_hook_Y", 1 },
442 { XFLT, "EXTRA_win_hook_Z", 1 },
443 { XINT, "EXTRA_int_overflow", 206 },
444 { XCHR, "EXTRA_chr_overflow", 1000 },
445
446 { XEOF, NULL, 0 }
447};
448
449#endif /* _IMP_ACF_DEF_ACF640 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf651.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf651.h
new file mode 100644
index 0000000..d188023
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf651.h
@@ -0,0 +1,456 @@
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_ACF_DEF_ACF651_H
23#define _IMP_ACF_DEF_ACF651_H
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf651[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XCHR, "VIEW__Filler", 4 },
30 { XCHR, "VIEW__tailnum", 40 },
31 { XCHR, "VIEW__author", 500 },
32 { XCHR, "VIEW__descrip", 500 },
33 { XFLT, "VIEW__size_x", 1 },
34 { XFLT, "VIEW__size_z", 1 },
35 { XINT, "VIEW__is_APL", 1 },
36 { XINT, "VIEW__actype", 1 },
37 { XINT, "VIEW__HUDtype", 1 },
38 { XINT, "VIEW__asi_kts", 1 },
39 { XINT, "VIEW__cockpit_type", 1 },
40 { XINT, "VIEW__has_SC_fd", 1 },
41 { XINT, "VIEW__has_stallwarn", 1 },
42 { XINT, "VIEW__has_litemap_tex", 1 },
43 { XFLT, "VIEW__peX", 1 },
44 { XFLT, "VIEW__peY", 1 },
45 { XFLT, "VIEW__peZ", 1 },
46 { XFLT, "VIEW__Vso", 1 },
47 { XFLT, "VIEW__Vs", 1 },
48 { XFLT, "VIEW__Vfe", 1 },
49 { XFLT, "VIEW__Vno", 1 },
50 { XFLT, "VIEW__Vne", 1 },
51 { XFLT, "VIEW__Mmo", 1 },
52 { XFLT, "VIEW__Gneg", 1 },
53 { XFLT, "VIEW__Gpos", 1 },
54 { XFLT, "VIEW__est_Vs", 1 },
55 { XFLT, "VIEW__yawstringx", 1 },
56 { XFLT, "VIEW__yawstringy", 1 },
57 { XFLT, "VIEW__HUD_cntr", 1 },
58 { XFLT, "VIEW__HUD_cntry", 1 },
59 { XFLT, "VIEW__HUD_del", 1 },
60 { XFLT, "VIEW__HUD_dely", 1 },
61 { XINT, "VIEW__has_lanlite1", 1 },
62 { XFLT, "VIEW__lanlite1X", 1 },
63 { XFLT, "VIEW__lanlite1Y", 1 },
64 { XFLT, "VIEW__lanlite1Z", 1 },
65 { XFLT, "VIEW__lanlite_the", 1 },
66 { XINT, "VIEW__has_lanlite2", 1 },
67 { XFLT, "VIEW__lanlite2X", 1 },
68 { XFLT, "VIEW__lanlite2Y", 1 },
69 { XFLT, "VIEW__lanlite2Z", 1 },
70 { XINT, "VIEW__has_lanlite3", 1 },
71 { XFLT, "VIEW__lanlite3X", 1 },
72 { XFLT, "VIEW__lanlite3Y", 1 },
73 { XFLT, "VIEW__lanlite3Z", 1 },
74 { XINT, "VIEW__has_fuserb1", 1 },
75 { XFLT, "VIEW__fuserb1", 1 },
76 { XFLT, "VIEW__fuserb1", 1 },
77 { XFLT, "VIEW__fuserb1Z", 1 },
78 { XINT, "VIEW__has_fuserb2", 1 },
79 { XFLT, "VIEW__fuserb2", 1 },
80 { XFLT, "VIEW__fuserb2", 1 },
81 { XFLT, "VIEW__fuserb2Z", 1 },
82 { XINT, "VIEW__has_taillite", 1 },
83 { XFLT, "VIEW__tailliteX", 1 },
84 { XFLT, "VIEW__tailliteY", 1 },
85 { XFLT, "VIEW__tailliteZ", 1 },
86 { XINT, "VIEW__has_navlites", 1 },
87 { XINT, "PANEL_ins_type", 200 },
88 { XFLT, "PANEL_ins_size", 200 },
89 { XFLT, "PANEL_ins_x", 200 },
90 { XFLT, "PANEL_ins_y", 200 },
91 { XFLT, "PANEL_ins_delx", 200 },
92 { XFLT, "PANEL_ins_dely", 200 },
93 { XINT, "FORCE_Hydraulic", 1 },
94 { XINT, "FORCE_Stickshaker", 1 },
95 { XINT, "ENG___num_engines", 1 },
96 { XINT, "ENG___auto_feather_EQ", 1 },
97 { XFLT, "ENG___throtmax_FW", 1 },
98 { XFLT, "ENG___throtmax_REV", 1 },
99 { XFLT, "ENG___RSC_idlespeed_en", 1 },
100 { XFLT, "ENG___RSC_redline_eng", 1 },
101 { XFLT, "ENG___RSC_mingreen_eng", 1 },
102 { XFLT, "ENG___RSC_maxgreen_eng", 1 },
103 { XFLT, "ENG___pmax", 1 },
104 { XFLT, "ENG___tmax", 1 },
105 { XFLT, "ENG___burnerinc", 1 },
106 { XFLT, "ENG___critalt", 1 },
107 { XFLT, "ENG___mpmax", 1 },
108 { XFLT, "ENG___gearrat", 1 },
109 { XFLT, "ENG___face_jet", 1 },
110 { XFLT, "ENG___face_rocket", 1 },
111 { XFLT, "ENG___spooltime_jet", 1 },
112 { XFLT, "ENG___max_mach_eff", 1 },
113 { XFLT, "ENG___fmax_sl", 1 },
114 { XFLT, "ENG___fmax_opt", 1 },
115 { XFLT, "ENG___fmax_vac", 1 },
116 { XFLT, "ENG___h_opt", 1 },
117 { XFLT, "ENG___tip_mach_des_50", 1 },
118 { XFLT, "ENG___tip_mach_des_100", 1 },
119 { XFLT, "ENG___rotor_mi_rat", 1 },
120 { XFLT, "ENG___tip_weight", 1 },
121 { XFLT, "ENG___tail_or_main_omegarat", 1 },
122 { XINT, "PROP__engine_type", 8 },
123 { XINT, "PROP__revthrust_eq", 8 },
124 { XINT, "PROP__prop_type", 8 },
125 { XFLT, "PROP__prop_dir", 8 },
126 { XFLT, "PROP__num_blades", 8 },
127 { XFLT, "PROP__SFC", 8 },
128 { XFLT, "PROP__minpitch", 8 },
129 { XFLT, "PROP__maxpitch", 8 },
130 { XFLT, "PROP__revpitch", 8 },
131 { XFLT, "PROP__sidecant", 8 },
132 { XFLT, "PROP__vertcant", 8 },
133 { XFLT, "PROP__propmass", 8 },
134 { XFLT, "PROP__miprop_RPM", 8 },
135 { XFLT, "PROP__discarea", 8 },
136 { XFLT, "PROP__ringarea", 80 },
137 { XFLT, "PROP__bladesweep", 80 },
138 { XFLT, "PROP__des_rpm_prp", 8 },
139 { XFLT, "PROP__des_kts_prp", 8 },
140 { XFLT, "PROP__des_kts_acf", 8 },
141 { XINT, "PARTS_part_eq", 57 },
142 { XCHR, "PARTS_Rafl0", 2280 },
143 { XCHR, "PARTS_Rafl1", 2280 },
144 { XCHR, "PARTS_Tafl0", 2280 },
145 { XCHR, "PARTS_Tafl1", 2280 },
146 { XINT, "PARTS_els", 57 },
147 { XFLT, "PARTS_Xarm", 57 },
148 { XFLT, "PARTS_Yarm", 57 },
149 { XFLT, "PARTS_Zarm", 57 },
150 { XFLT, "PARTS_X_body_aero", 57 },
151 { XFLT, "PARTS_Y_body_aero", 57 },
152 { XFLT, "PARTS_Z_body_aero", 57 },
153 { XFLT, "PARTS_Croot", 57 },
154 { XFLT, "PARTS_Ctip", 57 },
155 { XFLT, "PARTS_dihed", 57 },
156 { XFLT, "PARTS_sweep1", 57 },
157 { XFLT, "PARTS_sweep2", 57 },
158 { XFLT, "PARTS_sweepnow", 57 },
159 { XINT, "PARTS_varsweepEQ", 57 },
160 { XFLT, "PARTS_semilen_SEG", 57 },
161 { XFLT, "PARTS_semilen_JND", 57 },
162 { XFLT, "PARTS_e", 57 },
163 { XFLT, "PARTS_AR", 57 },
164 { XFLT, "PARTS_al_D_al0", 57 },
165 { XFLT, "PARTS_cl_D_cl0", 57 },
166 { XFLT, "PARTS_cm_D_cm0", 57 },
167 { XFLT, "PARTS_delta_fac", 57 },
168 { XFLT, "PARTS_spec_wash", 57 },
169 { XFLT, "PARTS_alpha_max", 57 },
170 { XFLT, "PARTS_slat_effect", 57 },
171 { XFLT, "PARTS_s", 570 },
172 { XFLT, "PARTS_mac", 570 },
173 { XFLT, "PARTS_anginc", 570 },
174 { XINT, "PARTS_ail1", 570 },
175 { XINT, "PARTS_ail2", 570 },
176 { XINT, "PARTS_splr", 570 },
177 { XINT, "PARTS_flap", 570 },
178 { XINT, "PARTS_flapEQ", 1 },
179 { XINT, "PARTS_slat", 570 },
180 { XINT, "PARTS_slatEQ", 1 },
181 { XINT, "PARTS_sbrk", 570 },
182 { XINT, "PARTS_sbrkEQ", 1 },
183 { XINT, "PARTS_drud", 570 },
184 { XINT, "PARTS_elev", 570 },
185 { XINT, "PARTS_rudd", 570 },
186 { XINT, "PARTS_in_downwash", 32490 },
187 { XFLT, "PARTS_body_r", 57 },
188 { XFLT, "PARTS_body_X", 20520 },
189 { XFLT, "PARTS_body_Y", 20520 },
190 { XFLT, "PARTS_body_Z", 20520 },
191 { XINT, "PARTS_gear_type", 57 },
192 { XFLT, "PARTS_gear_latE", 57 },
193 { XFLT, "PARTS_gear_lonE", 57 },
194 { XFLT, "PARTS_gear_axiE", 57 },
195 { XFLT, "PARTS_gear_latR", 57 },
196 { XFLT, "PARTS_gear_lonR", 57 },
197 { XFLT, "PARTS_gear_axiR", 57 },
198 { XFLT, "PARTS_gear_latN", 57 },
199 { XFLT, "PARTS_gear_lonN", 57 },
200 { XFLT, "PARTS_gear_axiN", 57 },
201 { XFLT, "PARTS_gear_leglen", 57 },
202 { XFLT, "PARTS_gear_tirrad", 57 },
203 { XFLT, "PARTS_gearcon", 57 },
204 { XFLT, "PARTS_geardmp", 57 },
205 { XFLT, "PARTS_gearstatdef", 57 },
206 { XFLT, "PARTS_gear_def", 57 },
207 { XFLT, "PARTS_gear_deploy", 57 },
208 { XFLT, "PARTS_gear_xnodef", 57 },
209 { XFLT, "PARTS_gear_ynodef", 57 },
210 { XFLT, "PARTS_gear_znodef", 57 },
211 { XFLT, "BODY__fuse_cd", 1 },
212 { XFLT, "CTRLS_ail1_crat", 1 },
213 { XFLT, "CTRLS_ail1_up", 1 },
214 { XFLT, "CTRLS_ail1_d", 1 },
215 { XFLT, "CTRLS_RSC_idlespeed_prp", 1 },
216 { XFLT, "CTRLS_RSC_redline_prp", 1 },
217 { XFLT, "CTRLS_ail2_crat", 1 },
218 { XFLT, "CTRLS_ail2_up", 1 },
219 { XFLT, "CTRLS_ail2_d", 1 },
220 { XFLT, "CTRLS_RSC_mingreen_prp", 1 },
221 { XFLT, "CTRLS_RSC_maxgreen_prp", 1 },
222 { XFLT, "CTRLS_elev_crat", 1 },
223 { XFLT, "CTRLS_elev_up", 1 },
224 { XFLT, "CTRLS_elev_d", 1 },
225 { XFLT, "CTRLS_trq_max_eng", 1 },
226 { XFLT, "CTRLS_trq_max_prp", 1 },
227 { XFLT, "CTRLS_rudd_crat", 1 },
228 { XFLT, "CTRLS_rudd_l", 1 },
229 { XFLT, "CTRLS_d07", 1 },
230 { XFLT, "CTRLS_d08", 1 },
231 { XFLT, "CTRLS_splr_crat", 1 },
232 { XFLT, "CTRLS_splr_u", 1 },
233 { XFLT, "CTRLS_d09", 1 },
234 { XFLT, "CTRLS_d10", 1 },
235 { XFLT, "CTRLS_drud_crat", 1 },
236 { XFLT, "CTRLS_drud_u", 1 },
237 { XFLT, "CTRLS_d11", 1 },
238 { XFLT, "CTRLS_d12", 1 },
239 { XFLT, "CTRLS_sbrk_crat", 1 },
240 { XFLT, "CTRLS_sbrk_up", 1 },
241 { XFLT, "CTRLS_flap_crat", 1 },
242 { XFLT, "CTRLS_flap_dn", 7 },
243 { XFLT, "CTRLS_d13", 1 },
244 { XFLT, "CTRLS_d14", 1 },
245 { XFLT, "CTRLS_hstb_trim_up", 1 },
246 { XFLT, "CTRLS_hstb_trim_d", 1 },
247 { XFLT, "CTRLS_d15", 1 },
248 { XINT, "CTRLS_hstabtype", 1 },
249 { XINT, "CTRLS_vstabtype", 1 },
250 { XINT, "CTRLS_flap_type", 1 },
251 { XINT, "CTRLS_con_smooth", 1 },
252 { XFLT, "CTRLS_flap_cl", 1 },
253 { XFLT, "CTRLS_flap_cd", 1 },
254 { XFLT, "CTRLS_flap_cm", 1 },
255 { XINT, "CTRLS_flap_detents", 1 },
256 { XFLT, "CTRLS_flap_deftime", 1 },
257 { XFLT, "CTRLS_slat_inc", 1 },
258 { XFLT, "CTXXX_blownflap_addspeed", 1 },
259 { XFLT, "CTRLS_blownflap_throtred", 1 },
260 { XFLT, "CTRLS_blownflap_min_engag", 1 },
261 { XINT, "GEAR__gear_retract", 1 },
262 { XINT, "GEAR__is_taildragger", 1 },
263 { XINT, "GEAR__gear_is_skid", 1 },
264 { XFLT, "GEAR__OLD_OVERALL_RETRACT_TIME", 1 },
265 { XFLT, "GEAR__nwsteerdeg1", 1 },
266 { XFLT, "GEAR__nwsteerdeg2", 1 },
267 { XFLT, "GEAR__nw_cutoff_speed", 1 },
268 { XFLT, "GEAR__water_rud_longarm", 1 },
269 { XFLT, "GEAR__water_rud_area", 1 },
270 { XFLT, "GEAR__water_rud_maxdef", 1 },
271 { XFLT, "GEAR__h_eqlbm", 1 },
272 { XFLT, "GEAR__the_eqlbm", 1 },
273 { XINT, "GEAR__gear_door_typ", 10 },
274 { XFLT, "GEAR__gear_door_loc", 30 },
275 { XFLT, "GEAR__gear_door_geo", 120 },
276 { XFLT, "GEAR__gear_door_axi_rot", 10 },
277 { XFLT, "GEAR__gear_door_ext_ang", 10 },
278 { XFLT, "GEAR__gear_door_ret_ang", 10 },
279 { XFLT, "GEAR__gear_door_ang_now", 10 },
280 { XFLT, "WEIGHTcgY", 1 },
281 { XFLT, "WEIGHTcgZ", 1 },
282 { XFLT, "WEIGHTJxx_unitmass", 1 },
283 { XFLT, "WEIGHTJyy_unitmass", 1 },
284 { XFLT, "WEIGHTJzz_unitmass", 1 },
285 { XFLT, "WEIGHTm_empty", 1 },
286 { XFLT, "WEIGHTm_displaced", 1 },
287 { XFLT, "WEIGHTm_max", 1 },
288 { XFLT, "WEIGHTm_fuel", 1 },
289 { XFLT, "WEIGHTm_jettison", 1 },
290 { XFLT, "WEIGHTm_displaced_y", 1 },
291 { XFLT, "SPEC__jato_theta", 1 },
292 { XFLT, "SPEC__jato_thrust", 1 },
293 { XFLT, "SPEC__jato_dur", 1 },
294 { XFLT, "SPEC__jato_sfc", 1 },
295 { XFLT, "SPEC__jato_Y", 1 },
296 { XFLT, "SPEC__jato_Z", 1 },
297 { XFLT, "SPEC__brake_area", 1 },
298 { XFLT, "SPEC__brake_Y", 1 },
299 { XFLT, "SPEC__brake_Z", 1 },
300 { XFLT, "SPEC__chute_area", 1 },
301 { XFLT, "SPEC__chute_Y", 1 },
302 { XFLT, "SPEC__chute_Z", 1 },
303 { XFLT, "SPEC__ail1pitch", 1 },
304 { XFLT, "SPEC__ail1flaps", 1 },
305 { XFLT, "SPEC__ail2pitch", 1 },
306 { XFLT, "SPEC__ail2flaps", 1 },
307 { XFLT, "SPEC__stabroll", 1 },
308 { XFLT, "SPEC__stabhdng", 1 },
309 { XFLT, "SPEC__ail2vmax", 1 },
310 { XFLT, "SPEC__tvec_ptch", 1 },
311 { XFLT, "SPEC__tvec_roll", 1 },
312 { XFLT, "SPEC__tvec_hdng", 1 },
313 { XFLT, "SPEC__diff_thro_with_hdng", 1 },
314 { XINT, "SPEC__arrestingEQ", 1 },
315 { XINT, "SPEC__antiiceEQ", 1 },
316 { XINT, "SPEC__warn1EQ", 1 },
317 { XINT, "SPEC__gearhornEQ", 1 },
318 { XINT, "SPEC__autosbrkEQ", 1 },
319 { XINT, "SPEC__autofbrkEQ", 1 },
320 { XINT, "SPEC__autosweepEQ", 1 },
321 { XINT, "SPEC__autoslatEQ", 1 },
322 { XINT, "VTOL__vectEQ", 1 },
323 { XFLT, "VTOL__vectarmZ", 1 },
324 { XFLT, "VTOL__cyclic_elev", 1 },
325 { XFLT, "VTOL__cyclic_ailn", 1 },
326 { XFLT, "VTOL__delta3", 1 },
327 { XFLT, "VTOL__puffL", 1 },
328 { XFLT, "VTOL__puffM", 1 },
329 { XFLT, "VTOL__puffN", 1 },
330 { XFLT, "VTOL__tail_with_coll", 1 },
331 { XFLT, "VTOL__diff_coll_with_roll", 1 },
332 { XFLT, "VTOL__diff_coll_with_hdng", 1 },
333 { XFLT, "VTOL__diff_cycl_with_hdng", 1 },
334 { XINT, "VTOL__auto_rpm_with_tvec", 1 },
335 { XFLT, "VTOL__rotor_trim_max_fwd", 1 },
336 { XFLT, "VTOL__rotor_trim_max_aft", 1 },
337 { XFLT, "ASTAB_AShiV", 1 },
338 { XFLT, "ASTAB_ASloV", 1 },
339 { XFLT, "ASTAB_Asmaxp_lo", 1 },
340 { XFLT, "ASTAB_Asp_lo_rate", 1 },
341 { XFLT, "ASTAB_Asmaxp_hi", 1 },
342 { XFLT, "ASTAB_Asp_hi_pos", 1 },
343 { XFLT, "ASTAB_Asmaxh_lo", 1 },
344 { XFLT, "ASTAB_Ash_lo_rate", 1 },
345 { XFLT, "ASTAB_Asmaxh_hi", 1 },
346 { XFLT, "ASTAB_Ash_hi_pos", 1 },
347 { XFLT, "ASTAB_Asmaxr_lo", 1 },
348 { XFLT, "ASTAB_Asr_lo_rate", 1 },
349 { XFLT, "ASTAB_Asmaxr_hi", 1 },
350 { XFLT, "ASTAB_Asr_hi_rate", 1 },
351 { XINT, "has_clutch", 1 },
352 { XINT, "has_idlespeed", 1 },
353 { XFLT, "element_len", 57 },
354 { XFLT, "gear_door_size", 1 },
355 { XFLT, "stab_delinc_to_Vne", 1 },
356 { XFLT, "Vmca", 1 },
357 { XFLT, "Vyse", 1 },
358 { XFLT, "flap_arm", 1 },
359 { XFLT, "tank_xyz12", 6 },
360 { XFLT, "cgZ_fwd", 1 },
361 { XFLT, "cgZ_aft", 1 },
362 { XFLT, "gear_cyc_time", 5 },
363 { XFLT, "refuel_X", 1 },
364 { XFLT, "refuel_Y", 1 },
365 { XFLT, "refuel_Z", 1 },
366 { XCHR, "gear_steers", 57 },
367 { XCHR, "hybrid_gear", 1 },
368 { XCHR, "chr_overflow", 2 },
369 { XINT, "vardihedEQ", 57 },
370 { XFLT, "dihed2", 57 },
371 { XFLT, "dihednow", 57 },
372 { XFLT, "jett_xyz", 3 },
373 { XFLT, "puffX", 1 },
374 { XFLT, "puffY", 1 },
375 { XFLT, "puffZ", 1 },
376 { XFLT, "Vle", 1 },
377 { XFLT, "ASp_hi_rate", 1 },
378 { XFLT, "ASh_hi_rate", 1 },
379 { XFLT, "spooltime_prop", 1 },
380 { XFLT, "elevflaps", 1 },
381 { XFLT, "tank_xyz3", 3 },
382 { XFLT, "tank_rat", 3 },
383 { XFLT, "stall_warn_alpha", 1 },
384 { XFLT, "mass_shift", 1 },
385 { XFLT, "mass_shift_dx", 1 },
386 { XFLT, "mass_shift_dz", 1 },
387 { XFLT, "feathered_pitch", 1 },
388 { XFLT, "ASmaxg_hi", 1 },
389 { XFLT, "ASg_hi_pos", 1 },
390 { XFLT, "ASg_hi_rate", 1 },
391 { XFLT, "wing_tilt_ptch", 1 },
392 { XFLT, "wing_tilt_roll", 1 },
393 { XFLT, "max_press_diff", 1 },
394 { XFLT, "diff_coll_with_ptch", 1 },
395 { XFLT, "flap_roll", 1 },
396 { XFLT, "flap_ptch", 1 },
397 { XFLT, "lift_fan_rat", 1 },
398 { XFLT, "diff_cycl_with_hdng_lat", 1 },
399 { XINT, "phase_tvect_out_at_90", 1 },
400 { XFLT, "roll_co", 1 },
401 { XFLT, "brake_co", 1 },
402 { XINT, "OVER__drive_by_wire", 1 },
403 { XINT, "is_glossy", 1 },
404 { XINT, "num_tanks", 1 },
405 { XINT, "has_refuel", 1 },
406 { XINT, "draw_geo_frnt_views", 1 },
407 { XINT, "draw_geo_side_views", 1 },
408 { XINT, "jett_is_slung", 1 },
409 { XFLT, "eng_mass", 57 },
410 { XINT, "phase_tvect_out_at_00", 1 },
411 { XINT, "auto_trimEQ", 1 },
412 { XINT, "has_DC_fd", 1 },
413 { XINT, "flaps_with_gearEQ", 1 },
414 { XINT, "rev_on_touchdown", 1 },
415 { XINT, "flaps_with_vecEQ", 1 },
416 { XINT, "blow_all_controls", 1 },
417 { XINT, "warn2EQ", 1 },
418 { XINT, "num_thrustpoints", 1 },
419 { XINT, "props_linked", 1 },
420 { XINT, "int_overflow", 15 },
421 { XINT, "old_struct_last_data", 1 },
422 { XCHR, "wpn_name", 12000 },
423 { XFLT, "Xwpn_att", 24 },
424 { XFLT, "Ywpn_att", 24 },
425 { XFLT, "Zwpn_att", 24 },
426 { XINT, "cus_rnd_use", 50 },
427 { XFLT, "cus_rnd_lo_val", 50 },
428 { XFLT, "cus_rnd_hi_val", 50 },
429 { XFLT, "cus_rnd_lo_ang", 50 },
430 { XFLT, "cus_rnd_hi_ang", 50 },
431 { XINT, "has_nav", 6 },
432 { XINT, "has_radar", 1 },
433 { XINT, "dummy_int", 43 },
434 { XINT, "cus_rnd_mirror", 50 },
435 { XINT, "cus_rnd_label", 50 },
436 { XINT, "cus_dig_use", 50 },
437 { XFLT, "cus_dig_offset", 50 },
438 { XFLT, "cus_dig_scale", 50 },
439 { XINT, "cus_dig_dig", 50 },
440 { XINT, "cus_dig_dec", 50 },
441 { XINT, "inc_ail", 570 },
442 { XINT, "inc_vec", 570 },
443 { XFLT, "tow_hook_Y", 1 },
444 { XFLT, "tow_hook_Z", 1 },
445 { XFLT, "win_hook_Y", 1 },
446 { XFLT, "win_hook_Z", 1 },
447 { XFLT, "nosewheel_k", 1 },
448 { XFLT, "vectarmY", 1 },
449 { XINT, "hide_prop_at_90_vect", 1 },
450 { XINT, "xint_overflow", 204 },
451 { XCHR, "xchr_overflow", 1000 },
452
453 { XEOF, NULL, 0 }
454};
455
456#endif /* _IMP_ACF_DEF_ACF651_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf700.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf700.h
new file mode 100644
index 0000000..36ceb38
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf700.h
@@ -0,0 +1,506 @@
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_ACF_DEF_ACF700
23#define _IMP_ACF_DEF_ACF700
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf700[] = {
28 { XCHR, "VIEW__PlatForm", 1 },
29 { XINT, "VIEW__Filler", 1 },
30 { XFLT, "VIEW__Filler", 1 },
31 { XCHR, "VIEW_name", 500 },
32 { XCHR, "VIEW_path", 500 },
33 { XCHR, "VIEW_tailnum", 40 },
34 { XCHR, "VIEW_author", 500 },
35 { XCHR, "VIEW_descrip", 500 },
36 { XFLT, "VIEW_Vmca_kts", 1 },
37 { XFLT, "VIEW_Vso_kts", 1 },
38 { XFLT, "VIEW_Vs_kts", 1 },
39 { XFLT, "VIEW_Vyse_kts", 1 },
40 { XFLT, "VIEW_Vfe_kts", 1 },
41 { XFLT, "VIEW_Vle_kts", 1 },
42 { XFLT, "VIEW_Vno_kts", 1 },
43 { XFLT, "VIEW_Vne_kts", 1 },
44 { XFLT, "VIEW_Mmo", 1 },
45 { XFLT, "VIEW_Gneg", 1 },
46 { XFLT, "VIEW_Gpos", 1 },
47 { XINT, "VIEW_has_navlites", 1 },
48 { XFLT, "VIEW_peX", 1 },
49 { XFLT, "VIEW_peY", 1 },
50 { XFLT, "VIEW_peZ", 1 },
51 { XINT, "VIEW_has_lanlite1", 1 },
52 { XFLT, "VIEW_lanlite1X", 1 },
53 { XFLT, "VIEW_lanlite1Y", 1 },
54 { XFLT, "VIEW_lanlite1Z", 1 },
55 { XINT, "VIEW_has_lanlite2", 1 },
56 { XFLT, "VIEW_lanlite2X", 1 },
57 { XFLT, "VIEW_lanlite2Y", 1 },
58 { XFLT, "VIEW_lanlite2Z", 1 },
59 { XINT, "VIEW_has_lanlite3", 1 },
60 { XFLT, "VIEW_lanlite3X", 1 },
61 { XFLT, "VIEW_lanlite3Y", 1 },
62 { XFLT, "VIEW_lanlite3Z", 1 },
63 { XINT, "VIEW_has_fuserb1", 1 },
64 { XFLT, "VIEW_fuserb1X", 1 },
65 { XFLT, "VIEW_fuserb1Y", 1 },
66 { XFLT, "VIEW_fuserb1Z", 1 },
67 { XINT, "VIEW_has_fuserb2", 1 },
68 { XFLT, "VIEW_fuserb2X", 1 },
69 { XFLT, "VIEW_fuserb2Y", 1 },
70 { XFLT, "VIEW_fuserb2Z", 1 },
71 { XINT, "VIEW_has_taillite", 1 },
72 { XFLT, "VIEW_tailliteX", 1 },
73 { XFLT, "VIEW_tailliteY", 1 },
74 { XFLT, "VIEW_tailliteZ", 1 },
75 { XINT, "VIEW_has_refuel", 1 },
76 { XFLT, "VIEW_refuel_X", 1 },
77 { XFLT, "VIEW_refuel_Y", 1 },
78 { XFLT, "VIEW_refuel_Z", 1 },
79 { XFLT, "VIEW_yawstringx", 1 },
80 { XFLT, "VIEW_yawstringy", 1 },
81 { XFLT, "VIEW_HUD_cntrx", 1 },
82 { XFLT, "VIEW_HUD_cntry", 1 },
83 { XFLT, "VIEW_HUD_delx", 1 },
84 { XFLT, "VIEW_HUD_dely", 1 },
85 { XINT, "VIEW_lanlite_steers", 1 },
86 { XFLT, "VIEW_lanlite_power", 1 },
87 { XFLT, "VIEW_lanlite_width", 1 },
88 { XFLT, "VIEW_lanlite_the", 1 },
89 { XFLT, "VIEW_stall_warn_aoa", 1 },
90 { XFLT, "VIEW_tow_hook_Y", 1 },
91 { XFLT, "VIEW_tow_hook_Z", 1 },
92 { XFLT, "VIEW_win_hook_Y", 1 },
93 { XFLT, "VIEW_win_hook_Z", 1 },
94 { XINT, "VIEW_HUD_type", 1 },
95 { XFLT, "VIEW_cockpit_type", 1 },
96 { XFLT, "VIEW_asi_kts", 1 },
97 { XINT, "VIEW_warn1EQ", 1 },
98 { XINT, "VIEW_warn2EQ", 1 },
99 { XINT, "VIEW_is_glossy", 1 },
100 { XINT, "VIEW_draw_geo_frnt_views", 1 },
101 { XINT, "VIEW_draw_geo_side_views", 1 },
102 { XINT, "VIEW_ins_type", 200 },
103 { XFLT, "VIEW_ins_size", 200 },
104 { XFLT, "VIEW_ins_x", 200 },
105 { XFLT, "VIEW_ins_y", 200 },
106 { XFLT, "VIEW_ins_delx", 200 },
107 { XFLT, "VIEW_ins_dely", 200 },
108 { XINT, "VIEW_cus_rnd_use", 50 },
109 { XFLT, "VIEW_cus_rnd_lo_val", 50 },
110 { XFLT, "VIEW_cus_rnd_hi_val", 50 },
111 { XFLT, "VIEW_cus_rnd_lo_ang", 50 },
112 { XFLT, "VIEW_cus_rnd_hi_ang", 50 },
113 { XINT, "VIEW_cus_rnd_mirror", 50 },
114 { XINT, "VIEW_cus_rnd_label", 50 },
115 { XINT, "VIEW_cus_dig_use", 50 },
116 { XFLT, "VIEW_cus_dig_offset", 50 },
117 { XFLT, "VIEW_cus_dig_scale", 50 },
118 { XINT, "VIEW_cus_dig_dig", 50 },
119 { XINT, "VIEW_cus_dig_dec", 50 },
120 { XINT, "ENGINE_num_engines", 1 },
121 { XINT, "ENGINE_num_thrustpoints", 1 },
122 { XFLT, "ENGINE_throt_max_FWD", 1 },
123 { XFLT, "ENGINE_throt_max_REV", 1 },
124 { XFLT, "ENGINE_idle_rat", 2 },
125 { XINT, "ENGINE_props_linked", 1 },
126 { XINT, "ENGINE_beta_prop_EQ", 1 },
127 { XINT, "ENGINE_auto_feather_EQ", 1 },
128 { XINT, "ENGINE_rev_thrust_EQ", 1 },
129 { XINT, "ENGINE_drive_by_wire_EQ", 1 },
130 { XFLT, "ENGINE_feathered_pitch", 1 },
131 { XFLT, "ENGINE_reversed_pitch", 1 },
132 { XFLT, "ENGINE_rotor_mi_rat", 1 },
133 { XFLT, "ENGINE_tip_weight", 1 },
134 { XFLT, "ENGINE_tip_mach_des_100", 1 },
135 { XFLT, "ENGINE_tip_mach_des_50", 1 },
136 { XFLT, "ENGINE_power_max", 1 },
137 { XFLT, "ENGINE_crit_alt", 1 },
138 { XFLT, "ENGINE_mp_max", 1 },
139 { XFLT, "ENGINE_trq_max_eng", 1 },
140 { XFLT, "ENGINE_RSC_idlespeed_ENGN", 1 },
141 { XFLT, "ENGINE_RSC_redline_ENGN", 1 },
142 { XFLT, "ENGINE_RSC_idlespeed_PROP", 1 },
143 { XFLT, "ENGINE_RSC_redline_PROP", 1 },
144 { XFLT, "ENGINE_RSC_mingreen_ENGN", 1 },
145 { XFLT, "ENGINE_RSC_maxgreen_ENGN", 1 },
146 { XFLT, "ENGINE_RSC_mingreen_PROP", 1 },
147 { XFLT, "ENGINE_RSC_maxgreen_PROP", 1 },
148 { XFLT, "ENGINE_turbo_tight", 1 },
149 { XFLT, "ENGINE_spooltime_prop", 1 },
150 { XFLT, "ENGINE_trans_loss", 1 },
151 { XFLT, "ENGINE_thrust_max", 1 },
152 { XFLT, "ENGINE_burner_inc", 1 },
153 { XFLT, "ENGINE_max_mach_eff", 1 },
154 { XFLT, "ENGINE_face_jet", 1 },
155 { XFLT, "ENGINE_spooltime_jet", 1 },
156 { XFLT, "ENGINE_lift_fan_rat", 1 },
157 { XFLT, "ENGINE_rock_max_sl", 1 },
158 { XFLT, "ENGINE_rock_max_opt", 1 },
159 { XFLT, "ENGINE_rock_max_vac", 1 },
160 { XFLT, "ENGINE_rock_h_opt", 1 },
161 { XFLT, "ENGINE_face_rocket", 1 },
162 { XINT, "PROP_engn_type", 8 },
163 { XINT, "PROP_prop_type", 8 },
164 { XFLT, "PROP_engn_mass", 8 },
165 { XINT, "PROP_prop_clutch_EQ", 8 },
166 { XFLT, "PROP_prop_gear_rat", 8 },
167 { XFLT, "PROP_prop_dir", 8 },
168 { XFLT, "PROP_num_blades", 8 },
169 { XFLT, "PROP_SFC", 8 },
170 { XFLT, "PROP_vertcant", 8 },
171 { XFLT, "PROP_sidecant", 8 },
172 { XFLT, "PROP_min_pitch", 8 },
173 { XFLT, "PROP_max_pitch", 8 },
174 { XFLT, "PROP_des_rpm_prp", 8 },
175 { XFLT, "PROP_des_kts_prp", 8 },
176 { XFLT, "PROP_des_kts_acf", 8 },
177 { XFLT, "PROP_prop_mass", 8 },
178 { XFLT, "PROP_mi_prop_rpm", 8 },
179 { XFLT, "PROP_mi_engn_rpm", 8 },
180 { XFLT, "PROP_discarea", 8 },
181 { XFLT, "PROP_ringarea", 80 },
182 { XFLT, "PROP_bladesweep", 80 },
183 { XFLT, "HYDRO_STICK_starter_rat", 1 },
184 { XFLT, "HYDRO_STICK_battery_rat", 1 },
185 { XINT, "HYDRO_STICK_ff_hydraulic", 1 },
186 { XINT, "HYDRO_STICK_ff_stickshaker", 1 },
187 { XFLT, "HYDRO_STICK_manual_reversion_rat", 1 },
188 { XFLT, "HYDRO_STICK_max_press_diff", 1 },
189 { XINT, "PARTS_WingBodyGear_part_eq", 73 },
190 { XCHR, "PARTS_WingBodyGear_Rafl0", 2920 },
191 { XCHR, "PARTS_WingBodyGear_Rafl1", 2920 },
192 { XCHR, "PARTS_WingBodyGear_Tafl0", 2920 },
193 { XCHR, "PARTS_WingBodyGear_Tafl1", 2920 },
194 { XINT, "PARTS_WingBodyGear_els", 73 },
195 { XFLT, "PARTS_WingBodyGear_Xarm", 73 },
196 { XFLT, "PARTS_WingBodyGear_Yarm", 73 },
197 { XFLT, "PARTS_WingBodyGear_Zarm", 73 },
198 { XFLT, "PARTS_WingBodyGear_Croot", 73 },
199 { XFLT, "PARTS_WingBodyGear_Ctip", 73 },
200 { XFLT, "PARTS_WingBodyGear_semilen_SEG", 73 },
201 { XFLT, "PARTS_WingBodyGear_semilen_JND", 73 },
202 { XFLT, "PARTS_WingBodyGear_element_len", 73 },
203 { XFLT, "PARTS_WingBodyGear_X_body_aero", 73 },
204 { XFLT, "PARTS_WingBodyGear_Y_body_aero", 73 },
205 { XFLT, "PARTS_WingBodyGear_Z_body_aero", 73 },
206 { XFLT, "PARTS_WingBodyGear_dihed1", 73 },
207 { XFLT, "PARTS_WingBodyGear_dihed2", 73 },
208 { XFLT, "PARTS_WingBodyGear_dihednow", 73 },
209 { XINT, "PARTS_WingBodyGear_vardihed", 73 },
210 { XINT, "PARTS_WingBodyGear_vardihedEQ", 1 },
211 { XFLT, "PARTS_WingBodyGear_sweep1", 73 },
212 { XFLT, "PARTS_WingBodyGear_sweep2", 73 },
213 { XFLT, "PARTS_WingBodyGear_sweepnow", 73 },
214 { XINT, "PARTS_WingBodyGear_varsweep", 73 },
215 { XINT, "PARTS_WingBodyGear_varsweepEQ", 1 },
216 { XFLT, "PARTS_WingBodyGear_e", 73 },
217 { XFLT, "PARTS_WingBodyGear_AR", 73 },
218 { XFLT, "PARTS_WingBodyGear_al_D_al0", 73 },
219 { XFLT, "PARTS_WingBodyGear_cl_D_cl0", 73 },
220 { XFLT, "PARTS_WingBodyGear_cm_D_cm0", 73 },
221 { XFLT, "PARTS_WingBodyGear_delta_fac", 73 },
222 { XFLT, "PARTS_WingBodyGear_spec_wash", 73 },
223 { XFLT, "PARTS_WingBodyGear_alpha_max", 73 },
224 { XFLT, "PARTS_WingBodyGear_slat_effect", 73 },
225 { XFLT, "PARTS_WingBodyGear_s", 730 },
226 { XFLT, "PARTS_WingBodyGear_mac", 730 },
227 { XFLT, "PARTS_WingBodyGear_incidence", 730 },
228 { XINT, "PARTS_WingBodyGear_ail1", 730 },
229 { XFLT, "PARTS_WingBodyGear_ail1_elR", 73 },
230 { XFLT, "PARTS_WingBodyGear_ail1_elT", 73 },
231 { XFLT, "PARTS_WingBodyGear_ail1_cratR", 1 },
232 { XFLT, "PARTS_WingBodyGear_ail1_cratT", 1 },
233 { XFLT, "PARTS_WingBodyGear_ail1_up", 1 },
234 { XFLT, "PARTS_WingBodyGear_ail1_dn", 1 },
235 { XINT, "PARTS_WingBodyGear_ail2", 730 },
236 { XFLT, "PARTS_WingBodyGear_ail2_elR", 73 },
237 { XFLT, "PARTS_WingBodyGear_ail2_elT", 73 },
238 { XFLT, "PARTS_WingBodyGear_ail2_cratR", 1 },
239 { XFLT, "PARTS_WingBodyGear_ail2_cratT", 1 },
240 { XFLT, "PARTS_WingBodyGear_ail2_up", 1 },
241 { XFLT, "PARTS_WingBodyGear_ail2_dn", 1 },
242 { XINT, "PARTS_WingBodyGear_elev", 730 },
243 { XFLT, "PARTS_WingBodyGear_elev_elR", 73 },
244 { XFLT, "PARTS_WingBodyGear_elev_elT", 73 },
245 { XFLT, "PARTS_WingBodyGear_elev_cratR", 1 },
246 { XFLT, "PARTS_WingBodyGear_elev_cratT", 1 },
247 { XFLT, "PARTS_WingBodyGear_elev_up", 1 },
248 { XFLT, "PARTS_WingBodyGear_elev_dn", 1 },
249 { XINT, "PARTS_WingBodyGear_rudd", 730 },
250 { XFLT, "PARTS_WingBodyGear_rudd_elR", 73 },
251 { XFLT, "PARTS_WingBodyGear_rudd_elT", 73 },
252 { XFLT, "PARTS_WingBodyGear_rudd_cratR", 1 },
253 { XFLT, "PARTS_WingBodyGear_rudd_cratT", 1 },
254 { XFLT, "PARTS_WingBodyGear_rudd_lr", 1 },
255 { XINT, "PARTS_WingBodyGear_splr", 730 },
256 { XFLT, "PARTS_WingBodyGear_splr_elR", 73 },
257 { XFLT, "PARTS_WingBodyGear_splr_elT", 73 },
258 { XFLT, "PARTS_WingBodyGear_splr_cratR", 1 },
259 { XFLT, "PARTS_WingBodyGear_splr_cratT", 1 },
260 { XFLT, "PARTS_WingBodyGear_splr_up", 1 },
261 { XINT, "PARTS_WingBodyGear_yawb", 730 },
262 { XFLT, "PARTS_WingBodyGear_yawb_elR", 73 },
263 { XFLT, "PARTS_WingBodyGear_yawb_elT", 73 },
264 { XFLT, "PARTS_WingBodyGear_yawb_cratR", 1 },
265 { XFLT, "PARTS_WingBodyGear_yawb_cratT", 1 },
266 { XFLT, "PARTS_WingBodyGear_yawb_ud", 1 },
267 { XINT, "PARTS_WingBodyGear_sbrk", 730 },
268 { XFLT, "PARTS_WingBodyGear_sbrk_elR", 73 },
269 { XFLT, "PARTS_WingBodyGear_sbrk_elT", 73 },
270 { XFLT, "PARTS_WingBodyGear_sbrk_cratR", 1 },
271 { XFLT, "PARTS_WingBodyGear_sbrk_cratT", 1 },
272 { XFLT, "PARTS_WingBodyGear_sbrk_up", 1 },
273 { XINT, "PARTS_WingBodyGear_sbrkEQ", 1 },
274 { XINT, "PARTS_WingBodyGear_flap", 730 },
275 { XFLT, "PARTS_WingBodyGear_flap_elR", 73 },
276 { XFLT, "PARTS_WingBodyGear_flap_elT", 73 },
277 { XFLT, "PARTS_WingBodyGear_flap_cratR", 1 },
278 { XFLT, "PARTS_WingBodyGear_flap_cratT", 1 },
279 { XFLT, "PARTS_WingBodyGear_flap_dn", 8 },
280 { XINT, "PARTS_WingBodyGear_flapEQ", 1 },
281 { XINT, "PARTS_WingBodyGear_slat", 730 },
282 { XFLT, "PARTS_WingBodyGear_slat_inc", 1 },
283 { XINT, "PARTS_WingBodyGear_slatEQ", 1 },
284 { XINT, "PARTS_WingBodyGear_inc_ail1", 730 },
285 { XINT, "PARTS_WingBodyGear_inc_ail2", 730 },
286 { XINT, "PARTS_WingBodyGear_inc_elev", 730 },
287 { XINT, "PARTS_WingBodyGear_inc_rudd", 730 },
288 { XINT, "PARTS_WingBodyGear_inc_vect", 730 },
289 { XINT, "PARTS_WingBodyGear_inc_trim", 730 },
290 { XINT, "PARTS_WingBodyGear_in_downwash", 53290 },
291 { XFLT, "PARTS_WingBodyGear_body_r", 73 },
292 { XFLT, "PARTS_WingBodyGear_body_X", 26280 },
293 { XFLT, "PARTS_WingBodyGear_body_Y", 26280 },
294 { XFLT, "PARTS_WingBodyGear_body_Z", 26280 },
295 { XINT, "PARTS_WingBodyGear_gear_type", 73 },
296 { XFLT, "PARTS_WingBodyGear_gear_latE", 73 },
297 { XFLT, "PARTS_WingBodyGear_gear_lonE", 73 },
298 { XFLT, "PARTS_WingBodyGear_gear_axiE", 73 },
299 { XFLT, "PARTS_WingBodyGear_gear_latR", 73 },
300 { XFLT, "PARTS_WingBodyGear_gear_lonR", 73 },
301 { XFLT, "PARTS_WingBodyGear_gear_axiR", 73 },
302 { XFLT, "PARTS_WingBodyGear_gear_latN", 73 },
303 { XFLT, "PARTS_WingBodyGear_gear_lonN", 73 },
304 { XFLT, "PARTS_WingBodyGear_gear_axiN", 73 },
305 { XFLT, "PARTS_WingBodyGear_gear_xnodef", 73 },
306 { XFLT, "PARTS_WingBodyGear_gear_ynodef", 73 },
307 { XFLT, "PARTS_WingBodyGear_gear_znodef", 73 },
308 { XFLT, "PARTS_WingBodyGear_gear_leglen", 73 },
309 { XFLT, "PARTS_WingBodyGear_gear_radius", 73 },
310 { XFLT, "PARTS_WingBodyGear_gear_width", 73 },
311 { XFLT, "PARTS_WingBodyGear_gearcon", 73 },
312 { XFLT, "PARTS_WingBodyGear_geardmp", 73 },
313 { XFLT, "PARTS_WingBodyGear_gear_deploy", 73 },
314 { XFLT, "PARTS_WingBodyGear_gearstatdef", 73 },
315 { XFLT, "PARTS_WingBodyGear_gear_def", 73 },
316 { XINT, "PARTS_WingBodyGear_gear_steers", 73 },
317 { XFLT, "PARTS_WingBodyGear_gear_cyctim", 73 },
318 { XFLT, "BODIES_fuse_cd", 1 },
319 { XFLT, "CONTROL_hstb_trim_up", 1 },
320 { XFLT, "CONTROL_hstb_trim_dn", 1 },
321 { XINT, "CONTROL_flap_type", 1 },
322 { XINT, "CONTROL_con_smooth", 1 },
323 { XINT, "CONTROL_flap_detents", 1 },
324 { XFLT, "CONTROL_flap_deftime", 1 },
325 { XFLT, "CONTROL_flap_cl", 1 },
326 { XFLT, "CONTROL_flap_cd", 1 },
327 { XFLT, "CONTROL_flap_cm", 1 },
328 { XFLT, "CONTROL_blown_flap_add_speed", 1 },
329 { XFLT, "CONTROL_blown_flap_throt_red", 1 },
330 { XFLT, "CONTROL_blown_flap_min_engag", 1 },
331 { XINT, "CONTROL_blow_all_controls", 1 },
332 { XINT, "LANDING_GEAR_gear_retract", 1 },
333 { XFLT, "LANDING_GEAR_nw_steerdeg1", 1 },
334 { XFLT, "LANDING_GEAR_nw_steerdeg2", 1 },
335 { XFLT, "LANDING_GEAR_nw_cutoff_speed", 1 },
336 { XFLT, "LANDING_GEAR_nosewheel_k", 1 },
337 { XFLT, "LANDING_GEAR_gear_door_size", 1 },
338 { XFLT, "LANDING_GEAR_water_rud_longarm", 1 },
339 { XFLT, "LANDING_GEAR_water_rud_area", 1 },
340 { XFLT, "LANDING_GEAR_water_rud_maxdef", 1 },
341 { XFLT, "LANDING_GEAR_roll_co", 1 },
342 { XFLT, "LANDING_GEAR_brake_co", 1 },
343 { XINT, "LANDING_GEAR_gear_door_typ", 10 },
344 { XFLT, "LANDING_GEAR_gear_door_loc", 30 },
345 { XFLT, "LANDING_GEAR_", 1 },
346 { XFLT, "LANDING_GEAR_gear_door_axi_rot", 10 },
347 { XFLT, "LANDING_GEAR_gear_door_ext_ang", 10 },
348 { XFLT, "LANDING_GEAR_gear_door_ret_ang", 10 },
349 { XFLT, "LANDING_GEAR_gear_door_ang_now", 10 },
350 { XFLT, "WEIGHT_BALANCE_cgY", 1 },
351 { XFLT, "WEIGHT_BALANCE_cgZ", 1 },
352 { XFLT, "WEIGHT_BALANCE_cgZ_fwd", 1 },
353 { XFLT, "WEIGHT_BALANCE_cgZ_aft", 1 },
354 { XFLT, "WEIGHT_BALANCE_m_empty", 1 },
355 { XFLT, "WEIGHT_BALANCE_m_fuel_tot", 1 },
356 { XFLT, "WEIGHT_BALANCE_m_jettison", 1 },
357 { XFLT, "WEIGHT_BALANCE_m_max", 1 },
358 { XFLT, "WEIGHT_BALANCE_m_displaced", 1 },
359 { XFLT, "WEIGHT_BALANCE_Jxx_unitmass", 1 },
360 { XFLT, "WEIGHT_BALANCE_Jyy_unitmass", 1 },
361 { XFLT, "WEIGHT_BALANCE_Jzz_unitmass", 1 },
362 { XINT, "WEIGHT_BALANCE_num_tanks", 1 },
363 { XFLT, "WEIGHT_BALANCE_tank_rat", 3 },
364 { XFLT, "WEIGHT_BALANCE_tank_X", 3 },
365 { XFLT, "WEIGHT_BALANCE_tank_Y", 3 },
366 { XFLT, "WEIGHT_BALANCE_tank_Z", 3 },
367 { XINT, "WEIGHT_BALANCE_jett_is_slung", 1 },
368 { XINT, "WEIGHT_BALANCE_jett_is_water", 1 },
369 { XFLT, "WEIGHT_BALANCE_jett_len", 1 },
370 { XFLT, "WEIGHT_BALANCE_jett_X", 1 },
371 { XFLT, "WEIGHT_BALANCE_jett_Y", 1 },
372 { XFLT, "WEIGHT_BALANCE_jett_Z", 1 },
373 { XFLT, "SPECIAL_CONTROLS_flap_roll", 1 },
374 { XFLT, "SPECIAL_CONTROLS_flap_ptch", 1 },
375 { XFLT, "SPECIAL_CONTROLS_mass_shift", 1 },
376 { XFLT, "SPECIAL_CONTROLS_mass_shift_dx", 1 },
377 { XFLT, "SPECIAL_CONTROLS_mass_shift_dz", 1 },
378 { XFLT, "SPECIAL_CONTROLS_wing_tilt_ptch", 1 },
379 { XFLT, "SPECIAL_CONTROLS_wing_tilt_roll", 1 },
380 { XFLT, "SPECIAL_CONTROLS_tvec_ptch", 1 },
381 { XFLT, "SPECIAL_CONTROLS_tvec_roll", 1 },
382 { XFLT, "SPECIAL_CONTROLS_tvec_hdng", 1 },
383 { XFLT, "SPECIAL_CONTROLS_jato_Y", 1 },
384 { XFLT, "SPECIAL_CONTROLS_jato_Z", 1 },
385 { XFLT, "SPECIAL_CONTROLS_jato_theta", 1 },
386 { XFLT, "SPECIAL_CONTROLS_jato_thrust", 1 },
387 { XFLT, "SPECIAL_CONTROLS_jato_dur", 1 },
388 { XFLT, "SPECIAL_CONTROLS_jato_sfc", 1 },
389 { XFLT, "SPECIAL_CONTROLS_stab_roll", 1 },
390 { XFLT, "SPECIAL_CONTROLS_stab_hdng", 1 },
391 { XFLT, "SPECIAL_CONTROLS_elev_flaps", 1 },
392 { XFLT, "SPECIAL_CONTROLS_ail1_pitch", 1 },
393 { XFLT, "SPECIAL_CONTROLS_ail1_flaps", 1 },
394 { XFLT, "SPECIAL_CONTROLS_ail2_pitch", 1 },
395 { XFLT, "SPECIAL_CONTROLS_ail2_flaps", 1 },
396 { XFLT, "SPECIAL_CONTROLS_ail2_vmax", 1 },
397 { XFLT, "SPECIAL_CONTROLS_diff_thro_with_hdng", 1 },
398 { XINT, "SPECIAL_CONTROLS_phase_tvect_out_at_90", 1 },
399 { XINT, "SPECIAL_CONTROLS_phase_tvect_out_at_00", 1 },
400 { XINT, "SPECIAL_CONTROLS_autosbrkEQ", 1 },
401 { XINT, "SPECIAL_CONTROLS_autofbrkEQ", 1 },
402 { XINT, "SPECIAL_CONTROLS_autosweepEQ", 1 },
403 { XINT, "SPECIAL_CONTROLS_flaps_with_gearEQ", 1 },
404 { XINT, "SPECIAL_CONTROLS_autoslatEQ", 1 },
405 { XINT, "SPECIAL_CONTROLS_antiiceEQ", 1 },
406 { XINT, "SPECIAL_CONTROLS_arrestingEQ", 1 },
407 { XINT, "SPECIAL_CONTROLS_rev_on_touchdown", 1 },
408 { XINT, "SPECIAL_CONTROLS_gearhornEQ", 1 },
409 { XINT, "SPECIAL_CONTROLS_lorotorwarnEQ", 1 },
410 { XINT, "SPECIAL_CONTROLS_auto_trimEQ", 1 },
411 { XINT, "SPECIAL_CONTROLS_flaps_with_vecEQ", 1 },
412 { XFLT, "SPECIAL_CONTROLS_brake_area", 1 },
413 { XFLT, "SPECIAL_CONTROLS_brake_Y", 1 },
414 { XFLT, "SPECIAL_CONTROLS_brake_Z", 1 },
415 { XFLT, "SPECIAL_CONTROLS_chute_area", 1 },
416 { XFLT, "SPECIAL_CONTROLS_chute_Y", 1 },
417 { XFLT, "SPECIAL_CONTROLS_chute_Z", 1 },
418 { XINT, "VTOL_CONTROL_vectEQ", 1 },
419 { XINT, "VTOL_CONTROL_auto_rpm_with_tvec", 1 },
420 { XINT, "VTOL_CONTROL_hide_prop_at_90_vect", 1 },
421 { XFLT, "VTOL_CONTROL_vect_rate", 1 },
422 { XFLT, "VTOL_CONTROL_vect_min", 1 },
423 { XFLT, "VTOL_CONTROL_vect_max", 1 },
424 { XFLT, "VTOL_CONTROL_vectarmY", 1 },
425 { XFLT, "VTOL_CONTROL_vectarmZ", 1 },
426 { XFLT, "VTOL_CONTROL_cyclic_elev", 1 },
427 { XFLT, "VTOL_CONTROL_cyclic_ailn", 1 },
428 { XFLT, "VTOL_CONTROL_flap_arm", 1 },
429 { XFLT, "VTOL_CONTROL_delta3", 1 },
430 { XFLT, "VTOL_CONTROL_puffL", 1 },
431 { XFLT, "VTOL_CONTROL_puffM", 1 },
432 { XFLT, "VTOL_CONTROL_puffN", 1 },
433 { XFLT, "VTOL_CONTROL_puffX", 1 },
434 { XFLT, "VTOL_CONTROL_puffY", 1 },
435 { XFLT, "VTOL_CONTROL_puffZ", 1 },
436 { XFLT, "VTOL_CONTROL_stab_delinc_to_Vne", 1 },
437 { XFLT, "VTOL_CONTROL_tail_with_coll", 1 },
438 { XFLT, "VTOL_CONTROL_diff_coll_with_roll", 1 },
439 { XFLT, "VTOL_CONTROL_diff_coll_with_hdng", 1 },
440 { XFLT, "VTOL_CONTROL_diff_coll_with_ptch", 1 },
441 { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lon", 1 },
442 { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lat", 1 },
443 { XFLT, "VTOL_CONTROL_rotor_trim_max_fwd", 1 },
444 { XFLT, "VTOL_CONTROL_rotor_trim_max_aft", 1 },
445 { XFLT, "ART_STAB_AShiV", 1 },
446 { XFLT, "ART_STAB_ASloV", 1 },
447 { XFLT, "ART_STAB_ASmaxp_lo", 1 },
448 { XFLT, "ART_STAB_ASp_lo_rate", 1 },
449 { XFLT, "ART_STAB_ASmaxh_lo", 1 },
450 { XFLT, "ART_STAB_ASh_lo_rate", 1 },
451 { XFLT, "ART_STAB_ASmaxr_lo", 1 },
452 { XFLT, "ART_STAB_ASr_lo_rate", 1 },
453 { XFLT, "ART_STAB_ASmaxg_hi", 1 },
454 { XFLT, "ART_STAB_ASg_hi_pos", 1 },
455 { XFLT, "ART_STAB_ASg_hi_rate", 1 },
456 { XFLT, "ART_STAB_ASmaxp_hi", 1 },
457 { XFLT, "ART_STAB_ASp_hi_pos", 1 },
458 { XFLT, "ART_STAB_ASp_hi_rate", 1 },
459 { XFLT, "ART_STAB_ASmaxh_hi", 1 },
460 { XFLT, "ART_STAB_ASh_hi_pos", 1 },
461 { XFLT, "ART_STAB_ASh_hi_rate", 1 },
462 { XFLT, "ART_STAB_ASmaxr_hi", 1 },
463 { XFLT, "ART_STAB_ASr_hi_rate", 1 },
464 { XCHR, "WEARONS_wpn_name", 12000 },
465 { XFLT, "WEARONS_Xwpn_att", 24 },
466 { XFLT, "WEARONS_Ywpn_att", 24 },
467 { XFLT, "WEARONS_Zwpn_att", 24 },
468 { XFLT, "AUTO_SETS_est_Vs_msc", 1 },
469 { XFLT, "AUTO_SETS_size_x", 1 },
470 { XFLT, "AUTO_SETS_size_z", 1 },
471 { XFLT, "AUTO_SETS_tire_s_contact", 1 },
472 { XFLT, "AUTO_SETS_m_displaced_y", 1 },
473 { XFLT, "AUTO_SETS_h_eqlbm", 1 },
474 { XFLT, "AUTO_SETS_the_eqlbm", 1 },
475 { XINT, "AUTO_SETS_is_taildragger", 1 },
476 { XINT, "AUTO_SETS_is_skid_gear", 1 },
477 { XINT, "AUTO_SETS_is_hybrid_gear", 1 },
478 { XINT, "AUTO_SETS_has_nav", 6 },
479 { XINT, "AUTO_SETS_has_radar", 1 },
480 { XINT, "AUTO_SETS_has_SC_fd", 1 },
481 { XINT, "AUTO_SETS_has_DC_fd", 1 },
482 { XINT, "AUTO_SETS_has_stallwarn", 1 },
483 { XINT, "AUTO_SETS_has_clutchswitch", 1 },
484 { XINT, "AUTO_SETS_has_prerotate", 1 },
485 { XINT, "AUTO_SETS_has_idlespeed", 1 },
486 { XINT, "AUTO_SETS_has_litemap_tex", 1 },
487 { XINT, "AUTO_SETS_has_tailrotor", 1 },
488 { XINT, "AUTO_SETS_has_collective", 1 },
489 { XINT, "AUTO_SETS_collective_en", 1 },
490 { XFLT, "SOUND_REF_snd_kias", 1 },
491 { XFLT, "SOUND_REF_snd_rpm_prp", 1 },
492 { XFLT, "SOUND_REF_snd_rpm_eng", 1 },
493 { XFLT, "SOUND_REF_snd_n1", 1 },
494 { XFLT, "VAR_INCIDENCE_inc2", 73 },
495 { XFLT, "VAR_INCIDENCE_incnow", 73 },
496 { XINT, "VAR_INCIDENCE_varinc", 73 },
497 { XINT, "VAR_INCIDENCE_varincEQ", 1 },
498 { XFLT, "owerflow_xflt_overflow", 776 },
499 { XINT, "owerflow_xint_overflow", 1000 },
500 { XCHR, "owerflow_xchr_overflow", 1000 },
501 { XCHR, "end_of_data", 1 },
502
503 { XEOF, NULL, 0 }
504};
505
506#endif /* _IMP_ACF_DEF_ACF700 */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf740.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf740.h
new file mode 100644
index 0000000..acac894
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_acf740.h
@@ -0,0 +1,584 @@
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_ACF_DEF_ACF740_H
23#define _IMP_ACF_DEF_ACF740_H
24
25#include "imp_acf_def_proto.h"
26
27static const AcfDef acf_def_acf740[] = {
28 { XCHR, "HEADER_platform", 1 },
29 { XINT, "HEADER_version", 1 },
30 { XFLT, "HEADER_filler", 1 },
31 { XCHR, "VIEW_name", 500 },
32 { XCHR, "VIEW_path", 500 },
33 { XCHR, "VIEW_tailnum", 40 },
34 { XCHR, "VIEW_author", 500 },
35 { XCHR, "VIEW_descrip", 500 },
36 { XFLT, "VIEW_Vmca_kts", 1 },
37 { XFLT, "VIEW_Vso_kts", 1 },
38 { XFLT, "VIEW_Vs_kts", 1 },
39 { XFLT, "VIEW_Vyse_kts", 1 },
40 { XFLT, "VIEW_Vfe_kts", 1 },
41 { XFLT, "VIEW_Vle_kts", 1 },
42 { XFLT, "VIEW_Vno_kts", 1 },
43 { XFLT, "VIEW_Vne_kts", 1 },
44 { XFLT, "VIEW_Mmo", 1 },
45 { XFLT, "VIEW_Gneg", 1 },
46 { XFLT, "VIEW_Gpos", 1 },
47 { XINT, "VIEW_has_navlites", 1 },
48 { XFLT, "VIEW_pe_xyz", 3 },
49 { XINT, "VIEW_has_lanlite1", 1 },
50 { XFLT, "VIEW_lanlite1_xyz", 3 },
51 { XINT, "VIEW_has_lanlite2", 1 },
52 { XFLT, "VIEW_lanlite2_xyz", 3 },
53 { XINT, "VIEW_has_taxilite", 1 },
54 { XFLT, "VIEW_lanlite3_xyz", 3 },
55 { XINT, "VIEW_has_fuserb1", 1 },
56 { XFLT, "VIEW_fuserb1_xyz", 3 },
57 { XINT, "VIEW_has_fuserb2", 1 },
58 { XFLT, "VIEW_fuserb2_xyz", 3 },
59 { XINT, "VIEW_has_taillite", 1 },
60 { XFLT, "VIEW_taillite_xyz", 3 },
61 { XINT, "VIEW_has_refuel", 1 },
62 { XFLT, "VIEW_refuel_xyz", 3 },
63 { XFLT, "VIEW_yawstring_x", 1 },
64 { XFLT, "VIEW_yawstring_y", 1 },
65 { XFLT, "VIEW_HUD_ctr_x", 1 },
66 { XFLT, "VIEW_HUD_ctr_y_OLD", 1 },
67 { XFLT, "VIEW_HUD_del_x", 1 },
68 { XFLT, "VIEW_HUD_del_y", 1 },
69 { XINT, "VIEW_lan_lite_steers", 1 },
70 { XFLT, "VIEW_lan_lite_power", 1 },
71 { XFLT, "VIEW_lan_lite_width", 1 },
72 { XFLT, "VIEW_lan_lite_the_ref", 1 },
73 { XFLT, "VIEW_stall_warn_aoa", 1 },
74 { XFLT, "VIEW_tow_hook_Y", 1 },
75 { XFLT, "VIEW_tow_hook_Z", 1 },
76 { XFLT, "VIEW_win_hook_Y", 1 },
77 { XFLT, "VIEW_win_hook_Z", 1 },
78 { XINT, "VIEW_has_HOOPS_HUD", 1 },
79 { XINT, "VIEW_cockpit_type", 1 },
80 { XINT, "VIEW_asi_is_kts", 1 },
81 { XINT, "VIEW_warn1_EQ", 1 },
82 { XINT, "VIEW_warn2_EQ", 1 },
83 { XINT, "VIEW_is_glossy", 1 },
84 { XINT, "VIEW_draw_geo_frnt_views", 1 },
85 { XINT, "VIEW_draw_geo_side_views", 1 },
86 { XINT, "VIEW_ins_type", 300 },
87 { XFLT, "VIEW_ins_size", 300 },
88 { XFLT, "VIEW_ins_x", 300 },
89 { XFLT, "VIEW_ins_y", 300 },
90 { XINT, "VIEW_cus_rnd_use", 50 },
91 { XFLT, "VIEW_cus_rnd_lo_val", 50 },
92 { XFLT, "VIEW_cus_rnd_hi_val", 50 },
93 { XFLT, "VIEW_cus_rnd_lo_ang", 50 },
94 { XFLT, "VIEW_cus_rnd_hi_ang", 50 },
95 { XINT, "VIEW_cus_rnd_mirror", 50 },
96 { XINT, "VIEW_cus_rnd_label", 50 },
97 { XINT, "VIEW_cus_dig_use", 50 },
98 { XFLT, "VIEW_cus_dig_offset", 50 },
99 { XFLT, "VIEW_cus_dig_scale", 50 },
100 { XINT, "VIEW_cus_dig_dig", 50 },
101 { XINT, "VIEW_cus_dig_dec", 50 },
102 { XINT, "ENGINE_num_engines", 1 },
103 { XINT, "ENGINE_num_thrustpoints", 1 },
104 { XFLT, "ENGINE_throt_max_FWD", 1 },
105 { XFLT, "ENGINE_throt_max_REV", 1 },
106 { XFLT, "ENGINE_idle_rat", 2 },
107 { XINT, "ENGINE_props_linked", 1 },
108 { XINT, "ENGINE_beta_prop_EQ", 1 },
109 { XINT, "ENGINE_auto_feather_EQ", 1 },
110 { XINT, "ENGINE_rev_thrust_EQ", 1 },
111 { XINT, "ENGINE_drive_by_wire_EQ", 1 },
112 { XFLT, "ENGINE_feathered_pitch", 1 },
113 { XFLT, "ENGINE_reversed_pitch", 1 },
114 { XFLT, "ENGINE_rotor_mi_rat", 1 },
115 { XFLT, "ENGINE_tip_weight", 1 },
116 { XFLT, "ENGINE_tip_mach_des_100", 1 },
117 { XFLT, "ENGINE_tip_mach_des_50", 1 },
118 { XFLT, "ENGINE_power_max", 1 },
119 { XFLT, "ENGINE_crit_alt", 1 },
120 { XFLT, "ENGINE_MP_max", 1 },
121 { XFLT, "ENGINE_trq_max_eng", 1 },
122 { XFLT, "ENGINE_RSC_idlespeed_ENGN", 1 },
123 { XFLT, "ENGINE_RSC_redline_ENGN", 1 },
124 { XFLT, "ENGINE_RSC_idlespeed_PROP", 1 },
125 { XFLT, "ENGINE_RSC_redline_PROP", 1 },
126 { XFLT, "ENGINE_RSC_mingreen_ENGN", 1 },
127 { XFLT, "ENGINE_RSC_maxgreen_ENGN", 1 },
128 { XFLT, "ENGINE_RSC_mingreen_PROP", 1 },
129 { XFLT, "ENGINE_RSC_maxgreen_PROP", 1 },
130 { XINT, "ENGINE_has_press_controls", 1 },
131 { XFLT, "ENGINE_throt_time_prop", 1 },
132 { XFLT, "ENGINE_trans_loss", 1 },
133 { XFLT, "ENGINE_thrust_max", 1 },
134 { XFLT, "ENGINE_burner_inc", 1 },
135 { XFLT, "ENGINE_max_mach_eff", 1 },
136 { XFLT, "ENGINE_face_jet", 1 },
137 { XFLT, "ENGINE_throt_time_jet", 1 },
138 { XFLT, "ENGINE_lift_fan_rat", 1 },
139 { XFLT, "ENGINE_rock_max_sl", 1 },
140 { XFLT, "ENGINE_rock_max_opt", 1 },
141 { XFLT, "ENGINE_rock_max_vac", 1 },
142 { XFLT, "ENGINE_rock_h_opt", 1 },
143 { XFLT, "ENGINE_face_rocket", 1 },
144 { XINT, "PROP_engn_type", 8 },
145 { XINT, "PROP_prop_type", 8 },
146 { XFLT, "PROP_engn_mass", 8 },
147 { XINT, "PROP_prop_clutch_EQ", 8 },
148 { XFLT, "PROP_prop_gear_rat", 8 },
149 { XFLT, "PROP_prop_dir", 8 },
150 { XFLT, "PROP_num_blades", 8 },
151 { XFLT, "PROP_SFC", 8 },
152 { XFLT, "PROP_vert_cant_init", 8 },
153 { XFLT, "PROP_side_cant_init", 8 },
154 { XFLT, "PROP_min_pitch", 8 },
155 { XFLT, "PROP_max_pitch", 8 },
156 { XFLT, "PROP_des_rpm_prp", 8 },
157 { XFLT, "PROP_des_kts_prp", 8 },
158 { XFLT, "PROP_des_kts_acf", 8 },
159 { XFLT, "PROP_prop_mass", 8 },
160 { XFLT, "PROP_mi_prop_rpm", 8 },
161 { XFLT, "PROP_mi_engn_rpm", 8 },
162 { XFLT, "PROP_discarea", 8 },
163 { XFLT, "PROP_ringarea", 80 },
164 { XFLT, "PROP_bladesweep", 80 },
165 { XFLT, "HYDRO_STICK_starter_rat", 1 },
166 { XFLT, "HYDRO_STICK_battery_rat", 1 },
167 { XINT, "HYDRO_STICK_ff_hydraulic", 1 },
168 { XINT, "HYDRO_STICK_ff_stickshaker", 1 },
169 { XFLT, "HYDRO_STICK_manual_reversion_rat", 1 },
170 { XFLT, "HYDRO_STICK_max_press_diff", 1 },
171 { XINT, "PARTS_part_eq", 73 },
172 { XCHR, "PARTS_Rafl0", 2920 },
173 { XCHR, "PARTS_Rafl1", 2920 },
174 { XCHR, "PARTS_Tafl0", 2920 },
175 { XCHR, "PARTS_Tafl1", 2920 },
176 { XINT, "PARTS_els", 73 },
177 { XFLT, "PARTS_Xarm", 73 },
178 { XFLT, "PARTS_Yarm", 73 },
179 { XFLT, "PARTS_Zarm", 73 },
180 { XFLT, "PARTS_Croot", 73 },
181 { XFLT, "PARTS_Ctip", 73 },
182 { XFLT, "PARTS_semilen_SEG", 73 },
183 { XFLT, "PARTS_semilen_JND", 73 },
184 { XFLT, "PARTS_element_len", 73 },
185 { XFLT, "PARTS_X_body_aero", 73 },
186 { XFLT, "PARTS_Y_body_aero", 73 },
187 { XFLT, "PARTS_Z_body_aero", 73 },
188 { XFLT, "PARTS_dihed1", 73 },
189 { XFLT, "PARTS_dihed2", 73 },
190 { XFLT, "PARTS_dihednow", 73 },
191 { XINT, "PARTS_vardihed", 73 },
192 { XINT, "PARTS_vardihedEQ", 1 },
193 { XFLT, "PARTS_sweep1", 73 },
194 { XFLT, "PARTS_sweep2", 73 },
195 { XFLT, "PARTS_sweepnow", 73 },
196 { XINT, "PARTS_varsweep", 73 },
197 { XINT, "PARTS_varsweepEQ", 1 },
198 { XFLT, "PARTS_e", 73 },
199 { XFLT, "PARTS_AR", 73 },
200 { XFLT, "PARTS_al_D_al0", 73 },
201 { XFLT, "PARTS_cl_D_cl0", 73 },
202 { XFLT, "PARTS_cm_D_cm0", 73 },
203 { XFLT, "PARTS_delta_fac", 73 },
204 { XFLT, "PARTS_spec_wash", 73 },
205 { XFLT, "PARTS_alpha_max", 73 },
206 { XFLT, "PARTS_slat_effect", 73 },
207 { XFLT, "PARTS_s", 730 },
208 { XFLT, "PARTS_mac", 730 },
209 { XFLT, "PARTS_incidence", 730 },
210 { XINT, "PARTS_ail1", 730 },
211 { XFLT, "PARTS_ail1_elR", 73 },
212 { XFLT, "PARTS_ail1_elT", 73 },
213 { XFLT, "PARTS_ail1_cratR", 1 },
214 { XFLT, "PARTS_ail1_cratT", 1 },
215 { XFLT, "PARTS_ail1_up", 1 },
216 { XFLT, "PARTS_ail1_dn", 1 },
217 { XINT, "PARTS_ail2", 730 },
218 { XFLT, "PARTS_ail2_elR", 73 },
219 { XFLT, "PARTS_ail2_elT", 73 },
220 { XFLT, "PARTS_ail2_cratR", 1 },
221 { XFLT, "PARTS_ail2_cratT", 1 },
222 { XFLT, "PARTS_ail2_up", 1 },
223 { XFLT, "PARTS_ail2_dn", 1 },
224 { XINT, "PARTS_elev", 730 },
225 { XFLT, "PARTS_elev_elR", 73 },
226 { XFLT, "PARTS_elev_elT", 73 },
227 { XFLT, "PARTS_elev_cratR", 1 },
228 { XFLT, "PARTS_elev_cratT", 1 },
229 { XFLT, "PARTS_elev_up", 1 },
230 { XFLT, "PARTS_elev_dn", 1 },
231 { XINT, "PARTS_rudd", 730 },
232 { XFLT, "PARTS_rudd_elR", 73 },
233 { XFLT, "PARTS_rudd_elT", 73 },
234 { XFLT, "PARTS_rudd_cratR", 1 },
235 { XFLT, "PARTS_rudd_cratT", 1 },
236 { XFLT, "PARTS_rudd_lr", 1 },
237 { XINT, "PARTS_spo1", 730 },
238 { XFLT, "PARTS_spo1_elR", 73 },
239 { XFLT, "PARTS_spo1_elT", 73 },
240 { XFLT, "PARTS_spo1_cratR", 1 },
241 { XFLT, "PARTS_spo1_cratT", 1 },
242 { XFLT, "PARTS_spo1_up", 1 },
243 { XINT, "PARTS_yawb", 730 },
244 { XFLT, "PARTS_yawb_elR", 73 },
245 { XFLT, "PARTS_yawb_elT", 73 },
246 { XFLT, "PARTS_yawb_cratR", 1 },
247 { XFLT, "PARTS_yawb_cratT", 1 },
248 { XFLT, "PARTS_yawb_ud", 1 },
249 { XINT, "PARTS_sbrk", 730 },
250 { XFLT, "PARTS_sbrk_elR", 73 },
251 { XFLT, "PARTS_sbrk_elT", 73 },
252 { XFLT, "PARTS_sbrk_cratR", 1 },
253 { XFLT, "PARTS_sbrk_cratT", 1 },
254 { XFLT, "PARTS_sbrk_up", 1 },
255 { XINT, "PARTS_sbrkEQ", 1 },
256 { XINT, "PARTS_flap", 730 },
257 { XFLT, "PARTS_flap_elR", 73 },
258 { XFLT, "PARTS_flap_elT", 73 },
259 { XFLT, "PARTS_flap_cratR", 1 },
260 { XFLT, "PARTS_flap_cratT", 1 },
261 { XFLT, "PARTS_flap_dn", 8 },
262 { XINT, "PARTS_flapEQ", 1 },
263 { XINT, "PARTS_slat", 730 },
264 { XFLT, "PARTS_slat_inc", 1 },
265 { XINT, "PARTS_slatEQ", 1 },
266 { XINT, "PARTS_inc_ail1", 730 },
267 { XINT, "PARTS_inc_ail2", 730 },
268 { XINT, "PARTS_inc_elev", 730 },
269 { XINT, "PARTS_inc_rudd", 730 },
270 { XINT, "PARTS_inc_vect", 730 },
271 { XINT, "PARTS_inc_trim", 730 },
272 { XINT, "PARTS_in_downwash", 53290 },
273 { XFLT, "PARTS_body_r", 73 },
274 { XFLT, "PARTS_body_X", 26280 },
275 { XFLT, "PARTS_body_Y", 26280 },
276 { XFLT, "PARTS_body_Z", 26280 },
277 { XINT, "PARTS_gear_type", 73 },
278 { XFLT, "PARTS_gear_latE", 73 },
279 { XFLT, "PARTS_gear_lonE", 73 },
280 { XFLT, "PARTS_gear_axiE", 73 },
281 { XFLT, "PARTS_gear_latR", 73 },
282 { XFLT, "PARTS_gear_lonR", 73 },
283 { XFLT, "PARTS_gear_axiR", 73 },
284 { XFLT, "PARTS_gear_latN", 73 },
285 { XFLT, "PARTS_gear_lonN", 73 },
286 { XFLT, "PARTS_gear_axiN", 73 },
287 { XFLT, "PARTS_gear_xnodef", 73 },
288 { XFLT, "PARTS_gear_ynodef", 73 },
289 { XFLT, "PARTS_gear_znodef", 73 },
290 { XFLT, "PARTS_gear_leglen", 73 },
291 { XFLT, "PARTS_tire_radius", 73 },
292 { XFLT, "PARTS_tire_swidth", 73 },
293 { XFLT, "PARTS_gearcon", 73 },
294 { XFLT, "PARTS_geardmp", 73 },
295 { XFLT, "PARTS_gear_deploy", 73 },
296 { XFLT, "PARTS_gearstatdef", 73 },
297 { XFLT, "PARTS_dummy", 73 },
298 { XINT, "PARTS_gear_steers", 73 },
299 { XFLT, "PARTS_gear_cyctim", 73 },
300 { XFLT, "BODIES_fuse_cd", 1 },
301 { XFLT, "CONTROL_hstb_trim_up", 1 },
302 { XFLT, "CONTROL_hstb_trim_dn", 1 },
303 { XINT, "CONTROL_flap_type", 1 },
304 { XINT, "CONTROL_con_smooth", 1 },
305 { XINT, "CONTROL_flap_detents", 1 },
306 { XFLT, "CONTROL_flap_deftime", 1 },
307 { XFLT, "CONTROL_flap_cl", 1 },
308 { XFLT, "CONTROL_flap_cd", 1 },
309 { XFLT, "CONTROL_flap_cm", 1 },
310 { XFLT, "CONTROL_blown_flap_add_speed", 1 },
311 { XFLT, "CONTROL_blown_flap_throt_red", 1 },
312 { XFLT, "CONTROL_blown_flap_min_engag", 1 },
313 { XINT, "CONTROL_blow_all_controls", 1 },
314 { XINT, "LANDING_GEAR_gear_retract", 1 },
315 { XFLT, "LANDING_GEAR_nw_steerdeg1", 1 },
316 { XFLT, "LANDING_GEAR_nw_steerdeg2", 1 },
317 { XFLT, "LANDING_GEAR_nw_cutoff_omega", 1 },
318 { XFLT, "LANDING_GEAR_nw_side_k", 1 },
319 { XFLT, "LANDING_GEAR_gear_door_size", 1 },
320 { XFLT, "LANDING_GEAR_water_rud_longarm", 1 },
321 { XFLT, "LANDING_GEAR_water_rud_area", 1 },
322 { XFLT, "LANDING_GEAR_water_rud_maxdef", 1 },
323 { XFLT, "LANDING_GEAR_roll_co", 1 },
324 { XFLT, "LANDING_GEAR_brake_co", 1 },
325 { XINT, "LANDING_GEAR_gear_door_typ", 10 },
326 { XFLT, "LANDING_GEAR_gear_door_loc", 30 },
327 { XFLT, "LANDING_GEAR_gear_door_geo", 120 },
328 { XFLT, "LANDING_GEAR_gear_door_axi_rot", 10 },
329 { XFLT, "LANDING_GEAR_gear_door_ext_ang", 10 },
330 { XFLT, "LANDING_GEAR_gear_door_ret_ang", 10 },
331 { XFLT, "LANDING_GEAR_gear_door_ang_now", 10 },
332 { XFLT, "WEIGHT_BALANCE_cgY", 1 },
333 { XFLT, "WEIGHT_BALANCE_cgZ", 1 },
334 { XFLT, "WEIGHT_BALANCE_cgZ_fwd", 1 },
335 { XFLT, "WEIGHT_BALANCE_cgZ_aft", 1 },
336 { XFLT, "WEIGHT_BALANCE_m_empty", 1 },
337 { XFLT, "WEIGHT_BALANCE_m_fuel_tot", 1 },
338 { XFLT, "WEIGHT_BALANCE_m_jettison", 1 },
339 { XFLT, "WEIGHT_BALANCE_m_max", 1 },
340 { XFLT, "WEIGHT_BALANCE_m_displaced", 1 },
341 { XFLT, "WEIGHT_BALANCE_Jxx_unitmass", 1 },
342 { XFLT, "WEIGHT_BALANCE_Jyy_unitmass", 1 },
343 { XFLT, "WEIGHT_BALANCE_Jzz_unitmass", 1 },
344 { XINT, "WEIGHT_BALANCE_num_tanks", 1 },
345 { XFLT, "WEIGHT_BALANCE_tank_rat", 3 },
346 { XFLT, "WEIGHT_BALANCE_tank_X", 3 },
347 { XFLT, "WEIGHT_BALANCE_tank_Y", 3 },
348 { XFLT, "WEIGHT_BALANCE_tank_Z", 3 },
349 { XINT, "WEIGHT_BALANCE_jett_is_slung", 1 },
350 { XINT, "WEIGHT_BALANCE_jett_is_water", 1 },
351 { XFLT, "WEIGHT_BALANCE_jett_len", 1 },
352 { XFLT, "WEIGHT_BALANCE_jett_xyz", 3 },
353 { XFLT, "SPECIAL_CONTROLS_flap_roll", 1 },
354 { XFLT, "SPECIAL_CONTROLS_flap_ptch", 1 },
355 { XFLT, "SPECIAL_CONTROLS_mass_shift", 1 },
356 { XFLT, "SPECIAL_CONTROLS_mass_shift_dx", 1 },
357 { XFLT, "SPECIAL_CONTROLS_mass_shift_dz", 1 },
358 { XFLT, "SPECIAL_CONTROLS_wing_tilt_ptch", 1 },
359 { XFLT, "SPECIAL_CONTROLS_wing_tilt_roll", 1 },
360 { XFLT, "SPECIAL_CONTROLS_tvec_ptch", 1 },
361 { XFLT, "SPECIAL_CONTROLS_tvec_roll", 1 },
362 { XFLT, "SPECIAL_CONTROLS_tvec_hdng", 1 },
363 { XFLT, "SPECIAL_CONTROLS_jato_Y", 1 },
364 { XFLT, "SPECIAL_CONTROLS_jato_Z", 1 },
365 { XFLT, "SPECIAL_CONTROLS_jato_theta", 1 },
366 { XFLT, "SPECIAL_CONTROLS_jato_thrust", 1 },
367 { XFLT, "SPECIAL_CONTROLS_jato_dur", 1 },
368 { XFLT, "SPECIAL_CONTROLS_jato_sfc", 1 },
369 { XFLT, "SPECIAL_CONTROLS_stab_roll", 1 },
370 { XFLT, "SPECIAL_CONTROLS_stab_hdng", 1 },
371 { XFLT, "SPECIAL_CONTROLS_elev_with_flap", 1 },
372 { XFLT, "SPECIAL_CONTROLS_ail1_pitch", 1 },
373 { XFLT, "SPECIAL_CONTROLS_ail1_flaps", 1 },
374 { XFLT, "SPECIAL_CONTROLS_ail2_pitch", 1 },
375 { XFLT, "SPECIAL_CONTROLS_ail2_flaps", 1 },
376 { XFLT, "SPECIAL_CONTROLS_ail2_vmax", 1 },
377 { XFLT, "SPECIAL_CONTROLS_diff_thro_hdng", 1 },
378 { XINT, "SPECIAL_CONTROLS_phase_ptch_tvect_in_at_90", 1 },
379 { XINT, "SPECIAL_CONTROLS_phase_ptch_tvect_in_at_00", 1 },
380 { XINT, "SPECIAL_CONTROLS_sbrk_on_td_EQ", 1 },
381 { XINT, "SPECIAL_CONTROLS_fbrk_on_td_EQ", 1 },
382 { XINT, "SPECIAL_CONTROLS_sweep_with_flaps_EQ", 1 },
383 { XINT, "SPECIAL_CONTROLS_flaps_with_gear_EQ", 1 },
384 { XINT, "SPECIAL_CONTROLS_slat_with_stall_EQ", 1 },
385 { XINT, "SPECIAL_CONTROLS_anti_ice_EQ", 1 },
386 { XINT, "SPECIAL_CONTROLS_arresting_EQ", 1 },
387 { XINT, "SPECIAL_CONTROLS_revt_on_td_EQ", 1 },
388 { XINT, "SPECIAL_CONTROLS_warn_gear_EQ", 1 },
389 { XINT, "SPECIAL_CONTROLS_warn_lorot_EQ", 1 },
390 { XINT, "SPECIAL_CONTROLS_auto_trim_EQ", 1 },
391 { XINT, "SPECIAL_CONTROLS_flaps_with_vec_EQ", 1 },
392 { XFLT, "SPECIAL_CONTROLS_brake_area", 1 },
393 { XFLT, "SPECIAL_CONTROLS_brake_Y", 1 },
394 { XFLT, "SPECIAL_CONTROLS_brake_Z", 1 },
395 { XFLT, "SPECIAL_CONTROLS_chute_area", 1 },
396 { XFLT, "SPECIAL_CONTROLS_chute_Y", 1 },
397 { XFLT, "SPECIAL_CONTROLS_chute_Z", 1 },
398 { XINT, "VTOL_CONTROL_vect_EQ", 1 },
399 { XINT, "VTOL_CONTROL_auto_rpm_with_tvec", 1 },
400 { XINT, "VTOL_CONTROL_hide_prop_at_90_vect", 1 },
401 { XFLT, "VTOL_CONTROL_vect_rate", 1 },
402 { XFLT, "VTOL_CONTROL_vect_min_disc", 1 },
403 { XFLT, "VTOL_CONTROL_vect_max_disc", 1 },
404 { XFLT, "VTOL_CONTROL_vectarmY", 1 },
405 { XFLT, "VTOL_CONTROL_vectarmZ", 1 },
406 { XFLT, "VTOL_CONTROL_cyclic_def_elev", 1 },
407 { XFLT, "VTOL_CONTROL_cyclic_def_ailn", 1 },
408 { XFLT, "VTOL_CONTROL_flap_arm", 1 },
409 { XFLT, "VTOL_CONTROL_delta3", 1 },
410 { XFLT, "VTOL_CONTROL_puff_LMN", 3 },
411 { XFLT, "VTOL_CONTROL_puff_xyz", 3 },
412 { XFLT, "VTOL_CONTROL_stab_delinc_to_Vne", 1 },
413 { XFLT, "VTOL_CONTROL_tail_with_coll", 1 },
414 { XFLT, "VTOL_CONTROL_diff_coll_with_roll", 1 },
415 { XFLT, "VTOL_CONTROL_diff_coll_with_hdng", 1 },
416 { XFLT, "VTOL_CONTROL_diff_coll_with_ptch", 1 },
417 { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lon", 1 },
418 { XFLT, "VTOL_CONTROL_diff_cycl_with_hdng_lat", 1 },
419 { XFLT, "VTOL_CONTROL_rotor_trim_max_fwd", 1 },
420 { XFLT, "VTOL_CONTROL_rotor_trim_max_aft", 1 },
421 { XFLT, "ART_STAB_AShiV_old_all", 1 },
422 { XFLT, "ART_STAB_ASloV_old_all", 1 },
423 { XFLT, "ART_STAB_ASlo_max_thedot", 1 },
424 { XFLT, "ART_STAB_ASlo_thedot_k", 1 },
425 { XFLT, "ART_STAB_ASlo_max_psidot", 1 },
426 { XFLT, "ART_STAB_ASlo_psidot_k", 1 },
427 { XFLT, "ART_STAB_ASlo_max_phidot", 1 },
428 { XFLT, "ART_STAB_ASlo_phidot_k", 1 },
429 { XFLT, "ART_STAB_AShi_max_G", 1 },
430 { XFLT, "ART_STAB_AShi_G_k", 1 },
431 { XFLT, "ART_STAB_AShi_Gdot_k", 1 },
432 { XFLT, "ART_STAB_AShi_max_alpha", 1 },
433 { XFLT, "ART_STAB_AShi_alpha_k", 1 },
434 { XFLT, "ART_STAB_AShi_alphadot_k", 1 },
435 { XFLT, "ART_STAB_AShi_max_beta", 1 },
436 { XFLT, "ART_STAB_AShi_beta_k", 1 },
437 { XFLT, "ART_STAB_AShi_betadot_k", 1 },
438 { XFLT, "ART_STAB_AShi_max_phidot", 1 },
439 { XFLT, "ART_STAB_AShi_phidot_k", 1 },
440 { XCHR, "WEARONS_wpn_name", 12000 },
441 { XFLT, "WEARONS_x_wpn_att", 24 },
442 { XFLT, "WEARONS_y_wpn_att", 24 },
443 { XFLT, "WEARONS_z_wpn_att", 24 },
444 { XFLT, "AUTO_SETS_est_Vs_msc", 1 },
445 { XFLT, "AUTO_SETS_size_x", 1 },
446 { XFLT, "AUTO_SETS_size_z", 1 },
447 { XFLT, "AUTO_SETS_tire_s_contact", 1 },
448 { XFLT, "AUTO_SETS_m_displaced_y", 1 },
449 { XFLT, "AUTO_SETS_h_eqlbm", 1 },
450 { XFLT, "AUTO_SETS_the_eqlbm", 1 },
451 { XINT, "AUTO_SETS_steer_gear", 1 },
452 { XINT, "AUTO_SETS_is_skid_gear", 1 },
453 { XINT, "AUTO_SETS_dummy3", 7 },
454 { XINT, "AUTO_SETS_has_radar", 1 },
455 { XINT, "AUTO_SETS_has_SC_fd", 1 },
456 { XINT, "AUTO_SETS_has_DC_fd", 1 },
457 { XINT, "AUTO_SETS_has_stallwarn", 1 },
458 { XINT, "AUTO_SETS_has_clutchswitch", 1 },
459 { XINT, "AUTO_SETS_has_prerotate", 1 },
460 { XINT, "AUTO_SETS_has_idlespeed", 1 },
461 { XINT, "AUTO_SETS_has_FADECswitch", 1 },
462 { XINT, "AUTO_SETS_has_litemap_tex_1", 1 },
463 { XINT, "AUTO_SETS_has_tailrotor", 1 },
464 { XINT, "AUTO_SETS_has_collective", 1 },
465 { XFLT, "SOUND_REF_snd_kias", 1 },
466 { XFLT, "SOUND_REF_snd_rpm_prp", 1 },
467 { XFLT, "SOUND_REF_snd_rpm_eng", 1 },
468 { XFLT, "SOUND_REF_snd_n1", 1 },
469 { XFLT, "VAR_INCIDENCE_inc2", 73 },
470 { XFLT, "VAR_INCIDENCE_incnow", 73 },
471 { XINT, "VAR_INCIDENCE_varinc", 73 },
472 { XINT, "VAR_INCIDENCE_varincEQ", 1 },
473 { XFLT, "OVERFLOW_rudd_with_ailn", 1 },
474 { XFLT, "OVERFLOW_strut_comp", 73 },
475 { XINT, "OVERFLOW_is_left", 73 },
476 { XFLT, "OVERFLOW_lat_sign", 73 },
477 { XINT, "OVERFLOW_jett_is_acf", 1 },
478 { XINT, "OVERFLOW_collective_en", 1 },
479 { XINT, "OVERFLOW_is_flying_stab", 1 },
480 { XFLT, "OVERFLOW_dummy4", 7 },
481 { XFLT, "OVERFLOW_diff_thro_ptch", 1 },
482 { XFLT, "OVERFLOW_diff_thro_roll", 1 },
483 { XINT, "OVERFLOW_phase_roll_tvect_in_at_90", 1 },
484 { XINT, "OVERFLOW_phase_roll_tvect_in_at_00", 1 },
485 { XINT, "OVERFLOW_phase_hdng_tvect_in_at_90", 1 },
486 { XINT, "OVERFLOW_phase_hdng_tvect_in_at_00", 1 },
487 { XINT, "OVERFLOW_has_asi_set", 1 },
488 { XINT, "OVERFLOW_has_hdg_set", 1 },
489 { XINT, "OVERFLOW_has_alt_set", 1 },
490 { XFLT, "OVERFLOW_ASlo_the_V", 1 },
491 { XFLT, "OVERFLOW_ASlo_psi_V", 1 },
492 { XFLT, "OVERFLOW_ASlo_phi_V", 1 },
493 { XFLT, "OVERFLOW_AShi_the_V", 1 },
494 { XFLT, "OVERFLOW_AShi_psi_V", 1 },
495 { XFLT, "OVERFLOW_AShi_phi_V", 1 },
496 { XFLT, "OVERFLOW_spo1_vmax", 1 },
497 { XFLT, "OVERFLOW_max_boost_pas", 1 },
498 { XFLT, "OVERFLOW_min_trim_elev", 1 },
499 { XFLT, "OVERFLOW_max_trim_elev", 1 },
500 { XFLT, "OVERFLOW_min_trim_ailn", 1 },
501 { XFLT, "OVERFLOW_max_trim_ailn", 1 },
502 { XFLT, "OVERFLOW_min_trim_rudd", 1 },
503 { XFLT, "OVERFLOW_max_trim_rudd", 1 },
504 { XFLT, "OVERFLOW_lan_lite_psi_ref", 1 },
505 { XINT, "OVERFLOW_has_mixture", 1 },
506 { XFLT, "OVERFLOW_TR", 73 },
507 { XINT, "OVERFLOW_has_gear", 1 },
508 { XINT, "OVERFLOW_cus_non_lin", 50 },
509 { XFLT, "OVERFLOW_cus_doub_val", 50 },
510 { XINT, "OVERFLOW_beaconEQ", 1 },
511 { XINT, "OVERFLOW_has_knots_mach", 1 },
512 { XFLT, "OVERFLOW_elev_trim_speedrat", 1 },
513 { XFLT, "OVERFLOW_ailn_trim_speedrat", 1 },
514 { XFLT, "OVERFLOW_rudd_trim_speedrat", 1 },
515 { XFLT, "OVERFLOW_disp_rat", 1 },
516 { XFLT, "OVERFLOW_exhaust_rat", 1 },
517 { XINT, "OVERFLOW_lo_speed_is_position", 1 },
518 { XFLT, "OVERFLOW_ASlo_max_the", 1 },
519 { XFLT, "OVERFLOW_ASlo_the_k", 1 },
520 { XFLT, "OVERFLOW_ASlo_max_phi", 1 },
521 { XFLT, "OVERFLOW_ASlo_phi_k", 1 },
522 { XINT, "OVERFLOW_is_ducted", 8 },
523 { XFLT, "OVERFLOW_the_wpn_att", 24 },
524 { XFLT, "OVERFLOW_psi_wpn_att", 24 },
525 { XFLT, "OVERFLOW_big_panel_pix_default", 1 },
526 { XFLT, "OVERFLOW_HUD_ctr_y", 9 },
527 { XINT, "OVERFLOW_spo2", 730 },
528 { XFLT, "OVERFLOW_spo2_elR", 73 },
529 { XFLT, "OVERFLOW_spo2_elT", 73 },
530 { XFLT, "OVERFLOW_spo2_cratR", 1 },
531 { XFLT, "OVERFLOW_spo2_cratT", 1 },
532 { XFLT, "OVERFLOW_spo2_up", 1 },
533 { XFLT, "OVERFLOW_spo2_vmax", 1 },
534 { XFLT, "OVERFLOW_ail1_vmax", 1 },
535 { XFLT, "OVERFLOW_roll_to_eng_spo1", 1 },
536 { XFLT, "OVERFLOW_roll_to_eng_spo2", 1 },
537 { XFLT, "OVERFLOW_dummy2", 73 },
538 { XFLT, "OVERFLOW_EPR_max", 1 },
539 { XINT, "OVERFLOW_sweep_with_vect_EQ", 1 },
540 { XINT, "OVERFLOW_old_cus_layers", 1 },
541 { XINT, "OVERFLOW_has_litemap_tex_2", 1 },
542 { XFLT, "OVERFLOW_disc_tilt_elev", 1 },
543 { XFLT, "OVERFLOW_disc_tilt_ailn", 1 },
544 { XFLT, "OVERFLOW_lan_lite_psi_off", 1 },
545 { XFLT, "OVERFLOW_lan_lite_the_off", 1 },
546 { XFLT, "OVERFLOW_inertia_rat_prop", 1 },
547 { XFLT, "OVERFLOW_fuel_intro_time_jet", 1 },
548 { XFLT, "OVERFLOW_tire_mi", 73 },
549 { XFLT, "OVERFLOW_vect_min_nace", 1 },
550 { XFLT, "OVERFLOW_vect_max_nace", 1 },
551 { XINT, "OVERFLOW_manual_rad_gyr", 1 },
552 { XFLT, "OVERFLOW_max_ITT_C", 1 },
553 { XFLT, "OVERFLOW_max_EGT_C", 1 },
554 { XFLT, "OVERFLOW_fuel_intro_time_prop", 1 },
555 { XFLT, "OVERFLOW_spool_time_jet", 1 },
556 { XFLT, "OVERFLOW_takeoff_trim", 1 },
557 { XFLT, "OVERFLOW_average_MAC", 1 },
558 { XINT, "OVERFLOW_custom_autopilot", 1 },
559 { XFLT, "OVERFLOW_ott_asi_ratio", 1 },
560 { XFLT, "OVERFLOW_ott_asi_sec_into_future", 1 },
561 { XFLT, "OVERFLOW_ott_asi_kts_off_for_full_def", 1 },
562 { XFLT, "OVERFLOW_ott_phi_ratio", 1 },
563 { XFLT, "OVERFLOW_ott_phi_sec_into_future", 1 },
564 { XFLT, "OVERFLOW_ott_phi_deg_off_for_full_def", 1 },
565 { XFLT, "OVERFLOW_ott_phi_sec_to_tune", 1 },
566 { XFLT, "OVERFLOW_ott_def_sec_into_future", 1 },
567 { XFLT, "OVERFLOW_ott_def_dot_off_for_full_def", 1 },
568 { XFLT, "OVERFLOW_ott_def_sec_to_tune", 1 },
569 { XFLT, "OVERFLOW_ott_the_ratio", 1 },
570 { XFLT, "OVERFLOW_ott_the_sec_into_future", 1 },
571 { XFLT, "OVERFLOW_ott_the_deg_off_for_full_def", 1 },
572 { XFLT, "OVERFLOW_ott_the_sec_to_tune", 1 },
573 { XINT, "OVERFLOW_xint_overflow", 206 },
574 { XCHR, "OVERFLOW_is_hm", 1 },
575 { XCHR, "OVERFLOW_is_ga", 1 },
576 { XCHR, "OVERFLOW_ICAO", 40 },
577 { XCHR, "OVERFLOW_xchr_overflow", 958 },
578 { XCHR, "end_of_data", 1 },
579
580 { XEOF, NULL, 0 }
581
582};
583
584#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_proto.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_proto.h
new file mode 100644
index 0000000..e6b216d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_def_proto.h
@@ -0,0 +1,49 @@
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_ACF_DEF_PROTO_H
23#define _IMP_ACF_DEF_PROTO_H
24
25#include <glib.h>
26
27typedef enum {
28 XEOF,
29 XCHR,
30 XINT,
31 XFLT
32} AcfType;
33
34typedef struct {
35 AcfType type;
36 gchar *name;
37 guint32 num;
38 gchar *xchr;
39 gint32 *xint;
40 G3DFloat *xflt;
41} AcfValue;
42
43typedef struct {
44 AcfType type;
45 gchar *description;
46 guint32 num;
47} AcfDef;
48
49#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.c
new file mode 100644
index 0000000..6f8070d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.c
@@ -0,0 +1,77 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include "imp_acf_detect.h"
24#include "imp_acf_def_acf603.h"
25#include "imp_acf_def_acf625.h"
26#include "imp_acf_def_acf630.h"
27#include "imp_acf_def_acf640.h"
28#include "imp_acf_def_acf651.h"
29#include "imp_acf_def_acf700.h"
30#include "imp_acf_def_acf740.h"
31
32typedef struct {
33 goffset size;
34 guint32 vmajor;
35 guint32 vminor;
36 const AcfDef *def;
37} AcfDetectInfo;
38
39static AcfDetectInfo acf_detect_info[] = {
40 { 433337, 6, 3, acf_def_acf603 },
41 { 433693, 6, 25, acf_def_acf625 },
42 { 453981, 6, 30, acf_def_acf630 },
43 { 454977, 6, 40, acf_def_acf640 },
44 { 454985, 6, 51, acf_def_acf651 },
45 { 646626, 7, 0, acf_def_acf700 },
46 { 647101, 7, 40, acf_def_acf740 },
47 { 0, 0, 0, NULL }
48};
49
50const AcfDef *acf_detect_version(AcfGlobalData *global)
51{
52 gint32 i;
53
54 for(i = 0; acf_detect_info[i].size > 0; i ++) {
55 if(g3d_stream_size(global->stream) == acf_detect_info[i].size) {
56#if DEBUG > 0
57 g_debug("ACF: version %d.%02d detected",
58 acf_detect_info[i].vmajor, acf_detect_info[i].vminor);
59#endif
60 return acf_detect_info[i].def;
61 }
62 }
63
64 for(i = 0; acf_detect_info[i].size > 0; i ++)
65 if(acf_detect_info[i].size > g3d_stream_size(global->stream)) {
66#if DEBUG > 0
67 g_debug("ACF: falling back to version %d.%02d",
68 acf_detect_info[i].vmajor, acf_detect_info[i].vminor);
69#endif
70 return acf_detect_info[i].def;
71 }
72
73 /* FIXME: return 7.40 for models newer than that */
74
75 g_warning("ACF: could not detect version");
76 return NULL;
77}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.h
new file mode 100644
index 0000000..a4c55c5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_detect.h
@@ -0,0 +1,30 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef IMP_ACF_DETECT_H
23#define IMP_ACF_DETECT_H
24
25#include "imp_acf.h"
26#include "imp_acf_def_proto.h"
27
28const AcfDef *acf_detect_version(AcfGlobalData *global);
29
30#endif /* IMP_ACF_DETECT_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.c
new file mode 100644
index 0000000..fd144e5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.c
@@ -0,0 +1,79 @@
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 <g3d/types.h>
25#include <g3d/face.h>
26#include <g3d/vector.h>
27
28#include "imp_acf_airfoil.h"
29
30G3DObject *acf_wing(G3DMaterial *material, const gchar *name,
31 G3DFloat *msweep, G3DFloat *mdihed, G3DFloat *mtrans,
32 G3DFloat *vrt, G3DFloat *vtp,
33 AcfAirfoil *aflrt, AcfAirfoil *afltp,
34 G3DFloat wrt, G3DFloat wtp, G3DFloat lf)
35{
36 G3DObject *object;
37 G3DFace *face;
38 guint32 nverts;
39 gint32 i;
40 G3DFloat vec[3];
41
42 nverts = aflrt->vertex_count;
43
44 object = g_new0(G3DObject, 1);
45 object->name = g_strdup(name);
46 object->vertex_count = nverts * 2;
47 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
48
49 /* vertices */
50 for(i = 0; i < nverts; i ++) {
51 /* wing root */
52 vec[2] = aflrt->vertex_data[i * 2 + 0] * wrt;
53 vec[1] = aflrt->vertex_data[i * 2 + 1] * wrt;
54 vec[0] = 0.0;
55 g3d_vector_transform(vec, vec + 1, vec + 2, mdihed);
56 g3d_vector_transform(vec, vec + 1, vec + 2, mtrans);
57 memcpy(object->vertex_data + i * 3, vec, sizeof(vec));
58
59 /* wing tip */
60 vec[2] = afltp->vertex_data[i * 2 + 0] * wtp;
61 vec[1] = afltp->vertex_data[i * 2 + 1] * wtp;
62 vec[0] = 0.0;
63 g3d_vector_transform(vec, vec + 1, vec + 2, mdihed);
64 g3d_vector_transform(vec, vec + 1, vec + 2, mtrans);
65 vec[0] += lf * vtp[0];
66 vec[1] += lf * vtp[1];
67 vec[2] += lf * vtp[2];
68 memcpy(object->vertex_data + (i + nverts) * 3, vec, sizeof(vec));
69 }
70 /* faces */
71 for(i = 0; i < (nverts - 1); i ++) {
72 face = g3d_face_new_tri(material, i + 1, i, i + nverts);
73 object->faces = g_slist_prepend(object->faces, face);
74 face = g3d_face_new_tri(material, i + 1, i + nverts + 1, i + nverts);
75 object->faces = g_slist_prepend(object->faces, face);
76 }
77
78 return object;
79}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.h
new file mode 100644
index 0000000..8f3846c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_acf/imp_acf_wing.h
@@ -0,0 +1,35 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_ACF_WING_H
23#define _IMP_ACF_WING_H
24
25#include <g3d/types.h>
26
27#include "imp_acf_airfoil.h"
28
29G3DObject *acf_wing(G3DMaterial *material, const gchar *name,
30 G3DFloat *msweep, G3DFloat *mdihed, G3DFloat *mtrans,
31 G3DFloat *vrt, G3DFloat *vtp,
32 AcfAirfoil *aflrt, AcfAirfoil *afltp,
33 G3DFloat wrt, G3DFloat wtp, G3DFloat lf);
34
35#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile
new file mode 100644
index 0000000..906d4b3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ar/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17
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_ar
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_ar_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ar_la_OBJECTS = imp_ar.lo imp_ar_decompress.lo imp_ar_dof.lo \
59 imp_ar_carini.lo
60imp_ar_la_OBJECTS = $(am_imp_ar_la_OBJECTS)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ar_la_SOURCES)
74DIST_SOURCES = $(imp_ar_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = imp_ar.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_ar_la_SOURCES = imp_ar.c imp_ar.h \
230 imp_ar_decompress.c imp_ar_decompress.h \
231 imp_ar_dof.c imp_ar_dof.h \
232 imp_ar_carini.c imp_ar_carini.h
233
234imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_ar.la: $(imp_ar_la_OBJECTS) $(imp_ar_la_DEPENDENCIES)
296 $(LINK) -rpath $(pluginimpdir) $(imp_ar_la_OBJECTS) $(imp_ar_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304include ./$(DEPDIR)/imp_ar.Plo
305include ./$(DEPDIR)/imp_ar_carini.Plo
306include ./$(DEPDIR)/imp_ar_decompress.Plo
307include ./$(DEPDIR)/imp_ar_dof.Plo
308
309.c.o:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c $<
315
316.c.obj:
317 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319# source='$<' object='$@' libtool=no \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326# source='$<' object='$@' libtool=yes \
327# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
328# $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am
new file mode 100644
index 0000000..a307d0b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.am
@@ -0,0 +1,23 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_ar.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_ar_la_SOURCES = imp_ar.c imp_ar.h \
20 imp_ar_decompress.c imp_ar_decompress.h \
21 imp_ar_dof.c imp_ar_dof.h \
22 imp_ar_carini.c imp_ar_carini.h
23imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in
new file mode 100644
index 0000000..1f67984
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/Makefile.in
@@ -0,0 +1,517 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
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_ar
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_ar_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ar_la_OBJECTS = imp_ar.lo imp_ar_decompress.lo imp_ar_dof.lo \
59 imp_ar_carini.lo
60imp_ar_la_OBJECTS = $(am_imp_ar_la_OBJECTS)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ar_la_SOURCES)
74DIST_SOURCES = $(imp_ar_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = imp_ar.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_ar_la_SOURCES = imp_ar.c imp_ar.h \
230 imp_ar_decompress.c imp_ar_decompress.h \
231 imp_ar_dof.c imp_ar_dof.h \
232 imp_ar_carini.c imp_ar_carini.h
233
234imp_ar_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_ar/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_ar.la: $(imp_ar_la_OBJECTS) $(imp_ar_la_DEPENDENCIES)
296 $(LINK) -rpath $(pluginimpdir) $(imp_ar_la_OBJECTS) $(imp_ar_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar.Plo@am__quote@
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_carini.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_decompress.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ar_dof.Plo@am__quote@
308
309.c.o:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c $<
315
316.c.obj:
317@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
322
323.c.lo:
324@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
325@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
327@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
328@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
329
330mostlyclean-libtool:
331 -rm -f *.lo
332
333clean-libtool:
334 -rm -rf .libs _libs
335
336ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
337 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
338 unique=`for i in $$list; do \
339 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
340 done | \
341 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
342 END { if (nonempty) { for (i in files) print i; }; }'`; \
343 mkid -fID $$unique
344tags: TAGS
345
346TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
347 $(TAGS_FILES) $(LISP)
348 tags=; \
349 here=`pwd`; \
350 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
351 unique=`for i in $$list; do \
352 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
353 done | \
354 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
355 END { if (nonempty) { for (i in files) print i; }; }'`; \
356 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
357 test -n "$$unique" || unique=$$empty_fix; \
358 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359 $$tags $$unique; \
360 fi
361ctags: CTAGS
362CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
363 $(TAGS_FILES) $(LISP)
364 tags=; \
365 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
366 unique=`for i in $$list; do \
367 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
368 done | \
369 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
370 END { if (nonempty) { for (i in files) print i; }; }'`; \
371 test -z "$(CTAGS_ARGS)$$tags$$unique" \
372 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
373 $$tags $$unique
374
375GTAGS:
376 here=`$(am__cd) $(top_builddir) && pwd` \
377 && cd $(top_srcdir) \
378 && gtags -i $(GTAGS_ARGS) $$here
379
380distclean-tags:
381 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
382
383distdir: $(DISTFILES)
384 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
386 list='$(DISTFILES)'; \
387 dist_files=`for file in $$list; do echo $$file; done | \
388 sed -e "s|^$$srcdirstrip/||;t" \
389 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
390 case $$dist_files in \
391 */*) $(MKDIR_P) `echo "$$dist_files" | \
392 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
393 sort -u` ;; \
394 esac; \
395 for file in $$dist_files; do \
396 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
397 if test -d $$d/$$file; then \
398 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
400 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
401 fi; \
402 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
403 else \
404 test -f $(distdir)/$$file \
405 || cp -p $$d/$$file $(distdir)/$$file \
406 || exit 1; \
407 fi; \
408 done
409check-am: all-am
410check: check-am
411all-am: Makefile $(LTLIBRARIES)
412installdirs:
413 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
414 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
415 done
416install: install-am
417install-exec: install-exec-am
418install-data: install-data-am
419uninstall: uninstall-am
420
421install-am: all-am
422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
423
424installcheck: installcheck-am
425install-strip:
426 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
427 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
428 `test -z '$(STRIP)' || \
429 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
430mostlyclean-generic:
431
432clean-generic:
433
434distclean-generic:
435 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
436
437maintainer-clean-generic:
438 @echo "This command is intended for maintainers to use"
439 @echo "it deletes files that may require special tools to rebuild."
440clean: clean-am
441
442clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
443 mostlyclean-am
444
445distclean: distclean-am
446 -rm -rf ./$(DEPDIR)
447 -rm -f Makefile
448distclean-am: clean-am distclean-compile distclean-generic \
449 distclean-tags
450
451dvi: dvi-am
452
453dvi-am:
454
455html: html-am
456
457info: info-am
458
459info-am:
460
461install-data-am: install-pluginimpLTLIBRARIES
462
463install-dvi: install-dvi-am
464
465install-exec-am:
466
467install-html: install-html-am
468
469install-info: install-info-am
470
471install-man:
472
473install-pdf: install-pdf-am
474
475install-ps: install-ps-am
476
477installcheck-am:
478
479maintainer-clean: maintainer-clean-am
480 -rm -rf ./$(DEPDIR)
481 -rm -f Makefile
482maintainer-clean-am: distclean-am maintainer-clean-generic
483
484mostlyclean: mostlyclean-am
485
486mostlyclean-am: mostlyclean-compile mostlyclean-generic \
487 mostlyclean-libtool
488
489pdf: pdf-am
490
491pdf-am:
492
493ps: ps-am
494
495ps-am:
496
497uninstall-am: uninstall-pluginimpLTLIBRARIES
498
499.MAKE: install-am install-strip
500
501.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
502 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
503 distclean-compile distclean-generic distclean-libtool \
504 distclean-tags distdir dvi dvi-am html html-am info info-am \
505 install install-am install-data install-data-am install-dvi \
506 install-dvi-am install-exec install-exec-am install-html \
507 install-html-am install-info install-info-am install-man \
508 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
509 install-ps install-ps-am install-strip installcheck \
510 installcheck-am installdirs maintainer-clean \
511 maintainer-clean-generic mostlyclean mostlyclean-compile \
512 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
513 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
514
515# Tell versions [3.59,3.63) of GNU make to not export all variables.
516# Otherwise a system limit (for SysV at least) may be exceeded.
517.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c
new file mode 100644
index 0000000..58bd274
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.c
@@ -0,0 +1,183 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <stdarg.h>
26#include <locale.h>
27
28#include <g3d/types.h>
29#include <g3d/read.h>
30#include <g3d/material.h>
31#include <g3d/matrix.h>
32
33#include "imp_ar.h"
34#include "imp_ar_decompress.h"
35#include "imp_ar_dof.h"
36#include "imp_ar_carini.h"
37
38static GSList *ar_read_directory(G3DStream *stream);
39static G3DObject *ar_load_subfile(G3DContext *context, G3DModel *model,
40 G3DStream *stream, const gchar *subfile);
41
42/*****************************************************************************/
43/* plugin interface */
44
45EAPI
46gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
47 G3DModel *model, gpointer plugin_data)
48{
49 GSList *dir, *item;
50 GHashTable *carini;
51 G3DMaterial *material;
52 G3DObject *object;
53 gchar *mname;
54 G3DFloat x, y, z;
55
56 setlocale(LC_NUMERIC, "C");
57
58 /* default material */
59 material = g3d_material_new();
60 material->name = g_strdup("default material");
61 model->materials = g_slist_append(model->materials, material);
62
63 if(g_strcasecmp(stream->uri + (strlen(stream->uri) - 4), ".dof") == 0) {
64 /* single DOF file */
65 ar_dof_load(context, model, stream);
66 } else {
67 /* compressed AR archive */
68 carini = ar_carini_load();
69
70 /* load directory */
71 dir = ar_read_directory(stream);
72
73 /* decompress files */
74 for(item = dir; item != NULL; item = item->next)
75 ar_decompress_to_file(stream, (ArDirEntry *)item->data);
76
77 /* load body */
78 mname = g_hash_table_lookup(carini, "body.model.file");
79 ar_load_subfile(context, model, stream, mname);
80 /* steering wheel */
81 mname = g_hash_table_lookup(carini, "steer.model.file");
82 if(mname != NULL)
83 {
84 printf("D: steering wheel (%s)\n", mname);
85 object = ar_load_subfile(context, model, stream, mname);
86 ar_carini_get_position(carini, "steer", &x, &y, &z);
87 object->transformation = g_new0(G3DTransformation, 1);
88 g3d_matrix_identity(object->transformation->matrix);
89 g3d_matrix_translate(x, y, z, object->transformation->matrix);
90 }
91
92 /* load wheel 0 */
93 mname = g_hash_table_lookup(carini, "wheel0~wheel_front.model.file");
94 if(mname != NULL)
95 {
96 printf("D: loading wheel 0 (%s)\n", mname);
97 object = ar_load_subfile(context, model, stream, mname);
98 x = ar_carini_get_float(carini, "susp0~susp_front.x");
99 y = ar_carini_get_float(carini, "susp_front.y") -
100 ar_carini_get_float(carini, "wheel_front.radius");
101 z = ar_carini_get_float(carini, "susp_front.z");
102 object->transformation = g_new0(G3DTransformation, 1);
103 g3d_matrix_identity(object->transformation->matrix);
104 g3d_matrix_translate(x, y, z, object->transformation->matrix);
105 }
106
107 ar_carini_free(carini);
108 }
109
110 return TRUE;
111}
112
113EAPI
114gchar *plugin_description(void)
115{
116 return g_strdup("Racer models.");
117}
118
119EAPI
120gchar **plugin_extensions(void)
121{
122 return g_strsplit("ar:dof", ":", 0);
123}
124
125/*****************************************************************************/
126
127static GSList *ar_read_directory(G3DStream *stream)
128{
129 ArDirEntry *dirent;
130 GSList *list = NULL;
131 guint32 fsize, dpos;
132 gint32 nbytes;
133 gchar buffer[128];
134
135 g3d_stream_seek(stream, -4, G_SEEK_END);
136 fsize = g3d_stream_tell(stream);
137 dpos = g3d_stream_read_int32_le(stream);
138
139 /* start of directory */
140 g3d_stream_seek(stream, dpos, G_SEEK_SET);
141 nbytes = fsize - dpos;
142#if DEBUG > 0
143 printf("D: AR: directory @ 0x%08x, %d bytes\n", dpos, nbytes);
144#endif
145
146 while(nbytes > 0) {
147 dirent = g_new0(ArDirEntry, 1);
148 list = g_slist_append(list, dirent);
149
150 nbytes -= g3d_stream_read_cstr(stream, buffer, 127);
151 dirent->name = g_strdup(buffer);
152 dirent->offset = g3d_stream_read_int32_le(stream);
153 dirent->size = g3d_stream_read_int32_le(stream);
154 nbytes -= 8;
155
156#if DEBUG > 0
157 printf("D: AR: * %s @ 0x%08x, %d bytes\n",
158 dirent->name, dirent->offset, dirent->size);
159#endif
160 }
161
162 return list;
163}
164
165static G3DObject *ar_load_subfile(G3DContext *context, G3DModel *model,
166 G3DStream *stream, const gchar *subfile)
167{
168 G3DStream *substream;
169 G3DObject *o;
170
171 if(subfile == NULL)
172 return NULL;
173
174 substream = g3d_stream_open_file(subfile, "rb");
175 if(substream == NULL)
176 return NULL;
177
178 o = ar_dof_load(context, model, substream);
179 g3d_stream_close(substream);
180
181 return o;
182}
183
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h
new file mode 100644
index 0000000..8fb2989
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar.h
@@ -0,0 +1,33 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_AR_H
24#define _IMP_AR_H
25
26typedef struct {
27 gchar *name;
28 guint32 offset;
29 guint32 size;
30} ArDirEntry;
31
32#endif /* _IMP_AR_H */
33
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c
new file mode 100644
index 0000000..8ff4b18
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.c
@@ -0,0 +1,247 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#define _ISOC99_SOURCE 1 /* strtof() */
24
25#include <stdio.h>
26#include <stdlib.h>
27#include <string.h>
28#include <glib.h>
29#include <g3d/types.h>
30
31#define CARINI_IN_VAR 1
32#define CARINI_IN_VALUE 2
33#define CARINI_IN_COMMENT 3
34
35static gchar *ar_carini_getpath(GQueue *queue)
36{
37 gchar *tmp, *path = NULL;
38 gint32 i;
39
40 for(i = 0; i < g_queue_get_length(queue); i ++)
41 {
42 if(path == NULL)
43 path = g_strdup((gchar *)g_queue_peek_nth(queue, i));
44 else
45 {
46 tmp = g_strdup_printf("%s.%s",
47 (gchar *)g_queue_peek_nth(queue, i), path);
48 g_free(path);
49 path = tmp;
50 }
51 }
52
53 return path;
54}
55
56GHashTable *ar_carini_load(void)
57{
58 GHashTable *ht;
59 GQueue *q;
60 FILE *f;
61 gchar var[256], *varp; /* section or variable */
62 gchar val[256], *valp; /* value */
63 gchar *tmps, *varname;
64 guint32 in = CARINI_IN_VAR;
65 gint32 c;
66
67 f = fopen("car.ini", "r");
68 if(f == NULL)
69 f = fopen("Car.ini", "r");
70
71 if(f == NULL)
72 {
73 g_error("failed to read 'car.ini'\n");
74 return NULL;
75 }
76
77 ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
78 if(ht == NULL)
79 {
80 fclose(f);
81 g_error("could not create hash table");
82 return NULL;
83 }
84
85 q = g_queue_new();
86
87 valp = val;
88 memset(val, 0, 256);
89 varp = var;
90 memset(var, 0, 256);
91
92 while(!feof(f))
93 {
94 c = fgetc(f);
95 switch(c)
96 {
97 case '\0':
98 case EOF:
99 break;
100
101 case '{':
102 /* push section */
103 g_queue_push_head(q, g_strdup(var));
104
105 in = CARINI_IN_VAR;
106 varp = var;
107 memset(var, 0, 256);
108 break;
109
110 case '}':
111 /* pop section */
112 tmps = (gchar *)g_queue_pop_head(q);
113 g_free(tmps);
114
115 in = CARINI_IN_VAR;
116 varp = var;
117 memset(var, 0, 256);
118 break;
119
120 case ';':
121 in = CARINI_IN_COMMENT;
122 break;
123
124 case '=':
125 if(in == CARINI_IN_VAR)
126 {
127 in = CARINI_IN_VALUE;
128 valp = val;
129 memset(val, 0, 256);
130 }
131 break;
132
133 case '\n':
134 case '\r':
135 if(in == CARINI_IN_VALUE)
136 {
137 tmps = ar_carini_getpath(q);
138 if(tmps)
139 {
140 varname = g_strdup_printf("%s.%s", tmps, var);
141 g_free(tmps);
142 }
143 else
144 varname = g_strdup(var);
145
146 /* update hash table */
147 g_hash_table_insert(ht, varname, g_strdup(val));
148#if DEBUG > 2
149 printf("D: %s = %s\n", varname, val);
150#endif
151
152 in = CARINI_IN_VAR;
153 varp = var;
154 memset(var, 0, 256);
155 }
156 else if(in == CARINI_IN_COMMENT)
157 {
158 in = CARINI_IN_VAR;
159 }
160 break;
161
162 case ' ':
163 case '\t':
164 if(in == CARINI_IN_VALUE)
165 {
166 *valp = c;
167 valp ++;
168 }
169 break;
170
171 default:
172 if(in == CARINI_IN_VALUE)
173 {
174 *valp = c;
175 valp ++;
176 }
177 else if(in == CARINI_IN_VAR)
178 {
179 *varp = c;
180 varp ++;
181 }
182 break;
183 } /* switch(c) */
184 } /* !feof(f) */
185
186 /* clean up */
187 g_queue_free(q);
188
189 return ht;
190}
191
192void ar_carini_free(GHashTable *ht)
193{
194 g_hash_table_destroy(ht);
195}
196
197G3DFloat ar_carini_get_float(GHashTable *ht, gchar *path)
198{
199 gchar *value;
200 G3DFloat valf;
201
202 value = (gchar *)g_hash_table_lookup(ht, path);
203 if(value == NULL)
204 return 0.0;
205
206 valf = strtof(value, NULL);
207 return valf;
208}
209
210gboolean ar_carini_get_position(GHashTable *ht, gchar *prefix,
211 G3DFloat *x, G3DFloat *y, G3DFloat *z)
212{
213 gchar *path, *value;
214
215 /* x */
216 path = g_strdup_printf("%s.x", prefix);
217 value = (gchar *)g_hash_table_lookup(ht, path);
218 if(value)
219 *x = strtof(value, NULL);
220 else
221 *x = 0.0;
222 g_free(path);
223
224 /* y */
225 path = g_strdup_printf("%s.y", prefix);
226 value = (gchar *)g_hash_table_lookup(ht, path);
227 if(value)
228 *y = strtof(value, NULL);
229 else
230 *y = 0.0;
231 g_free(path);
232
233 /* z */
234 path = g_strdup_printf("%s.z", prefix);
235 value = (gchar *)g_hash_table_lookup(ht, path);
236 if(value)
237 *z = strtof(value, NULL);
238 else
239 *z = 0.0;
240 g_free(path);
241
242#if DEBUG > 0
243 printf("D: position for '%s': %.2f, %.2f, %.2f\n", prefix, *x, *y, *z);
244#endif
245
246 return TRUE;
247}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h
new file mode 100644
index 0000000..3c8b972
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_carini.h
@@ -0,0 +1,35 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_AR_CARINI_H
24#define _IMP_AR_CARINI_H
25
26#include <glib.h>
27
28GHashTable *ar_carini_load(void);
29void ar_carini_free(GHashTable *ht);
30G3DFloat ar_carini_get_float(GHashTable *ht, gchar *path);
31gboolean ar_carini_get_position(GHashTable *ht, gchar *prefix,
32 G3DFloat *x, G3DFloat *y, G3DFloat *z);
33
34#endif /* _IMP_AR_CARINI_H */
35
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c
new file mode 100644
index 0000000..90703f4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.c
@@ -0,0 +1,161 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <glib.h>
26#include <g3d/stream.h>
27
28#include "imp_ar.h"
29
30#define AR_FLAG_COPIED 0x80
31#define AR_FLAG_COMPRESS 0x40
32
33guint8 *ar_decompress_chunk(guint8 *src, guint16 srcsize, guint16 *dstsize)
34{
35 guint8 *dst = NULL, bit = 16;
36 gint32 i, j = 0, k, pos, size;
37 guint16 cmd;
38
39#if DEBUG > 2
40 printf("D: decompressing %d bytes chunk\n", srcsize);
41#endif
42
43 if(src[0] == AR_FLAG_COPIED)
44 {
45 *dstsize = srcsize - 1;
46 dst = g_new0(guint8, *dstsize);
47 memcpy(dst, src + 1, *dstsize);
48 return dst;
49 }
50
51 *dstsize = 0;
52 cmd = (src[1] << 8) + src[2];
53 for(i = 3; i < srcsize;)
54 {
55 if(bit == 0)
56 {
57 /* get new command */
58 cmd = (src[i] << 8) + src[i + 1];
59 i += 2;
60 bit = 16;
61 }
62
63 if(cmd & 0x8000)
64 {
65 pos = (src[i] << 4) + (src[i + 1] >> 4);
66 i ++;
67 if(pos != 0)
68 {
69 /* copy known chunk */
70 size = (src[i] & 0xF) + 3;
71 *dstsize += size;
72 dst = g_realloc(dst, *dstsize);
73 i ++;
74 for(k = 0; k < size; k ++)
75 dst[j + k] = dst[j - pos + k];
76 j += size;
77 }
78 else
79 {
80 /* RLE style... */
81 size = (src[i] << 8) + src[i + 1] + 16;
82 *dstsize += size;
83 dst = g_realloc(dst, *dstsize);
84 i += 2;
85 for(k = 0; k < size; k ++)
86 dst[j + k] = src[i];
87 i ++;
88 j += size;
89 }
90 }
91 else
92 {
93 /* plain copy */
94 *dstsize += 1;
95 dst = g_realloc(dst, *dstsize);
96 dst[j] = src[i];
97 i ++;
98 j ++;
99 }
100
101 cmd <<= 1;
102 bit --;
103 }
104
105 return dst;
106}
107
108gboolean ar_decompress_to_file(G3DStream *stream, ArDirEntry *dirent)
109{
110 FILE *o;
111 gchar cmd;
112 guint32 size;
113 guint16 srcsize, dstsize;
114 guint8 *src, *dst;
115
116 o = fopen(dirent->name, "wb");
117 if(o == NULL) {
118 g_warning("failed to write to '%s'", dirent->name);
119 return FALSE;
120 }
121
122 /* seek to file start */
123 g3d_stream_seek(stream, dirent->offset, G_SEEK_SET);
124
125 /* skip tags */
126 do {
127 cmd = g3d_stream_read_int8(stream);
128 if(cmd != 'D') {
129 size = g3d_stream_read_int32_le(stream);
130 g3d_stream_skip(stream, size);
131 }
132 } while(cmd != 'D');
133
134#if DEBUG > 2
135 printf("D: starting decompression part\n");
136#endif
137
138 /* decompress stuff */
139 while(1) {
140 srcsize = g3d_stream_read_int16_le(stream);
141 if(srcsize == 0)
142 break;
143
144 src = g_new0(guint8, srcsize);
145 g3d_stream_read(stream, src, srcsize);
146 dst = ar_decompress_chunk(src, srcsize, &dstsize);
147
148 if(dstsize > 0) {
149 fwrite(dst, 1, dstsize, o);
150 g_free(dst);
151 }
152
153 g_free(src);
154 }
155
156 fclose(o);
157
158 return TRUE;
159}
160
161
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h
new file mode 100644
index 0000000..ad203a3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_decompress.h
@@ -0,0 +1,30 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_AR_DECOMPRESS_H
24#define _IMP_AR_DECOMPRESS_H
25
26#include <g3d/stream.h>
27
28gboolean ar_decompress_to_file(G3DStream *stream, ArDirEntry *dirent);
29
30#endif /* _IMP_AR_DECOMPRESS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c
new file mode 100644
index 0000000..6b2eff6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.c
@@ -0,0 +1,446 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/types.h>
24#include <g3d/stream.h>
25#include <g3d/texture.h>
26#include <g3d/material.h>
27#include <g3d/iff.h>
28
29gchar *ar_dof_read_string(G3DStream *stream, gint32 *dlen)
30{
31 gint32 len;
32 gchar *text;
33
34 len = g3d_stream_read_int16_le(stream);
35 *dlen -= 2;
36
37 text = g_new0(gchar, len + 1);
38 g3d_stream_read(stream, text, len);
39 *dlen -= len;
40
41 return text;
42}
43
44G3DMaterial *ar_dof_load_mat(G3DContext *context, G3DModel *model,
45 G3DStream *stream)
46{
47 G3DMaterial *material;
48 gint32 id, len = 0, dlen, i, ntex, trans = 0, blend = 0;
49 gchar *tmp;
50
51 id = g3d_stream_read_int32_be(stream);
52 if(id != G3D_IFF_MKID('M','A','T','0'))
53 return NULL;
54
55 material = g3d_material_new();
56
57 dlen = g3d_stream_read_int32_le(stream);
58 do {
59 id = g3d_stream_read_int32_be(stream);
60 if(id != G3D_IFF_MKID('M','E','N','D'))
61 len = g3d_stream_read_int32_le(stream);
62
63 switch(id) {
64 case G3D_IFF_MKID('M','E','N','D'):
65 break;
66
67 case G3D_IFF_MKID('M','H','D','R'):
68 material->name = ar_dof_read_string(stream, &dlen);
69 tmp = ar_dof_read_string(stream, &dlen);
70 g_free(tmp);
71 break;
72
73 case G3D_IFF_MKID('M','C','O','L'):
74 /* ambient */
75 material->r = g3d_stream_read_float_le(stream);
76 material->g = g3d_stream_read_float_le(stream);
77 material->b = g3d_stream_read_float_le(stream);
78 material->a = g3d_stream_read_float_le(stream);
79 dlen -= 16;
80 /* diffuse */
81 g3d_stream_skip(stream, 16);
82 dlen -= 16;
83 /* specular */
84 material->specular[0] = g3d_stream_read_float_le(stream);
85 material->specular[1] = g3d_stream_read_float_le(stream);
86 material->specular[2] = g3d_stream_read_float_le(stream);
87 material->specular[3] = g3d_stream_read_float_le(stream);
88 dlen -= 16;
89 /* emission */
90 g3d_stream_skip(stream, 16);
91 dlen -= 16;
92 /* shininess */
93 material->shininess = g3d_stream_read_float_le(stream);
94 dlen -= 4;
95 break;
96
97 case G3D_IFF_MKID('M','T','E','X'):
98 ntex = g3d_stream_read_int32_le(stream);
99 dlen -= 4;
100 for(i = 0; i < ntex; i ++) {
101 tmp = ar_dof_read_string(stream, &dlen);
102 if(i == 0) {
103 material->tex_image =
104 g3d_texture_load_cached(context, model, tmp);
105 if(material->tex_image)
106 material->tex_image->tex_id = g_str_hash(tmp);
107 }
108 g_free(tmp);
109 }
110 break;
111
112 case G3D_IFF_MKID('M','T','R','A'):
113 /* transparency */
114 trans = g3d_stream_read_int32_le(stream);
115 /* blend mode */
116 blend = g3d_stream_read_int32_le(stream);
117
118 printf("D: MTRA: %s: trans: 0x%04x, blend: 0x%04x\n",
119 (material->name ? material->name : "unnamed"),
120 trans, blend);
121
122 dlen -= 8;
123 break;
124
125 case G3D_IFF_MKID('M','C','F','L'):
126 /* creation flags */
127 g3d_stream_read_int32_le(stream);
128 dlen -= 4;
129 break;
130
131 case G3D_IFF_MKID('M','U','V','W'):
132 /* u offset */
133 g3d_stream_read_int32_le(stream);
134 /* v offset */
135 g3d_stream_read_int32_le(stream);
136 dlen -= 8;
137
138 /* u tiling */
139 g3d_stream_read_int32_le(stream);
140 /* v tiling */
141 g3d_stream_read_int32_le(stream);
142 dlen -= 8;
143
144 /* angle */
145 g3d_stream_read_float_le(stream);
146 /* blur */
147 g3d_stream_read_float_le(stream);
148 /* blur offset */
149 g3d_stream_read_int32_le(stream);
150 dlen -= 12;
151 break;
152
153 default:
154 g3d_stream_skip(stream, len);
155 dlen -= len;
156 break;
157 }
158 }
159 while((dlen > 0) && (id != G3D_IFF_MKID('M','E','N','D')));
160
161 if(material->tex_image != NULL) {
162 if(blend == 1)
163 material->tex_image->tex_env = G3D_TEXENV_BLEND;
164 else
165 material->tex_image->tex_env = G3D_TEXENV_DECAL;
166 }
167
168 return material;
169}
170
171G3DObject *ar_dof_load_obj(G3DContext *context, G3DModel *model,
172 G3DStream *stream)
173{
174 G3DObject *object, *pobj;
175 G3DFace *face;
176 G3DMaterial *material;
177 GSList *item;
178 gint32 id, len = 0, dlen, nverts, ntver, nnorm, nind, i, j, index;
179 G3DFloat *tex_vertices = NULL, *normals = NULL;
180
181 id = g3d_stream_read_int32_be(stream);
182 dlen = g3d_stream_read_int32_le(stream);
183
184 if(id != G3D_IFF_MKID('G','O','B','1')) {
185 g3d_stream_skip(stream, dlen);
186 return NULL;
187 }
188
189 object = g_new0(G3DObject, 1);
190 object->name = g_strdup_printf("object @ 0x%08x",
191 (guint32)g3d_stream_tell(stream));
192
193 /* parent object for material references */
194 pobj = (G3DObject *)g_slist_nth_data(model->objects, 0);
195
196 /* default material */
197 material = (G3DMaterial *)g_slist_nth_data(model->materials, 0);
198
199 do {
200 id = g3d_stream_read_int32_be(stream);
201 if(id != G3D_IFF_MKID('G','E','N','D'))
202 len = g3d_stream_read_int32_le(stream);
203
204 switch(id) {
205 case G3D_IFF_MKID('G','E','N','D'):
206 /* end of object */
207 break;
208
209 case G3D_IFF_MKID('G','H','D','R'):
210 /* object header */
211 /* flags */
212 i = g3d_stream_read_int32_le(stream);
213 printf("D: GHDR: flags = 0x%04X\n", i);
214 /* paint flags */
215 i = g3d_stream_read_int32_le(stream);
216 printf("D: GHDR: paint flags = 0x%04X\n", i);
217
218 /* material ref */
219 i = g3d_stream_read_int32_le(stream);
220 material = g_slist_nth_data(pobj->materials, i);
221 if(material == NULL)
222 material = (G3DMaterial *)g_slist_nth_data(
223 model->materials, 0);
224
225 dlen -= 12;
226 break;
227
228 case G3D_IFF_MKID('V','E','R','T'):
229 /* vertices */
230 nverts = g3d_stream_read_int32_le(stream);
231
232#if DEBUG > 2
233 printf("D: %d vertices\n", nverts);
234#endif
235
236 dlen -= 4;
237 if(nverts > 0) {
238 object->vertex_count = nverts;
239 object->vertex_data = g_new0(G3DFloat, nverts * 3);
240 for(i = 0; i < nverts; i ++) {
241 for(j = 0; j < 3; j ++)
242 object->vertex_data[i * 3 + j] =
243 g3d_stream_read_float_le(stream);
244 dlen -= 12;
245 }
246 }
247 break;
248
249 case G3D_IFF_MKID('N', 'O','R','M'):
250 /* normals */
251 nnorm = g3d_stream_read_int32_le(stream);
252 normals = g_new0(G3DFloat, nnorm * 3);
253 dlen -= 4;
254 for(i = 0; i < nnorm; i ++) {
255 for(j = 0; j < 3; j ++)
256 normals[i * 3 + j] = g3d_stream_read_float_le(stream);
257 dlen -= 12;
258 }
259 break;
260
261 case G3D_IFF_MKID('T', 'V','E','R'):
262 /* texture vertices */
263 ntver = g3d_stream_read_int32_le(stream);
264 tex_vertices = g_new0(G3DFloat, ntver * 2);
265 dlen -= 4;
266
267#if DEBUG > 2
268 printf("D: %d texture vertices @ 0x%08x\n", ntver,
269 (guint32)g3d_stream_tell(stream) - 12);
270#endif
271
272 for(i = 0; (i < ntver) && (len > 0); i ++) {
273 tex_vertices[i * 2 + 0] = g3d_stream_read_float_le(stream);
274 tex_vertices[i * 2 + 1] =
275 1.0 - g3d_stream_read_float_le(stream);
276 dlen -= 8;
277 }
278 break;
279
280 case G3D_IFF_MKID('B','R','S','T'):
281 /* bursts */
282 i = g3d_stream_read_int32_le(stream);
283 dlen -= 4;
284 g3d_stream_skip(stream, i * 4); /* burstStart */
285 g3d_stream_skip(stream, i * 4); /* burstCount */
286 g3d_stream_skip(stream, i * 4); /* burstMtlID */
287 g3d_stream_skip(stream, i * 4); /* burstVperP */
288 dlen -= (4 * 4 * i);
289 break;
290
291 case G3D_IFF_MKID('V','C','O','L'):
292 /* vertex colors */
293 i = g3d_stream_read_int32_le(stream);
294 dlen -= 4;
295 g3d_stream_skip(stream, i * 4 * 3);
296 dlen -= (i * 4 * 3);
297 break;
298
299 case G3D_IFF_MKID('I','N','D','I'):
300 /* indices */
301 nind = g3d_stream_read_int32_le(stream);
302 dlen -= 4;
303 len -= 4;
304
305#if DEBUG > 2
306 printf("D: %d indices in %d bytes\n", nind, len);
307#endif
308
309 for(i = 0; i < nind; i += 3) {
310 face = g_new0(G3DFace, 1);
311 face->material = material;
312 face->vertex_count = 3;
313 face->vertex_indices = g_new0(guint32, 3);
314
315 for(j = 0; j < 3; j ++)
316 face->vertex_indices[j] =
317 g3d_stream_read_int16_le(stream);
318 dlen -= 6;
319 len -= 6;
320
321 object->faces = g_slist_append(object->faces, face);
322 }
323 break;
324
325 default:
326#if DEBUG > 0
327 printf("D: skipping tag '%c%c%c%c @ 0x%08x'\n",
328 (id << 24) & 0xFF, (id << 16) & 0xFF,
329 (id << 8) & 0xFF, id & 0xFF,
330 (guint32)g3d_stream_tell(stream));
331#endif
332 g3d_stream_skip(stream, len);
333 dlen -= len;
334 break;
335 }
336 } while((dlen > 0) && (id != G3D_IFF_MKID('G','E','N','D')));
337
338 /* fix faces with normals and texture vertices */
339 for(item = object->faces; item != NULL; item = item->next) {
340 face = (G3DFace *)item->data;
341
342 if(tex_vertices != NULL) {
343 face->tex_image = material->tex_image;
344 face->tex_vertex_count = 3;
345 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
346 for(j = 0; j < 3; j ++) {
347 index = face->vertex_indices[j];
348 face->tex_vertex_data[j * 2 + 0] = tex_vertices[index * 2 + 0];
349 face->tex_vertex_data[j * 2 + 1] = tex_vertices[index * 2 + 1];
350 }
351 if(face->tex_image != NULL)
352 face->flags |= G3D_FLAG_FAC_TEXMAP;
353 }
354
355 if(normals != NULL) {
356 face->normals = g_new0(G3DFloat, 3 * 3);
357 for(j = 0; j < 3; j ++) {
358 index = face->vertex_indices[j];
359 face->normals[j * 3 + 0] = normals[index * 3 + 0];
360 face->normals[j * 3 + 1] = normals[index * 3 + 1];
361 face->normals[j * 3 + 2] = normals[index * 3 + 2];
362 }
363 face->flags |= G3D_FLAG_FAC_NORMALS;
364 }
365 }
366
367 /* cleanup */
368 if(tex_vertices != NULL)
369 g_free(tex_vertices);
370
371 if(normals != NULL)
372 g_free(normals);
373
374 return object;
375}
376
377G3DObject *ar_dof_load(G3DContext *context, G3DModel *model,
378 G3DStream *stream)
379{
380 gint32 id, dlen, len = 0, nmat, nobj, i;
381 G3DObject *object, *cobj;
382 G3DMaterial *material;
383
384 /* file is little-endian, but read IDs as big-endian to use
385 * G3D_IFF_MKID to compare */
386
387 id = g3d_stream_read_int32_be(stream);
388 if(id != G3D_IFF_MKID('D','O','F','1')) {
389 g_warning("%s is not a DOF1 file\n", stream->uri);
390 return NULL;
391 }
392 dlen = g3d_stream_read_int32_le(stream);
393
394 object = g_new0(G3DObject, 1);
395 object->name = g_strdup(stream->uri);
396 model->objects = g_slist_append(model->objects, object);
397
398 do {
399 id = g3d_stream_read_int32_be(stream);
400 if(id != G3D_IFF_MKID('E','D','O','F'))
401 len = g3d_stream_read_int32_le(stream);
402 dlen -= 8;
403
404 switch(id) {
405 case G3D_IFF_MKID('E','D','O','F'):
406 /* end of DOF */
407 break;
408
409 case G3D_IFF_MKID('M','A','T','S'):
410 nmat = g3d_stream_read_int32_le(stream);
411 for(i = 0; i < nmat; i ++) {
412 material = ar_dof_load_mat(context, model, stream);
413 if(material)
414 object->materials = g_slist_append(object->materials,
415 material);
416 }
417 dlen -= len;
418 break;
419
420 case G3D_IFF_MKID('G','E','O','B'):
421 nobj = g3d_stream_read_int32_le(stream);
422 for(i = 0; i < nobj; i ++) {
423 cobj = ar_dof_load_obj(context, model, stream);
424 if(cobj)
425 object->objects =
426 g_slist_append(object->objects, cobj);
427 }
428 dlen -= len;
429 break;
430
431 default:
432 g_warning("DOF: unknown ID '%c%c%c%c' @ 0x%08x",
433 (id >> 24) & 0xFF, (id >> 16) & 0xFF,
434 (id >> 8) & 0xFF, id & 0xFF,
435 (guint32)g3d_stream_tell(stream) - 8);
436 g3d_stream_skip(stream, len);
437 dlen -= len;
438 break;
439 }
440 } while((dlen > 0) &&
441 (id != G3D_IFF_MKID('E','D','O','F')) &&
442 (!g3d_stream_eof(stream)));
443
444 return object;
445}
446
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h
new file mode 100644
index 0000000..c3aa61a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ar/imp_ar_dof.h
@@ -0,0 +1,33 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_AR_DOF_H
24#define _IMP_AR_DOF_H
25
26#include <glib.h>
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30G3DObject *ar_dof_load(G3DContext *context, G3DModel *model,
31 G3DStream *stream);
32
33#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile
new file mode 100644
index 0000000..6f862f9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ase/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_ase
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_ase_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ase_la_OBJECTS = imp_ase.lo
59imp_ase_la_OBJECTS = $(am_imp_ase_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ase_la_SOURCES)
73DIST_SOURCES = $(imp_ase_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ase.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_ase_la_SOURCES = imp_ase.c
229imp_ase_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ase.la: $(imp_ase_la_OBJECTS) $(imp_ase_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ase_la_OBJECTS) $(imp_ase_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_ase.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.am
new file mode 100644
index 0000000..867c6d3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_ase.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_ase_la_SOURCES = imp_ase.c
20imp_ase_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.in
new file mode 100644
index 0000000..45a4ccb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_ase
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_ase_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ase_la_OBJECTS = imp_ase.lo
59imp_ase_la_OBJECTS = $(am_imp_ase_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_ase_la_SOURCES)
73DIST_SOURCES = $(imp_ase_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_ase.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_ase_la_SOURCES = imp_ase.c
229imp_ase_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_ase/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_ase.la: $(imp_ase_la_OBJECTS) $(imp_ase_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_ase_la_OBJECTS) $(imp_ase_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ase.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c
new file mode 100644
index 0000000..ed2904a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ase/imp_ase.c
@@ -0,0 +1,257 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <locale.h>
27
28#include <g3d/types.h>
29#include <g3d/context.h>
30#include <g3d/stream.h>
31#include <g3d/material.h>
32#include <g3d/texture.h>
33#include <g3d/model.h>
34#include <g3d/matrix.h>
35
36EAPI
37gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
38 G3DModel *model)
39{
40 gchar line[2048], tmp[128], *s;
41 guint32 i, j, a, b, c, ab, bc, ca, mtlid, glid = 0, tvertcnt = 0, lnum = 0;
42 G3DVector x, y, z, *tverts = NULL;
43 G3DObject *object = NULL;
44 G3DMaterial *material;
45 G3DFace *face = NULL;
46 G3DMatrix rmatrix[16];
47
48 setlocale(LC_NUMERIC, "C");
49
50 while(g3d_stream_read_line(stream, line, 2048)) {
51 lnum ++;
52 g_strstrip(line);
53
54#if DEBUG > 4
55 g_debug("ASE: %s", line);
56#endif
57
58 if(strncmp(line, "*GEOMOBJECT ", 12) == 0)
59 {
60 object = g_new0(G3DObject, 1);
61 object->name = g_strdup("(unnamed object)");
62
63 model->objects = g_slist_append(model->objects, object);
64 }
65 else if(strncmp(line, "*MATERIAL ", 10) == 0)
66 {
67 material = g3d_material_new();
68 material->name = g_strdup_printf("material %d",
69 g_slist_length(model->materials));
70 model->materials = g_slist_append(model->materials, material);
71
72 if(sscanf(line, "*MATERIAL %u \"%s", &i, tmp) == 2)
73 {
74 tmp[strlen(tmp) - 1] = '\0';
75#if DEBUG > 2
76 g_debug("ASE: material file: %s", tmp);
77#endif
78 /* TODO: parse .fx file */
79 s = g_strdup_printf("%.*s.jpg", ((int) strlen(tmp)) - 3, tmp);
80 material->tex_image =
81 g3d_texture_load_cached(context, model, s);
82 if(material->tex_image)
83 material->tex_image->tex_id = ++ glid;
84 g_free(s);
85 }
86 }
87 else if(strncmp(line, "*NODE_NAME ", 11) == 0)
88 {
89 if(object)
90 {
91 if(object->name)
92 g_free(object->name);
93
94 object->name = g_strdup(line + 11);
95 }
96 }
97 else if(strncmp(line, "*MESH_NUMVERTEX ", 16) == 0)
98 {
99 if(sscanf(line, "*MESH_NUMVERTEX %u", &i) == 1)
100 {
101 if(object)
102 {
103 object->vertex_count = i;
104 object->vertex_data = g_new0(G3DFloat, i * 3);
105 }
106 }
107 }
108 else if(strncmp(line, "*MESH_VERTEX ", 13) == 0)
109 {
110 if(sscanf(line, "*MESH_VERTEX %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i, &x, &y, &z) == 4)
111 {
112 if(object && (i < object->vertex_count))
113 {
114 object->vertex_data[i * 3 + 0] = x;
115 object->vertex_data[i * 3 + 1] = y;
116 object->vertex_data[i * 3 + 2] = z;
117 }
118 }
119 }
120 else if(strncmp(line, "*MESH_FACE ", 11) == 0)
121 {
122 if(object && (sscanf(line, "*MESH_FACE %u: A: %u B: %u C: %u "
123 "AB: %u BC: %u CA: %u *MESH_SMOOTHING %s *MESH_MTLID %u",
124 &i, &a, &b, &c, &ab, &bc, &ca, tmp, &mtlid) == 9))
125 {
126 face = g_new0(G3DFace, 1);
127 face->vertex_count = 3;
128 face->vertex_indices = g_new0(guint32, 3);
129 face->vertex_indices[0] = a;
130 face->vertex_indices[1] = b;
131 face->vertex_indices[2] = c;
132 face->material = g_slist_nth_data(model->materials, mtlid);
133 if(face->material == NULL)
134 face->material = g_slist_nth_data(model->materials, 0);
135 if(face->material == NULL) {
136 face->material = g3d_material_new();
137 face->material->name = g_strdup("(fallback material)");
138 model->materials = g_slist_append(model->materials,
139 face->material);
140 }
141
142 object->faces = g_slist_append(object->faces, face);
143 face = NULL;
144 }
145 }
146 else if(strncmp(line, "*MESH_FACENORMAL ", 17) == 0)
147 {
148 if(object && (sscanf(line, "*MESH_FACENORMAL %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
149 &i, &x, &y, &z) == 4))
150 {
151 face = g_slist_nth_data(object->faces, i);
152 if(face)
153 {
154 face->flags |= G3D_FLAG_FAC_NORMALS;
155 face->normals = g_new0(G3DFloat, 3 * 3);
156 for(j = 0; j < 3; j ++)
157 {
158 face->normals[j * 3 + 0] = x;
159 face->normals[j * 3 + 1] = y;
160 face->normals[j * 3 + 2] = z;
161 }
162 }
163 }
164 }
165 else if(strncmp(line, "*MESH_VERTEXNORMAL ", 19) == 0)
166 {
167 if(face && face->normals && (sscanf(line,
168 "*MESH_VERTEXNORMAL %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i, &x, &y, &z) == 4))
169 {
170 for(j = 0; j < 3; j ++)
171 {
172 if(face->vertex_indices[j] == i)
173 {
174 face->normals[j * 3 + 0] = x;
175 face->normals[j * 3 + 1] = y;
176 face->normals[j * 3 + 2] = z;
177 }
178 }
179 }
180 }
181 else if(strncmp(line, "*MESH_NUMTVERTEX ", 17) == 0)
182 {
183 /* clear old tvertex data */
184 if(tverts)
185 {
186 g_free(tverts);
187 tvertcnt = 0;
188 }
189
190 if(sscanf(line, "*MESH_NUMTVERTEX %u", &tvertcnt) == 1)
191 tverts = g_new0(G3DFloat, tvertcnt * 2);
192 }
193 else if(strncmp(line, "*MESH_TVERT ", 12) == 0)
194 {
195 if(sscanf(line, "*MESH_TVERT %u " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &i, &x, &y, &z) == 4)
196 {
197 if(i < tvertcnt)
198 {
199 tverts[i * 2 + 0] = x;
200 tverts[i * 2 + 1] = y;
201 }
202 }
203 }
204 else if(strncmp(line, "*MESH_TFACE ", 12) == 0)
205 {
206 if(object && (sscanf(line, "*MESH_TFACE %u %u %u %u",
207 &i, &a, &b, &c) == 4))
208 {
209 face = g_slist_nth_data(object->faces, i);
210 if(face && face->material->tex_image &&
211 (a < tvertcnt) && (b < tvertcnt) && (c < tvertcnt))
212 {
213 face->flags |= G3D_FLAG_FAC_TEXMAP;
214 face->tex_image = face->material->tex_image;
215 face->tex_vertex_count = 3;
216 face->tex_vertex_data = g_new0(G3DFloat, 2 * 3);
217 face->tex_vertex_data[0 * 2 + 0] = tverts[a * 2 + 0];
218 face->tex_vertex_data[0 * 2 + 1] = 1.0 - tverts[a * 2 + 1];
219 face->tex_vertex_data[1 * 2 + 0] = tverts[b * 2 + 0];
220 face->tex_vertex_data[1 * 2 + 1] = 1.0 - tverts[b * 2 + 1];
221 face->tex_vertex_data[2 * 2 + 0] = tverts[c * 2 + 0];
222 face->tex_vertex_data[2 * 2 + 1] = 1.0 - tverts[c * 2 + 1];
223 }
224 }
225 }
226 if((lnum % 10) == 0)
227 g3d_context_update_progress_bar(context,
228 (G3DFloat)g3d_stream_tell(stream) /
229 (G3DFloat)g3d_stream_size(stream), TRUE);
230 } /* read line */
231
232 /* clean up */
233 if(tverts) {
234 g_free(tverts);
235 tvertcnt = 0;
236 }
237 g3d_context_update_progress_bar(context, 0.0, FALSE);
238
239 g3d_matrix_identity(rmatrix);
240 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
241 g3d_model_transform(model, rmatrix);
242
243 return TRUE;
244}
245
246EAPI
247gchar *plugin_description(void)
248{
249 return g_strdup("ASCII Scene Exporter models.");
250}
251
252EAPI
253gchar **plugin_extensions(void)
254{
255 return g_strsplit("ase", ":", 0);
256}
257
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile
new file mode 100644
index 0000000..a07f936
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile
@@ -0,0 +1,519 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_blend/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_blend
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_blend_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_blend_la_OBJECTS = imp_blend.lo imp_blend_sdna.lo \
59 imp_blend_read.lo imp_blend_callbacks.lo
60imp_blend_la_OBJECTS = $(am_imp_blend_la_OBJECTS)
61#am_imp_blend_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_blend_la_SOURCES)
75DIST_SOURCES = $(imp_blend_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_blend
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend
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_blend.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_blend_la_SOURCES = imp_blend.c imp_blend_def.h \
231 imp_blend_types.h imp_blend_chunks.h \
232 imp_blend_sdna.c imp_blend_sdna.h \
233 imp_blend_read.c imp_blend_read.h \
234 imp_blend_callbacks.h imp_blend_callbacks.c
235
236imp_blend_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_blend/Makefile'; \
251 cd $(top_srcdir) && \
252 $(AUTOMAKE) --gnu plugins/import/imp_blend/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_blend.la: $(imp_blend_la_OBJECTS) $(imp_blend_la_DEPENDENCIES)
298 $(LINK) $(am_imp_blend_la_rpath) $(imp_blend_la_OBJECTS) $(imp_blend_la_LIBADD) $(LIBS)
299
300mostlyclean-compile:
301 -rm -f *.$(OBJEXT)
302
303distclean-compile:
304 -rm -f *.tab.c
305
306include ./$(DEPDIR)/imp_blend.Plo
307include ./$(DEPDIR)/imp_blend_callbacks.Plo
308include ./$(DEPDIR)/imp_blend_read.Plo
309include ./$(DEPDIR)/imp_blend_sdna.Plo
310
311.c.o:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c $<
317
318.c.obj:
319 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321# source='$<' object='$@' libtool=no \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(COMPILE) -c `$(CYGPATH_W) '$<'`
324
325.c.lo:
326 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
328# source='$<' object='$@' libtool=yes \
329# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
330# $(LTCOMPILE) -c -o $@ $<
331
332mostlyclean-libtool:
333 -rm -f *.lo
334
335clean-libtool:
336 -rm -rf .libs _libs
337
338ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
339 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
340 unique=`for i in $$list; do \
341 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
342 done | \
343 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
344 END { if (nonempty) { for (i in files) print i; }; }'`; \
345 mkid -fID $$unique
346tags: TAGS
347
348TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
349 $(TAGS_FILES) $(LISP)
350 tags=; \
351 here=`pwd`; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363ctags: CTAGS
364CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368 unique=`for i in $$list; do \
369 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370 done | \
371 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372 END { if (nonempty) { for (i in files) print i; }; }'`; \
373 test -z "$(CTAGS_ARGS)$$tags$$unique" \
374 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375 $$tags $$unique
376
377GTAGS:
378 here=`$(am__cd) $(top_builddir) && pwd` \
379 && cd $(top_srcdir) \
380 && gtags -i $(GTAGS_ARGS) $$here
381
382distclean-tags:
383 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384
385distdir: $(DISTFILES)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388 list='$(DISTFILES)'; \
389 dist_files=`for file in $$list; do echo $$file; done | \
390 sed -e "s|^$$srcdirstrip/||;t" \
391 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
392 case $$dist_files in \
393 */*) $(MKDIR_P) `echo "$$dist_files" | \
394 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
395 sort -u` ;; \
396 esac; \
397 for file in $$dist_files; do \
398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
399 if test -d $$d/$$file; then \
400 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
403 fi; \
404 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
405 else \
406 test -f $(distdir)/$$file \
407 || cp -p $$d/$$file $(distdir)/$$file \
408 || exit 1; \
409 fi; \
410 done
411check-am: all-am
412check: check-am
413all-am: Makefile $(LTLIBRARIES)
414installdirs:
415 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
416 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
417 done
418install: install-am
419install-exec: install-exec-am
420install-data: install-data-am
421uninstall: uninstall-am
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-am
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-am
443
444clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
445 mostlyclean-am
446
447distclean: distclean-am
448 -rm -rf ./$(DEPDIR)
449 -rm -f Makefile
450distclean-am: clean-am distclean-compile distclean-generic \
451 distclean-tags
452
453dvi: dvi-am
454
455dvi-am:
456
457html: html-am
458
459info: info-am
460
461info-am:
462
463install-data-am: install-pluginimpLTLIBRARIES
464
465install-dvi: install-dvi-am
466
467install-exec-am:
468
469install-html: install-html-am
470
471install-info: install-info-am
472
473install-man:
474
475install-pdf: install-pdf-am
476
477install-ps: install-ps-am
478
479installcheck-am:
480
481maintainer-clean: maintainer-clean-am
482 -rm -rf ./$(DEPDIR)
483 -rm -f Makefile
484maintainer-clean-am: distclean-am maintainer-clean-generic
485
486mostlyclean: mostlyclean-am
487
488mostlyclean-am: mostlyclean-compile mostlyclean-generic \
489 mostlyclean-libtool
490
491pdf: pdf-am
492
493pdf-am:
494
495ps: ps-am
496
497ps-am:
498
499uninstall-am: uninstall-pluginimpLTLIBRARIES
500
501.MAKE: install-am install-strip
502
503.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
504 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
505 distclean-compile distclean-generic distclean-libtool \
506 distclean-tags distdir dvi dvi-am html html-am info info-am \
507 install install-am install-data install-data-am install-dvi \
508 install-dvi-am install-exec install-exec-am install-html \
509 install-html-am install-info install-info-am install-man \
510 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
511 install-ps install-ps-am install-strip installcheck \
512 installcheck-am installdirs maintainer-clean \
513 maintainer-clean-generic mostlyclean mostlyclean-compile \
514 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
515 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
516
517# Tell versions [3.59,3.63) of GNU make to not export all variables.
518# Otherwise a system limit (for SysV at least) may be exceeded.
519.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.am
new file mode 100644
index 0000000..7cc9cf5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_blend.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_blend_la_SOURCES = imp_blend.c imp_blend_def.h \
22 imp_blend_types.h imp_blend_chunks.h \
23 imp_blend_sdna.c imp_blend_sdna.h \
24 imp_blend_read.c imp_blend_read.h \
25 imp_blend_callbacks.h imp_blend_callbacks.c
26imp_blend_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.in
new file mode 100644
index 0000000..00b28ba
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/Makefile.in
@@ -0,0 +1,519 @@
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_blend
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_blend_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_blend_la_OBJECTS = imp_blend.lo imp_blend_sdna.lo \
59 imp_blend_read.lo imp_blend_callbacks.lo
60imp_blend_la_OBJECTS = $(am_imp_blend_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_blend_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_blend_la_SOURCES)
75DIST_SOURCES = $(imp_blend_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_blend.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_blend_la_SOURCES = imp_blend.c imp_blend_def.h \
231 imp_blend_types.h imp_blend_chunks.h \
232 imp_blend_sdna.c imp_blend_sdna.h \
233 imp_blend_read.c imp_blend_read.h \
234 imp_blend_callbacks.h imp_blend_callbacks.c
235
236imp_blend_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_blend/Makefile'; \
251 cd $(top_srcdir) && \
252 $(AUTOMAKE) --gnu plugins/import/imp_blend/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_blend.la: $(imp_blend_la_OBJECTS) $(imp_blend_la_DEPENDENCIES)
298 $(LINK) $(am_imp_blend_la_rpath) $(imp_blend_la_OBJECTS) $(imp_blend_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_blend.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend_callbacks.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend_read.Plo@am__quote@
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_blend_sdna.Plo@am__quote@
310
311.c.o:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c $<
317
318.c.obj:
319@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
324
325.c.lo:
326@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
328@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
329@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
330@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
331
332mostlyclean-libtool:
333 -rm -f *.lo
334
335clean-libtool:
336 -rm -rf .libs _libs
337
338ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
339 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
340 unique=`for i in $$list; do \
341 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
342 done | \
343 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
344 END { if (nonempty) { for (i in files) print i; }; }'`; \
345 mkid -fID $$unique
346tags: TAGS
347
348TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
349 $(TAGS_FILES) $(LISP)
350 tags=; \
351 here=`pwd`; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363ctags: CTAGS
364CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368 unique=`for i in $$list; do \
369 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370 done | \
371 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372 END { if (nonempty) { for (i in files) print i; }; }'`; \
373 test -z "$(CTAGS_ARGS)$$tags$$unique" \
374 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375 $$tags $$unique
376
377GTAGS:
378 here=`$(am__cd) $(top_builddir) && pwd` \
379 && cd $(top_srcdir) \
380 && gtags -i $(GTAGS_ARGS) $$here
381
382distclean-tags:
383 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384
385distdir: $(DISTFILES)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388 list='$(DISTFILES)'; \
389 dist_files=`for file in $$list; do echo $$file; done | \
390 sed -e "s|^$$srcdirstrip/||;t" \
391 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
392 case $$dist_files in \
393 */*) $(MKDIR_P) `echo "$$dist_files" | \
394 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
395 sort -u` ;; \
396 esac; \
397 for file in $$dist_files; do \
398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
399 if test -d $$d/$$file; then \
400 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
403 fi; \
404 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
405 else \
406 test -f $(distdir)/$$file \
407 || cp -p $$d/$$file $(distdir)/$$file \
408 || exit 1; \
409 fi; \
410 done
411check-am: all-am
412check: check-am
413all-am: Makefile $(LTLIBRARIES)
414installdirs:
415 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
416 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
417 done
418install: install-am
419install-exec: install-exec-am
420install-data: install-data-am
421uninstall: uninstall-am
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-am
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-am
443
444clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
445 mostlyclean-am
446
447distclean: distclean-am
448 -rm -rf ./$(DEPDIR)
449 -rm -f Makefile
450distclean-am: clean-am distclean-compile distclean-generic \
451 distclean-tags
452
453dvi: dvi-am
454
455dvi-am:
456
457html: html-am
458
459info: info-am
460
461info-am:
462
463install-data-am: install-pluginimpLTLIBRARIES
464
465install-dvi: install-dvi-am
466
467install-exec-am:
468
469install-html: install-html-am
470
471install-info: install-info-am
472
473install-man:
474
475install-pdf: install-pdf-am
476
477install-ps: install-ps-am
478
479installcheck-am:
480
481maintainer-clean: maintainer-clean-am
482 -rm -rf ./$(DEPDIR)
483 -rm -f Makefile
484maintainer-clean-am: distclean-am maintainer-clean-generic
485
486mostlyclean: mostlyclean-am
487
488mostlyclean-am: mostlyclean-compile mostlyclean-generic \
489 mostlyclean-libtool
490
491pdf: pdf-am
492
493pdf-am:
494
495ps: ps-am
496
497ps-am:
498
499uninstall-am: uninstall-pluginimpLTLIBRARIES
500
501.MAKE: install-am install-strip
502
503.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
504 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
505 distclean-compile distclean-generic distclean-libtool \
506 distclean-tags distdir dvi dvi-am html html-am info info-am \
507 install install-am install-data install-data-am install-dvi \
508 install-dvi-am install-exec install-exec-am install-html \
509 install-html-am install-info install-info-am install-man \
510 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
511 install-ps install-ps-am install-strip installcheck \
512 installcheck-am installdirs maintainer-clean \
513 maintainer-clean-generic mostlyclean mostlyclean-compile \
514 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
515 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
516
517# Tell versions [3.59,3.63) of GNU make to not export all variables.
518# Otherwise a system limit (for SysV at least) may be exceeded.
519.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend.c
new file mode 100644
index 0000000..7893c1e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend.c
@@ -0,0 +1,201 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <stdlib.h>
25
26#include <g3d/types.h>
27#include <g3d/stream.h>
28
29#include "imp_blend_def.h"
30#include "imp_blend_types.h"
31#include "imp_blend_sdna.h"
32#include "imp_blend_read.h"
33#include "imp_blend_chunks.h"
34
35static gboolean blend_read_file(BlendGlobal *global);
36
37EAPI
38gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
39 G3DModel *model, gpointer user_data)
40{
41 gchar buf[BLEND_HEADER_SIZE + 1];
42 guint32 flags = 0, version;
43 BlendGlobal *global;
44
45 if(g3d_stream_read(stream, buf, BLEND_HEADER_SIZE) != BLEND_HEADER_SIZE) {
46 g_warning("Blend: %s: failed to read header", stream->uri);
47 return FALSE;
48 }
49 buf[BLEND_HEADER_SIZE] = '\0';
50 if(strncmp(buf, "BLENDER", 7) != 0) {
51 g_warning("Blend: %s: not a blender file", stream->uri);
52 return FALSE;
53 }
54 if(buf[7] == '_')
55 flags |= FLAG_POINTERSIZE_4;
56 if(buf[8] == 'v')
57 flags |= FLAG_LITTLE_ENDIAN;
58 version = atoi(buf + 9);
59
60 g_debug("Blend: version %.2f, %s endian, pointer size is %d",
61 version / 100.0,
62 (flags & FLAG_LITTLE_ENDIAN) ? "little" : "big",
63 (flags & FLAG_POINTERSIZE_4) ? 4 : 8);
64
65 if(!(flags & FLAG_POINTERSIZE_4)) {
66 g_warning("Blend: 8-byte pointers are not implemented as I lack a "
67 "test file. Please send me one :).");
68 return FALSE;
69 }
70
71 global = g_new0(BlendGlobal, 1);
72 global->context = context;
73 global->stream = stream;
74 global->model = model;
75 global->flags = flags;
76
77 blend_read_file(global);
78
79 g_free(global);
80
81 return TRUE;
82}
83
84EAPI
85gchar *plugin_description(void)
86{
87 return g_strdup("Blender models.");
88}
89
90EAPI
91gchar **plugin_extensions(void)
92{
93 return g_strsplit("blend", ":", 0);
94}
95
96/*****************************************************************************/
97
98static inline const BlendChunkInfo *blend_get_chunk_info(guint32 code,
99 guint32 oid)
100{
101 gint32 i;
102
103 for(i = 0; blend_chunks[i].code != 0; i ++)
104 if((blend_chunks[i].code == code) && (blend_chunks[i].oid == oid))
105 return &(blend_chunks[i]);
106 if(oid != 0)
107 return blend_get_chunk_info(code, 0);
108 return NULL;
109}
110
111static gboolean blend_read_file(BlendGlobal *global)
112{
113 guint32 code, old, sdnanr, nr;
114 gsize len;
115 BlendLocal *local;
116 const BlendChunkInfo *cinfo;
117 const BlendSdnaStruct *sstruct;
118 gint i;
119 G3DObject *object = NULL;
120 G3DObject *grpobject = NULL;
121 guint32 object_id = 0;
122
123 while(TRUE) {
124 code = blend_read_uint(global->stream, global->flags);
125 len = blend_read_uint(global->stream, global->flags);
126 if(code == MKID('E','N','D','B'))
127 return TRUE;
128
129 old = blend_read_uint(global->stream, global->flags);
130 sdnanr = blend_read_uint(global->stream, global->flags);
131 nr = blend_read_uint(global->stream, global->flags);
132
133 if((global->sdna == NULL) && (code != MKID('D','N','A','1'))) {
134 g3d_stream_skip(global->stream, len);
135 continue;
136 }
137
138 cinfo = blend_get_chunk_info(code, (code == ID_DATA) ? object_id : 0);
139 if(cinfo == NULL)
140 g_warning("unknown chunk: %c%c%c%c",
141 blend_from_id(code, 0), blend_from_id(code, 1),
142 blend_from_id(code, 2), blend_from_id(code, 3));
143
144 g_debug("\\%c%c%c%c: %-20s - %8d bytes (0x%08x, %d, %d)",
145 blend_from_id(code, 0), blend_from_id(code, 1),
146 blend_from_id(code, 2), blend_from_id(code, 3),
147 cinfo ? cinfo->description : "(unknown)",
148 (int) len, old, sdnanr, nr);
149
150 if(len == 0)
151 return FALSE;
152
153 /* on non-DATA nodes a new object starts */
154 if(code != ID_DATA) {
155 object_id = code;
156 }
157
158 local = g_new0(BlendLocal, 1);
159 local->ndata = nr;
160 local->data = g_new0(BlendSdnaData *, nr);
161
162 if(global->sdna) {
163 for(i = 0; i < nr; i ++) {
164 sstruct = blend_sdna_get_struct_by_id(global->sdna, sdnanr);
165 if(sstruct) {
166#if DEBUG > BLEND_DEBUG_STRUCT
167 g_debug("|struct %s /* %d */",
168 sstruct->name, sstruct->size);
169#endif
170 local->data[i] = blend_sdna_data_read(global->sdna,
171 sstruct, global, &len, 0);
172 }
173 }
174 }
175
176 local->object = object;
177 local->grpobject = grpobject;
178 local->object_id = object_id;
179 local->len = len;
180
181 if(cinfo && cinfo->callback)
182 if(!cinfo->callback(global, local))
183 return FALSE;
184
185 len = local->len;
186 object = local->object;
187 grpobject = local->grpobject;
188
189 for(i = 0; i < local->ndata; i ++)
190 if(local->data[i])
191 blend_sdna_data_free(local->data[i]);
192 g_free(local->data);
193 g_free(local);
194
195 /* skip remaining data */
196 g3d_stream_skip(global->stream, len);
197 }
198
199 blend_sdna_cleanup(global->sdna);
200 return TRUE;
201}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.c
new file mode 100644
index 0000000..f5e7b95
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.c
@@ -0,0 +1,237 @@
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 <g3d/vector.h>
25#include <g3d/matrix.h>
26#include <g3d/material.h>
27
28#include "imp_blend_types.h"
29#include "imp_blend_def.h"
30#include "imp_blend_sdna.h"
31
32/* mesh data */
33gboolean blend_cb_DATA_ME(BlendGlobal *global, BlendLocal *local)
34{
35 G3DFace *face;
36 BlendSdnaPropData *spdata;
37 gchar *stmp;
38 gint32 i, j;
39
40 if((local->ndata == 0) || (local->data[0] == NULL))
41 return TRUE;
42 g_return_val_if_fail(local->object != NULL, FALSE);
43
44 /* all structs in one DATA chunk have the same type */
45 if(strcmp(local->data[0]->sstruct->name, "MVert") == 0) {
46 local->object->vertex_count = local->ndata;
47 local->object->vertex_data = g3d_vector_new(3,
48 local->object->vertex_count);
49 for(i = 0; i < local->ndata; i ++) {
50 spdata = blend_sdna_get_property(local->data[i], "co", T_FLOAT);
51 if(spdata)
52 for(j = 0; j < 3; j ++)
53 local->object->vertex_data[i * 3 + j] = spdata->fval[j];
54 }
55 } else if(strcmp(local->data[0]->sstruct->name, "MFace") == 0) {
56 for(i = 0; i < local->ndata; i ++) {
57 face = g_new0(G3DFace, 1);
58 face->vertex_count = 4;
59 face->vertex_indices = g_new0(guint32, 4);
60 face->material = g_slist_nth_data(local->object->materials, 0);
61 local->object->faces = g_slist_prepend(local->object->faces, face);
62 for(j = 0; j < 4; j ++) {
63 stmp = g_strdup_printf("v%d", j);
64 spdata = blend_sdna_get_property(local->data[i], stmp, T_INT);
65 if(spdata)
66 face->vertex_indices[j] = spdata->ival[0];
67 g_free(stmp);
68 }
69#if DEBUG > 2
70 g_debug("MFace: %03i (%02i, %02i, %02i, %02i)", i,
71 face->vertex_indices[0], face->vertex_indices[1],
72 face->vertex_indices[2], face->vertex_indices[3]);
73#endif
74 spdata = blend_sdna_get_property(local->data[i], "mat_nr", T_CHAR);
75 /* TODO */
76 }
77 } else {
78#if DEBUG > 0
79 for(i = 0; i < local->ndata; i ++)
80 blend_sdna_dump_data(local->data[i], 0);
81#endif
82 }
83 return TRUE;
84}
85
86/* struct DNA */
87gboolean blend_cb_DNA1(BlendGlobal *global, BlendLocal *local)
88{
89 if(global->sdna != NULL)
90 return TRUE;
91 global->sdna = blend_sdna_read_dna1(global->stream,
92 global->flags, local->len);
93 if(global->sdna == NULL) {
94 g_warning("Blend: failed to read DNA1, giving up...");
95 return FALSE;
96 }
97 /* rewind stream to really read content */
98 g3d_stream_seek(global->stream, BLEND_HEADER_SIZE, G_SEEK_SET);
99 local->len = 0;
100 return TRUE;
101}
102
103static gchar *get_name_from_id(BlendSdnaData *sdata)
104{
105 BlendSdnaPropData *spdata, *spdata2;
106 gchar *name = NULL;
107 gint32 i;
108
109 spdata = blend_sdna_get_property(sdata, "id", T_STRUCT);
110 if(spdata) {
111 spdata2 = blend_sdna_get_property(spdata->structval, "name", T_CHAR);
112 if(spdata2) {
113 name = g_new0(gchar, spdata2->sprop->nitems + 1);
114 for(i = 0; i < spdata2->sprop->nitems; i ++)
115 name[i] = spdata2->ival[i];
116 }
117 }
118 return name;
119}
120
121static G3DFloat get_float(BlendSdnaData *sdata, const gchar *var)
122{
123 BlendSdnaPropData *spdata;
124 spdata = blend_sdna_get_property(sdata, var, T_FLOAT);
125 if(spdata)
126 return spdata->fval[0];
127 return 0.0;
128}
129
130/* material */
131gboolean blend_cb_MA(BlendGlobal *global, BlendLocal *local)
132{
133 G3DMaterial *material;
134
135 g_return_val_if_fail(local->data[0] != NULL, FALSE);
136
137#if DEBUG > 0
138 blend_sdna_dump_data(local->data[0], 0);
139#endif
140
141 material = g3d_material_new();
142 material->name = get_name_from_id(local->data[0]);
143 global->model->materials = g_slist_append(global->model->materials,
144 material);
145 material->r = get_float(local->data[0], "r");
146 material->g = get_float(local->data[0], "g");
147 material->b = get_float(local->data[0], "b");
148 return TRUE;
149}
150
151/* mesh */
152gboolean blend_cb_ME(BlendGlobal *global, BlendLocal *local)
153{
154 G3DObject *object;
155 G3DMaterial *material;
156 G3DVector v[3];
157 BlendSdnaPropData *spdata;
158 gint32 i;
159
160 g_return_val_if_fail(local->data[0] != NULL, FALSE);
161
162#if DEBUG > 0
163 blend_sdna_dump_data(local->data[0], 0);
164#endif
165
166 object = g_new0(G3DObject, 1);
167 if(local->grpobject)
168 local->grpobject->objects = g_slist_append(local->grpobject->objects,
169 object);
170 else
171 global->model->objects = g_slist_append(global->model->objects,
172 object);
173 local->object = object;
174 material = g3d_material_new();
175 material->name = g_strdup("(default material)");
176 object->materials = g_slist_append(local->object->materials, material);
177
178 /* name */
179 object->name = get_name_from_id(local->data[0]);
180
181 object->transformation = g_new0(G3DTransformation, 1);
182 g3d_matrix_identity(object->transformation->matrix);
183
184 /* rotation */
185 spdata = blend_sdna_get_property(local->data[0], "rot", T_FLOAT);
186 if(spdata) {
187 for(i = 0; i < 3; i ++)
188 v[i] = spdata->fval[i];
189 g3d_matrix_rotate_xyz(v[0], v[1], v[2],
190 object->transformation->matrix);
191#if DEBUG > 0
192 g_debug("ME: rotate %f, %f, %f", v[0], v[1], v[2]);
193#endif
194 }
195 /* size */
196 spdata = blend_sdna_get_property(local->data[0], "size", T_FLOAT);
197 if(spdata) {
198 for(i = 0; i < 3; i ++)
199 v[i] = spdata->fval[i];
200 g3d_matrix_scale(v[0], v[1], v[2], object->transformation->matrix);
201#if DEBUG > 2
202 g_debug("ME: scale %f, %f, %f", v[0], v[1], v[2]);
203#endif
204 }
205 /* location */
206 spdata = blend_sdna_get_property(local->data[0], "loc", T_FLOAT);
207 if(spdata) {
208 for(i = 0; i < 3; i ++)
209 v[i] = spdata->fval[i];
210 g3d_matrix_translate(v[0], v[1], v[2],
211 object->transformation->matrix);
212#if DEBUG > 2
213 g_debug("ME: translate %f, %f, %f", v[0], v[1], v[2]);
214#endif
215 }
216 return TRUE;
217}
218
219gboolean blend_cb_OB(BlendGlobal *global, BlendLocal *local)
220{
221 G3DObject *object;
222
223 g_return_val_if_fail(local->data[0] != NULL, FALSE);
224
225#if DEBUG > 0
226 blend_sdna_dump_data(local->data[0], 0);
227#endif
228
229 object = g_new0(G3DObject, 1);
230 object->name = get_name_from_id(local->data[0]);
231 local->grpobject = object;
232 global->model->objects = g_slist_append(global->model->objects, object);
233
234 return TRUE;
235}
236
237
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.h
new file mode 100644
index 0000000..160fd07
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_callbacks.h
@@ -0,0 +1,35 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_BLEND_CALLBACKS_H
23#define _IMP_BLEND_CALLBACKS_H
24
25#include "imp_blend_types.h"
26
27gboolean blend_cb_DATA_ME(BlendGlobal *global, BlendLocal *local);
28
29gboolean blend_cb_DNA1(BlendGlobal *global, BlendLocal *local);
30
31gboolean blend_cb_MA(BlendGlobal *global, BlendLocal *local);
32gboolean blend_cb_ME(BlendGlobal *global, BlendLocal *local);
33gboolean blend_cb_OB(BlendGlobal *global, BlendLocal *local);
34
35#endif /* _IMP_BLEND_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h
new file mode 100644
index 0000000..6ab82bd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_chunks.h
@@ -0,0 +1,63 @@
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_BLEND_CHUNKS_H
23#define _IMP_BLEND_CHUNKS_H
24
25#include "imp_blend_def.h"
26#include "imp_blend_types.h"
27#include "imp_blend_callbacks.h"
28
29typedef gboolean (* BlendCallback)(BlendGlobal *, BlendLocal *);
30
31typedef struct {
32 guint32 code;
33 guint32 oid;
34 const gchar *description;
35 BlendCallback callback;
36} BlendChunkInfo;
37
38#define ID_DATA MKID('D','A','T','A')
39
40static const BlendChunkInfo blend_chunks[] = {
41 { ID_DATA, MKID2('M','E'), "mesh data", blend_cb_DATA_ME },
42 { ID_DATA, 0, "struct data", NULL },
43
44 { MKID2('C','A'), 0, "camera", NULL },
45 { MKID2('I','M'), 0, "image", NULL },
46 { MKID2('L','A'), 0, "lamp", NULL },
47 { MKID2('M','A'), 0, "material", blend_cb_MA },
48 { MKID2('M','E'), 0, "mesh", blend_cb_ME },
49 { MKID2('O','B'), 0, "object", blend_cb_OB },
50 { MKID2('S','C'), 0, "scene", NULL },
51 { MKID2('S','R'), 0, "screen", NULL },
52 { MKID2('T','E'), 0, "texture", NULL },
53 { MKID2('T','X'), 0, "text", NULL },
54 { MKID2('W','O'), 0, "world", NULL },
55
56 { MKID('D','N','A','1'), 0, "SDNA data", blend_cb_DNA1 },
57 { MKID('G','L','O','B'), 0, "global data", NULL },
58 { MKID('R','E','N','D'), 0, "render data", NULL },
59
60 { 0, 0, NULL, NULL }
61};
62
63#endif /* _IMP_BLEND_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_def.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_def.h
new file mode 100644
index 0000000..0a89af4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_def.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_BLEND_DEF_H
23#define _IMP_BLEND_DEF_H
24
25#include <glib.h>
26
27#define BLEND_HEADER_SIZE 12
28
29#define FLAG_LITTLE_ENDIAN 1
30#define FLAG_POINTERSIZE_4 4
31#define FLAG_POINTERSIZE_8 8
32#define FLAG_POINTER_MASK 0xC
33
34#define MKID(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((d) << 24))
35#define MKID2(a,b) ((a) | ((b) << 8))
36
37static inline gchar blend_from_id(guint32 id, guint8 pos) {
38 guint8 c = ((id >> (pos * 8)) & 0xFF);
39 return ((c < 0x20) || (c > 0x7F)) ? '_' : c;
40}
41
42#endif /* _IMP_BLEND_DEF_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.c
new file mode 100644
index 0000000..b73c5dc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.c
@@ -0,0 +1,39 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/stream.h>
23
24#include "imp_blend_def.h"
25
26guint32 blend_read_short(G3DStream *stream, guint32 flags)
27{
28 return (flags & FLAG_LITTLE_ENDIAN) ?
29 g3d_stream_read_int16_le(stream) :
30 g3d_stream_read_int16_be(stream);
31}
32
33guint32 blend_read_uint(G3DStream *stream, guint32 flags)
34{
35 return (flags & FLAG_LITTLE_ENDIAN) ?
36 g3d_stream_read_int32_le(stream) :
37 g3d_stream_read_int32_be(stream);
38}
39
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.h
new file mode 100644
index 0000000..4f0626d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_read.h
@@ -0,0 +1,30 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_BLEND_READ_H
23#define _IMP_BLEND_READ_H
24
25#include <g3d/stream.h>
26
27guint32 blend_read_short(G3DStream *stream, guint32 flags);
28guint32 blend_read_uint(G3DStream *stream, guint32 flags);
29
30#endif /* _IMP_BLEND_READ_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.c
new file mode 100644
index 0000000..058832a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.c
@@ -0,0 +1,467 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <stdlib.h>
25
26#include <g3d/debug.h>
27
28#include "imp_blend_def.h"
29#include "imp_blend_types.h"
30#include "imp_blend_sdna.h"
31#include "imp_blend_read.h"
32
33static gboolean sdna_prop_check_array(BlendSdnaProperty *sprop)
34{
35 gchar *ob;
36 guint32 n;
37
38 while(TRUE) {
39 ob = strrchr(sprop->name, '[');
40 if(ob == NULL)
41 return TRUE;
42 n = atoi(ob + 1);
43 if(n == 0)
44 return FALSE;
45 sprop->nitems *= n;
46 *ob = '\0';
47 }
48 return FALSE;
49}
50
51BlendSdna *blend_sdna_read_dna1(G3DStream *stream, guint32 flags, gint32 len)
52{
53 BlendSdna *sdna;
54 BlendSdnaProperty *sprop;
55 BlendSdnaStruct *sstruct;
56 guint32 code, n, n2, nn, m, t;
57 gint32 i, j;
58 gchar buf[2048], *bufp, c, **aptr;
59
60 code = blend_read_uint(stream, flags);
61 len -= 4;
62 if(code != MKID('S','D','N','A')) {
63 g_warning("Blend: DNA1: no SDNA");
64 g3d_stream_skip(stream, len);
65 return NULL;
66 }
67
68 sdna = g_new0(BlendSdna, 1);
69
70 while(len > 0) {
71 code = blend_read_uint(stream, flags);
72 len -= 4;
73
74 switch(code) {
75 case MKID('N','A','M','E'):
76 case MKID('T','Y','P','E'):
77 n = blend_read_uint(stream, flags);
78 len -= 4;
79 if(code == MKID('T','Y','P','E')) {
80 g_debug("\\ TYPE: %d types", n);
81 sdna->n_types = n;
82 sdna->type_names = g_new0(gchar *, n);
83 sdna->type_sizes = g_new0(guint32, n);
84 aptr = sdna->type_names;
85 } else {
86 g_debug("\\ NAME: %d names", n);
87 sdna->n_names = n;
88 sdna->names = g_new0(gchar *, n);
89 aptr = sdna->names;
90 }
91 m = 0;
92 for(i = 0; i < n; i ++) {
93 bufp = buf;
94 do {
95 c = *bufp = g3d_stream_read_int8(stream);
96 bufp ++;
97 len --;
98 m ++;
99 } while(c != '\0');
100 aptr[i] = g_strdup(buf);
101#if DEBUG > 2
102 g_debug("\\ %s", buf);
103#endif
104 }
105 m %= 4;
106 if(m > 0) {
107 /* padding */
108 g3d_stream_skip(stream, 4 - m);
109 len -= (4 - m);
110 }
111 break;
112 case MKID('T','L','E','N'):
113 g_debug("\\ TLEN: %d type sizes", sdna->n_types);
114 for(i = 0; i < sdna->n_types; i ++) {
115 m = blend_read_short(stream, flags);
116 len -= 2;
117#if DEBUG > 2
118 g_debug("\\ %d", m);
119#endif
120 sdna->type_sizes[i] = m;
121 }
122 m = sdna->n_types % 2;
123 if(m > 0) {
124 g3d_stream_skip(stream, 2);
125 len -= 2;
126 }
127 break;
128 case MKID('S','T','R','C'):
129 n = blend_read_uint(stream, flags);
130 g_debug("\\ STRC: %d structs", n);
131 len -= 4;
132 for(i = 0; i < n; i ++) {
133 t = blend_read_short(stream, flags);
134 n2 = blend_read_short(stream, flags);
135 len -= 4;
136 sstruct = g_new0(BlendSdnaStruct, 1);
137 sstruct->tid = t;
138 sstruct->name = sdna->type_names[t];
139 sstruct->size = sdna->type_sizes[t];
140 sdna->structs = g_slist_append(sdna->structs, sstruct);
141 for(j = 0; j < n2; j ++) {
142 t = blend_read_short(stream, flags);
143 nn = blend_read_short(stream, flags);
144 len -= 4;
145 sprop = g_new0(BlendSdnaProperty, 1);
146 sprop->name = g_strdup(sdna->names[nn]);
147 sprop->tname = sdna->type_names[t];
148 sprop->tid = t;
149 sprop->tsize = sdna->type_sizes[t];
150 sprop->ptr =
151 (sprop->name[0] == '*') ||
152 (sprop->name[0] == '(');
153 sprop->nitems = 1;
154 sdna_prop_check_array(sprop);
155 sstruct->properties = g_slist_append(
156 sstruct->properties, sprop);
157 }
158 }
159 break;
160 default:
161 g_warning("Blend: DNA1: unexpected section 0x%x", code);
162 return sdna;
163 break;
164 }
165 }
166 return sdna;
167}
168
169static void blend_sdna_struct_free(BlendSdnaStruct *sstruct)
170{
171 GSList *item, *next;
172 BlendSdnaProperty *sprop;
173
174 item = sstruct->properties;
175 while(item) {
176 sprop = item->data;
177 next = item->next;
178 g_free(sprop->name);
179 g_free(sprop);
180 g_slist_free_1(item);
181 item = next;
182 }
183 g_free(sstruct);
184}
185
186void blend_sdna_cleanup(BlendSdna *sdna)
187{
188 GSList *item, *next;
189 BlendSdnaStruct *sstruct;
190
191 g_return_if_fail(sdna != NULL);
192
193 /* names */
194 g_free(sdna->names);
195 /* types */
196 g_free(sdna->type_names);
197 g_free(sdna->type_sizes);
198 /* structs */
199 item = sdna->structs;
200 while(item) {
201 sstruct = item->data;
202 next = item->next;
203 blend_sdna_struct_free(sstruct);
204 g_slist_free_1(next);
205 item = next;
206 }
207 /* sdna */
208 g_free(sdna);
209}
210
211const BlendSdnaStruct *blend_sdna_get_struct_by_id(BlendSdna *sdna,
212 guint32 sdnanr)
213{
214 g_return_val_if_fail(sdnanr < g_slist_length(sdna->structs), NULL);
215
216 if(sdnanr < 10)
217 return NULL;
218
219 return g_slist_nth_data(sdna->structs, sdnanr);
220}
221
222const BlendSdnaStruct *blend_sdna_get_struct_by_tid(BlendSdna *sdna,
223 guint32 tid)
224{
225 GSList *item;
226 BlendSdnaStruct *sstruct;
227
228 for(item = sdna->structs; item != NULL; item = item->next) {
229 sstruct = item->data;
230 if(sstruct->tid == tid)
231 return sstruct;
232 }
233
234 return NULL;
235}
236
237static inline void sdna_data_read_basic_types(BlendSdna *sdna,
238 BlendSdnaPropData *spdata, BlendGlobal *global, gsize *r)
239{
240 gint32 i;
241
242 g_return_if_fail(spdata->sprop->nitems > 0);
243
244 switch(spdata->type) {
245 case T_CHAR:
246 spdata->ival = g_new0(gint32, spdata->sprop->nitems);
247 for(i = 0; i < spdata->sprop->nitems; i ++)
248 spdata->ival[i] = g3d_stream_read_int8(global->stream);
249 (*r) -= spdata->sprop->nitems;
250 break;
251 case T_UCHAR:
252 spdata->uval = g_new0(guint32, spdata->sprop->nitems);
253 for(i = 0; i < spdata->sprop->nitems; i ++)
254 spdata->uval[i] = g3d_stream_read_int8(global->stream);
255 (*r) -= spdata->sprop->nitems;
256 break;
257 case T_SHORT: /* FIXME: BE/LE */
258 spdata->ival = g_new0(gint32, spdata->sprop->nitems);
259 for(i = 0; i < spdata->sprop->nitems; i ++)
260 spdata->ival[i] = g3d_stream_read_int16_le(global->stream);
261 (*r) -= spdata->sprop->nitems * 2;
262 break;
263 case T_USHORT:
264 spdata->uval = g_new0(guint32, spdata->sprop->nitems);
265 for(i = 0; i < spdata->sprop->nitems; i ++)
266 spdata->uval[i] = g3d_stream_read_int16_le(global->stream);
267 (*r) -= spdata->sprop->nitems * 2;
268 break;
269 case T_INT: /* FIXME: 32/64 bit */
270 spdata->ival = g_new0(gint32, spdata->sprop->nitems);
271 for(i = 0; i < spdata->sprop->nitems; i ++)
272 spdata->ival[i] = g3d_stream_read_int32_le(global->stream);
273 (*r) -= spdata->sprop->nitems * 4;
274 break;
275 case T_LONG:
276 spdata->ival = g_new0(gint32, spdata->sprop->nitems);
277 for(i = 0; i < spdata->sprop->nitems; i ++)
278 spdata->ival[i] = g3d_stream_read_int32_le(global->stream);
279 (*r) -= spdata->sprop->nitems * 4;
280 break;
281 case T_ULONG:
282 spdata->uval = g_new0(guint32, spdata->sprop->nitems);
283 for(i = 0; i < spdata->sprop->nitems; i ++)
284 spdata->uval[i] = g3d_stream_read_int32_le(global->stream);
285 (*r) -= spdata->sprop->nitems * 4;
286 break;
287 case T_FLOAT:
288 spdata->fval = g_new0(G3DFloat, spdata->sprop->nitems);
289 for(i = 0; i < spdata->sprop->nitems; i ++)
290 spdata->fval[i] = g3d_stream_read_float_le(global->stream);
291 (*r) -= spdata->sprop->nitems * 4;
292 break;
293 case T_DOUBLE:
294 spdata->fval = g_new0(G3DFloat, spdata->sprop->nitems);
295 for(i = 0; i < spdata->sprop->nitems; i ++)
296 spdata->fval[i] = g3d_stream_read_double_le(global->stream);
297 (*r) -= spdata->sprop->nitems * 8;
298 break;
299 case T_VOID:
300 g_warning("SDNA: non-pointer void type");
301 break;
302 case T_STRUCT:
303 /* handled elsewhere */
304 break;
305 }
306}
307
308BlendSdnaPropData *blend_sdna_get_property(BlendSdnaData *sdata,
309 const gchar *name, BlendSdnaPropType type)
310{
311 BlendSdnaPropData *spdata;
312
313 spdata = g_hash_table_lookup(sdata->prophash, name);
314 if(!spdata)
315 return NULL;
316 if(spdata->type != type)
317 return NULL;
318 return spdata;
319}
320
321BlendSdnaData *blend_sdna_data_read(BlendSdna *sdna,
322 const BlendSdnaStruct *sstruct, BlendGlobal *global, gsize *r,
323 guint32 level)
324{
325 BlendSdnaData *sdata;
326 BlendSdnaProperty *sprop;
327 BlendSdnaPropData *spdata;
328 const BlendSdnaStruct *substruct;
329 GSList *pitem;
330
331 sdata = g_new0(BlendSdnaData, 1);
332 sdata->sstruct = sstruct;
333 sdata->prophash = g_hash_table_new(g_str_hash, g_str_equal);
334
335#if DEBUG > BLEND_DEBUG_STRUCT
336 g_debug("|%s{ /* %s */",
337 debug_pad(level * 2), sstruct->name);
338#endif
339
340 for(pitem = sstruct->properties; pitem != NULL; pitem = pitem->next) {
341 sprop = pitem->data;
342 spdata = g_new0(BlendSdnaPropData, 1);
343 spdata->name = g_strdup(sprop->name);
344 spdata->sprop = sprop;
345 g_hash_table_insert(sdata->prophash, spdata->name, spdata);
346 spdata->type = (sprop->tid < 10) ? sprop->tid : 0xFF;
347
348 if(sprop->ptr) {
349 spdata->pval = g_new0(guint32, 1);
350 spdata->pval[0] = g3d_stream_read_int32_le(global->stream);
351 (*r) -= 4;
352#if DEBUG > BLEND_DEBUG_STRUCT
353 g_debug("|%s %-10s %-10s = 0x%08x; /* len = %d */",
354 debug_pad(level * 2),
355 sprop->tname, sprop->name, spdata->pval[0], *r);
356#endif
357 continue;
358 }
359
360 if(spdata->type == T_STRUCT) {
361 substruct = blend_sdna_get_struct_by_tid(sdna, sprop->tid);
362#if DEBUG > BLEND_DEBUG_STRUCT
363 g_debug("|%s %-10s %-10s = /* %s */",
364 debug_pad(level * 2),
365 sprop->tname, sprop->name,
366 substruct ? substruct->name : "(unknown)");
367#endif
368 if(substruct)
369 spdata->structval = blend_sdna_data_read(sdna,
370 substruct, global, r, level + 1);
371 else {
372 g3d_stream_skip(global->stream, sprop->tsize);
373 (*r) -= sprop->tsize;
374 }
375 } else {
376 sdna_data_read_basic_types(sdna, spdata, global, r);
377 }
378 } /* properties */
379
380#if DEBUG > BLEND_DEBUG_STRUCT
381 g_debug("|%s};", debug_pad(level * 2));
382#endif
383
384 return sdata;
385}
386
387void blend_sdna_data_free(BlendSdnaData *sdata)
388{
389 /* TODO: free BlendSdnaPropData nodes */
390 g_hash_table_destroy(sdata->prophash);
391 g_free(sdata);
392}
393
394/*****************************************************************************/
395/* debugging code */
396
397#if DEBUG > 0
398
399static void blend_sdna_dump_spdata_cb(gpointer key, gpointer value,
400 gpointer user_data)
401{
402 BlendSdnaPropData *spdata = value;
403 guint32 *levelp = user_data;
404
405#define DUMP_FORMAT "|%s %-10s %-10s [%03d]"
406#define DUMP_ARGS debug_pad(*levelp), \
407 spdata->sprop->tname, spdata->name, spdata->sprop->nitems
408
409 if(spdata->sprop->ptr) {
410 g_debug(DUMP_FORMAT " = 0x%08x;", DUMP_ARGS, spdata->pval[0]);
411 return;
412 }
413 switch(spdata->type) {
414 case T_CHAR:
415 case T_SHORT:
416 case T_INT:
417 case T_LONG:
418 g_debug(DUMP_FORMAT " = %i;", DUMP_ARGS, spdata->ival[0]);
419 break;
420 case T_UCHAR:
421 case T_USHORT:
422 case T_ULONG:
423 g_debug(DUMP_FORMAT " = %u;", DUMP_ARGS, spdata->uval[0]);
424 break;
425 case T_FLOAT:
426 case T_DOUBLE:
427 g_debug(DUMP_FORMAT " = %f;", DUMP_ARGS, spdata->fval[0]);
428 break;
429 case T_STRUCT:
430 g_debug(DUMP_FORMAT " =", DUMP_ARGS);
431 blend_sdna_dump_data(spdata->structval, *levelp + 1);
432 break;
433 default:
434 g_debug(DUMP_FORMAT ";", DUMP_ARGS);
435 break;
436 }
437}
438
439gboolean blend_sdna_dump_data(BlendSdnaData *sdata, guint32 level)
440{
441 g_debug("|%s{ /* %s */", debug_pad(level), sdata->sstruct->name);
442 g_hash_table_foreach(sdata->prophash, blend_sdna_dump_spdata_cb, &level);
443 g_debug("|%s},", debug_pad(level));
444 return TRUE;
445}
446
447gboolean blend_sdna_dump_struct(BlendSdna *sdna, guint32 sdnanr)
448{
449 const BlendSdnaStruct *sstruct;
450 BlendSdnaProperty *sprop;
451 GSList *pitem;
452
453 sstruct = blend_sdna_get_struct_by_id(sdna, sdnanr);
454 if(!sstruct)
455 return FALSE;
456 sstruct = g_slist_nth_data(sdna->structs, sdnanr);
457 g_debug("| struct %s { /* %d */", sstruct->name, sstruct->size);
458 for(pitem = sstruct->properties; pitem != NULL; pitem = pitem->next) {
459 sprop = pitem->data;
460 g_debug("| \t%-16s %-24s;", sprop->tname, sprop->name);
461 }
462 g_debug("| };");
463
464 return TRUE;
465}
466
467#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.h
new file mode 100644
index 0000000..a95369f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_sdna.h
@@ -0,0 +1,53 @@
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_BLEND_SDNA_H
23#define _IMP_BLEND_SDNA_H
24
25#include <g3d/stream.h>
26
27#include "imp_blend_types.h"
28
29/* as in #if DEBUG > BLEND_DEBUG_STRUCT */
30#define BLEND_DEBUG_STRUCT 1
31
32BlendSdna *blend_sdna_read_dna1(G3DStream *stream, guint32 flags, gint32 len);
33void blend_sdna_cleanup(BlendSdna *sdna);
34
35const BlendSdnaStruct *blend_sdna_get_struct_by_id(BlendSdna *sdna,
36 guint32 sdnanr);
37const BlendSdnaStruct *blend_sdna_get_struct_by_name(BlendSdna *sdna,
38 const gchar *name);
39
40BlendSdnaData *blend_sdna_data_read(BlendSdna *sdna,
41 const BlendSdnaStruct *sstruct, BlendGlobal *global, gsize *r,
42 guint32 level);
43void blend_sdna_data_free(BlendSdnaData *sdata);
44
45BlendSdnaPropData *blend_sdna_get_property(BlendSdnaData *sdata,
46 const gchar *name, BlendSdnaPropType type);
47
48#if DEBUG > 0
49gboolean blend_sdna_dump_data(BlendSdnaData *sdata, guint32 level);
50gboolean blend_sdna_dump_struct(BlendSdna *sdna, guint32 sdnanr);
51#endif
52
53#endif /* _IMP_BLEND_SDNA_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_types.h
new file mode 100644
index 0000000..b2d9573
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_blend/imp_blend_types.h
@@ -0,0 +1,100 @@
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_BLEND_TYPES_H
23#define _IMP_BLEND_TYPES_H
24
25#include <g3d/types.h>
26
27typedef struct {
28 gchar *name;
29 const gchar *tname;
30 guint32 tid;
31 gsize tsize;
32 gsize nitems;
33 gboolean ptr;
34} BlendSdnaProperty;
35
36typedef struct {
37 const gchar *name;
38 guint32 tid;
39 gsize size;
40 GSList *properties;
41} BlendSdnaStruct;
42
43typedef struct {
44 const BlendSdnaStruct *sstruct;
45 GHashTable *prophash;
46} BlendSdnaData;
47
48typedef enum {
49 T_CHAR = 0,
50 T_UCHAR = 1,
51 T_SHORT = 2,
52 T_USHORT = 3,
53 T_INT = 4,
54 T_LONG = 5,
55 T_ULONG = 6,
56 T_FLOAT = 7,
57 T_DOUBLE = 8,
58 T_VOID = 9,
59 T_STRUCT = 0xFF
60} BlendSdnaPropType;
61
62typedef struct {
63 gchar *name;
64 BlendSdnaPropType type;
65 BlendSdnaProperty *sprop;
66 guint32 *uval; /* unsigned integer value */
67 gint32 *ival; /* signed integer value */
68 G3DFloat *fval; /* floating point value */
69 guint32 *pval; /* pointer value */
70 BlendSdnaData *structval; /* struct value */
71} BlendSdnaPropData;
72
73typedef struct {
74 guint32 n_names;
75 gchar **names;
76 guint32 n_types;
77 gchar **type_names;
78 guint32 *type_sizes;
79 GSList *structs;
80} BlendSdna;
81
82typedef struct {
83 G3DContext *context;
84 G3DModel *model;
85 G3DStream *stream;
86 guint32 flags;
87 BlendSdna *sdna;
88} BlendGlobal;
89
90typedef struct {
91 guint32 id;
92 guint32 len;
93 G3DObject *object;
94 G3DObject *grpobject;
95 guint32 object_id;
96 guint32 ndata;
97 BlendSdnaData **data;
98} BlendLocal;
99
100#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile
new file mode 100644
index 0000000..61a0650
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_c4d/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_c4d
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_c4d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_c4d_la_OBJECTS = imp_c4d.lo
59imp_c4d_la_OBJECTS = $(am_imp_c4d_la_OBJECTS)
60#am_imp_c4d_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_c4d_la_SOURCES)
74DIST_SOURCES = $(imp_c4d_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_c4d.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_c4d_la_SOURCES = imp_c4d.c
230imp_c4d_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_c4d.la: $(imp_c4d_la_OBJECTS) $(imp_c4d_la_DEPENDENCIES)
292 $(LINK) $(am_imp_c4d_la_rpath) $(imp_c4d_la_OBJECTS) $(imp_c4d_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300include ./$(DEPDIR)/imp_c4d.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.am
new file mode 100644
index 0000000..812c1fb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.am
@@ -0,0 +1,22 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_c4d.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_c4d_la_SOURCES = imp_c4d.c
22imp_c4d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.in
new file mode 100644
index 0000000..29afaee
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/Makefile.in
@@ -0,0 +1,510 @@
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_c4d
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_c4d_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_c4d_la_OBJECTS = imp_c4d.lo
59imp_c4d_la_OBJECTS = $(am_imp_c4d_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_c4d_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_c4d_la_SOURCES)
74DIST_SOURCES = $(imp_c4d_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_c4d.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_c4d_la_SOURCES = imp_c4d.c
230imp_c4d_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_c4d/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_c4d.la: $(imp_c4d_la_OBJECTS) $(imp_c4d_la_DEPENDENCIES)
292 $(LINK) $(am_imp_c4d_la_rpath) $(imp_c4d_la_OBJECTS) $(imp_c4d_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_c4d.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c
new file mode 100644
index 0000000..93415f2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_c4d/imp_c4d.c
@@ -0,0 +1,363 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27#include <g3d/debug.h>
28
29static gboolean c4d_load_v5(G3DContext *context, G3DStream *stream,
30 G3DModel *model);
31static gboolean c4d_load_v6(G3DContext *context, G3DStream *stream,
32 G3DModel *model);
33
34EAPI
35gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
36 G3DModel *model, gpointer user_data)
37{
38 gchar magic[5];
39
40 g3d_stream_read(stream, magic, 4);
41 magic[4] = '\0';
42 if(strncmp(magic + 1, "C4D", 3) == 0) {
43 g3d_stream_read(stream, magic, 4);
44 if(strncmp(magic, "C4D6", 4) == 0)
45 return c4d_load_v6(context, stream, model);
46 else {
47 g_warning("unknown C4D magic: %s", magic);
48 return FALSE;
49 }
50 } else if(strncmp(magic + 1, "C50", 3) == 0) {
51 g_debug("C4D v5: %s", magic);
52 return c4d_load_v5(context, stream, model);
53 } else {
54 g_warning("C4D: unknown magic %s, not a C4D file?", magic);
55 return FALSE;
56 }
57 return TRUE;
58}
59
60EAPI
61gchar *plugin_description(void)
62{
63 return g_strdup("Cinema4D models.");
64}
65
66EAPI
67gchar **plugin_extensions(void)
68{
69 return g_strsplit("c4d", ":", 0);
70}
71
72/*****************************************************************************/
73
74static gchar *c4d_read_wchar(G3DStream *stream, gsize *n_bytes)
75{
76 guint32 len;
77 gunichar2 *u16text;
78 gchar *text;
79 gint32 i;
80 GError *error = NULL;
81
82 len = g3d_stream_read_int32_be(stream);
83 *n_bytes += 4 + len;
84 u16text = g_new0(gunichar2, len + 1);
85 for(i = 0; i < len / 2; i ++)
86 u16text[i] = g3d_stream_read_int16_be(stream);
87 text = g_utf16_to_utf8(u16text, len, NULL, NULL, &error);
88 if(error != NULL) {
89 g_warning("UTF-16 to UTF-8 conversion failed: %s", error->message);
90 g_error_free(error);
91 }
92 g_free(u16text);
93 return text;
94}
95
96#define C4D_DEBUG_OPCODE 0
97
98static gboolean c4d_handle_opcode(guint8 opcode, G3DStream *stream,
99 G3DModel *model, gsize *n_bytes, guint32 *level)
100{
101 guint8 u1, *data;
102 guint16 w1, w2, w3;
103 guint32 x1, x3;
104 gsize x2;
105 G3DFloat f1, f2, f3;
106 gchar *str;
107 gint32 i;
108
109 switch(opcode) {
110 case 0x01: /* 64 bit something */
111 *level += 1;
112 x1 = g3d_stream_read_int32_be(stream);
113 x2 = g3d_stream_read_int32_be(stream);
114 *n_bytes += 8;
115#if DEBUG > C4D_DEBUG_OPCODE
116 g_debug("\\%s01: 0x%08x 0x%08x", debug_pad(*level), x1, x2);
117#endif
118 break;
119 case 0x02: /* no payload */
120#if DEBUG > C4D_DEBUG_OPCODE
121 g_debug("\\%s02", debug_pad(*level));
122#endif
123 if(*level == 0) {
124 g_warning("E: 02: level == 0)");
125 } else
126 *level -= 1;
127 break;
128 case 0x0C: /* 8 bit something */
129 u1 = g3d_stream_read_int8(stream);
130 *n_bytes += 1;
131#if DEBUG > C4D_DEBUG_OPCODE
132 g_debug("\\%s0C: 0x%02x", debug_pad(*level), u1);
133#endif
134 break;
135 case 0x0F: /* 32 bit something */
136 x1 = g3d_stream_read_int32_be(stream);
137 *n_bytes += 4;
138#if DEBUG > C4D_DEBUG_OPCODE
139 g_debug("\\%s0F: 0x%08x", debug_pad(*level), x1);
140#endif
141 break;
142 case 0x10: /* 32 bit something */
143 x1 = g3d_stream_read_int32_be(stream);
144 *n_bytes += 4;
145#if DEBUG > C4D_DEBUG_OPCODE
146 g_debug("\\%s10: 0x%08x", debug_pad(*level), x1);
147#endif
148 break;
149 case 0x13: /* float */
150 f1 = g3d_stream_read_float_be(stream);
151 *n_bytes += 4;
152#if DEBUG > C4D_DEBUG_OPCODE
153 g_debug("\\%s13: %.3f", debug_pad(*level), f1);
154#endif
155 break;
156 case 0x15: /* 8 bit something */
157 u1 = g3d_stream_read_int8(stream);
158 *n_bytes += 1;
159#if DEBUG > C4D_DEBUG_OPCODE
160 g_debug("\\%s15: 0x%02x", debug_pad(*level), u1);
161#endif
162 break;
163 case 0x16: /* 2 x float */
164 f1 = g3d_stream_read_float_be(stream);
165 f2 = g3d_stream_read_float_be(stream);
166 *n_bytes += 8;
167#if DEBUG > C4D_DEBUG_OPCODE
168 g_debug("\\%s16: %.3f, %.3f", debug_pad(*level), f1, f2);
169#endif
170 break;
171 case 0x17: /* 3 x float */
172 f1 = g3d_stream_read_float_be(stream);
173 f2 = g3d_stream_read_float_be(stream);
174 f3 = g3d_stream_read_float_be(stream);
175 *n_bytes += 12;
176#if DEBUG > C4D_DEBUG_OPCODE
177 g_debug("\\%s17: %.3f, %.3f, %.3f", debug_pad(*level), f1, f2, f3);
178#endif
179 break;
180 case 0x19: /* 12 x float */
181#if DEBUG > C4D_DEBUG_OPCODE
182 g_debug("\\%s19:", debug_pad(*level));
183#endif
184 for(i = 0; i < 4; i ++) {
185 f1 = g3d_stream_read_float_be(stream);
186 f2 = g3d_stream_read_float_be(stream);
187 f3 = g3d_stream_read_float_be(stream);
188 *n_bytes += 12;
189#if DEBUG > C4D_DEBUG_OPCODE
190 g_debug("\\%s %.3f, %.3f, %.3f", debug_pad(*level),
191 f1, f2, f3);
192#endif
193 }
194 break;
195 case 0x80: /* data */
196 x1 = g3d_stream_read_int32_be(stream);
197 *n_bytes += 4 + x1;
198 data = g_new0(guint8, x1);
199 g3d_stream_read(stream, data, x1);
200#if DEBUG > C4D_DEBUG_OPCODE
201 g_debug("\\%s80: %d bytes of data", debug_pad(*level), x1);
202#endif
203 g_free(data);
204 break;
205 case 0x81: /* embedded file */
206 x1 = g3d_stream_read_int32_be(stream);
207 *n_bytes += 4;
208 g3d_stream_skip(stream, x1);
209 *n_bytes += x1;
210#if DEBUG > C4D_DEBUG_OPCODE
211 g_debug("\\%s81: skipped %d bytes", debug_pad(*level), x1);
212#endif
213 break;
214 case 0x82: /* wide-char string */
215 str = c4d_read_wchar(stream, n_bytes);
216#if DEBUG > C4D_DEBUG_OPCODE
217 g_debug("\\%s82: %s", debug_pad(*level), str);
218#endif
219 if(str)
220 g_free(str);
221 break;
222 case 0x83: /* file name */
223 str = c4d_read_wchar(stream, n_bytes);
224#if DEBUG > C4D_DEBUG_OPCODE
225 g_debug("\\%s83: %s", debug_pad(*level), str);
226#endif
227 if(str)
228 g_free(str);
229 break;
230 case 0x84: /* typed content */
231 x1 = g3d_stream_read_int32_be(stream);
232 *n_bytes += 4;
233 x2 = 0;
234#if DEBUG > C4D_DEBUG_OPCODE
235 g_debug("\\%s84: 0x%08x", debug_pad(*level), x1);
236#endif
237 *level += 1;
238 while(x2 < x1) {
239 u1 = g3d_stream_read_int8(stream);
240 x2 ++;
241 if(!c4d_handle_opcode(u1, stream, model, &x2, level))
242 return FALSE;
243 x3 = g3d_stream_read_int32_be(stream);
244 x2 += 4;
245 u1 = g3d_stream_read_int8(stream);
246 x2 += 1;
247 }
248 *level -= 1;
249 *n_bytes += x1;
250 break;
251 case 0x85: /* n * 3 * float */
252 x1 = g3d_stream_read_int32_be(stream);
253 *n_bytes += 4;
254#if DEBUG > C4D_DEBUG_OPCODE
255 g_debug("\\%s85:", debug_pad(*level));
256#endif
257 for(i = 0; i < (x1 / 12); i ++) {
258 f1 = g3d_stream_read_float_be(stream);
259 f2 = g3d_stream_read_float_be(stream);
260 f3 = g3d_stream_read_float_be(stream);
261 *n_bytes += 12;
262#if DEBUG > C4D_DEBUG_OPCODE
263 g_debug("\\%s %.3f, %.3f, %.3f", debug_pad(*level),
264 f1, f2, f3);
265#endif
266 }
267 break;
268 case 0x86: /* n * int16 */
269 x1 = g3d_stream_read_int32_be(stream);
270 *n_bytes += 4;
271#if DEBUG > C4D_DEBUG_OPCODE
272 g_debug("\\%s86:", debug_pad(*level));
273#endif
274 for(i = 0; i < (x1 / 2); i ++) {
275 w1 = g3d_stream_read_int16_be(stream);
276 *n_bytes += 2;
277#if DEBUG > C4D_DEBUG_OPCODE
278 g_debug("\\%s 0x%04x", debug_pad(*level), w1);
279#endif
280 }
281 break;
282 case 0x87: /* n * 3 * int16 */
283 x1 = g3d_stream_read_int32_be(stream);
284 *n_bytes += 4;
285#if DEBUG > C4D_DEBUG_OPCODE
286 g_debug("\\%s87:", debug_pad(*level));
287#endif
288 for(i = 0; i < (x1 / 6); i ++) {
289 w1 = g3d_stream_read_int16_be(stream);
290 w2 = g3d_stream_read_int16_be(stream);
291 w3 = g3d_stream_read_int16_be(stream);
292 *n_bytes += 6;
293#if DEBUG > C4D_DEBUG_OPCODE
294 g_debug("\\%s 0x%04x 0x%04x 0x%04x", debug_pad(*level),
295 w1, w2, w3);
296#endif
297 }
298 break;
299 default:
300 if(g3d_stream_eof(stream))
301 return TRUE;
302#if DEBUG > 0
303 g_debug("%sunknown opcode 0x%02X @ 0x%08x", debug_pad(*level),
304 opcode, (guint32)g3d_stream_tell(stream));
305#endif
306 return FALSE;
307 }
308 return TRUE;
309}
310
311static gboolean c4d_read_v5_cntr(G3DContext *context, G3DStream *stream,
312 G3DModel *model, goffset *n_bytes, guint32 level)
313{
314 guint32 id;
315 goffset size;
316
317 while(!g3d_stream_eof(stream) && (*n_bytes > 0)) {
318 id = g3d_stream_read_int32_be(stream);
319 size = g3d_stream_read_int32_be(stream);
320 *n_bytes -= 8;
321 if(*n_bytes < 0)
322 return FALSE;
323#if DEBUG > 0
324 g_debug("\\%s0x%08x @ 0x%08x (%u bytes)", debug_pad(level), id,
325 (guint32)g3d_stream_tell(stream), (guint32)size);
326#endif
327 *n_bytes -= size;
328 if((id == 0x00001647) || (id == 0x0000139c)) {
329 if(!c4d_read_v5_cntr(context, stream, model, &size, level + 1))
330 return FALSE;
331 } else {
332 g3d_stream_skip(stream, size);
333 }
334 }
335 return TRUE;
336}
337
338static gboolean c4d_load_v5(G3DContext *context, G3DStream *stream,
339 G3DModel *model)
340{
341 goffset n_bytes;
342
343 n_bytes = g3d_stream_read_int32_be(stream); /* file size */
344 g3d_stream_read_int32_be(stream); /* DOK5 */
345 g3d_stream_read_int32_be(stream); /* unknown 1 */
346
347 return c4d_read_v5_cntr(context, stream, model, &n_bytes, 0);
348}
349
350static gboolean c4d_load_v6(G3DContext *context, G3DStream *stream,
351 G3DModel *model)
352{
353 guint8 opcode;
354 gsize n_bytes = 0;
355 guint32 level = 0;
356
357 while(!g3d_stream_eof(stream)) {
358 opcode = g3d_stream_read_int8(stream);
359 if(!c4d_handle_opcode(opcode, stream, model, &n_bytes, &level))
360 return FALSE;
361 }
362 return TRUE;
363}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile
new file mode 100644
index 0000000..d870ee3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_cob/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_cob
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_cob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_cob_la_OBJECTS = imp_cob.lo
59imp_cob_la_OBJECTS = $(am_imp_cob_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_cob_la_SOURCES)
73DIST_SOURCES = $(imp_cob_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_cob.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_cob_la_SOURCES = imp_cob.c
229imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_cob.la: $(imp_cob_la_OBJECTS) $(imp_cob_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_cob_la_OBJECTS) $(imp_cob_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_cob.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am
new file mode 100644
index 0000000..523e7c0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_cob.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_cob_la_SOURCES = imp_cob.c
20imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in
new file mode 100644
index 0000000..d65e4c6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_cob
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_cob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_cob_la_OBJECTS = imp_cob.lo
59imp_cob_la_OBJECTS = $(am_imp_cob_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_cob_la_SOURCES)
73DIST_SOURCES = $(imp_cob_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_cob.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_cob_la_SOURCES = imp_cob.c
229imp_cob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_cob/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_cob.la: $(imp_cob_la_OBJECTS) $(imp_cob_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_cob_la_OBJECTS) $(imp_cob_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_cob.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c
new file mode 100644
index 0000000..0e9df6b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_cob/imp_cob.c
@@ -0,0 +1,430 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26
27#include <g3d/types.h>
28#include <g3d/context.h>
29#include <g3d/material.h>
30#include <g3d/model.h>
31#include <g3d/vector.h>
32#include <g3d/matrix.h>
33#include <g3d/stream.h>
34#include <g3d/iff.h>
35
36static gboolean cob_read_file_bin(G3DStream *stream, G3DModel *model,
37 gboolean is_be, G3DContext *context);
38
39EAPI
40gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
41 G3DModel *model, gpointer user_data)
42{
43 gchar header[32];
44 gboolean file_is_ascii, file_is_be;
45 G3DMatrix rmatrix[16];
46
47 if(g3d_stream_read(stream, header, 32) != 32) {
48 g_warning("COB: could not read header");
49 return FALSE;
50 }
51
52 if(strncmp(header, "Caligari ", 9) != 0) {
53 g_warning("COB: '%s' is not a valid TrueSpace file", stream->uri);
54 return FALSE;
55 }
56
57 file_is_ascii = (header[15] == 'A');
58 file_is_be = (header[16] == 'H');
59
60#if DEBUG > 0
61 g_debug("COB: file version %.*s, %s, %s endian\n",
62 6, header + 9,
63 file_is_ascii ? "ASCII" : "binary",
64 file_is_be ? "big" : "little" );
65#endif
66
67 if(file_is_ascii) {
68 g_warning("COB: ASCII files are unsupported at the moment");
69 return FALSE;
70 }
71
72 cob_read_file_bin(stream, model, file_is_be, context);
73
74 g3d_matrix_identity(rmatrix);
75 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
76 g3d_model_transform(model, rmatrix);
77
78 return TRUE;
79}
80
81EAPI
82gchar *plugin_description(void)
83{
84 return g_strdup("Caligari TrueSpace models.");
85}
86
87EAPI
88gchar **plugin_extensions(void)
89{
90 return g_strsplit("cob", ":", 0);
91}
92
93/*
94 * COB specific
95 */
96
97#define cob_read_e(stream, what, be) \
98 ((be) ? g3d_stream_read_ ## what ## _be(stream) : \
99 g3d_stream_read_ ## what ## _le(stream))
100
101#define COB_F_HOLE 0x08
102#define COB_F_BACKCULL 0x10
103
104static gboolean cob_read_chunk_header_bin(G3DStream *stream, gboolean is_be,
105 guint32 *type, guint16 *ver_maj, guint16 *ver_min,
106 guint32 *id, guint32 *parent_id, guint32 *len)
107{
108 *type =
109 (g3d_stream_read_int8(stream) << 24) +
110 (g3d_stream_read_int8(stream) << 16) +
111 (g3d_stream_read_int8(stream) << 8) +
112 (g3d_stream_read_int8(stream));
113 *ver_maj = cob_read_e(stream, int16, is_be);
114 *ver_min = cob_read_e(stream, int16, is_be);
115 *id = cob_read_e(stream, int32, is_be);
116 *parent_id = cob_read_e(stream, int32, is_be);
117 *len = cob_read_e(stream, int32, is_be);
118
119 return TRUE;
120}
121
122static gchar *cob_read_name_bin(G3DStream *stream, guint32 *len, gboolean is_be)
123{
124 gchar *buffer, *name;
125 guint32 dc, namelen;
126
127 dc = cob_read_e(stream, int16, is_be);
128 *len -= 2;
129
130 namelen = cob_read_e(stream, int16, is_be);
131 *len -= 2;
132
133 buffer = g_new0(gchar, namelen + 1);
134 g3d_stream_read(stream, buffer, namelen);
135 *len -= namelen;
136
137 name = g_strdup_printf("%s (%d)", buffer, dc);
138
139 g_free(buffer);
140 return name;
141}
142
143static G3DObject *cob_read_grou_bin(G3DStream *stream, guint32 len, gboolean is_be)
144{
145 G3DObject *object;
146
147 object = g_new0(G3DObject, 1);
148 object->name = cob_read_name_bin(stream, &len, is_be);
149#if DEBUG > 0
150 g_debug("COB: Grou: name is '%s'", object->name);
151#endif
152
153 if(len > 0)
154 g3d_stream_skip(stream, len);
155
156 return object;
157}
158
159static G3DObject *cob_read_polh_bin(G3DStream *stream, guint32 len, gboolean is_be,
160 G3DContext *context)
161{
162 G3DObject *object;
163 guint32 nfaces, i;
164 G3DFloat curpos[16];
165
166 object = g_new0(G3DObject, 1);
167 object->name = cob_read_name_bin(stream, &len, is_be);
168#if DEBUG > 0
169 g_debug("COB: PolH: name is '%s'", object->name);
170#endif
171
172 /* local axes: 4 x 12 */
173 g3d_stream_skip(stream, 48);
174 len -= 48;
175
176 /* current position: 3 x 16 */
177 g3d_matrix_identity(curpos);
178 for(i = 0; i < 12; i ++)
179 {
180 curpos[i] = cob_read_e(stream, float, is_be);
181 len -= 4;
182 }
183 g3d_matrix_transpose(curpos);
184
185 /*g3d_matrix_dump(curpos);*/
186
187 /* vertex list */
188 object->vertex_count = cob_read_e(stream, int32, is_be);
189 len -= 4;
190 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
191 for(i = 0; i < object->vertex_count; i ++)
192 {
193 object->vertex_data[i*3+0] = cob_read_e(stream, float, is_be);
194 object->vertex_data[i*3+1] = cob_read_e(stream, float, is_be);
195 object->vertex_data[i*3+2] = cob_read_e(stream, float, is_be);
196 g3d_vector_transform(
197 &(object->vertex_data[i*3+0]),
198 &(object->vertex_data[i*3+1]),
199 &(object->vertex_data[i*3+2]),
200 curpos);
201 g3d_context_update_interface(context);
202 len -= 12;
203 }
204
205 /* texture vertex list */
206 object->tex_vertex_count = cob_read_e(stream, int32, is_be);
207 len -= 4;
208 object->tex_vertex_data = g_new0(G3DFloat, object->tex_vertex_count * 2);
209 for(i = 0; i < object->tex_vertex_count; i ++)
210 {
211 object->tex_vertex_data[i*2+0] = cob_read_e(stream, float, is_be);
212 object->tex_vertex_data[i*2+1] = cob_read_e(stream, float, is_be);
213 g3d_context_update_interface(context);
214 len -= 8;
215 }
216
217 /* faces and holes */
218 nfaces = cob_read_e(stream, int32, is_be);
219 len -= 4;
220 for(i = 0; i < nfaces; i ++)
221 {
222 G3DFace *face;
223 guint8 flags;
224 guint32 nverts, j, matidx;
225
226 flags = g3d_stream_read_int8(stream);
227 len -= 1;
228 if(flags & COB_F_HOLE)
229 {
230 /* hole: ignore for now */
231 nverts = cob_read_e(stream, int16, is_be);
232 len -= 2;
233 for(j = 0; j < nverts; j ++)
234 {
235 cob_read_e(stream, int32, is_be);
236 cob_read_e(stream, int32, is_be);
237 len -= 8;
238 }
239 }
240 else
241 {
242 /* "real" face */
243 nverts = cob_read_e(stream, int16, is_be);
244 len -= 2;
245 matidx = cob_read_e(stream, int16, is_be);
246 len -= 2;
247 face = g_new0(G3DFace, 1);
248
249 face->vertex_count = nverts;
250 face->vertex_indices = g_new0(guint32, nverts);
251 for(j = 0; j < nverts; j ++)
252 {
253 face->vertex_indices[j] = cob_read_e(stream, int32, is_be);
254 cob_read_e(stream, int32, is_be); /* UV indices */
255 len -= 8;
256 }
257
258 /* set material */
259 if(matidx < g_slist_length(object->materials))
260 face->material = g_slist_nth_data(object->materials, matidx);
261 else
262 {
263 for(j = g_slist_length(object->materials); j <= matidx; j ++)
264 {
265 G3DMaterial *material = g3d_material_new();
266 material->name = g_strdup_printf("fallback material %d",
267 j);
268 object->materials =
269 g_slist_append(object->materials, material);
270 }
271
272 face->material = g_slist_nth_data(object->materials, matidx);
273 }
274
275 object->faces = g_slist_prepend(object->faces, face);
276 }
277
278 g3d_context_update_interface(context);
279 }
280
281 if(len > 0)
282 g3d_stream_skip(stream, len);
283
284 return object;
285}
286
287static int cob_read_mat1_bin(G3DStream *stream, guint32 len, gboolean is_be,
288 G3DObject *object)
289{
290 G3DMaterial *material;
291 guint32 matidx;
292
293 g_return_val_if_fail(object != NULL, FALSE);
294
295 matidx = cob_read_e(stream, int16, is_be);
296 len -= 2;
297
298 material = g_slist_nth_data(object->materials, matidx);
299
300 if(material)
301 {
302 g_free(material->name);
303 material->name = g_strdup_printf("material #%d", matidx);
304
305 /* shader type */
306 g3d_stream_read_int8(stream);
307 len --;
308
309 /* facet type */
310 g3d_stream_read_int8(stream);
311 len --;
312
313 /* autofacet angle */
314 g3d_stream_read_int8(stream);
315 len --;
316
317 /* RGBA */
318 material->r = cob_read_e(stream, float, is_be);
319 material->g = cob_read_e(stream, float, is_be);
320 material->b = cob_read_e(stream, float, is_be);
321 material->a = cob_read_e(stream, float, is_be);
322 len -= 16;
323 }
324 else
325 {
326#if DEBUG > 0
327 g_debug("COB: Mat1: material #%d not used, ignoring...", matidx);
328#endif
329 }
330
331 if(len > 0)
332 g3d_stream_skip(stream, len);
333
334 return TRUE;
335}
336
337static int cob_read_unit_bin(G3DStream *stream, guint32 len, gboolean is_be)
338{
339 guint16 uidx;
340#if DEBUG > 0
341 static gchar *units[] = {
342 "millimeters",
343 "centimeters",
344 "meters",
345 "kilometers",
346 "inches",
347 "feet",
348 "yards",
349 "miles",
350 "points" };
351#endif
352
353 uidx = cob_read_e(stream, int16, is_be);
354#if DEBUG > 0
355 if(uidx >= (sizeof(units) / sizeof(gchar *)))
356 {
357 g_warning("COB: Unit: out of range (%d)", uidx);
358 return FALSE;
359 }
360 g_debug("COB: units are %s", units[uidx]);
361#endif
362 return TRUE;
363}
364
365static gboolean cob_read_file_bin(G3DStream *stream, G3DModel *model,
366 gboolean is_be, G3DContext *context)
367{
368 G3DObject *object = NULL;
369 guint32 type, id, parent_id, len;
370 guint16 ver_min, ver_maj;
371 gboolean exit = FALSE;
372
373 do {
374 cob_read_chunk_header_bin(stream, is_be, &type, &ver_maj, &ver_min,
375 &id, &parent_id, &len);
376
377#if DEBUG > 0
378 g_debug("\\[%c%c%c%c] 0x%08x (0x%08x) %d bytes",
379 (type >> 24) & 0xFF, (type >> 16) & 0xFF,
380 (type >> 8) & 0xFF, type & 0xFF,
381 id, parent_id, len);
382#endif
383
384 switch(type)
385 {
386 case G3D_IFF_MKID('E', 'N', 'D', ' '):
387 /* end of file */
388 exit = TRUE;
389 break;
390
391 case G3D_IFF_MKID('G', 'r', 'o', 'u'):
392 /* group */
393 object = cob_read_grou_bin(stream, len, is_be);
394#if 0
395 model->objects = g_slist_append(model->objects, object);
396#endif
397 break;
398
399 case G3D_IFF_MKID('M', 'a', 't', '1'):
400 cob_read_mat1_bin(stream, len, is_be, object);
401 break;
402
403 case G3D_IFF_MKID('P', 'o', 'l', 'H'):
404 /* polygonal data */
405 object = cob_read_polh_bin(stream, len, is_be, context);
406 model->objects = g_slist_append(model->objects, object);
407 break;
408
409 case G3D_IFF_MKID('U', 'n', 'i', 't'):
410 cob_read_unit_bin(stream, len, is_be);
411 break;
412
413 default:
414#if DEBUG > 0
415 g_warning("COB: unknown chunk type: %c%c%c%c: 0x%08x (0x%08x),"
416 " %u bytes",
417 (type >> 24) & 0xFF, (type >> 16) & 0xFF,
418 (type >> 8) & 0xFF, type & 0xFF,
419 id, parent_id, len);
420#endif
421 g3d_stream_skip(stream, len);
422 break;
423 }
424 }
425 while(type && !exit);
426
427 return TRUE;
428}
429
430#undef cob_read_e
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile
new file mode 100644
index 0000000..258d4dd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile
@@ -0,0 +1,518 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_dae/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_dae
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_dae_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dae_la_OBJECTS = imp_dae.lo imp_dae_xml.lo imp_dae_library.lo \
59 imp_dae_cb.lo
60imp_dae_la_OBJECTS = $(am_imp_dae_la_OBJECTS)
61am_imp_dae_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_dae_la_SOURCES)
75DIST_SOURCES = $(imp_dae_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_dae
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae
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
218pluginimp_LTLIBRARIES = imp_dae.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 -I/usr/include/libxml2
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_dae_la_SOURCES = imp_dae.c \
231 imp_dae_xml.h imp_dae_xml.c \
232 imp_dae_library.h imp_dae_library.c \
233 imp_dae_cb.h imp_dae_cb.c imp_dae_chunks.h
234
235imp_dae_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -L/usr/lib/x86_64-linux-gnu -lxml2
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_dae.la: $(imp_dae_la_OBJECTS) $(imp_dae_la_DEPENDENCIES)
297 $(LINK) $(am_imp_dae_la_rpath) $(imp_dae_la_OBJECTS) $(imp_dae_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305include ./$(DEPDIR)/imp_dae.Plo
306include ./$(DEPDIR)/imp_dae_cb.Plo
307include ./$(DEPDIR)/imp_dae_library.Plo
308include ./$(DEPDIR)/imp_dae_xml.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_dae/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.am
new file mode 100644
index 0000000..27cd426
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.am
@@ -0,0 +1,25 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if HAVE_LIBXML2
4pluginimp_LTLIBRARIES = imp_dae.la
5endif
6
7AM_CFLAGS = \
8 -Wall -ansi -pedantic \
9 -DG_LOG_DOMAIN=\"LibG3D\" \
10 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
11 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
12
13INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
14
15AM_LDFLAGS = \
16 -no-undefined -module \
17 @PLUGINS_LDFLAGS@
18
19LIBTOOL += --quiet
20
21imp_dae_la_SOURCES = imp_dae.c \
22 imp_dae_xml.h imp_dae_xml.c \
23 imp_dae_library.h imp_dae_library.c \
24 imp_dae_cb.h imp_dae_cb.c imp_dae_chunks.h
25imp_dae_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/Makefile.in
new file mode 100644
index 0000000..68bb8a3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/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_dae
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_dae_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dae_la_OBJECTS = imp_dae.lo imp_dae_xml.lo imp_dae_library.lo \
59 imp_dae_cb.lo
60imp_dae_la_OBJECTS = $(am_imp_dae_la_OBJECTS)
61@HAVE_LIBXML2_TRUE@am_imp_dae_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_dae_la_SOURCES)
75DIST_SOURCES = $(imp_dae_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@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_dae.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_dae_la_SOURCES = imp_dae.c \
231 imp_dae_xml.h imp_dae_xml.c \
232 imp_dae_library.h imp_dae_library.c \
233 imp_dae_cb.h imp_dae_cb.c imp_dae_chunks.h
234
235imp_dae_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_dae/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_dae.la: $(imp_dae_la_OBJECTS) $(imp_dae_la_DEPENDENCIES)
297 $(LINK) $(am_imp_dae_la_rpath) $(imp_dae_la_OBJECTS) $(imp_dae_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae_cb.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae_library.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dae_xml.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_dae/imp_dae.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae.c
new file mode 100644
index 0000000..c478d6e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae.c
@@ -0,0 +1,126 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <locale.h>
25
26#include <libxml/parser.h>
27#include <libxml/tree.h>
28
29#include <g3d/stream.h>
30#include <g3d/types.h>
31
32#include "imp_dae_xml.h"
33#include "imp_dae_library.h"
34#include "imp_dae_cb.h"
35
36static int dae_input_read_cb(gpointer ctx, gchar *buffer, gint len)
37{
38 return g3d_stream_read((G3DStream *)ctx, buffer, len);
39}
40
41static gboolean dae_load_scene(G3DContext *context, G3DStream *stream,
42 G3DModel *model, DaeLibrary *lib, xmlDocPtr xmldoc);
43
44/*****************************************************************************/
45
46EAPI
47gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
48 G3DModel *model, gpointer user_data)
49{
50 xmlDocPtr xmldoc;
51 DaeLibrary *lib;
52 gboolean retval = FALSE;
53
54 setlocale(LC_NUMERIC, "C");
55 xmlInitParser();
56
57 xmldoc = xmlReadIO(dae_input_read_cb, NULL, stream, stream->uri, NULL, 0);
58 if(xmldoc) {
59 lib = dae_library_load(xmldoc);
60 retval = dae_load_scene(context, stream, model, lib, xmldoc);
61
62 dae_library_cleanup(lib);
63 xmlFreeDoc(xmldoc);
64 }
65
66 xmlCleanupParser();
67 return retval;
68}
69
70EAPI
71gchar *plugin_description(void)
72{
73 return g_strdup("COLLADA models.");
74}
75
76EAPI
77gchar **plugin_extensions(void)
78{
79 return g_strsplit("dae", ":", 0);
80}
81
82/*****************************************************************************/
83/* COLLADA specific stuff */
84
85static gboolean dae_load_scene(G3DContext *context, G3DStream *stream,
86 G3DModel *model, DaeLibrary *lib, xmlDocPtr xmldoc)
87{
88 DaeGlobalData *global;
89 DaeLocalData *local;
90 xmlNodePtr scenenode, node = NULL, instance = NULL;
91 gchar *name;
92
93 scenenode = dae_xml_get_child_by_tagname(
94 xmlDocGetRootElement(xmldoc), "scene");
95
96 if(scenenode == NULL) {
97 g_warning("DAE: could not get scene node");
98 return FALSE;
99 }
100
101 global = g_new0(DaeGlobalData, 1);
102 global->context = context;
103 global->stream = stream;
104 global->model = model;
105 global->xmldoc = xmldoc;
106 global->lib = lib;
107
108 while(dae_xml_next_child(lib, scenenode, &node, &instance, &name)) {
109#if DEBUG > 2
110 g_debug("DAE: got node %s", name);
111#endif
112 if(strcmp(name, "visual_scene") == 0) {
113 local = g_new0(DaeLocalData, 1);
114 local->node = node;
115 local->instance = instance;
116 local->parent = scenenode;
117 dae_cb_visual_scene(global, local);
118 g_free(local);
119 }
120 g_free(name);
121 }
122
123 g_free(global);
124
125 return TRUE;
126}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.c
new file mode 100644
index 0000000..d6aea7d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.c
@@ -0,0 +1,877 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/config.h>
26
27#include <g3d/types.h>
28#include <g3d/material.h>
29#include <g3d/matrix.h>
30#include <g3d/object.h>
31#include <g3d/texture.h>
32#include <g3d/stream.h>
33
34#include "imp_dae_cb.h"
35#include "imp_dae_chunks.h"
36#include "imp_dae_xml.h"
37
38typedef struct {
39 guint32 offset;
40 enum {
41 SEM_UNKNOWN,
42 SEM_VERTEX,
43 SEM_NORMAL,
44 SEM_TEXCOORD
45 } semantic;
46 gchar *source;
47} DaeInput;
48
49/*****************************************************************************/
50
51static G3DMaterial *dae_get_material_by_name(DaeGlobalData *global,
52 const gchar *id, guint32 level)
53{
54 G3DMaterial *material;
55 GSList *mitem;
56 xmlNodePtr matnode;
57
58 /* try to find material */
59 for(mitem = global->model->materials; mitem != NULL; mitem = mitem->next) {
60 material = (G3DMaterial *)mitem->data;
61 if(strcmp(material->name, id) == 0)
62 return material;
63 }
64
65 material = g3d_material_new();
66 material->name = g_strdup(id);
67 global->model->materials = g_slist_append(global->model->materials,
68 material);
69
70 /* find material in library */
71 matnode = dae_library_lookup(global->lib, "symbol", id);
72
73 if(matnode) {
74 dae_xml_parse(global, matnode, dae_chunks_material,
75 level, material);
76 }
77 return material;
78}
79
80static GSList *dae_get_inputs(xmlNodePtr node)
81{
82 xmlNodePtr inode = NULL;
83 gchar *soff, *ssem;
84 DaeInput *input;
85 GSList *inputs = NULL;
86
87 while(dae_xml_next_child_by_tagname(node, &inode, "input")) {
88 input = g_new0(DaeInput, 1);
89 soff = dae_xml_get_attr(inode, "offset");
90 if(soff) {
91 input->offset = atoi(soff);
92 g_free(soff);
93 }
94 ssem = dae_xml_get_attr(inode, "semantic");
95 if(ssem) {
96 if(strcmp(ssem, "VERTEX") == 0)
97 input->semantic = SEM_VERTEX;
98 else if(strcmp(ssem, "NORMAL") == 0)
99 input->semantic = SEM_NORMAL;
100 else if(strcmp(ssem, "TEXCOORD") == 0)
101 input->semantic = SEM_TEXCOORD;
102 else {
103 g_warning("DAE: unknown input semantic '%s'", ssem);
104 input->semantic = SEM_UNKNOWN;
105 }
106 g_free(ssem);
107 }
108 input->source = dae_xml_get_attr(inode, "source");
109 inputs = g_slist_append(inputs, input);
110 }
111 return inputs;
112}
113
114static void dae_inputs_free(GSList *inputs)
115{
116 GSList *item;
117 DaeInput *input;
118
119 for(item = inputs; item != NULL; item = item->next) {
120 input = (DaeInput *)item->data;
121 if(input->source)
122 g_free(input->source);
123 g_free(input);
124 item->data = NULL;
125 }
126 g_slist_free(inputs);
127}
128
129static gboolean dae_load_source(DaeLibrary *lib, gchar *id,
130 G3DFloat **asrc, guint32 *nsrc)
131{
132 xmlNodePtr snode, fnode;
133 gchar *scnt, *next = NULL;
134 gint i;
135
136 snode = dae_library_lookup(lib, "source", id + 1);
137#if DEBUG > 0
138 g_debug("DAE: source '%s': %p", id + 1, (void *)snode);
139#endif
140 if(snode == NULL)
141 return FALSE;
142
143 fnode = dae_xml_get_child_by_tagname(snode, "float_array");
144 if(fnode == NULL)
145 return FALSE;
146
147 scnt = dae_xml_get_attr(fnode, "count");
148#if DEBUG > 0
149 g_debug("DAE: float_array count=\"%s\"", scnt);
150#endif
151 if(scnt == NULL)
152 return FALSE;
153 *nsrc = atoi(scnt);
154 g_free(scnt);
155 if(*nsrc == 0)
156 return FALSE;
157
158 *asrc = g_new0(G3DFloat, *nsrc);
159 for(i = 0; i < *nsrc; i ++)
160#if G3D_FLOAT_IS_DOUBLE
161 if(!dae_xml_next_double(fnode, &next, &((*asrc)[i])))
162#else
163 if(!dae_xml_next_float(fnode, &next, &((*asrc)[i])))
164#endif
165 return FALSE;
166
167 return TRUE;
168}
169
170/*****************************************************************************/
171
172gboolean dae_cb_bind_material(DaeGlobalData *global, DaeLocalData *local)
173{
174 return dae_xml_parse(global, local->node, dae_chunks_bind_material,
175 local->level, local->user_data);
176}
177
178gboolean dae_cb_effect(DaeGlobalData *global, DaeLocalData *local)
179{
180 return dae_xml_parse(global, local->node, dae_chunks_effect,
181 local->level, local->user_data);
182}
183
184gboolean dae_cb_geometry(DaeGlobalData *global, DaeLocalData *local)
185{
186 G3DObject *object;
187 G3DMaterial *material;
188
189 object = (G3DObject *)local->user_data;
190 g_return_val_if_fail(object != NULL, FALSE);
191
192 material = g3d_material_new();
193 material->name = g_strdup("(default material)");
194 object->materials = g_slist_append(object->materials, material);
195
196 if(local->instance) {
197 /* parse original node */
198 dae_xml_parse(global, local->instance,
199 dae_chunks_geometry, local->level, object);
200 }
201
202 /* parse instanced stuff */
203 return dae_xml_parse(global, local->node, dae_chunks_geometry,
204 local->level, object);
205}
206
207gboolean dae_cb_matrix(DaeGlobalData *global, DaeLocalData *local)
208{
209 G3DObject *object = local->user_data;
210 G3DTransformation *transform;
211 gchar *next = NULL;
212 gint i;
213
214 g_return_val_if_fail(object != NULL, FALSE);
215
216 transform = object->transformation;
217 if(transform == NULL) {
218 transform = g_new0(G3DTransformation, 1);
219 g3d_matrix_identity(transform->matrix);
220 object->transformation = transform;
221 }
222
223 for(i = 0; i < 16; i ++)
224#if G3D_FLOAT_IS_DOUBLE
225 dae_xml_next_double(local->node, &next, transform->matrix + i);
226#else
227 dae_xml_next_float(local->node, &next, transform->matrix + i);
228#endif
229 g3d_matrix_transpose(transform->matrix);
230#if DEBUG > 3
231 g_debug("DAE: matrix for '%s':", object->name);
232 g3d_matrix_dump(transform->matrix);
233#endif
234 return TRUE;
235}
236
237gboolean dae_cb_mesh(DaeGlobalData *global, DaeLocalData *local)
238{
239 return dae_xml_parse(global, local->node, dae_chunks_mesh,
240 local->level, local->user_data);
241}
242
243gboolean dae_cb_newparam(DaeGlobalData *global, DaeLocalData *local)
244{
245 G3DMaterial *material = (G3DMaterial *)local->user_data;
246 G3DStream *imgstream = NULL;
247 xmlNodePtr n1, n2;
248 gchar *siid = NULL, *filename, *subfile;
249#ifdef HAVE_LIBGSF
250 gchar *container, *pipe;
251#endif
252
253 g_return_val_if_fail(material != NULL, FALSE);
254
255 n1 = dae_xml_get_child_by_tagname(local->node, "surface");
256 if(n1 != NULL) {
257 n2 = dae_xml_get_child_by_tagname(n1, "init_from");
258 if(n2 != NULL)
259 siid = g_strdup((gchar *)n2->children->content);
260 }
261 if(siid == NULL)
262 return FALSE;
263
264 n1 = dae_library_lookup(global->lib, "image", siid);
265 g_free(siid);
266 if(n1 == NULL)
267 return FALSE;
268
269 n2 = dae_xml_get_child_by_tagname(n1, "init_from");
270 if(n2 == NULL)
271 return FALSE;
272
273 filename = (gchar *)n2->children->content;
274
275 if(strncmp(global->stream->uri, "zip://", 6) == 0) {
276#ifdef HAVE_LIBGSF
277 /* .dae was loaded from .kmz, get texture from .kmz, too */
278 pipe = strchr(global->stream->uri, '|');
279 if(pipe != NULL) {
280 container = g_strndup(global->stream->uri + 6,
281 (pipe - global->stream->uri) - 6);
282 subfile = filename;
283 while(strncmp(subfile, "../", 3) == 0)
284 subfile += 3;
285 g_debug("DAE: loading '%s' from: '%s'", subfile, container);
286 imgstream = g3d_stream_open_zip_from_stream(global->stream->zip_container, subfile);
287 }
288#endif
289 } else {
290 imgstream = g3d_stream_open_file(filename, "rb");
291 if(imgstream == NULL) {
292 /* if opened from unpacked doc.kml, textures are found in
293 * ../images/, so strip leading ../ */
294 subfile = filename;
295 while(strncmp(subfile, "../", 3) == 0)
296 subfile += 3;
297 imgstream = g3d_stream_open_file(subfile, "rb");
298 }
299 }
300
301 if(imgstream != NULL) {
302 material->tex_image = g3d_texture_load_from_stream(global->context,
303 global->model, imgstream);
304 if(material->tex_image) {
305 material->tex_image->tex_env = G3D_TEXENV_DECAL;
306 }
307 g3d_stream_close(imgstream);
308 return TRUE;
309 }
310
311 return FALSE;
312}
313
314gboolean dae_cb_node(DaeGlobalData *global, DaeLocalData *local)
315{
316 G3DObject *object, *pobject;
317 G3DMatrix matrix[16];
318 gchar *name;
319
320 name = dae_xml_get_attr(local->node, "name");
321 if(name == NULL)
322 name = dae_xml_get_attr(local->node, "id");
323 if(name == NULL)
324 return FALSE;
325
326 pobject = (G3DObject *)local->user_data;
327 object = g_new0(G3DObject, 1);
328 object->name = name;
329 if(pobject)
330 pobject->objects = g_slist_append(pobject->objects, object);
331 else
332 global->model->objects = g_slist_append(global->model->objects,
333 object);
334
335 if(dae_xml_parse(global, local->node, dae_chunks_node, local->level,
336 object)) {
337 if(object->transformation) {
338 g3d_object_transform(object, object->transformation->matrix);
339#if DEBUG > 3
340 g_debug("DAE: transforming object '%s'", object->name);
341 g3d_matrix_dump(object->transformation->matrix);
342#endif
343 g_free(object->transformation);
344 object->transformation = NULL;
345 }
346
347 if(!pobject) {
348 g3d_matrix_identity(matrix);
349 g3d_matrix_rotate(-90.0 * G_PI / 180.0, 1.0, 0.0, 0.0, matrix);
350 g3d_object_transform(object, matrix);
351 }
352 return TRUE;
353 }
354 return FALSE;
355}
356
357gboolean dae_cb_phong(DaeGlobalData *global, DaeLocalData *local)
358{
359 G3DMaterial *material = (G3DMaterial *)local->user_data;
360 xmlNodePtr n1, n2;
361 gchar *next;
362
363 g_return_val_if_fail(material != NULL, FALSE);
364
365 /* diffuse */
366 n1 = dae_xml_get_child_by_tagname(local->node, "diffuse");
367 if(n1 != NULL) {
368 n2 = dae_xml_get_child_by_tagname(n1, "color");
369 if(n2 != NULL) {
370 next = NULL;
371#if G3D_FLOAT_IS_DOUBLE
372 dae_xml_next_double(n2, &next, &(material->r));
373 dae_xml_next_double(n2, &next, &(material->g));
374 dae_xml_next_double(n2, &next, &(material->b));
375 dae_xml_next_double(n2, &next, &(material->a));
376#else
377 dae_xml_next_float(n2, &next, &(material->r));
378 dae_xml_next_float(n2, &next, &(material->g));
379 dae_xml_next_float(n2, &next, &(material->b));
380 dae_xml_next_float(n2, &next, &(material->a));
381#endif
382 }
383 }
384
385 /* specular */
386 n1 = dae_xml_get_child_by_tagname(local->node, "specular");
387 if(n1 != NULL) {
388 n2 = dae_xml_get_child_by_tagname(n1, "color");
389 if(n2 != NULL) {
390 next = NULL;
391 /* These are floats either way. */
392 dae_xml_next_float(n2, &next, &(material->specular[0]));
393 dae_xml_next_float(n2, &next, &(material->specular[1]));
394 dae_xml_next_float(n2, &next, &(material->specular[2]));
395 dae_xml_next_float(n2, &next, &(material->specular[3]));
396 }
397 }
398
399 return TRUE;
400}
401
402gboolean dae_cb_polylist(DaeGlobalData *global, DaeLocalData *local)
403{
404 G3DObject *object = local->user_data;
405 G3DFace *face;
406 G3DMaterial *material;
407 xmlNodePtr pnode, vnode;
408 gchar *scnt, *smat, *nextp = NULL, *nextv = NULL;
409 guint32 count, normal_count, tex_count, flags = 0;
410 gint i, j, nv, tmp;
411 GSList *inputs, *item;
412 DaeInput *input;
413 G3DFloat *normal_data = NULL, *tex_data = NULL;
414
415 g_return_val_if_fail(object != NULL, FALSE);
416
417 scnt = dae_xml_get_attr(local->node, "count");
418 g_return_val_if_fail(scnt != NULL, FALSE);
419 count = atoi(scnt);
420 g_free(scnt);
421 g_return_val_if_fail(count != 0, FALSE);
422
423 pnode = dae_xml_get_child_by_tagname(local->node, "p");
424 vnode = dae_xml_get_child_by_tagname(local->node, "vcount");
425 g_return_val_if_fail((pnode != NULL) && (vnode != NULL), FALSE);
426
427 /* material */
428 material = g_slist_nth_data(object->materials, 0);
429 smat = dae_xml_get_attr(local->node, "material");
430 if(smat != NULL) {
431 material = dae_get_material_by_name(global, smat, local->level);
432 g_free(smat);
433 }
434
435 /* get all inputs */
436 inputs = dae_get_inputs(local->node);
437 for(item = inputs; item != NULL; item = item->next) {
438 input = (DaeInput *)item->data;
439 if(input->semantic == SEM_NORMAL)
440 if(dae_load_source(global->lib, input->source,
441 &normal_data, &normal_count))
442 flags |= G3D_FLAG_FAC_NORMALS;
443 if(input->semantic == SEM_TEXCOORD)
444 if(dae_load_source(global->lib, input->source,
445 &tex_data, &tex_count) && (material->tex_image != NULL))
446 flags |= G3D_FLAG_FAC_TEXMAP;
447 }
448
449 for(i = 0; i < count; i ++) {
450 if(dae_xml_next_int(vnode, &nextv, &nv) && (nv > 0)) {
451 face = g_new0(G3DFace, 1);
452 face->vertex_count = nv;
453 face->vertex_indices = g_new0(guint32, nv);
454 face->material = material;
455 face->flags = flags;
456 object->faces = g_slist_append(object->faces, face);
457
458 if(face->flags & G3D_FLAG_FAC_NORMALS) {
459 face->normals = g_new0(G3DFloat, nv * 3);
460 }
461 if(face->flags & G3D_FLAG_FAC_TEXMAP) {
462 face->tex_image = material->tex_image;
463 face->tex_vertex_count = nv;
464 face->tex_vertex_data = g_new0(G3DFloat, nv * 2);
465 }
466
467 for(j = 0; j < nv; j ++) {
468 for(item = inputs; item != NULL; item = item->next) {
469 input = (DaeInput *)item->data;
470 dae_xml_next_int(pnode, &nextp, &tmp);
471 switch(input->semantic) {
472 case SEM_VERTEX:
473 face->vertex_indices[j] = tmp;
474 if(face->vertex_indices[j] >= object->vertex_count)
475 {
476 g_warning("polylist: [%s] face[%d] (%d) >= %d",
477 object->name, j, face->vertex_indices[j],
478 object->vertex_count);
479 face->vertex_indices[j] = 0;
480 }
481 break;
482 case SEM_NORMAL:
483 if(flags & G3D_FLAG_FAC_NORMALS) {
484 face->normals[j * 3 + 0] =
485 normal_data[tmp * 3 + 0];
486 face->normals[j * 3 + 1] =
487 normal_data[tmp * 3 + 1];
488 face->normals[j * 3 + 2] =
489 normal_data[tmp * 3 + 2];
490 }
491 break;
492 case SEM_TEXCOORD:
493 if(flags & G3D_FLAG_FAC_TEXMAP) {
494 face->tex_vertex_data[j * 2 + 0] =
495 tex_data[tmp * 2 + 0];
496 face->tex_vertex_data[j * 2 + 1] = 1.0 -
497 tex_data[tmp * 2 + 1];
498 }
499 break;
500 case SEM_UNKNOWN:
501 break;
502 }
503 } /* inputs */
504 }
505#if DEBUG > 3
506 g_debug("DAE: %-2i, %-2i, %-2i, (%-2i)",
507 face->vertex_indices[0],
508 face->vertex_indices[1],
509 face->vertex_indices[2],
510 ((nv > 3) ? face->vertex_indices[3] : -1));
511#endif
512 }
513 }
514
515 if(tex_data)
516 g_free(tex_data);
517 if(normal_data)
518 g_free(normal_data);
519 dae_inputs_free(inputs);
520
521 return TRUE;
522}
523
524gboolean dae_cb_profile_COMMON(DaeGlobalData *global, DaeLocalData *local)
525{
526 return dae_xml_parse(global, local->node, dae_chunks_profile_COMMON,
527 local->level, local->user_data);
528}
529
530gboolean dae_cb_rotate(DaeGlobalData *global, DaeLocalData *local)
531{
532 G3DObject *object = local->user_data;
533 G3DTransformation *transform;
534 G3DFloat x = 0.0, y = 0.0, z = 0.0, a = 0.0, m[16];
535 gchar *next = NULL;
536
537 g_return_val_if_fail(object != NULL, FALSE);
538
539 transform = object->transformation;
540 if(transform == NULL) {
541 transform = g_new0(G3DTransformation, 1);
542 g3d_matrix_identity(transform->matrix);
543 object->transformation = transform;
544 }
545
546#if G3D_FLOAT_IS_DOUBLE
547 dae_xml_next_double(local->node, &next, &x);
548 dae_xml_next_double(local->node, &next, &y);
549 dae_xml_next_double(local->node, &next, &z);
550 dae_xml_next_double(local->node, &next, &a);
551#else
552 dae_xml_next_float(local->node, &next, &x);
553 dae_xml_next_float(local->node, &next, &y);
554 dae_xml_next_float(local->node, &next, &z);
555 dae_xml_next_float(local->node, &next, &a);
556#endif
557 g_return_val_if_fail((x != 0.0) || (y != 0.0) || (z != 0.0), FALSE);
558 g3d_matrix_rotate(a, x, y, z, m);
559 g3d_matrix_multiply(transform->matrix, m, transform->matrix);
560#if DEBUG > 3
561 g_debug("DAE: rotation for '%s': %.2f, %.2f, %.2f - %.2f", object->name,
562 x, y, z, a);
563 g3d_matrix_dump(transform->matrix);
564#endif
565 return TRUE;
566}
567
568gboolean dae_cb_scale(DaeGlobalData *global, DaeLocalData *local)
569{
570 G3DObject *object = local->user_data;
571 G3DTransformation *transform;
572 G3DFloat x = 0.0, y = 0.0, z = 0.0;
573 gchar *next = NULL;
574
575 g_return_val_if_fail(object != NULL, FALSE);
576
577 transform = object->transformation;
578 if(transform == NULL) {
579 transform = g_new0(G3DTransformation, 1);
580 g3d_matrix_identity(transform->matrix);
581 object->transformation = transform;
582 }
583
584#if G3D_FLOAT_IS_DOUBLE
585 dae_xml_next_double(local->node, &next, &x);
586 dae_xml_next_double(local->node, &next, &y);
587 dae_xml_next_double(local->node, &next, &z);
588#else
589 dae_xml_next_float(local->node, &next, &x);
590 dae_xml_next_float(local->node, &next, &y);
591 dae_xml_next_float(local->node, &next, &z);
592#endif
593 g3d_matrix_scale(x, y, z, transform->matrix);
594#if DEBUG > 3
595 g_debug("DAE: scale for '%s': %.2f, %.2f, %.2f", object->name,
596 x, y, z);
597 g3d_matrix_dump(transform->matrix);
598#endif
599 return TRUE;
600}
601
602gboolean dae_cb_source(DaeGlobalData *global, DaeLocalData *local)
603{
604 gchar *id;
605
606 id = dae_xml_get_attr(local->node, "id");
607 if(id) {
608 dae_library_add(global->lib, "source", id, local->node);
609 g_free(id);
610 return TRUE;
611 }
612 return FALSE;
613}
614
615gboolean dae_cb_technique(DaeGlobalData *global, DaeLocalData *local)
616{
617 return dae_xml_parse(global, local->node, dae_chunks_technique,
618 local->level, local->user_data);
619}
620
621/* instance_geometry::bind_material::technique_common */
622gboolean dae_cb_technique_common(DaeGlobalData *global, DaeLocalData *local)
623{
624 xmlNodePtr node = NULL, tnode;
625 gchar *symbol, *target;
626
627 while(dae_xml_next_child_by_tagname(local->node, &node,
628 "instance_material")) {
629 symbol = dae_xml_get_attr(node, "symbol");
630 if(symbol == NULL)
631 continue;
632 target = dae_xml_get_attr(node, "target");
633 if(target == NULL) {
634 g_free(symbol);
635 continue;
636 }
637 tnode = dae_library_lookup(global->lib, "material", target + 1);
638 if(tnode)
639 dae_library_add(global->lib, "symbol", symbol, tnode);
640 g_free(symbol);
641 g_free(target);
642 }
643 return TRUE;
644}
645
646gboolean dae_cb_translate(DaeGlobalData *global, DaeLocalData *local)
647{
648 G3DObject *object = local->user_data;
649 G3DTransformation *transform;
650 G3DFloat x = 0.0, y = 0.0, z = 0.0;
651 gchar *next = NULL;
652
653 g_return_val_if_fail(object != NULL, FALSE);
654
655 transform = object->transformation;
656 if(transform == NULL) {
657 transform = g_new0(G3DTransformation, 1);
658 g3d_matrix_identity(transform->matrix);
659 object->transformation = transform;
660 }
661
662#if G3D_FLOAT_IS_DOUBLE
663 dae_xml_next_double(local->node, &next, &x);
664 dae_xml_next_double(local->node, &next, &y);
665 dae_xml_next_double(local->node, &next, &z);
666#else
667 dae_xml_next_float(local->node, &next, &x);
668 dae_xml_next_float(local->node, &next, &y);
669 dae_xml_next_float(local->node, &next, &z);
670#endif
671 g3d_matrix_translate(x, y, z, transform->matrix);
672#if DEBUG > 3
673 g_debug("DAE: translation for '%s': %.2f, %.2f, %.2f", object->name,
674 x, y, z);
675 g3d_matrix_dump(transform->matrix);
676#endif
677 return TRUE;
678}
679
680gboolean dae_cb_triangles(DaeGlobalData *global, DaeLocalData *local)
681{
682 G3DObject *object = local->user_data;
683 G3DFace *face;
684 G3DMaterial *material;
685 xmlNodePtr pnode;
686 gchar *scnt, *smat, *nextp = NULL;
687 guint32 count, normal_count, tex_count, flags = 0;
688 G3DFloat *normal_data = NULL, *tex_data = NULL;
689 gint i, j, tmp;
690 GSList *inputs, *item;
691 DaeInput *input;
692
693 g_return_val_if_fail(object != NULL, FALSE);
694
695 scnt = dae_xml_get_attr(local->node, "count");
696 g_return_val_if_fail(scnt != NULL, FALSE);
697 count = atoi(scnt);
698 g_return_val_if_fail(count != 0, FALSE);
699 g_free(scnt);
700
701 pnode = dae_xml_get_child_by_tagname(local->node, "p");
702 g_return_val_if_fail(pnode != NULL, FALSE);
703
704 /* material */
705 material = g_slist_nth_data(object->materials, 0);
706 smat = dae_xml_get_attr(local->node, "material");
707 if(smat != NULL) {
708 material = dae_get_material_by_name(global, smat, local->level);
709 g_free(smat);
710 }
711
712 /* get all inputs */
713 inputs = dae_get_inputs(local->node);
714 for(item = inputs; item != NULL; item = item->next) {
715 input = (DaeInput *)item->data;
716 if(input->semantic == SEM_NORMAL)
717 if(dae_load_source(global->lib, input->source,
718 &normal_data, &normal_count)) {
719 flags |= G3D_FLAG_FAC_NORMALS;
720 }
721 if(input->semantic == SEM_TEXCOORD)
722 if(dae_load_source(global->lib, input->source,
723 &tex_data, &tex_count) && (material->tex_image != NULL)) {
724 flags |= G3D_FLAG_FAC_TEXMAP;
725 }
726 }
727
728 for(i = 0; i < count; i ++) {
729 face = g_new0(G3DFace, 1);
730 face->vertex_count = 3;
731 face->vertex_indices = g_new0(guint32, 3);
732 face->material = material;
733 face->flags = flags;
734 object->faces = g_slist_append(object->faces, face);
735
736 if(face->flags & G3D_FLAG_FAC_NORMALS) {
737 face->normals = g_new0(G3DFloat, 3 * 3);
738 }
739 if(face->flags & G3D_FLAG_FAC_TEXMAP) {
740 face->tex_image = material->tex_image;
741 face->tex_vertex_count = 3;
742 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
743 }
744
745 for(j = 0; j < 3; j ++) {
746 for(item = inputs; item != NULL; item = item->next) {
747 input = (DaeInput *)item->data;
748 dae_xml_next_int(pnode, &nextp, &tmp);
749 switch(input->semantic) {
750 case SEM_VERTEX:
751 face->vertex_indices[j] = tmp;
752 if(face->vertex_indices[j] >= object->vertex_count) {
753 g_warning("triangles: [%s] face[%d] (%d) >= %d",
754 object->name, j, face->vertex_indices[j],
755 object->vertex_count);
756 face->vertex_indices[j] = 0;
757 }
758 break;
759 case SEM_NORMAL:
760 if(flags & G3D_FLAG_FAC_NORMALS) {
761 face->normals[j * 3 + 0] =
762 normal_data[tmp * 3 + 0];
763 face->normals[j * 3 + 1] =
764 normal_data[tmp * 3 + 1];
765 face->normals[j * 3 + 2] =
766 normal_data[tmp * 3 + 2];
767 }
768 break;
769 case SEM_TEXCOORD:
770 if(flags & G3D_FLAG_FAC_TEXMAP) {
771 face->tex_vertex_data[j * 2 + 0] =
772 tex_data[tmp * 2 + 0];
773 face->tex_vertex_data[j * 2 + 1] = 1.0 -
774 tex_data[tmp * 2 + 1];
775 }
776 break;
777 case SEM_UNKNOWN:
778 break;
779 }
780 } /* inputs */
781#if DEBUG > 3
782 g_debug("DAE: %-2i, %-2i, %-2i",
783 face->vertex_indices[0],
784 face->vertex_indices[1],
785 face->vertex_indices[2]);
786#endif
787 }
788 }
789 if(tex_data)
790 g_free(tex_data);
791 if(normal_data)
792 g_free(normal_data);
793 dae_inputs_free(inputs);
794
795 return TRUE;
796}
797
798gboolean dae_cb_vertices(DaeGlobalData *global, DaeLocalData *local)
799{
800 return dae_xml_parse(global, local->node, dae_chunks_vertices,
801 local->level, local->user_data);
802}
803
804gboolean dae_cb_vertices__input(DaeGlobalData *global, DaeLocalData *local)
805{
806 G3DObject *object = (G3DObject *)(local->user_data);
807 gchar *sid, *sem, *cnt, *next = NULL;
808 gboolean skip = FALSE;
809 xmlNodePtr snode, fanode;
810 gint i, j;
811
812 g_return_val_if_fail(object != NULL, FALSE);
813
814 sem = dae_xml_get_attr(local->node, "semantic");
815 sid = dae_xml_get_attr(local->node, "source");
816 g_return_val_if_fail((sem != NULL) && (sid != NULL), FALSE);
817
818 /* get 'source' node, skip leading '#' from 'source' attribute */
819 snode = dae_library_lookup(global->lib, "source", sid + 1);
820#if DEBUG > 0
821 g_debug("DAE: looking up source '%s' from library: %p", sid + 1,
822 (void *)snode);
823#endif
824 g_return_val_if_fail(snode != NULL, FALSE);
825
826 if(sem)
827 g_free(sem);
828 if(sid)
829 g_free(sid);
830
831 /* TODO: check technique_common/accessor */
832
833 fanode = dae_xml_get_child_by_tagname(snode, "float_array");
834 if(fanode) {
835 cnt = dae_xml_get_attr(fanode, "count");
836#if DEBUG > 0
837 g_debug("DAE: float_array count=\"%s\"", cnt);
838#endif
839 g_return_val_if_fail(cnt != NULL, FALSE);
840
841 object->vertex_count = atoi(cnt);
842 g_return_val_if_fail(object->vertex_count != 0, FALSE);
843
844 object->vertex_data = g_new0(G3DFloat, 3 * object->vertex_count);
845 for(i = 0; i < object->vertex_count / 3; i ++)
846 {
847 for(j = 0; j < 3; j ++)
848 {
849#if G3D_FLOAT_IS_DOUBLE
850 if(!dae_xml_next_double(fanode, &next, &(object->vertex_data[i * 3 + j])))
851#else
852 if(!dae_xml_next_float(fanode, &next, &(object->vertex_data[i * 3 + j])))
853#endif
854 {
855 skip = TRUE;
856 break;
857 }
858 }
859#if DEBUG > 3
860 g_debug("DAE: %-3.2f, %-3.2f, %-3.2f",
861 object->vertex_data[i * 3 + 0],
862 object->vertex_data[i * 3 + 1],
863 object->vertex_data[i * 3 + 2]);
864#endif
865 if(skip)
866 break;
867 }
868 }
869
870 return TRUE;
871}
872
873gboolean dae_cb_visual_scene(DaeGlobalData *global, DaeLocalData *local)
874{
875 return dae_xml_parse(global, local->node, dae_chunks_visual_scene,
876 local->level, NULL);
877}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.h
new file mode 100644
index 0000000..ecf1138
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_cb.h
@@ -0,0 +1,75 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_DAE_CB_H
24#define _IMP_DAE_CB_H
25
26#include <g3d/types.h>
27#include <libxml/tree.h>
28
29#include "imp_dae_library.h"
30
31typedef struct {
32 G3DContext *context;
33 G3DStream *stream;
34 G3DModel *model;
35 DaeLibrary *lib;
36 xmlDocPtr xmldoc;
37} DaeGlobalData;
38
39typedef struct {
40 xmlNodePtr parent;
41 xmlNodePtr node;
42 xmlNodePtr instance;
43 guint32 level;
44 gpointer user_data;
45} DaeLocalData;
46
47typedef gboolean (* DaeCallback)(DaeGlobalData *global, DaeLocalData *local);
48
49typedef struct {
50 const gchar *name;
51 DaeCallback callback;
52} DaeChunkDesc;
53
54gboolean dae_cb_bind_material(DaeGlobalData *global, DaeLocalData *local);
55gboolean dae_cb_effect(DaeGlobalData *global, DaeLocalData *local);
56gboolean dae_cb_geometry(DaeGlobalData *global, DaeLocalData *local);
57gboolean dae_cb_matrix(DaeGlobalData *global, DaeLocalData *local);
58gboolean dae_cb_mesh(DaeGlobalData *global, DaeLocalData *local);
59gboolean dae_cb_newparam(DaeGlobalData *global, DaeLocalData *local);
60gboolean dae_cb_node(DaeGlobalData *global, DaeLocalData *local);
61gboolean dae_cb_phong(DaeGlobalData *global, DaeLocalData *local);
62gboolean dae_cb_polylist(DaeGlobalData *global, DaeLocalData *local);
63gboolean dae_cb_profile_COMMON(DaeGlobalData *global, DaeLocalData *local);
64gboolean dae_cb_rotate(DaeGlobalData *global, DaeLocalData *local);
65gboolean dae_cb_scale(DaeGlobalData *global, DaeLocalData *local);
66gboolean dae_cb_source(DaeGlobalData *global, DaeLocalData *local);
67gboolean dae_cb_technique(DaeGlobalData *global, DaeLocalData *local);
68gboolean dae_cb_technique_common(DaeGlobalData *global, DaeLocalData *local);
69gboolean dae_cb_translate(DaeGlobalData *global, DaeLocalData *local);
70gboolean dae_cb_triangles(DaeGlobalData *global, DaeLocalData *local);
71gboolean dae_cb_vertices(DaeGlobalData *global, DaeLocalData *local);
72gboolean dae_cb_vertices__input(DaeGlobalData *global, DaeLocalData *local);
73gboolean dae_cb_visual_scene(DaeGlobalData *global, DaeLocalData *local);
74
75#endif /* _IMP_DAE_CB_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h
new file mode 100644
index 0000000..ac9e3fc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_chunks.h
@@ -0,0 +1,95 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_DAE_CHUNKS_H
24#define _IMP_DAE_CHUNKS_H
25
26#include "imp_dae_cb.h"
27
28static DaeChunkDesc dae_chunks_bind_material[] = {
29 { "technique_common", dae_cb_technique_common },
30 { NULL, NULL }
31};
32
33static DaeChunkDesc dae_chunks_effect[] = {
34 { "profile_COMMON", dae_cb_profile_COMMON },
35 { NULL, NULL }
36};
37
38static DaeChunkDesc dae_chunks_geometry[] = {
39 { "bind_material", dae_cb_bind_material },
40 { "mesh", dae_cb_mesh },
41 { NULL, NULL }
42};
43
44static DaeChunkDesc dae_chunks_material[] = {
45 { "effect", dae_cb_effect },
46 { NULL, NULL }
47};
48
49static DaeChunkDesc dae_chunks_mesh[] = {
50 { "lines", NULL },
51 { "polylist", dae_cb_polylist },
52 { "source", dae_cb_source },
53 { "triangles", dae_cb_triangles },
54 { "vertices", dae_cb_vertices },
55 { NULL, NULL }
56};
57
58static DaeChunkDesc dae_chunks_node[] = {
59 { "camera", NULL },
60 { "controller", NULL },
61 { "geometry", dae_cb_geometry },
62 { "light", NULL },
63 { "matrix", dae_cb_matrix },
64 { "node", dae_cb_node },
65 { "scale", dae_cb_scale },
66 { "rotate", dae_cb_rotate },
67 { "translate", dae_cb_translate },
68 { NULL, NULL }
69};
70
71static DaeChunkDesc dae_chunks_profile_COMMON[] = {
72 { "extra", NULL },
73 { "newparam", dae_cb_newparam },
74 { "technique", dae_cb_technique },
75 { NULL, NULL }
76};
77
78static DaeChunkDesc dae_chunks_technique[] = {
79 { "blinn", dae_cb_phong },
80 { "lambert", dae_cb_phong },
81 { "phong", dae_cb_phong },
82 { NULL, NULL }
83};
84
85static DaeChunkDesc dae_chunks_vertices[] = {
86 { "input", dae_cb_vertices__input },
87 { NULL, NULL }
88};
89
90static DaeChunkDesc dae_chunks_visual_scene[] = {
91 { "node", dae_cb_node },
92 { NULL, NULL }
93};
94
95#endif /* _IMP_DAE_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.c
new file mode 100644
index 0000000..dd10351
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.c
@@ -0,0 +1,167 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <glib.h>
24#include <libxml/tree.h>
25
26#include "imp_dae_xml.h"
27#include "imp_dae_library.h"
28
29struct _DaeLibrary {
30 GHashTable *ids;
31 GSList *libs;
32};
33
34typedef struct {
35 GHashTable *ids;
36 GSList *nodes;
37} DaeLibraryNodes;
38
39static gchar *dae_library_names[][2] = {
40 { "library_animations", "animation" },
41 { "library_cameras", "camera" },
42 { "library_controllers", "controller" },
43 { "library_effects", "effect" },
44 { "library_geometries", "geometry" },
45 { "library_images", "image" },
46 { "library_lights", "light" },
47 { "library_materials", "material" },
48 { "library_nodes", "node" },
49 { "library_physics_scenes", "physics_scene" },
50 { "library_visual_scenes", "visual_scene" },
51 { NULL, NULL }
52};
53
54static gboolean dae_add_library(DaeLibrary *lib, xmlNodePtr libnode,
55 guint32 entryid)
56{
57 xmlNodePtr node;
58 DaeLibraryNodes *nodelib;
59 gchar *id;
60
61 nodelib = g_new0(DaeLibraryNodes, 1);
62 nodelib->ids = g_hash_table_new_full(
63 g_str_hash, g_str_equal, g_free, NULL);
64 g_hash_table_insert(lib->ids, g_strdup(dae_library_names[entryid][1]),
65 nodelib);
66 lib->libs = g_slist_append(lib->libs, nodelib);
67
68 node = libnode->children;
69 while(node != NULL) {
70 if((node->type == XML_ELEMENT_NODE) &&
71 (xmlStrcmp(node->name,
72 (const xmlChar *)dae_library_names[entryid][1]) == 0)) {
73 /* found library entry */
74 id = dae_xml_get_attr(node, "id");
75 if(id != NULL) {
76#if DEBUG > 2
77 g_debug("\t%s id=\"%s\"", dae_library_names[entryid][1], id);
78#endif
79 g_hash_table_insert(nodelib->ids, id, node);
80 nodelib->nodes = g_slist_append(nodelib->nodes, node);
81 }
82 }
83 node = node->next;
84 }
85 return TRUE;
86}
87
88gboolean dae_library_add(DaeLibrary *lib, const gchar *libname,
89 const gchar *id, xmlNodePtr node)
90{
91 DaeLibraryNodes *nodelib;
92
93 g_return_val_if_fail(lib != NULL, FALSE);
94
95 nodelib = g_hash_table_lookup(lib->ids, libname);
96 if(nodelib == NULL) {
97 nodelib = g_new0(DaeLibraryNodes, 1);
98 nodelib->ids = g_hash_table_new_full(
99 g_str_hash, g_str_equal, g_free, NULL);
100 g_hash_table_insert(lib->ids, g_strdup(libname), nodelib);
101 lib->libs = g_slist_append(lib->libs, nodelib);
102 }
103 g_hash_table_insert(nodelib->ids, g_strdup(id), node);
104 nodelib->nodes = g_slist_append(nodelib->nodes, node);
105 return TRUE;
106}
107
108DaeLibrary *dae_library_load(xmlDocPtr xmldoc)
109{
110 DaeLibrary *lib;
111 gint i = 0;
112 xmlNodePtr rootnode, node;
113
114 lib = g_new0(DaeLibrary, 1);
115 lib->ids = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
116
117 rootnode = xmlDocGetRootElement(xmldoc);
118 g_return_val_if_fail(rootnode != NULL, NULL);
119
120 while(dae_library_names[i][0] != NULL) {
121#if DEBUG > 2
122 g_debug("loading library %s", dae_library_names[i][0]);
123#endif
124 node = rootnode->children;
125 while(node != NULL) {
126 if((node->type == XML_ELEMENT_NODE) &&
127 (xmlStrcmp(node->name,
128 (const xmlChar *)dae_library_names[i][0]) == 0)) {
129 dae_add_library(lib, node, i);
130 break;
131 }
132 node = node->next;
133 }
134 i ++;
135 }
136 return lib;
137}
138
139xmlNodePtr dae_library_lookup(DaeLibrary *library, const gchar *tagname,
140 const gchar *id)
141{
142 DaeLibraryNodes *nodelib;
143
144 nodelib = g_hash_table_lookup(library->ids, tagname);
145 if(nodelib == NULL) {
146 g_warning("DAE: failed to lookup library for '%s'", tagname);
147 return NULL;
148 }
149 return (xmlNodePtr)g_hash_table_lookup(nodelib->ids, id);
150}
151
152void dae_library_cleanup(DaeLibrary *library)
153{
154 DaeLibraryNodes *nodelib;
155 GSList *item;
156
157 for(item = library->libs; item != NULL; item = item->next) {
158 nodelib = (DaeLibraryNodes *)item->data;
159 g_hash_table_destroy(nodelib->ids);
160 g_slist_free(nodelib->nodes);
161 }
162
163 g_hash_table_destroy(library->ids);
164 g_slist_free(library->libs);
165 g_free(library);
166}
167
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.h
new file mode 100644
index 0000000..c7bb767
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_library.h
@@ -0,0 +1,38 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_DAE_LIBRARY_H
24#define _IMP_DAE_LIBRARY_H
25
26#include <glib.h>
27#include <libxml/tree.h>
28
29typedef struct _DaeLibrary DaeLibrary;
30
31DaeLibrary *dae_library_load(xmlDocPtr xmldoc);
32gboolean dae_library_add(DaeLibrary *lib, const gchar *libname,
33 const gchar *id, xmlNodePtr node);
34xmlNodePtr dae_library_lookup(DaeLibrary *library, const gchar *tagname,
35 const gchar *id);
36void dae_library_cleanup(DaeLibrary *library);
37
38#endif /* _IMP_DAE_LIBRARY_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.c
new file mode 100644
index 0000000..a67be0d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.c
@@ -0,0 +1,257 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <ctype.h>
25
26#include <g3d/context.h>
27#include <g3d/debug.h>
28
29#include <glib.h>
30#include <libxml/tree.h>
31
32#include "imp_dae_library.h"
33#include "imp_dae_xml.h"
34#include "imp_dae_cb.h"
35
36gchar *dae_xml_get_attr(xmlNodePtr node, const gchar *attrname)
37{
38 xmlAttrPtr attr;
39 gchar *val = NULL;
40
41 g_return_val_if_fail(node != NULL, NULL);
42 g_return_val_if_fail(attrname != NULL, NULL);
43
44 attr = node->properties;
45 while(attr != NULL) {
46 if(xmlStrcmp(attr->name, (xmlChar *)attrname) == 0) {
47 val = g_strdup((gchar *)attr->children->content);
48 break;
49 }
50 attr = attr->next;
51 }
52
53 return val;
54}
55
56xmlNodePtr dae_xml_get_child_by_tagname(xmlNodePtr parent, const gchar *tag)
57{
58 xmlNodePtr node;
59
60 g_return_val_if_fail(parent != NULL, NULL);
61
62 node = parent->children;
63 while(node != NULL) {
64 if((node->type == XML_ELEMENT_NODE) &&
65 (xmlStrcmp(node->name, (const xmlChar *)tag) == 0)) {
66 return node;
67 }
68 node = node->next;
69 }
70 return NULL;
71}
72
73xmlNodePtr dae_xml_next_child_by_tagname(xmlNodePtr parent, xmlNodePtr *node,
74 gchar *nodename)
75{
76 xmlNodePtr tmpnode;
77 gchar *name;
78
79 do {
80 tmpnode = dae_xml_next_child(NULL, parent, node, NULL, &name);
81 if(tmpnode == NULL)
82 return NULL;
83 if(strcmp(name, nodename) == 0) {
84 g_free(name);
85 return tmpnode;
86 }
87 g_free(name);
88 } while(1);
89}
90
91xmlNodePtr dae_xml_next_child(DaeLibrary *lib, xmlNodePtr parent,
92 xmlNodePtr *node, xmlNodePtr *instance, gchar **nodename)
93{
94 gchar *url, *name;
95
96 g_return_val_if_fail(node != NULL, NULL);
97 g_return_val_if_fail(nodename != NULL, NULL);
98 *nodename = NULL;
99
100 if(*node == NULL)
101 *node = parent->children;
102 else if(instance && *instance)
103 *node = (*instance)->next;
104 else
105 *node = (*node)->next;
106
107 if(instance)
108 *instance = NULL;
109
110 /* skip TEXT nodes */
111 while(*node && ((*node)->type != XML_ELEMENT_NODE))
112 *node = (*node)->next;
113
114 if(*node == NULL)
115 return NULL;
116
117 if(lib && instance &&
118 (xmlStrncmp((*node)->name, (xmlChar *)"instance_", 9) == 0)) {
119 url = dae_xml_get_attr(*node, "url");
120 if(url) {
121 /* skip 'instance_' part of node name */
122 name = g_strdup((gchar *)((*node)->name + 9));
123#if DEBUG > 1
124 g_debug("DAE: looking up '%s' in '%s'", url + 1, name);
125#endif
126 *instance = *node;
127 *node = dae_library_lookup(lib, name, url + 1 /* skip '#' */);
128 g_free(url);
129 g_free(name);
130 }
131 }
132 if(*node == NULL)
133 return NULL;
134
135 *nodename = g_strdup((gchar *)(*node)->name);
136
137 return *node;
138}
139
140gboolean dae_xml_parse(DaeGlobalData *global, xmlNodePtr parent,
141 DaeChunkDesc *chunks, guint32 level, gpointer user_data)
142{
143 DaeLocalData *local;
144 xmlNodePtr node = NULL, instance = NULL;
145 gchar *name;
146 gint i;
147
148 g_return_val_if_fail(parent != NULL, FALSE);
149
150 while(dae_xml_next_child(global->lib, parent, &node, &instance, &name)) {
151#if DEBUG > 0
152 g_debug("\\%s<%s>", debug_pad(level), name);
153#endif
154 if(chunks) {
155 local = g_new0(DaeLocalData, 1);
156 local->parent = parent;
157 local->node = node;
158 local->instance = instance;
159 local->level = level + 1;
160 local->user_data = user_data;
161
162 /* find callback */
163 for(i = 0; chunks[i].name != NULL; i ++) {
164 if(strcmp(chunks[i].name, name) == 0) {
165 /* found chunk */
166#if DEBUG > 3
167 g_debug("DAE: found chunk description for '%s'", name);
168#endif
169 if(chunks[i].callback)
170 chunks[i].callback(global, local);
171 break;
172 }
173 }
174
175 g_free(local);
176
177 if(chunks[i].name == NULL)
178 g_debug("DAE: unhandled chunk '%s' in '%s'", name,
179 (gchar *)parent->name);
180 }
181
182 g_free(name);
183 g3d_context_update_interface(global->context);
184 }
185
186 return TRUE;
187}
188
189gboolean dae_xml_next_int(xmlNodePtr node, gchar **nextp, gint *i)
190{
191 gchar *s, *err = NULL;
192
193 s = *nextp;
194
195 if(s == NULL)
196 s = (gchar *)node->children->content;
197
198 /* skip leading whitespace */
199 while(isspace(*s))
200 s ++;
201
202 *i = strtol(s, &err, 0);
203 if(s == err) {
204 g_debug("DAE: imp_xml_next_int: error at '%.*s...'", 5, s);
205 return FALSE;
206 }
207
208 *nextp = err;
209 return TRUE;
210}
211
212gboolean dae_xml_next_double(xmlNodePtr node, gchar **nextp, GLdouble *d)
213{
214 gchar *s, *err = NULL;
215
216 s = *nextp;
217
218 if(s == NULL)
219 s = (gchar *)node->children->content;
220
221 /* skip leading whitespace */
222 while(isspace(*s))
223 s ++;
224
225 *d = strtod(s, &err);
226 if(s == err) {
227 g_debug("DAE: imp_xml_next_float: error at '%.*s...'", 5, s);
228 return FALSE;
229 }
230
231 *nextp = err;
232 return TRUE;
233}
234
235gboolean dae_xml_next_float(xmlNodePtr node, gchar **nextp, GLfloat *f)
236{
237 gchar *s, *err = NULL;
238
239 s = *nextp;
240
241 if(s == NULL)
242 s = (gchar *)node->children->content;
243
244 /* skip leading whitespace */
245 while(isspace(*s))
246 s ++;
247
248 *f = strtof(s, &err);
249 if(s == err) {
250 g_debug("DAE: imp_xml_next_float: error at '%.*s...'", 5, s);
251 return FALSE;
252 }
253
254 *nextp = err;
255 return TRUE;
256}
257
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.h
new file mode 100644
index 0000000..949437e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dae/imp_dae_xml.h
@@ -0,0 +1,44 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_DAE_XML_H
24#define _IMP_DAE_XML_H
25
26#include <glib.h>
27#include <libxml/tree.h>
28
29#include "imp_dae_library.h"
30#include "imp_dae_cb.h"
31
32gchar *dae_xml_get_attr(xmlNodePtr node, const gchar *attrname);
33xmlNodePtr dae_xml_get_child_by_tagname(xmlNodePtr parent, const gchar *tag);
34xmlNodePtr dae_xml_next_child_by_tagname(xmlNodePtr parent, xmlNodePtr *node,
35 gchar *nodename);
36xmlNodePtr dae_xml_next_child(DaeLibrary *lib, xmlNodePtr parent,
37 xmlNodePtr *node, xmlNodePtr *instance, gchar **nodename);
38gboolean dae_xml_parse(DaeGlobalData *global, xmlNodePtr parent,
39 DaeChunkDesc *chunks, guint32 level, gpointer user_data);
40gboolean dae_xml_next_int(xmlNodePtr node, gchar **nextp, gint *i);
41gboolean dae_xml_next_double(xmlNodePtr node, gchar **nextp, GLdouble *d);
42gboolean dae_xml_next_float(xmlNodePtr node, gchar **nextp, GLfloat *f);
43
44#endif /* _IMP_DAE_XML_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile
new file mode 100644
index 0000000..b23d3c5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_dpm/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_dpm
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_dpm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dpm_la_OBJECTS = imp_dpm.lo
59imp_dpm_la_OBJECTS = $(am_imp_dpm_la_OBJECTS)
60#am_imp_dpm_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_dpm_la_SOURCES)
74DIST_SOURCES = $(imp_dpm_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_dpm.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_dpm_la_SOURCES = imp_dpm.c
230imp_dpm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_dpm.la: $(imp_dpm_la_OBJECTS) $(imp_dpm_la_DEPENDENCIES)
292 $(LINK) $(am_imp_dpm_la_rpath) $(imp_dpm_la_OBJECTS) $(imp_dpm_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300include ./$(DEPDIR)/imp_dpm.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.am
new file mode 100644
index 0000000..2d6f5c8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.am
@@ -0,0 +1,22 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_dpm.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_dpm_la_SOURCES = imp_dpm.c
22imp_dpm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.in
new file mode 100644
index 0000000..dce5205
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/Makefile.in
@@ -0,0 +1,510 @@
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_dpm
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_dpm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dpm_la_OBJECTS = imp_dpm.lo
59imp_dpm_la_OBJECTS = $(am_imp_dpm_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_dpm_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_dpm_la_SOURCES)
74DIST_SOURCES = $(imp_dpm_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_dpm.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_dpm_la_SOURCES = imp_dpm.c
230imp_dpm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_dpm/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_dpm.la: $(imp_dpm_la_OBJECTS) $(imp_dpm_la_DEPENDENCIES)
292 $(LINK) $(am_imp_dpm_la_rpath) $(imp_dpm_la_OBJECTS) $(imp_dpm_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dpm.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c
new file mode 100644
index 0000000..415bc74
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dpm/imp_dpm.c
@@ -0,0 +1,156 @@
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 plugin by Martin Gerhardy <martin.gerhardy@gmail.com>
23*/
24
25#include <stdio.h>
26#include <string.h>
27
28#include <g3d/types.h>
29#include <g3d/material.h>
30#include <g3d/texture.h>
31#include <g3d/stream.h>
32#include <g3d/iff.h>
33
34EAPI
35gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
36 G3DModel *model, gpointer user_data)
37{
38 G3DObject *object;
39 gchar magic[16], texture[32];
40 guint32 type, filesize;
41 guint32 num_bones, num_meshs, num_frames;
42 guint32 ofs_bones, ofs_meshs, ofs_frames;
43 guint32 ofs_texcoords, ofs_verts, ofs_indices;
44 goffset off_start;
45 G3DImage *image = NULL;
46 G3DMaterial *material, *mat;
47 G3DFace *face;
48 GSList *mitem;
49 G3DFloat *normals;
50 int i;
51
52 off_start = g3d_stream_tell(stream);
53
54 g3d_stream_read(stream, magic, 16);
55 if(strcmp("DARKPLACESMODEL", magic)) {
56 g_warning("DPM: Unknown magic id: '%s'\n", magic);
57 return FALSE;
58 }
59
60 object = g_new0(G3DObject, 1);
61
62 /* read the header information */
63 type = g3d_stream_read_int32_be(stream);
64 filesize = g3d_stream_read_int32_be(stream);
65 /* skip some floats */
66 for (i = 0; i < 8; i++)
67 g3d_stream_read_float_le(stream);
68 num_bones = g3d_stream_read_int32_be(stream);
69 num_meshs = g3d_stream_read_int32_be(stream);
70 num_frames = g3d_stream_read_int32_be(stream);
71 ofs_bones = g3d_stream_read_int32_be(stream);
72 ofs_meshs = g3d_stream_read_int32_be(stream);
73 ofs_frames = g3d_stream_read_int32_be(stream);
74
75 /* default material */
76 material = g3d_material_new();
77 material->name = g_strdup("default material");
78 object->materials = g_slist_append(object->materials, material);
79
80 num_meshs = 1; /* only load the first mesh */
81 for (i = 0; i < num_meshs; i++) {
82 guint32 nvertex, ntris;
83 int j;
84
85 g3d_stream_seek(stream, off_start + ofs_meshs, G_SEEK_SET);
86 g3d_stream_read(stream, texture, 32);
87
88 /* read texture image */
89 if(strlen(texture) > 0) {
90 image = g3d_texture_load_cached(context, model, texture);
91 if(image == NULL) {
92 /* try jpeg */
93 char *strp = strrchr(texture, '.');
94 if(strp) {
95 strcpy(strp, ".jpg");
96 image = g3d_texture_load_cached(context, model, texture);
97 }
98 }
99 }
100
101 if(image == NULL) {
102 mitem = model->materials;
103 while(mitem) {
104 mat = (G3DMaterial *)mitem->data;
105 if(strcmp(mat->name, object->name) == 0) {
106 image = mat->tex_image;
107 break;
108 }
109 mitem = mitem->next;
110 }
111 }
112
113 nvertex = g3d_stream_read_int32_be(stream);
114 ntris = g3d_stream_read_int32_be(stream);
115 ofs_verts = g3d_stream_read_int32_be(stream);
116 ofs_texcoords = g3d_stream_read_int32_be(stream);
117 ofs_indices = g3d_stream_read_int32_be(stream);
118
119 /* read vertex data */
120 g3d_stream_seek(stream, off_start + ofs_verts, G_SEEK_SET);
121 object->vertex_count = nvertex;
122 object->vertex_data = g_new0(G3DFloat, nvertex * 3);
123 normals = g_new0(G3DFloat, nvertex * 3);
124 for(j = 0; j < nvertex; j++) {
125
126 }
127
128 /* read texture coords */
129 g3d_stream_seek(stream, off_start + ofs_texcoords, G_SEEK_SET);
130 object->tex_vertex_data = g_new0(G3DFloat, nvertex * 2);
131 for(j = 0; j < nvertex; j++) {
132 object->tex_vertex_data[j * 2 + 0] =
133 g3d_stream_read_float_be(stream);
134 object->tex_vertex_data[j * 2 + 1] =
135 g3d_stream_read_float_be(stream);
136 }
137
138 /* read triangles */
139 /* TODO */
140 }
141
142 return TRUE;
143}
144
145EAPI
146gchar *plugin_description(G3DContext *context)
147{
148 return g_strdup("Darkplaces engine models.");
149}
150
151EAPI
152gchar **plugin_extensions(G3DContext *context)
153{
154 return g_strsplit("dpm", ":", 0);
155}
156
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile
new file mode 100644
index 0000000..8b8a6ed
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile
@@ -0,0 +1,523 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_dxf/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_dxf
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_dxf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dxf_la_OBJECTS = imp_dxf.lo imp_dxf_callbacks.lo \
59 imp_dxf_section.lo imp_dxf_color.lo imp_dxf_prop.lo
60imp_dxf_la_OBJECTS = $(am_imp_dxf_la_OBJECTS)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_dxf_la_SOURCES)
74DIST_SOURCES = $(imp_dxf_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = \
218 imp_dxf.la
219
220AM_CFLAGS = \
221 -Wall -ansi -pedantic \
222 -DG_LOG_DOMAIN=\"LibG3D\" \
223 -O2 -DDEBUG=0 \
224 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
225
226INCLUDES = -I$(top_srcdir)/include
227AM_LDFLAGS = \
228 -no-undefined -module \
229 -avoid-version -export-dynamic
230
231imp_dxf_la_SOURCES = imp_dxf.c imp_dxf.h \
232 imp_dxf_types.h imp_dxf_def.h imp_dxf_vars.h \
233 imp_dxf_entities.h imp_dxf_chunks.h \
234 imp_dxf_callbacks.c imp_dxf_callbacks.h \
235 imp_dxf_section.c imp_dxf_section.h \
236 imp_dxf_color.c imp_dxf_color.h \
237 imp_dxf_prop.c imp_dxf_prop.h
238
239imp_dxf_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_dxf.la: $(imp_dxf_la_OBJECTS) $(imp_dxf_la_DEPENDENCIES)
301 $(LINK) -rpath $(pluginimpdir) $(imp_dxf_la_OBJECTS) $(imp_dxf_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309include ./$(DEPDIR)/imp_dxf.Plo
310include ./$(DEPDIR)/imp_dxf_callbacks.Plo
311include ./$(DEPDIR)/imp_dxf_color.Plo
312include ./$(DEPDIR)/imp_dxf_prop.Plo
313include ./$(DEPDIR)/imp_dxf_section.Plo
314
315.c.o:
316 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318# source='$<' object='$@' libtool=no \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(COMPILE) -c $<
321
322.c.obj:
323 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
325# source='$<' object='$@' libtool=no \
326# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
327# $(COMPILE) -c `$(CYGPATH_W) '$<'`
328
329.c.lo:
330 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
332# source='$<' object='$@' libtool=yes \
333# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
334# $(LTCOMPILE) -c -o $@ $<
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446clean: clean-am
447
448clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
449 mostlyclean-am
450
451distclean: distclean-am
452 -rm -rf ./$(DEPDIR)
453 -rm -f Makefile
454distclean-am: clean-am distclean-compile distclean-generic \
455 distclean-tags
456
457dvi: dvi-am
458
459dvi-am:
460
461html: html-am
462
463info: info-am
464
465info-am:
466
467install-data-am: install-pluginimpLTLIBRARIES
468
469install-dvi: install-dvi-am
470
471install-exec-am:
472
473install-html: install-html-am
474
475install-info: install-info-am
476
477install-man:
478
479install-pdf: install-pdf-am
480
481install-ps: install-ps-am
482
483installcheck-am:
484
485maintainer-clean: maintainer-clean-am
486 -rm -rf ./$(DEPDIR)
487 -rm -f Makefile
488maintainer-clean-am: distclean-am maintainer-clean-generic
489
490mostlyclean: mostlyclean-am
491
492mostlyclean-am: mostlyclean-compile mostlyclean-generic \
493 mostlyclean-libtool
494
495pdf: pdf-am
496
497pdf-am:
498
499ps: ps-am
500
501ps-am:
502
503uninstall-am: uninstall-pluginimpLTLIBRARIES
504
505.MAKE: install-am install-strip
506
507.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
508 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
509 distclean-compile distclean-generic distclean-libtool \
510 distclean-tags distdir dvi dvi-am html html-am info info-am \
511 install install-am install-data install-data-am install-dvi \
512 install-dvi-am install-exec install-exec-am install-html \
513 install-html-am install-info install-info-am install-man \
514 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
515 install-ps install-ps-am install-strip installcheck \
516 installcheck-am installdirs maintainer-clean \
517 maintainer-clean-generic mostlyclean mostlyclean-compile \
518 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
519 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
520
521# Tell versions [3.59,3.63) of GNU make to not export all variables.
522# Otherwise a system limit (for SysV at least) may be exceeded.
523.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.am
new file mode 100644
index 0000000..a370a73
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.am
@@ -0,0 +1,28 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = \
4 imp_dxf.la
5
6LIBTOOL += --quiet
7
8AM_CFLAGS = \
9 -Wall -ansi -pedantic \
10 -DG_LOG_DOMAIN=\"LibG3D\" \
11 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
12 @GLIB_CFLAGS@
13
14INCLUDES = -I$(top_srcdir)/include
15
16AM_LDFLAGS = \
17 -no-undefined -module \
18 @PLUGINS_LDFLAGS@
19
20imp_dxf_la_SOURCES = imp_dxf.c imp_dxf.h \
21 imp_dxf_types.h imp_dxf_def.h imp_dxf_vars.h \
22 imp_dxf_entities.h imp_dxf_chunks.h \
23 imp_dxf_callbacks.c imp_dxf_callbacks.h \
24 imp_dxf_section.c imp_dxf_section.h \
25 imp_dxf_color.c imp_dxf_color.h \
26 imp_dxf_prop.c imp_dxf_prop.h
27imp_dxf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
28
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.in
new file mode 100644
index 0000000..f9f23a4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/Makefile.in
@@ -0,0 +1,523 @@
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_dxf
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_dxf_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_dxf_la_OBJECTS = imp_dxf.lo imp_dxf_callbacks.lo \
59 imp_dxf_section.lo imp_dxf_color.lo imp_dxf_prop.lo
60imp_dxf_la_OBJECTS = $(am_imp_dxf_la_OBJECTS)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_dxf_la_SOURCES)
74DIST_SOURCES = $(imp_dxf_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = \
218 imp_dxf.la
219
220AM_CFLAGS = \
221 -Wall -ansi -pedantic \
222 -DG_LOG_DOMAIN=\"LibG3D\" \
223 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
224 @GLIB_CFLAGS@
225
226INCLUDES = -I$(top_srcdir)/include
227AM_LDFLAGS = \
228 -no-undefined -module \
229 @PLUGINS_LDFLAGS@
230
231imp_dxf_la_SOURCES = imp_dxf.c imp_dxf.h \
232 imp_dxf_types.h imp_dxf_def.h imp_dxf_vars.h \
233 imp_dxf_entities.h imp_dxf_chunks.h \
234 imp_dxf_callbacks.c imp_dxf_callbacks.h \
235 imp_dxf_section.c imp_dxf_section.h \
236 imp_dxf_color.c imp_dxf_color.h \
237 imp_dxf_prop.c imp_dxf_prop.h
238
239imp_dxf_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_dxf/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_dxf.la: $(imp_dxf_la_OBJECTS) $(imp_dxf_la_DEPENDENCIES)
301 $(LINK) -rpath $(pluginimpdir) $(imp_dxf_la_OBJECTS) $(imp_dxf_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf.Plo@am__quote@
310@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_callbacks.Plo@am__quote@
311@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_color.Plo@am__quote@
312@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_prop.Plo@am__quote@
313@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_dxf_section.Plo@am__quote@
314
315.c.o:
316@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(COMPILE) -c $<
321
322.c.obj:
323@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
325@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
327@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
328
329.c.lo:
330@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
332@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
333@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
334@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446clean: clean-am
447
448clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
449 mostlyclean-am
450
451distclean: distclean-am
452 -rm -rf ./$(DEPDIR)
453 -rm -f Makefile
454distclean-am: clean-am distclean-compile distclean-generic \
455 distclean-tags
456
457dvi: dvi-am
458
459dvi-am:
460
461html: html-am
462
463info: info-am
464
465info-am:
466
467install-data-am: install-pluginimpLTLIBRARIES
468
469install-dvi: install-dvi-am
470
471install-exec-am:
472
473install-html: install-html-am
474
475install-info: install-info-am
476
477install-man:
478
479install-pdf: install-pdf-am
480
481install-ps: install-ps-am
482
483installcheck-am:
484
485maintainer-clean: maintainer-clean-am
486 -rm -rf ./$(DEPDIR)
487 -rm -f Makefile
488maintainer-clean-am: distclean-am maintainer-clean-generic
489
490mostlyclean: mostlyclean-am
491
492mostlyclean-am: mostlyclean-compile mostlyclean-generic \
493 mostlyclean-libtool
494
495pdf: pdf-am
496
497pdf-am:
498
499ps: ps-am
500
501ps-am:
502
503uninstall-am: uninstall-pluginimpLTLIBRARIES
504
505.MAKE: install-am install-strip
506
507.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
508 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
509 distclean-compile distclean-generic distclean-libtool \
510 distclean-tags distdir dvi dvi-am html html-am info info-am \
511 install install-am install-data install-data-am install-dvi \
512 install-dvi-am install-exec install-exec-am install-html \
513 install-html-am install-info install-info-am install-man \
514 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
515 install-ps install-ps-am install-strip installcheck \
516 installcheck-am installdirs maintainer-clean \
517 maintainer-clean-generic mostlyclean mostlyclean-compile \
518 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
519 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
520
521# Tell versions [3.59,3.63) of GNU make to not export all variables.
522# Otherwise a system limit (for SysV at least) may be exceeded.
523.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c
new file mode 100644
index 0000000..1b08d6e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.c
@@ -0,0 +1,291 @@
1/* $Id: imp_dxf.c 256 2008-09-04 12:02:58Z mmmaddd $ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <locale.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30#include <g3d/model.h>
31#include <g3d/matrix.h>
32
33#include "imp_dxf.h"
34#include "imp_dxf_section.h"
35#include "imp_dxf_def.h"
36
37static void dxf_cleanup(DxfGlobalData *global);
38
39EAPI
40gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
41 G3DModel *model, gpointer user_data)
42{
43 gchar binmagic[22];
44 G3DObject *object;
45 G3DMaterial *material;
46 DxfGlobalData *global;
47 G3DMatrix rmatrix[16];
48
49 global = g_new0(DxfGlobalData, 1);
50 global->context = context;
51 global->model = model;
52 global->stream = stream;
53 global->blocks = g_hash_table_new(g_str_hash, g_str_equal);
54
55 setlocale(LC_NUMERIC, "C");
56
57 if((g3d_stream_read(stream, binmagic, 22) == 22) &&
58 (strncmp(binmagic, "AutoCAD Binary DXF", 18) == 0))
59 global->binary = TRUE;
60 else {
61 setlocale(LC_NUMERIC, "C");
62 g3d_stream_seek(stream, 0, G_SEEK_SET);
63 }
64
65 object = g_new0(G3DObject, 1);
66 object->name = g_strdup("DXF Object");
67 model->objects = g_slist_append(model->objects, object);
68
69 material = g3d_material_new();
70 material->name = g_strdup("default material");
71 material->flags |= G3D_FLAG_MAT_TWOSIDE;
72 object->materials = g_slist_append(object->materials, material);
73
74 while(!g3d_stream_eof(stream)) {
75 int retval = dxf_read_section(global, object);
76 if(retval != TRUE) {
77 if(retval == 0xE0F) {
78 g3d_matrix_identity(rmatrix);
79 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
80 g3d_model_transform(model, rmatrix);
81 dxf_cleanup(global);
82 return TRUE;
83 }
84 g_printerr("error in section..\n");
85 dxf_cleanup(global);
86 return FALSE;
87 }
88 }
89
90 g3d_matrix_identity(rmatrix);
91 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
92 g3d_model_transform(model, rmatrix);
93 dxf_cleanup(global);
94
95 return TRUE;
96}
97
98EAPI
99gchar *plugin_description(void)
100{
101 return g_strdup("AutoCAD models.");
102}
103
104EAPI
105gchar **plugin_extensions(void)
106{
107 return g_strsplit("dxf", ":", 0);
108}
109
110/*****************************************************************************/
111
112static void dxf_cleanup(DxfGlobalData *global)
113{
114 g_hash_table_destroy(global->blocks);
115 g_free(global);
116}
117
118gboolean dxf_read_section(DxfGlobalData *global, G3DObject *object)
119{
120 gint grpcode;
121 gchar val_str[DXF_MAX_LINE + 1];
122
123 grpcode = dxf_read_code(global);
124 if(grpcode != 0) {
125#if DEBUG > 0
126 g_printerr("unexpected group code: %d (0 expected)\n", grpcode);
127#endif
128 return FALSE;
129 }
130 dxf_read_string(global, val_str);
131 if(strcmp("EOF", val_str) == 0)
132 return 0xE0F;
133 if(strcmp("SECTION", val_str) != 0) {
134#if DEBUG > 0
135 g_printerr("SECTION expected, found: %s\n", val_str);
136#endif
137 return FALSE;
138 }
139 grpcode = dxf_read_code(global);
140 if(grpcode != 2) {
141#if DEBUG > 0
142 g_printerr("unexpected group code: %d (2 expected)\n", grpcode);
143#endif
144 return FALSE;
145 }
146 dxf_read_string(global, val_str);
147
148 if(strcmp(val_str, "HEADER") == 0)
149 return dxf_section_HEADER(global);
150 else if(strcmp(val_str, "TABLES") == 0)
151 return dxf_section_TABLES(global);
152 else if(strcmp(val_str, "ENTITIES") == 0)
153 return dxf_section_ENTITIES(global);
154 else if(strcmp(val_str, "BLOCKS") == 0)
155 return dxf_section_BLOCKS(global);
156 else if(strcmp(val_str, "OBJECTS") == 0)
157 return dxf_section_OBJECTS(global);
158 else if(strcmp(val_str, "CLASSES") == 0)
159 return dxf_section_CLASSES(global);
160 else {
161#if DEBUG > 0
162 g_printerr("unknown section '%s', skipping...\n", val_str);
163#endif
164 dxf_skip_section(global);
165 }
166 return TRUE;
167}
168
169gchar *dxf_read_string(DxfGlobalData *global, gchar *value)
170{
171 if(global->binary) {
172 int pos = 0;
173 int c;
174 do
175 {
176 c = g3d_stream_read_int8(global->stream);
177 value[pos] = (char)c;
178 pos++;
179 } while(c != '\0');
180 return value;
181 } else {
182 gchar line[DXF_MAX_LINE + 1];
183
184 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
185 line[DXF_MAX_LINE] = '\0';
186 if(sscanf(line, "%s", value) == 1)
187 return g_strchomp(value);
188 if(sscanf(line, " %s", value) == 1)
189 return g_strchomp(value);
190 return NULL;
191 }
192}
193
194gint32 dxf_read_code(DxfGlobalData *global)
195{
196 gint32 val = DXF_CODE_INVALID;
197 gchar line[DXF_MAX_LINE + 1];
198
199 if(global->binary)
200 return g3d_stream_read_int8(global->stream);
201 else {
202 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
203 if((sscanf(line, "%d", &val) != 1) &&
204 (sscanf(line, " %d", &val) != 1))
205 return DXF_CODE_INVALID;
206 if(val == 999) { /* comment */
207 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
208 return dxf_read_code(global);
209 }
210 return val;
211 }
212}
213
214gint32 dxf_read_int16(DxfGlobalData *global)
215{
216 if(global->binary)
217 return g3d_stream_read_int16_le(global->stream);
218 else
219 {
220 gint32 val;
221 gchar line[DXF_MAX_LINE];
222
223 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
224 if(sscanf(line, "%i", &val) == 1)
225 return val;
226 if(sscanf(line, " %i", &val) == 1)
227 return val;
228 else
229 return DXF_CODE_INVALID;
230 }
231}
232
233gint32 dxf_read_int32(DxfGlobalData *global)
234{
235 if(global->binary)
236 return g3d_stream_read_int32_le(global->stream);
237 else
238 {
239 gint32 val;
240 gchar line[DXF_MAX_LINE];
241
242 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
243 if(sscanf(line, "%i", &val) == 1)
244 return val;
245 if(sscanf(line, " %i", &val) == 1)
246 return val;
247 else
248 return DXF_CODE_INVALID;
249 }
250}
251
252gdouble dxf_read_float64(DxfGlobalData *global)
253{
254 if(global->binary)
255 return g3d_stream_read_double_le(global->stream);
256 else
257 {
258 gdouble val;
259 gchar line[DXF_MAX_LINE];
260
261 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
262 if(sscanf(line, "%lf", &val) == 1)
263 return val;
264 if(sscanf(line, " %lf", &val) == 1)
265 return val;
266 else
267 return 0.0;
268 }
269}
270
271gboolean dxf_skip_section(DxfGlobalData *global)
272{
273 gchar c, buf[7], line[DXF_MAX_LINE];
274 gsize read;
275
276 while(!g3d_stream_eof(global->stream))
277 if(global->binary) {
278 do { c = g3d_stream_read_int8(global->stream); } while(c != 0);
279 read = g3d_stream_read(global->stream, buf, 7);
280 if((read == 7) && (strncmp(buf, "ENDSEC", 6) == 0))
281 return TRUE;
282 else
283 g3d_stream_seek(global->stream, -read, G_SEEK_CUR);
284 } else {
285 g3d_stream_read_line(global->stream, line, DXF_MAX_LINE);
286 if(strncmp(line, "ENDSEC", 6) == 0)
287 return TRUE;
288 }
289 return TRUE;
290}
291
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h
new file mode 100644
index 0000000..8c0cc1d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf.h
@@ -0,0 +1,53 @@
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_DXF_H
23#define _IMP_DXF_H
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27
28#include "imp_dxf_types.h"
29
30#define DXF_TEST_ENDSEC(str) \
31 if(strcmp((str), "ENDSEC") == 0) return TRUE;
32
33#define DXF_HANDLE_UNKNOWN(global, key, str, section) \
34 if(global->binary) { \
35 g_warning("imp_dxf: unhandled key %d in section %s @ %#x", \
36 key, section, (guint32)g3d_stream_tell(global->stream)); \
37 return FALSE; \
38 } else { \
39 g3d_stream_read_line(global->stream, str, DXF_MAX_LINE); \
40 g_debug(\
41 "imp_dxf: skipping line %d (section %s, key %d):\n\t\"%s\"\n", \
42 g3d_stream_line(global->stream), section, key, str); \
43 }
44
45gint32 dxf_read_section(DxfGlobalData *global, G3DObject *object);
46gint32 dxf_read_code(DxfGlobalData *global);
47gchar *dxf_read_string(DxfGlobalData *global, gchar *value);
48gint32 dxf_read_int16(DxfGlobalData *global);
49gint32 dxf_read_int32(DxfGlobalData *global);
50gdouble dxf_read_float64(DxfGlobalData *global);
51gboolean dxf_skip_section(DxfGlobalData *global);
52
53#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.c
new file mode 100644
index 0000000..c7a6e7c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.c
@@ -0,0 +1,349 @@
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 <math.h>
24
25/* need a way to detect non-set float values */
26#ifndef FP_NAN
27# ifdef HUGE
28# define FP_NAN HUGE
29# else
30# define FP_NAN 3.40282347e+38F
31# endif
32#endif
33
34#include <g3d/face.h>
35#include <g3d/object.h>
36#include <g3d/matrix.h>
37#include <g3d/primitive.h>
38
39#include "imp_dxf.h"
40#include "imp_dxf_callbacks.h"
41#include "imp_dxf_vars.h"
42#include "imp_dxf_def.h"
43#include "imp_dxf_prop.h"
44#include "imp_dxf_color.h"
45
46static gboolean dxf_str_in_array(gchar **array, const gchar *needle)
47{
48 gchar **p = array;
49 while(*p != NULL) {
50 if(strcmp(*p, needle) == 0)
51 return TRUE;
52 p ++;
53 }
54 return FALSE;
55}
56
57#define DXF_VAR_DEBUG 2
58
59gboolean dxf_debug_var(DxfGlobalData *global, DxfLocalData *local)
60{
61 gint32 key;
62 gint16 i16;
63 gchar str[DXF_MAX_LINE + 1], strval[DXF_MAX_LINE + 1];
64 gdouble x, y, z;
65
66 dxf_read_string(global, str);
67 if(dxf_str_in_array(dxf_vars_vector3d, str)) {
68 key = dxf_read_code(global); /* 10 */
69 x = dxf_read_float64(global);
70 key = dxf_read_code(global); /* 20 */
71 y = dxf_read_float64(global);
72 key = dxf_read_code(global); /* 30 */
73 z = dxf_read_float64(global);
74#if DEBUG > DXF_VAR_DEBUG
75 g_debug("DXF: [v3d] %s: %.2f, %.2f, %.2f", str, x, y, z);
76#endif
77 } else if(dxf_str_in_array(dxf_vars_vector2d, str)) {
78 key = dxf_read_code(global); /* 10 */
79 x = dxf_read_float64(global);
80 key = dxf_read_code(global); /* 20 */
81 y = dxf_read_float64(global);
82#if DEBUG > DXF_VAR_DEBUG
83 g_debug("DXF: [v2d] %s: %.2f, %.2f", str, x, y);
84#endif
85 } else {
86 key = dxf_read_code(global);
87 switch(key) {
88 case 1: case 2: case 3: case 4:
89 case 5: case 6: case 7: case 8:
90 /* string */
91 dxf_read_string(global, strval);
92#if DEBUG > DXF_VAR_DEBUG
93 g_debug("DXF: [str] %s: %s", str, strval);
94#endif
95 break;
96 case 40:
97 case 50:
98 x = dxf_read_float64(global);
99#if DEBUG > DXF_VAR_DEBUG
100 g_debug("DXF: [dbl] %s: %.2f", str, x);
101#endif
102 break;
103 case 62:
104 case 70:
105 case 280:
106 case 290: /* FIXME: boolean */
107 case 370:
108 case 380:
109 /* 16-bit integer */
110 i16 = dxf_read_int16(global);
111#if DEBUG > DXF_VAR_DEBUG
112 g_debug("DXF: [i16] %s: %d", str, i16);
113#endif
114 break;
115 default:
116 DXF_HANDLE_UNKNOWN(global, key, strval, "** VARIABLE **");
117 break;
118 }
119 }
120 return TRUE;
121}
122
123static inline void dxf_object_append(DxfGlobalData *global,
124 DxfLocalData *local, G3DObject *object)
125{
126 if(local->edata->block)
127 local->edata->block->objects = g_slist_append(
128 local->edata->block->objects, object);
129 else
130 global->model->objects = g_slist_append(global->model->objects,
131 object);
132}
133
134gboolean dxf_e_3DFACE(DxfGlobalData *global, DxfLocalData *local)
135{
136 G3DObject *object;
137 G3DFace *face;
138 G3DMaterial *material;
139 gint32 key, i, j, col;
140 gboolean quad;
141
142 col = dxf_prop_get_int(local->eprop, 62, 254);
143 material = dxf_color_get_material(global->model, col);
144 if(material == NULL)
145 material = local->edata->material;
146
147 object = g_slist_nth_data(global->model->objects, 0);
148 local->edata->object = object;
149 local->edata->polyline_flags = 0;
150
151 quad = (dxf_prop_get_dbl(local->eprop, 13, FP_NAN) != FP_NAN);
152
153 face = g_new0(G3DFace, 1);
154 face->material = material;
155 face->vertex_count = quad ? 4 : 3;
156 face->vertex_indices = g_new0(guint32, face->vertex_count);
157 local->edata->vertex_offset = object->vertex_count;
158 for(i = 0; i < face->vertex_count; i ++)
159 face->vertex_indices[i] = local->edata->vertex_offset + i;
160
161 object->vertex_count += face->vertex_count;
162 object->vertex_data = g_realloc(object->vertex_data,
163 object->vertex_count * 3 * sizeof(G3DFloat));
164 object->faces = g_slist_prepend(object->faces, face);
165
166 for(i = 0; i < face->vertex_count; i ++) {
167 for(j = 0; j < 3; j ++) {
168 key = (j + 1) * 10 + i;
169 object->vertex_data[(local->edata->vertex_offset + i) * 3 + j] =
170 dxf_prop_get_dbl(local->eprop, key, 0.0);
171#if DEBUG > 2
172 g_debug("| 3DFACE: data[%d = o + %d * 3 + %d] = prop[%d] = %.2f",
173 (local->edata->vertex_offset + i) * 3 + j,
174 i, j, key,
175 object->vertex_data[
176 (local->edata->vertex_offset + i) * 3 + j]);
177#endif
178 }
179 }
180 return TRUE;
181}
182
183gboolean dxf_e_BLOCK(DxfGlobalData *global, DxfLocalData *local)
184{
185 G3DObject *object;
186 const gchar *name;
187
188 name = dxf_prop_get_str(local->eprop, 2, NULL);
189 if(local->sid == DXF_ID_BLOCKS) {
190 object = g_new0(G3DObject, 1);
191 object->hide = TRUE;
192 object->name = name ? g_strdup(name) :
193 g_strdup_printf("unnamed block @ line %d",
194 g3d_stream_line(global->stream));
195 local->edata->block = object;
196 global->model->objects = g_slist_append(global->model->objects,
197 object);
198 if(name)
199 g_hash_table_insert(global->blocks, object->name, object);
200 }
201 return TRUE;
202}
203
204gboolean dxf_e_ENDBLK(DxfGlobalData *global, DxfLocalData *local)
205{
206 local->edata->block = NULL;
207 return TRUE;
208}
209
210gboolean dxf_e_INSERT(DxfGlobalData *global, DxfLocalData *local)
211{
212 G3DObject *block, *object, *subobject;
213 GSList *item;
214 const gchar *name;
215 G3DFloat matrix[16];
216
217 name = dxf_prop_get_str(local->eprop, 2, "*** error ***");
218 block = g_hash_table_lookup(global->blocks, name);
219 if(block) {
220 object = g_new0(G3DObject, 1);
221 object->name = g_strdup_printf("copy of %s", name);
222 for(item = block->objects; item != NULL; item = item->next) {
223 subobject = g3d_object_duplicate(item->data);
224 object->objects = g_slist_append(object->objects, subobject);
225 }
226 global->model->objects = g_slist_append(global->model->objects,
227 object);
228 local->edata->object = object;
229 local->edata->vertex_offset = 0;
230
231 /* scale */
232 g3d_matrix_identity(matrix);
233 g3d_matrix_scale(
234 dxf_prop_get_dbl(local->eprop, 41, 1.0),
235 dxf_prop_get_dbl(local->eprop, 42, 1.0),
236 dxf_prop_get_dbl(local->eprop, 43, 1.0),
237 matrix);
238 g3d_object_transform(object, matrix);
239
240 /* rotate */
241 g3d_matrix_identity(matrix);
242 g3d_matrix_rotate(
243 dxf_prop_get_dbl(local->eprop, 50, 0.0),
244 dxf_prop_get_dbl(local->eprop, 210, 0.0),
245 dxf_prop_get_dbl(local->eprop, 220, 0.0),
246 dxf_prop_get_dbl(local->eprop, 230, 1.0),
247 matrix);
248 g3d_object_transform(object, matrix);
249
250 /* translate */
251 g3d_matrix_identity(matrix);
252 g3d_matrix_translate(
253 dxf_prop_get_dbl(local->eprop, 10, 0.0),
254 dxf_prop_get_dbl(local->eprop, 20, 0.0),
255 dxf_prop_get_dbl(local->eprop, 30, 0.0),
256 matrix);
257 g3d_object_transform(object, matrix);
258 }
259 return TRUE;
260}
261
262gboolean dxf_e_POLYLINE(DxfGlobalData *global, DxfLocalData *local)
263{
264 G3DObject *object = NULL;
265 G3DMaterial *material;
266 guint32 flags;
267 gint32 m, n, col;
268
269 col = dxf_prop_get_int(local->eprop, 62, 254);
270 material = dxf_color_get_material(global->model, col);
271 if(material == NULL)
272 material = local->edata->material;
273
274 flags = dxf_prop_get_int(local->eprop, 70, 0);
275 if(flags & DXF_POLY_POLYFACE) {
276 object = g_new0(G3DObject, 1);
277 object->name = g_strdup_printf("POLYFACE @ line %d",
278 g3d_stream_line(global->stream));
279 object->vertex_count = dxf_prop_get_int(local->eprop, 71, 0);
280 object->vertex_data = g_new0(G3DFloat, 3 * object->vertex_count);
281 } else if(flags & DXF_POLY_3D_POLYMESH) {
282 m = dxf_prop_get_int(local->eprop, 71, 0);
283 n = dxf_prop_get_int(local->eprop, 72, 0);
284 object = g3d_primitive_mesh(n, m,
285 (flags & DXF_POLY_CLOSED),
286 (flags & DXF_POLY_N_CLOSED),
287 material);
288 object->name = g_strdup_printf("3D POLYMESH %d x %d @ line %d",
289 m, n, g3d_stream_line(global->stream));
290 }
291
292 if(object)
293 dxf_object_append(global, local, object);
294
295 local->edata->object = object;
296 local->edata->vertex_offset = 0;
297 local->edata->polyline_flags = flags;
298 local->edata->tmp_i1 = 0;
299 return TRUE;
300}
301
302gboolean dxf_e_VERTEX(DxfGlobalData *global, DxfLocalData *local)
303{
304 G3DObject *object = local->edata->object;
305 G3DFace *face;
306 G3DMaterial *material;
307 guint32 index, flags;
308 gint32 i, col;
309
310 if(object == NULL)
311 return TRUE;
312
313 index = local->edata->vertex_offset + local->edata->tmp_i1;
314
315 if(local->edata->polyline_flags & DXF_POLY_3D_POLYMESH) {
316 g_return_val_if_fail(index < object->vertex_count, FALSE);
317 for(i = 0; i < 3; i ++)
318 object->vertex_data[index * 3 + i] = dxf_prop_get_dbl(local->eprop,
319 10 * (i + 1), 0.0);
320 local->edata->tmp_i1 ++;
321 } else if(local->edata->polyline_flags & DXF_POLY_POLYFACE) {
322 flags = dxf_prop_get_int(local->eprop, 70, 0);
323 if(flags & 64) { /* vertex coords */
324 g_return_val_if_fail(index < object->vertex_count, FALSE);
325 for(i = 0; i < 3; i ++)
326 object->vertex_data[index * 3 + i] = dxf_prop_get_dbl(
327 local->eprop, 10 * (i + 1), 0.0);
328 local->edata->tmp_i1 ++;
329 }
330 if(flags & 128) {
331 col = dxf_prop_get_int(local->eprop, 62, 254);
332 material = dxf_color_get_material(global->model, col);
333 if(material == NULL)
334 material = local->edata->material;
335
336 face = g_new0(G3DFace, 1);
337 face->material = material;
338 face->vertex_count =
339 dxf_prop_get_int(local->eprop, 74, 0) ? 4 : 3;
340 face->vertex_indices = g_new0(guint32, face->vertex_count);
341 for(i = 0; i < face->vertex_count; i ++)
342 face->vertex_indices[i] =
343 MAX(ABS(dxf_prop_get_int(local->eprop, 71 + i, 0)) - 1, 0);
344 object->faces = g_slist_prepend(object->faces, face);
345 }
346 }
347
348 return TRUE;
349}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.h
new file mode 100644
index 0000000..3e84fc3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_callbacks.h
@@ -0,0 +1,36 @@
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_DXF_CALLBACKS_H
23#define _IMP_DXF_CALLBACKS_H
24
25#include "imp_dxf_types.h"
26
27gboolean dxf_debug_var(DxfGlobalData *global, DxfLocalData *local);
28
29gboolean dxf_e_3DFACE(DxfGlobalData *global, DxfLocalData *local);
30gboolean dxf_e_BLOCK(DxfGlobalData *global, DxfLocalData *local);
31gboolean dxf_e_ENDBLK(DxfGlobalData *global, DxfLocalData *local);
32gboolean dxf_e_INSERT(DxfGlobalData *global, DxfLocalData *local);
33gboolean dxf_e_POLYLINE(DxfGlobalData *global, DxfLocalData *local);
34gboolean dxf_e_VERTEX(DxfGlobalData *global, DxfLocalData *local);
35
36#endif /* _IMP_DXF_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h
new file mode 100644
index 0000000..4382888
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_chunks.h
@@ -0,0 +1,196 @@
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_DXF_CHUNKS_H
23#define _IMP_DXF_CHUNKS_H
24
25#include "imp_dxf_callbacks.h"
26#include "imp_dxf_types.h"
27#include "imp_dxf_def.h"
28
29static DxfChunkInfo dxf_chunks[] = {
30 /* app: <0 */
31 /* string: 0-9 */
32 { 0, "entity type", DXF_T_EMPTY },
33 { 1, "primary text value", DXF_T_STRING },
34 { 2, "name", DXF_T_STRING },
35 { 3, "other text (3)", DXF_T_STRING },
36 { 4, "other text (4)", DXF_T_STRING },
37 { 5, "entity handle", DXF_T_STRING },
38 { 6, "linetype name", DXF_T_STRING },
39 { 7, "text style name", DXF_T_STRING },
40 { 8, "layer name", DXF_T_STRING },
41 { 9, "variable name identifier", DXF_T_UNKNOWN },
42 /* double precision 3D point value: 10-39 */
43 { 10, "primary point, X value", DXF_T_FLOAT64 },
44 { 11, "point #2, X value", DXF_T_FLOAT64 },
45 { 12, "point #3, X value", DXF_T_FLOAT64 },
46 { 13, "point #4, X value", DXF_T_FLOAT64 },
47 { 14, "point #5, X value", DXF_T_FLOAT64 },
48 { 15, "point #6, X value", DXF_T_FLOAT64 },
49 { 16, "point #7, X value", DXF_T_FLOAT64 },
50 { 17, "point #8, X value", DXF_T_FLOAT64 },
51 { 18, "point #9, X value", DXF_T_FLOAT64 },
52 { 19, "point #10, X value", DXF_T_FLOAT64 },
53 { 20, "primary point, Y value", DXF_T_FLOAT64 },
54 { 21, "point #2, Y value", DXF_T_FLOAT64 },
55 { 22, "point #3, Y value", DXF_T_FLOAT64 },
56 { 23, "point #4, Y value", DXF_T_FLOAT64 },
57 { 24, "point #5, Y value", DXF_T_FLOAT64 },
58 { 25, "point #6, Y value", DXF_T_FLOAT64 },
59 { 26, "point #7, Y value", DXF_T_FLOAT64 },
60 { 27, "point #8, Y value", DXF_T_FLOAT64 },
61 { 28, "point #9, Y value", DXF_T_FLOAT64 },
62 { 29, "point #10, Y value", DXF_T_FLOAT64 },
63 { 30, "primary point, Z value", DXF_T_FLOAT64 },
64 { 31, "point #2, Z value", DXF_T_FLOAT64 },
65 { 32, "point #3, Z value", DXF_T_FLOAT64 },
66 { 33, "point #4, Z value", DXF_T_FLOAT64 },
67 { 34, "point #5, Z value", DXF_T_FLOAT64 },
68 { 35, "point #6, Z value", DXF_T_FLOAT64 },
69 { 36, "point #7, Z value", DXF_T_FLOAT64 },
70 { 37, "point #8, Z value", DXF_T_FLOAT64 },
71 { 38, "point #9, Z value", DXF_T_FLOAT64 },
72 { 39, "point #10, Z value", DXF_T_FLOAT64 },
73 /* double precision floating-point value: 40-59 */
74 { 40, "double-precision floating-point value", DXF_T_FLOAT64 },
75 { 41, "double-precision floating-point value", DXF_T_FLOAT64 },
76 { 42, "double-precision floating-point value", DXF_T_FLOAT64 },
77 { 43, "double-precision floating-point value", DXF_T_FLOAT64 },
78 { 44, "double-precision floating-point value", DXF_T_FLOAT64 },
79 { 45, "double-precision floating-point value", DXF_T_FLOAT64 },
80 { 46, "double-precision floating-point value", DXF_T_FLOAT64 },
81 { 47, "double-precision floating-point value", DXF_T_FLOAT64 },
82 { 48, "linetype scale dbl-prec fp value", DXF_T_FLOAT64 },
83 { 49, "repeated dbl-prec fp value", DXF_T_FLOAT64 },
84 { 50, "angle", DXF_T_FLOAT64 },
85 { 51, "angle", DXF_T_FLOAT64 },
86 { 52, "angle", DXF_T_FLOAT64 },
87 /* 16-bit integer value: 60-79 */
88 { 60, "entity visibility", DXF_T_INT16 },
89 { 62, "color number", DXF_T_INT16 },
90 { 65, "integer value, 16-bit", DXF_T_INT16 },
91 { 66, "entities follow", DXF_T_INT16 },
92 { 67, "space", DXF_T_INT16 },
93 { 68, "APP: viewport not visible", DXF_T_INT16 },
94 { 69, "APP: viewport identification number", DXF_T_INT16 },
95 { 70, "integer value, 16-bit", DXF_T_INT16 },
96 { 71, "integer value, 16-bit", DXF_T_INT16 },
97 { 72, "integer value, 16-bit", DXF_T_INT16 },
98 { 73, "integer value, 16-bit", DXF_T_INT16 },
99 { 74, "integer value, 16-bit", DXF_T_INT16 },
100 { 75, "integer value, 16-bit", DXF_T_INT16 },
101 { 76, "integer value, 16-bit", DXF_T_INT16 },
102 { 77, "integer value, 16-bit", DXF_T_INT16 },
103 { 78, "integer value, 16-bit", DXF_T_INT16 },
104 { 79, "integer value, 16-bit", DXF_T_INT16 },
105 /* 32-bit integer value: 90-99 */
106 { 90, "integer value, 32-bit", DXF_T_INT32 },
107 { 91, "integer value, 32-bit", DXF_T_INT32 },
108
109 { 100, "subclass data marker", DXF_T_STRING },
110 { 102, "control string", DXF_T_STRING },
111 { 105, "DIMVAR object handle", DXF_T_STRING },
112
113 { 110, "UCS origin, X value", DXF_T_FLOAT64 },
114 { 111, "UCS X-axis, X value", DXF_T_FLOAT64 },
115 { 112, "UCS Y-axis, X value", DXF_T_FLOAT64 },
116 { 120, "UCS origin, Y value", DXF_T_FLOAT64 },
117 { 121, "UCS X-axis, Y value", DXF_T_FLOAT64 },
118 { 122, "UCS Y-axis, Y value", DXF_T_FLOAT64 },
119 { 130, "UCS origin, Z value", DXF_T_FLOAT64 },
120 { 131, "UCS X-axis, Z value", DXF_T_FLOAT64 },
121 { 132, "UCS Y-axis, Z value", DXF_T_FLOAT64 },
122
123 /* double precision floating-point value: 140-149 */
124 { 140, "double-precision floating-point value", DXF_T_FLOAT64 },
125 { 141, "double-precision floating-point value", DXF_T_FLOAT64 },
126 { 142, "double-precision floating-point value", DXF_T_FLOAT64 },
127 { 143, "double-precision floating-point value", DXF_T_FLOAT64 },
128 { 144, "double-precision floating-point value", DXF_T_FLOAT64 },
129 { 145, "double-precision floating-point value", DXF_T_FLOAT64 },
130 { 146, "double-precision floating-point value", DXF_T_FLOAT64 },
131 { 147, "double-precision floating-point value", DXF_T_FLOAT64 },
132 { 148, "double-precision floating-point value", DXF_T_FLOAT64 },
133 { 149, "double-precision floating-point value", DXF_T_FLOAT64 },
134 /* 16-bit integer value: 170-179 */
135 { 170, "integer value, 16-bit", DXF_T_INT16 },
136 { 171, "integer value, 16-bit", DXF_T_INT16 },
137 { 172, "integer value, 16-bit", DXF_T_INT16 },
138
139 { 210, "extrusion direction, X value", DXF_T_FLOAT64 },
140 { 220, "extrusion direction, Y value", DXF_T_FLOAT64 },
141 { 230, "extrusion direction, Z value", DXF_T_FLOAT64 },
142 /* 16-bit integer value: 270-279 */
143 { 270, "integer value, 16-bit", DXF_T_INT16 },
144 { 271, "integer value, 16-bit", DXF_T_INT16 },
145 { 272, "integer value, 16-bit", DXF_T_INT16 },
146 { 273, "integer value, 16-bit", DXF_T_INT16 },
147 { 274, "integer value, 16-bit", DXF_T_INT16 },
148 { 275, "integer value, 16-bit", DXF_T_INT16 },
149 { 276, "integer value, 16-bit", DXF_T_INT16 },
150 { 277, "integer value, 16-bit", DXF_T_INT16 },
151 { 278, "integer value, 16-bit", DXF_T_INT16 },
152 { 279, "integer value, 16-bit", DXF_T_INT16 },
153 /* 16-bit integer value: 280-289 */
154 { 280, "integer value, 16-bit", DXF_T_INT16 },
155 { 281, "integer value, 16-bit", DXF_T_INT16 },
156 { 282, "integer value, 16-bit", DXF_T_INT16 },
157 { 283, "integer value, 16-bit", DXF_T_INT16 },
158 { 284, "integer value, 16-bit", DXF_T_INT16 },
159 { 285, "integer value, 16-bit", DXF_T_INT16 },
160 { 286, "integer value, 16-bit", DXF_T_INT16 },
161 { 287, "integer value, 16-bit", DXF_T_INT16 },
162 { 288, "integer value, 16-bit", DXF_T_INT16 },
163 { 289, "integer value, 16-bit", DXF_T_INT16 },
164
165 /* boolean flag value: 290-299 */
166
167 { 330, "softpointer handle", DXF_T_STRING },
168 { 331, "softpointer handle", DXF_T_STRING },
169 { 340, "hardpointer handle", DXF_T_STRING },
170 { 350, "softowner handle", DXF_T_STRING },
171
172 { 370, "lineweight enum value", DXF_T_INT16 },
173
174 { 390, "PlotStyleName handle", DXF_T_STRING },
175
176 { 420, "integer value, 32-bit", DXF_T_INT32 },
177
178 { 1000, "ASCII string", DXF_T_STRING },
179 { 1001, "registered application name", DXF_T_STRING },
180 { 1002, "extended data control string", DXF_T_STRING },
181
182 { 1010, "extended data point, X value", DXF_T_FLOAT64 },
183 { 1011, "extended 3D world space, X value", DXF_T_FLOAT64 },
184 { 1020, "extended data point, Y value", DXF_T_FLOAT64 },
185 { 1021, "extended 3D world space, Y value", DXF_T_FLOAT64 },
186 { 1030, "extended data point, Z value", DXF_T_FLOAT64 },
187 { 1031, "extended 3D world space, Z value", DXF_T_FLOAT64 },
188 { 1040, "extended data dbl-prec fp value", DXF_T_FLOAT64 },
189 { 1041, "extended data distance value", DXF_T_FLOAT64 },
190 { 1070, "extended data 16-bit integer", DXF_T_INT16 },
191 { 1071, "extended data 32-bit integer", DXF_T_INT32 },
192
193 { DXF_CODE_INVALID, NULL, DXF_T_UNKNOWN },
194};
195
196#endif /* _IMP_DXF_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.c
new file mode 100644
index 0000000..6ffdf87
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.c
@@ -0,0 +1,130 @@
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 <g3d/types.h>
25#include <g3d/material.h>
26
27static G3DMaterial *get_material(G3DModel *model, const gchar *cname)
28{
29 G3DMaterial *material;
30 GSList *item;
31
32 for(item = model->materials; item != NULL; item = item->next) {
33 material = item->data;
34 if(strcmp(material->name, cname) == 0)
35 return material;
36 }
37 return NULL;
38}
39
40#define DXF_COL_SET(rx, gx, bx) \
41 material->r = ((G3DFloat)(rx) / 255.0); \
42 material->g = ((G3DFloat)(gx) / 255.0); \
43 material->b = ((G3DFloat)(bx) / 255.0);
44
45/*
46 * based on GPL code from
47 * http://wiki.inkscape.org/wiki/index.php/SOC_Accepted_Proposals
48 */
49static gboolean set_aci(G3DMaterial *material, gint32 aci)
50{
51 G3DFloat r, g, b, h, s, l, m;
52 gint32 mod10;
53
54 if((aci < 10) || (aci > 249)) {
55 switch(aci) {
56 case 0: DXF_COL_SET(0x00, 0x00, 0x00); break;
57 case 1: DXF_COL_SET(0xFF, 0x00, 0x00); break;
58 case 2: DXF_COL_SET(0xFF, 0xFF, 0x00); break;
59 case 3: DXF_COL_SET(0x00, 0xFF, 0x00); break;
60 case 4: DXF_COL_SET(0x00, 0xFF, 0xFF); break;
61 case 5: DXF_COL_SET(0x00, 0x00, 0xFF); break;
62 case 6: DXF_COL_SET(0xFF, 0x00, 0xFF); break;
63 case 7: DXF_COL_SET(0xFF, 0xFF, 0xFF); break;
64 case 8: DXF_COL_SET(0x80, 0x80, 0x80); break;
65 case 9: DXF_COL_SET(0xC0, 0xC0, 0xC0); break;
66
67 case 250: DXF_COL_SET(0x33, 0x33, 0x33); break;
68 case 251: DXF_COL_SET(0x5B, 0x5B, 0x5B); break;
69 case 252: DXF_COL_SET(0x84, 0x84, 0x84); break;
70 case 253: DXF_COL_SET(0xAD, 0xAD, 0xAD); break;
71 case 254: DXF_COL_SET(0xD6, 0xD6, 0xD6); break;
72 case 255: DXF_COL_SET(0xFF, 0xFF, 0xFF); break;
73 default: break;
74 }
75 } else {
76 mod10 = aci % 10;
77 h = 1.5 * (aci - mod10 - 10);
78 s = ((aci % 2) ? 0.5 : 1.0);
79 if(mod10 < 2) l = 1.0;
80 else if(mod10 < 4) l = 0.8;
81 else if(mod10 < 6) l = 0.6;
82 else if(mod10 < 8) l = 0.5;
83 else l = 0.3;
84
85 if(h <= 120) {
86 r = (120 - h) / 60;
87 g = h / 60;
88 b = 0;
89 } else if(h <= 240) {
90 r = 0;
91 g = (240 - h) / 60;
92 b = (h - 120) / 60;
93 } else if(h <= 360) {
94 r = (h - 240) / 60;
95 g = 0;
96 b = (360 - h) / 60;
97 }
98 r = MIN(r, 1.0);
99 g = MIN(g, 1.0);
100 b = MIN(b, 1.0);
101 m = MAX(r, MAX(g, b));
102 material->r = (m - s * (m - r)) * l;
103 material->g = (m - s * (m - g)) * l;
104 material->b = (m - s * (m - b)) * l;
105 }
106 return TRUE;
107}
108
109G3DMaterial *dxf_color_get_material(G3DModel *model, gint32 aci)
110{
111 gchar *cname;
112 G3DMaterial *material;
113
114 cname = g_strdup_printf("color #%d", ABS(aci));
115 material = get_material(model, cname);
116 if(material != NULL) {
117 g_free(cname);
118 return material;
119 }
120 material = g3d_material_new();
121 material->name = cname;
122 model->materials = g_slist_append(model->materials, material);
123 set_aci(material, ABS(aci));
124#if DEBUG > 0
125 g_debug("| color: %.2f %.2f %.2f", material->r, material->g, material->b);
126#endif
127
128 return material;
129}
130
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.h
new file mode 100644
index 0000000..18d09f0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_color.h
@@ -0,0 +1,29 @@
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_DXF_COLOR_H
23#define _IMP_DXF_COLOR_H
24
25#include <g3d/types.h>
26
27G3DMaterial *dxf_color_get_material(G3DModel *model, gint32 aci);
28
29#endif /* _IMP_DXF_COLOR_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h
new file mode 100644
index 0000000..d64d2ab
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_def.h
@@ -0,0 +1,51 @@
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_DXF_DEF_H
23#define _IMP_DXF_DEF_H
24
25#define DXF_MAX_LINE 512
26#define DXF_CODE_INVALID 0xDEADBEEF
27
28#define DXF_ID_HEADER 0x00FF0000
29#define DXF_ID_TABLES 0x00FF0001
30#define DXF_ID_ENTITIES 0x00FF0002
31#define DXF_ID_BLOCKS 0x00FF0003
32#define DXF_ID_OBJECTS 0x00FF0004
33#define DXF_ID_CLASSES 0x00FF0005
34
35#define DXF_E_3DFACE 0x0001
36#define DXF_E_POLYLINE 0x0002
37#define DXF_E_VERTEX 0x0003
38#define DXF_E_BLOCK 0x0004
39#define DXF_E_INSERT 0x0005
40#define DXF_E_OTHER 0xFFFF
41
42#define DXF_POLY_CLOSED 1
43#define DXF_POLY_CURVE_FIT_ADDED 2
44#define DXF_POLY_SPLINE_FIT_ADDED 4
45#define DXF_POLY_3D_POLYLINE 8
46#define DXF_POLY_3D_POLYMESH 16
47#define DXF_POLY_N_CLOSED 32
48#define DXF_POLY_POLYFACE 64
49#define DXF_POLY_LT_PATTERN 128
50
51#endif /* _IMP_DXF_DEF_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_entities.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_entities.h
new file mode 100644
index 0000000..2e8a0ee
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_entities.h
@@ -0,0 +1,70 @@
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_DXF_ENTITIES_H
23#define _IMP_DXF_ENTITIES_H
24
25#include "imp_dxf_types.h"
26#include "imp_dxf_def.h"
27#include "imp_dxf_callbacks.h"
28
29static DxfEntityInfo dxf_entities[] = {
30 { "3DFACE", "3D face", DXF_E_3DFACE, dxf_e_3DFACE },
31 { "POLYLINE", "Polyline", DXF_E_POLYLINE, dxf_e_POLYLINE },
32 { "VERTEX", "Vertex", DXF_E_VERTEX, dxf_e_VERTEX },
33
34 { "BLOCK", "block", DXF_E_BLOCK, dxf_e_BLOCK },
35 { "ENDBLK", "end of block", DXF_E_OTHER, dxf_e_ENDBLK },
36 { "INSERT", "insert block reference", DXF_E_INSERT, dxf_e_INSERT },
37
38 { "3DLINE", "3D line", DXF_E_OTHER, NULL },
39 { "ACDBDICTIONARYWDFLT", "unknown", DXF_E_OTHER, NULL },
40 { "ACDBPLACEHOLDER", "unknown", DXF_E_OTHER, NULL },
41 { "APPID", "application ID", DXF_E_OTHER, NULL },
42 { "ARC", "arc", DXF_E_OTHER, NULL },
43 { "ATTDEF", "attribute definition", DXF_E_OTHER, NULL },
44 { "ATTRIB", "attribute", DXF_E_OTHER, NULL },
45 { "BLOCK_RECORD", "block record", DXF_E_OTHER, NULL },
46 { "CIRCLE", "circle", DXF_E_OTHER, NULL },
47 { "CLASS", "class", DXF_E_OTHER, NULL },
48 { "DICTIONARY", "dictionary", DXF_E_OTHER, NULL },
49 { "DIMSTYLE", "unknown", DXF_E_OTHER, NULL },
50 { "ENDTAB", "end of table", DXF_E_OTHER, NULL },
51 { "LAYER", "layer", DXF_E_OTHER, NULL },
52 { "LAYOUT", "layout", DXF_E_OTHER, NULL },
53 { "LINE", "line", DXF_E_OTHER, NULL },
54 { "LTYPE", "line type", DXF_E_OTHER, NULL },
55 { "LWPOLYLINE", "unknown", DXF_E_OTHER, NULL },
56 { "MLINESTYLE", "unknown", DXF_E_OTHER, NULL },
57 { "POINT", "point", DXF_E_OTHER, NULL },
58 { "SEQEND", "end of sequence", DXF_E_OTHER, NULL },
59 { "SPLINE", "spline curve", DXF_E_OTHER, NULL },
60 { "STYLE", "style", DXF_E_OTHER, NULL },
61 { "TABLE", "table", DXF_E_OTHER, NULL },
62 { "UCS", "UCS", DXF_E_OTHER, NULL },
63 { "VIEW", "view", DXF_E_OTHER, NULL },
64 { "VIEWPORT", "viewport", DXF_E_OTHER, NULL },
65 { "VPORT", "viewport", DXF_E_OTHER, NULL },
66
67 { NULL, NULL, 0, NULL }
68};
69
70#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.c
new file mode 100644
index 0000000..ce63334
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.c
@@ -0,0 +1,128 @@
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 "imp_dxf_types.h"
23
24struct _DxfEntityProps {
25 GHashTable *hash;
26};
27
28typedef struct {
29 gint32 key;
30 DxfChunkType type;
31 union {
32 gint32 ival;
33 gdouble dval;
34 gchar *strval;
35 } u;
36} DxfEProp;
37
38DxfEntityProps *dxf_prop_create(void)
39{
40 DxfEntityProps *eprop;
41
42 eprop = g_new0(DxfEntityProps, 1);
43 eprop->hash = g_hash_table_new(g_int_hash, g_int_equal);
44
45 return eprop;
46}
47
48static gboolean remove_p(gpointer key, gpointer value, gpointer user_data)
49{
50 DxfEProp *p = value;
51 if(p->type == DXF_T_STRING)
52 g_free(p->u.strval);
53 g_free(p);
54 return TRUE;
55}
56
57void dxf_prop_cleanup(DxfEntityProps *eprop)
58{
59 g_hash_table_foreach_remove(eprop->hash, remove_p, NULL);
60 g_hash_table_destroy(eprop->hash);
61 g_free(eprop);
62}
63
64static DxfEProp *prop_get(DxfEntityProps *eprop, gint32 key)
65{
66 DxfEProp *p;
67
68 p = g_hash_table_lookup(eprop->hash, &key);
69 if(p)
70 return p;
71 p = g_new0(DxfEProp, 1);
72 p->key = key;
73 g_hash_table_insert(eprop->hash, &(p->key), p);
74 return p;
75}
76
77gboolean dxf_prop_set_int(DxfEntityProps *eprop, gint32 key, gint32 i)
78{
79 DxfEProp *p = prop_get(eprop, key);
80 p->type = DXF_T_INT32;
81 p->u.ival = i;
82 return TRUE;
83}
84
85gboolean dxf_prop_set_dbl(DxfEntityProps *eprop, gint32 key, gdouble dbl)
86{
87 DxfEProp *p = prop_get(eprop, key);
88 p->type = DXF_T_FLOAT64;
89 p->u.dval = dbl;
90 return TRUE;
91}
92
93gboolean dxf_prop_set_str(DxfEntityProps *eprop, gint32 key,
94 const gchar *str)
95{
96 DxfEProp *p = prop_get(eprop, key);
97 p->type = DXF_T_STRING;
98 if(p->u.strval)
99 g_free(p->u.strval);
100 p->u.strval = g_strdup(str);
101 return TRUE;
102}
103
104gint32 dxf_prop_get_int(DxfEntityProps *eprop, gint32 key, gint32 dfl)
105{
106 DxfEProp *p = g_hash_table_lookup(eprop->hash, &key);
107 if(p)
108 return p->u.ival;
109 return dfl;
110}
111
112gdouble dxf_prop_get_dbl(DxfEntityProps *eprop, gint32 key, gdouble dfl)
113{
114 DxfEProp *p = g_hash_table_lookup(eprop->hash, &key);
115 if(p)
116 return p->u.dval;
117 return dfl;
118}
119
120const gchar *dxf_prop_get_str(DxfEntityProps *eprop, gint32 key,
121 const gchar *dfl)
122{
123 DxfEProp *p = g_hash_table_lookup(eprop->hash, &key);
124 if(p)
125 return p->u.strval;
126 return dfl;
127}
128
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.h
new file mode 100644
index 0000000..224f69a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_prop.h
@@ -0,0 +1,40 @@
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_DXF_PROP_H
23#define _IMP_DXF_PROP_H
24
25#include "imp_dxf_types.h"
26
27DxfEntityProps *dxf_prop_create(void);
28void dxf_prop_cleanup(DxfEntityProps *eprop);
29
30gboolean dxf_prop_set_int(DxfEntityProps *eprop, gint32 key, gint32 i);
31gboolean dxf_prop_set_dbl(DxfEntityProps *eprop, gint32 key, gdouble dbl);
32gboolean dxf_prop_set_str(DxfEntityProps *eprop, gint32 key,
33 const gchar *str);
34
35gint32 dxf_prop_get_int(DxfEntityProps *eprop, gint32 key, gint32 dfl);
36gdouble dxf_prop_get_dbl(DxfEntityProps *eprop, gint32 key, gdouble dfl);
37const gchar *dxf_prop_get_str(DxfEntityProps *eprop, gint32 key,
38 const gchar *dfl);
39
40#endif /* _IMP_DXF_PROP_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.c
new file mode 100644
index 0000000..39cd155
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.c
@@ -0,0 +1,233 @@
1/* $Id: imp_dxf_section.c 312 2008-11-17 18:28:56Z mmmaddd $ */
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 <math.h>
24
25#include <g3d/context.h>
26
27#include "imp_dxf.h"
28#include "imp_dxf_prop.h"
29#include "imp_dxf_chunks.h"
30#include "imp_dxf_entities.h"
31
32static DxfChunkInfo *dxf_get_chunk_info(DxfChunkInfo *chunks, gint32 id)
33{
34 guint32 i;
35
36 for(i = 0; chunks[i].id != DXF_CODE_INVALID; i ++)
37 if(chunks[i].id == id)
38 return &(chunks[i]);
39 return NULL;
40}
41
42static DxfEntityInfo *dxf_get_entity_info(const gchar *str)
43{
44 guint32 i;
45
46 for(i = 0; dxf_entities[i].name != NULL; i ++)
47 if(strcmp(dxf_entities[i].name, str) == 0)
48 return &(dxf_entities[i]);
49#if DEBUG > 0
50 g_debug("unknown entity: %s", str);
51#endif
52 return NULL;
53}
54
55static gboolean dxf_entity_finalize(DxfGlobalData *global, guint32 sid,
56 DxfEntityData *edata, DxfEntityInfo *einfo, DxfEntityProps *eprop)
57{
58 DxfLocalData *local;
59
60 if(einfo->callback) {
61 local = g_new0(DxfLocalData, 1);
62 local->sid = sid;
63 local->eid = einfo->id;
64 local->edata = edata;
65 local->eprop = eprop;
66
67 einfo->callback(global, local);
68
69 g_free(local);
70 }
71 return TRUE;
72}
73
74static gboolean dxf_read_chunk(DxfGlobalData *global, DxfChunkInfo *cinfo,
75 DxfEntityProps *eprop)
76{
77 gint32 i;
78 gdouble dbl;
79 gchar str[DXF_MAX_LINE + 1];
80
81 switch(cinfo->type) {
82 case DXF_T_UNKNOWN:
83 if(cinfo->id == 9) /* variable name */
84 return dxf_debug_var(global, NULL);
85 break;
86 case DXF_T_EMPTY:
87 return TRUE;
88 break;
89 case DXF_T_INT16:
90 i = dxf_read_int16(global);
91 dxf_prop_set_int(eprop, cinfo->id, i);
92 break;
93 case DXF_T_INT32:
94 i = dxf_read_int32(global);
95 dxf_prop_set_int(eprop, cinfo->id, i);
96 break;
97 case DXF_T_FLOAT64:
98 dbl = dxf_read_float64(global);
99 dxf_prop_set_dbl(eprop, cinfo->id, dbl);
100 break;
101 case DXF_T_STRING:
102 dxf_read_string(global, str);
103 dxf_prop_set_str(eprop, cinfo->id, str);
104 break;
105 }
106 return TRUE;
107}
108
109static gboolean dxf_parse_chunks(DxfGlobalData *global, DxfChunkInfo *chunks,
110 gint32 parentid, const gchar *section)
111{
112 gint32 key;
113 DxfChunkInfo *chunk_info;
114 DxfEntityData *edata;
115 DxfEntityInfo *einfo = NULL;
116 DxfEntityProps *eprop = NULL;
117 gchar str[DXF_MAX_LINE + 1];
118 G3DFloat pcnt, prev_pcnt = 0.0;
119
120#if DEBUG > 0
121 g_debug("\\[%s]", section);
122#endif
123
124 edata = g_new0(DxfEntityData, 1);
125
126 if((strcmp(section, "ENTITIES") == 0) ||
127 (strcmp(section, "BLOCKS") == 0)) {
128 edata->object = g_slist_nth_data(global->model->objects, 0);
129 edata->material = g_slist_nth_data(edata->object->materials, 0);
130 }
131
132 while(TRUE) {
133 key = dxf_read_code(global);
134 chunk_info = dxf_get_chunk_info(chunks, key);
135
136 if(key == DXF_CODE_INVALID) {
137 g_free(edata);
138 return FALSE;
139 }
140
141 if(key == 0) { /* new entity or end of section */
142 if(einfo) {
143 dxf_entity_finalize(global, parentid, edata, einfo, eprop);
144 dxf_prop_cleanup(eprop);
145 eprop = NULL;
146 }
147 dxf_read_string(global, str);
148 DXF_TEST_ENDSEC(str);
149 einfo = dxf_get_entity_info(str);
150 eprop = dxf_prop_create();
151#if DEBUG > 0
152 g_debug("| entity: %s", str);
153#endif
154 }
155
156#if DEBUG > 0
157 if(chunk_info)
158 g_debug("\\ %s[%+4d]: %s%s%s (line %d)",
159 key ? " " : "",
160 key, chunk_info->description,
161 key ? "" : ": ",
162 key ? "" : str,
163 g3d_stream_line(global->stream));
164 else
165 g_warning("unknown chunk type %d in line %d", key,
166 g3d_stream_line(global->stream));
167#endif
168
169 if(chunk_info) {
170 dxf_read_chunk(global, chunk_info, eprop);
171 } /* chunk_info */
172 else {
173 DXF_HANDLE_UNKNOWN(global, key, str, section);
174 }
175
176 pcnt = (G3DFloat)g3d_stream_tell(global->stream) /
177 (G3DFloat)g3d_stream_size(global->stream);
178 if((pcnt - prev_pcnt) > 0.01) {
179 prev_pcnt = pcnt;
180 g3d_context_update_progress_bar(global->context, pcnt, TRUE);
181 }
182 g3d_context_update_interface(global->context);
183 } /* endless loop */
184
185 g_free(edata);
186 return FALSE;
187}
188
189gboolean dxf_section_HEADER(DxfGlobalData *global)
190{
191#if 0
192 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_HEADER, "HEADER");
193#else
194 return dxf_skip_section(global);
195#endif
196}
197
198gboolean dxf_section_ENTITIES(DxfGlobalData *global)
199{
200 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_ENTITIES, "ENTITIES");
201}
202
203gboolean dxf_section_BLOCKS(DxfGlobalData *global)
204{
205 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_BLOCKS, "BLOCKS");
206}
207
208gboolean dxf_section_TABLES(DxfGlobalData *global)
209{
210#if 0
211 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_TABLES, "TABLES");
212#else
213 return dxf_skip_section(global);
214#endif
215}
216
217gboolean dxf_section_OBJECTS(DxfGlobalData *global)
218{
219#if 0
220 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_OBJECTS, "OBJECTS");
221#else
222 return dxf_skip_section(global);
223#endif
224}
225
226gboolean dxf_section_CLASSES(DxfGlobalData *global)
227{
228#if 0
229 return dxf_parse_chunks(global, dxf_chunks, DXF_ID_CLASSES, "TABLES");
230#else
231 return dxf_skip_section(global);
232#endif
233}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.h
new file mode 100644
index 0000000..3adb9c3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_section.h
@@ -0,0 +1,34 @@
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_DXF_SECTION_H
23#define _IMP_DXF_SECTION_H
24
25#include "imp_dxf_types.h"
26
27gboolean dxf_section_HEADER(DxfGlobalData *global);
28gboolean dxf_section_TABLES(DxfGlobalData *global);
29gboolean dxf_section_BLOCKS(DxfGlobalData *global);
30gboolean dxf_section_ENTITIES(DxfGlobalData *global);
31gboolean dxf_section_OBJECTS(DxfGlobalData *global);
32gboolean dxf_section_CLASSES(DxfGlobalData *global);
33
34#endif /* _IMP_DXF_SECTION_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h
new file mode 100644
index 0000000..7be6036
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_types.h
@@ -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#ifndef _IMP_DXF_TYPES_H
23#define _IMP_DXF_TYPES_H
24
25#include <g3d/types.h>
26
27typedef struct {
28 G3DContext *context;
29 G3DModel *model;
30 G3DStream *stream;
31 gboolean binary;
32 GHashTable *blocks;
33} DxfGlobalData;
34
35typedef struct {
36 G3DObject *object;
37 G3DObject *block;
38 G3DMaterial *material;
39 guint32 vertex_offset;
40 guint32 tmp_i1;
41 guint32 polyline_flags;
42} DxfEntityData;
43
44typedef struct _DxfEntityProps DxfEntityProps;
45
46typedef struct {
47 gint32 id;
48 guint32 sid; /* section id */
49 guint32 eid; /* entity id */
50 DxfEntityData *edata;
51 DxfEntityProps *eprop;
52} DxfLocalData;
53
54typedef gboolean (* DxfCallback)(DxfGlobalData *, DxfLocalData *);
55
56typedef struct {
57 const gchar *name;
58 const gchar *description;
59 guint32 id;
60 DxfCallback callback;
61} DxfEntityInfo;
62
63typedef enum {
64 DXF_T_UNKNOWN,
65 DXF_T_EMPTY,
66 DXF_T_INT16,
67 DXF_T_INT32,
68 DXF_T_FLOAT64,
69 DXF_T_STRING
70} DxfChunkType;
71
72typedef struct {
73 gint32 id;
74 const gchar *description;
75 DxfChunkType type;
76} DxfChunkInfo;
77
78#endif /* _IMP_DXF_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_vars.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_vars.h
new file mode 100644
index 0000000..a8ea174
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_dxf/imp_dxf_vars.h
@@ -0,0 +1,64 @@
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_DXF_VARS_H
23#define _IMP_DXF_VARS_H
24
25#include <glib.h>
26
27static gchar *dxf_vars_vector2d[] = {
28 "$AXISUNIT",
29 "$LIMMAX",
30 "$LIMMIN",
31 "$PLIMMIN",
32 "$PLIMMAX",
33 NULL
34};
35
36static gchar *dxf_vars_vector3d[] = {
37 "$EXTMIN",
38 "$EXTMAX",
39 "$INSBASE",
40 "$PEXTMAX",
41 "$PEXTMIN",
42 "$PINSBASE",
43 "$PUCSORG",
44 "$PUCSORGBACK",
45 "$PUCSORGBOTTOM",
46 "$PUCSORGFRONT",
47 "$PUCSORGLEFT",
48 "$PUCSORGRIGHT",
49 "$PUCSORGTOP",
50 "$PUCSXDIR",
51 "$PUCSYDIR",
52 "$UCSORG",
53 "$UCSORGBACK",
54 "$UCSORGBOTTOM",
55 "$UCSORGFRONT",
56 "$UCSORGLEFT",
57 "$UCSORGRIGHT",
58 "$UCSORGTOP",
59 "$UCSXDIR",
60 "$UCSYDIR",
61 NULL
62};
63
64#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile
new file mode 100644
index 0000000..a9fb9fa
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile
@@ -0,0 +1,514 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_flt/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_flt
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_flt_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_flt_la_OBJECTS = imp_flt.lo imp_flt_callbacks.lo
59imp_flt_la_OBJECTS = $(am_imp_flt_la_OBJECTS)
60#am_imp_flt_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_flt_la_SOURCES)
74DIST_SOURCES = $(imp_flt_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_flt.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_flt_la_SOURCES = imp_flt.c imp_flt.h \
230 imp_flt_opcodes.h \
231 imp_flt_callbacks.c imp_flt_callbacks.h
232
233imp_flt_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
234all: all-am
235
236.SUFFIXES:
237.SUFFIXES: .c .lo .o .obj
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
243 && exit 0; \
244 exit 1;; \
245 esac; \
246 done; \
247 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile'; \
248 cd $(top_srcdir) && \
249 $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile
250.PRECIOUS: Makefile
251Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
252 @case '$?' in \
253 *config.status*) \
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
255 *) \
256 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
257 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
258 esac;
259
260$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262
263$(top_srcdir)/configure: $(am__configure_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265$(ACLOCAL_M4): $(am__aclocal_m4_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
268 @$(NORMAL_INSTALL)
269 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
270 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
271 if test -f $$p; then \
272 f=$(am__strip_dir) \
273 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
274 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
275 else :; fi; \
276 done
277
278uninstall-pluginimpLTLIBRARIES:
279 @$(NORMAL_UNINSTALL)
280 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
281 p=$(am__strip_dir) \
282 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
283 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
284 done
285
286clean-pluginimpLTLIBRARIES:
287 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
288 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
289 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
290 test "$$dir" != "$$p" || dir=.; \
291 echo "rm -f \"$${dir}/so_locations\""; \
292 rm -f "$${dir}/so_locations"; \
293 done
294imp_flt.la: $(imp_flt_la_OBJECTS) $(imp_flt_la_DEPENDENCIES)
295 $(LINK) $(am_imp_flt_la_rpath) $(imp_flt_la_OBJECTS) $(imp_flt_la_LIBADD) $(LIBS)
296
297mostlyclean-compile:
298 -rm -f *.$(OBJEXT)
299
300distclean-compile:
301 -rm -f *.tab.c
302
303include ./$(DEPDIR)/imp_flt.Plo
304include ./$(DEPDIR)/imp_flt_callbacks.Plo
305
306.c.o:
307 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309# source='$<' object='$@' libtool=no \
310# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
311# $(COMPILE) -c $<
312
313.c.obj:
314 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316# source='$<' object='$@' libtool=no \
317# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
318# $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323# source='$<' object='$@' libtool=yes \
324# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
325# $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512# Tell versions [3.59,3.63) of GNU make to not export all variables.
513# Otherwise a system limit (for SysV at least) may be exceeded.
514.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.am
new file mode 100644
index 0000000..4b479c7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.am
@@ -0,0 +1,24 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_flt.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_flt_la_SOURCES = imp_flt.c imp_flt.h \
22 imp_flt_opcodes.h \
23 imp_flt_callbacks.c imp_flt_callbacks.h
24imp_flt_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.in
new file mode 100644
index 0000000..1838da2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/Makefile.in
@@ -0,0 +1,514 @@
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_flt
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_flt_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_flt_la_OBJECTS = imp_flt.lo imp_flt_callbacks.lo
59imp_flt_la_OBJECTS = $(am_imp_flt_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_flt_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_flt_la_SOURCES)
74DIST_SOURCES = $(imp_flt_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_flt.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_flt_la_SOURCES = imp_flt.c imp_flt.h \
230 imp_flt_opcodes.h \
231 imp_flt_callbacks.c imp_flt_callbacks.h
232
233imp_flt_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
234all: all-am
235
236.SUFFIXES:
237.SUFFIXES: .c .lo .o .obj
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
243 && exit 0; \
244 exit 1;; \
245 esac; \
246 done; \
247 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile'; \
248 cd $(top_srcdir) && \
249 $(AUTOMAKE) --gnu plugins/import/imp_flt/Makefile
250.PRECIOUS: Makefile
251Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
252 @case '$?' in \
253 *config.status*) \
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
255 *) \
256 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
257 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
258 esac;
259
260$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262
263$(top_srcdir)/configure: $(am__configure_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265$(ACLOCAL_M4): $(am__aclocal_m4_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
268 @$(NORMAL_INSTALL)
269 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
270 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
271 if test -f $$p; then \
272 f=$(am__strip_dir) \
273 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
274 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
275 else :; fi; \
276 done
277
278uninstall-pluginimpLTLIBRARIES:
279 @$(NORMAL_UNINSTALL)
280 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
281 p=$(am__strip_dir) \
282 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
283 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
284 done
285
286clean-pluginimpLTLIBRARIES:
287 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
288 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
289 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
290 test "$$dir" != "$$p" || dir=.; \
291 echo "rm -f \"$${dir}/so_locations\""; \
292 rm -f "$${dir}/so_locations"; \
293 done
294imp_flt.la: $(imp_flt_la_OBJECTS) $(imp_flt_la_DEPENDENCIES)
295 $(LINK) $(am_imp_flt_la_rpath) $(imp_flt_la_OBJECTS) $(imp_flt_la_LIBADD) $(LIBS)
296
297mostlyclean-compile:
298 -rm -f *.$(OBJEXT)
299
300distclean-compile:
301 -rm -f *.tab.c
302
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_flt.Plo@am__quote@
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_flt_callbacks.Plo@am__quote@
305
306.c.o:
307@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
310@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311@am__fastdepCC_FALSE@ $(COMPILE) -c $<
312
313.c.obj:
314@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
324@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512# Tell versions [3.59,3.63) of GNU make to not export all variables.
513# Otherwise a system limit (for SysV at least) may be exceeded.
514.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c
new file mode 100644
index 0000000..6a92b5a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.c
@@ -0,0 +1,175 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/types.h>
24#include <g3d/context.h>
25#include <g3d/stream.h>
26#include <g3d/material.h>
27#include <g3d/model.h>
28#include <g3d/matrix.h>
29
30#include "imp_flt_opcodes.h"
31
32FltOpcode *flt_opcode_info(guint32 opcode);
33
34EAPI
35gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
36 G3DModel *model, gpointer user_data)
37{
38 guint16 opcode, rlen;
39 FltOpcode *oi;
40 FltGlobalData *gd;
41 FltLocalData *ld;
42 G3DObject *g3dobj = NULL;
43 gpointer level_object = NULL;
44 gchar *pad;
45 G3DFloat prev_pcnt = 0.0, pcnt;
46 G3DMatrix rmatrix[16];
47
48 gd = g_new0(FltGlobalData, 1);
49 gd->context = context;
50 gd->model = model;
51 gd->stream = stream;
52 gd->oqueue = g_queue_new();
53
54 while(!g3d_stream_eof(stream)) {
55 /* get record information */
56 opcode = g3d_stream_read_int16_be(stream);
57 rlen = g3d_stream_read_int16_be(stream);
58
59 /* create local data */
60 ld = g_new0(FltLocalData, 1);
61 ld->opcode = opcode;
62 ld->nb = rlen - 4;
63 ld->g3dobj = g3dobj;
64 ld->level_object = level_object;
65
66 if(opcode == 0) {
67 /* end of file or error */
68 break;
69 }
70
71 oi = flt_opcode_info(opcode);
72
73 pad = g_strnfill(gd->level, ' ');
74 g_debug("\\%s[%04d][%c] %8d: %s", pad, opcode,
75 oi ? (oi->callback ? 'f' : ' ') : ' ',
76 rlen,
77 oi ? oi->description : "unknown");
78 g_free(pad);
79
80 if(oi && oi->callback)
81 oi->callback(gd, ld);
82
83 /* skip remaining bytes */
84 if(ld->nb > 0)
85 g3d_stream_skip(stream, ld->nb);
86
87 /* free local data */
88 g3dobj = ld->g3dobj;
89 level_object = ld->level_object;
90 g_free(ld);
91
92 /* update caller */
93 pcnt = (G3DFloat)g3d_stream_tell(stream) /
94 (G3DFloat)g3d_stream_size(stream);
95 if((pcnt - prev_pcnt) > 0.002) {
96 prev_pcnt = pcnt;
97 g3d_context_update_progress_bar(context, pcnt, TRUE);
98 }
99 g3d_context_update_interface(context);
100 }
101
102 g_queue_free(gd->oqueue);
103 if(gd->vertex_palette) {
104 g_free(gd->vertex_palette->offsets);
105 g_free(gd->vertex_palette->flags);
106 g_free(gd->vertex_palette->vertex_data);
107 g_free(gd->vertex_palette->normal_data);
108 g_free(gd->vertex_palette->tex_vertex_data);
109 g_free(gd->vertex_palette->vertex_materials);
110 g_free(gd->vertex_palette);
111 }
112 if(gd->texture_palette) {
113 g_free(gd->texture_palette->offsets);
114 g_free(gd->texture_palette->textures);
115 g_free(gd->texture_palette);
116 }
117 g_free(gd);
118
119 g3d_matrix_identity(rmatrix);
120 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
121 g3d_model_transform(model, rmatrix);
122
123 return TRUE;
124}
125
126EAPI
127gchar *plugin_description(G3DContext *context)
128{
129 return g_strdup("OpenFlight models.");
130}
131
132EAPI
133gchar **plugin_extensions(G3DContext *context)
134{
135 return g_strsplit("flt", ":", 0);
136}
137
138/*
139 * FLT specific
140 */
141
142FltOpcode *flt_opcode_info(guint32 opcode)
143{
144 guint32 i;
145
146 for(i = 0; flt_opcodes[i].opcode != 0; i ++)
147 if(flt_opcodes[i].opcode == opcode)
148 return &(flt_opcodes[i]);
149 return NULL;
150}
151
152guint32 flt_read_typed_index(G3DStream *stream, guint32 type, gint32 *len)
153{
154 guint32 val = 0;
155
156 switch(type) {
157 case 1:
158 val = g3d_stream_read_int8(stream);
159 *len -= 1;
160 break;
161 case 2:
162 val = g3d_stream_read_int16_be(stream);
163 *len -= 2;
164 break;
165 case 4:
166 val = g3d_stream_read_int32_be(stream);
167 *len -= 4;
168 break;
169 default:
170 g_warning("FLT: unknown index type %d\n", type);
171 break;
172 }
173 return val;
174}
175
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h
new file mode 100644
index 0000000..0c23cd1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt.h
@@ -0,0 +1,30 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_FLT_H
23#define _IMP_FLT_H
24
25#include <glib.h>
26#include <g3d/stream.h>
27
28guint32 flt_read_typed_index(G3DStream *stream, guint32 type, gint32 *len);
29
30#endif /* _IMP_FLT_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.c
new file mode 100644
index 0000000..44fd8f6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.c
@@ -0,0 +1,999 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <math.h>
25
26#include <g3d/stream.h>
27#include <g3d/material.h>
28#include <g3d/texture.h>
29#include <g3d/model.h>
30
31#include "imp_flt.h"
32#include "imp_flt_callbacks.h"
33
34/* header */
35gboolean flt_cb_0001(FltGlobalData *gd, FltLocalData *ld)
36{
37 gchar id[8];
38
39 g3d_stream_read(gd->stream, id, 8);
40 id[7] = '\0';
41 ld->nb -= 8;
42 gd->fversion = g3d_stream_read_int32_be(gd->stream);
43 ld->nb -= 4;
44
45 g_debug("FLT: header: '%s' revision %u", id, gd->fversion);
46
47 return TRUE;
48}
49
50/* group */
51gboolean flt_cb_0002(FltGlobalData *gd, FltLocalData *ld)
52{
53 G3DObject *object, *pobj;
54 gchar namebuf[8];
55
56 object = g_new0(G3DObject, 1);
57 pobj = (G3DObject *)g_queue_peek_head(gd->oqueue);
58 if(pobj != NULL)
59 pobj->objects = g_slist_append(pobj->objects, object);
60 else
61 gd->model->objects = g_slist_append(gd->model->objects, object);
62 ld->g3dobj = object;
63
64 /* group ID */
65 g3d_stream_read(gd->stream, namebuf, 8);
66 ld->nb -= 8;
67 namebuf[7] = '\0';
68 object->name = g_strdup_printf("group '%s'", namebuf);
69
70 return TRUE;
71}
72
73/* object */
74gboolean flt_cb_0004(FltGlobalData *gd, FltLocalData *ld)
75{
76 G3DObject *object, *pobj;
77 G3DMaterial *material;
78 gchar namebuf[8];
79
80 object = g_new0(G3DObject, 1);
81 pobj = (G3DObject *)g_queue_peek_head(gd->oqueue);
82 if(pobj != NULL)
83 pobj->objects = g_slist_append(pobj->objects, object);
84 else
85 gd->model->objects = g_slist_append(gd->model->objects, object);
86 ld->g3dobj = object;
87
88 material = g3d_material_new();
89 material->name = g_strdup("fallback material");
90 object->materials = g_slist_append(object->materials, material);
91
92 /* object ID */
93 g3d_stream_read(gd->stream, namebuf, 8);
94 ld->nb -= 8;
95 namebuf[7] = '\0';
96 object->name = g_strdup_printf("object '%s'", namebuf);
97
98 /* flags */
99 g3d_stream_read_int32_be(gd->stream);
100 ld->nb -= 4;
101
102 /* relative priority */
103 g3d_stream_read_int16_be(gd->stream);
104 ld->nb -= 2;
105
106 /* transparency */
107 g3d_stream_read_int16_be(gd->stream);
108 ld->nb -= 2;
109
110 /* special effect ID 1 */
111 g3d_stream_read_int16_be(gd->stream);
112 ld->nb -= 2;
113
114 /* special effect ID 2 */
115 g3d_stream_read_int16_be(gd->stream);
116 ld->nb -= 2;
117
118 /* significance */
119 g3d_stream_read_int16_be(gd->stream);
120 ld->nb -= 2;
121
122 /* reserved */
123 g3d_stream_read_int16_be(gd->stream);
124 ld->nb -= 2;
125
126 return TRUE;
127}
128
129/* face */
130gboolean flt_cb_0005(FltGlobalData *gd, FltLocalData *ld)
131{
132 G3DObject *object = ld->g3dobj;
133 G3DMaterial *material;
134 G3DFace *face;
135 gint16 index;
136 guint32 flags;
137 G3DFloat r, g, b;
138
139 g_return_val_if_fail(object != NULL, FALSE);
140
141 if(object->materials == NULL) {
142 material = g3d_material_new();
143 material->name = g_strdup("(default material)");
144 object->materials = g_slist_append(object->materials, material);
145 }
146
147 face = g_new0(G3DFace, 1);
148 face->material = g_slist_nth_data(object->materials, 0);
149 object->faces = g_slist_append(object->faces, face);
150 ld->level_object = face;
151
152 if(object->vertex_count == 0) {
153 if(gd->vertex_palette) {
154 /* copy vertex palette to object */
155 object->vertex_count = gd->vertex_palette->n_entries;
156 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
157 memcpy(object->vertex_data, gd->vertex_palette->vertex_data,
158 object->vertex_count * 3 * sizeof(G3DFloat));
159 }
160 }
161
162 /* id */
163 g3d_stream_skip(gd->stream, 8);
164 ld->nb -= 8;
165 /* IR color code */
166 g3d_stream_read_int32_be(gd->stream);
167 ld->nb -= 4;
168 /* relative priority */
169 g3d_stream_read_int16_be(gd->stream);
170 ld->nb -= 2;
171 /* draw type */
172 g3d_stream_read_int8(gd->stream);
173 ld->nb --;
174 /* texture white */
175 g3d_stream_read_int8(gd->stream);
176 ld->nb --;
177 /* color name index */
178 g3d_stream_read_int16_be(gd->stream);
179 ld->nb -= 2;
180 /* alternate color name index */
181 g3d_stream_read_int16_be(gd->stream);
182 ld->nb -= 2;
183 /* reserved */
184 g3d_stream_read_int8(gd->stream);
185 ld->nb --;
186 /* template (billboard) */
187 g3d_stream_read_int8(gd->stream);
188 ld->nb --;
189 /* detail texture pattern */
190 index = g3d_stream_read_int16_be(gd->stream);
191 ld->nb -= 2;
192 if(index != -1)
193 if(gd->texture_palette && (index < gd->texture_palette->size))
194 face->tex_image = gd->texture_palette->textures[index];
195 /* texture pattern */
196 index = g3d_stream_read_int16_be(gd->stream);
197 ld->nb -= 2;
198 if((face->tex_image == NULL) && (index != -1))
199 if(gd->texture_palette && (index < gd->texture_palette->size))
200 face->tex_image = gd->texture_palette->textures[index];
201
202 if(face->tex_image)
203 face->tex_image->tex_env = G3D_TEXENV_REPLACE;
204
205 /* material index */
206 index = g3d_stream_read_int16_be(gd->stream);
207 ld->nb -= 2;
208 if(index != -1) {
209 material = g_slist_nth_data(gd->model->materials, index);
210 if(material)
211 face->material = material;
212 }
213 /* surface material code */
214 g3d_stream_read_int16_be(gd->stream);
215 ld->nb -= 2;
216 /* feature ID */
217 g3d_stream_read_int16_be(gd->stream);
218 ld->nb -= 2;
219 /* IR material code */
220 g3d_stream_read_int32_be(gd->stream);
221 ld->nb -= 4;
222 /* transparency */
223 g3d_stream_read_int16_be(gd->stream);
224 ld->nb -= 2;
225 /* LOD generation control */
226 g3d_stream_read_int8(gd->stream);
227 ld->nb --;
228 /* line style index */
229 g3d_stream_read_int8(gd->stream);
230 ld->nb --;
231 /* flags */
232 flags = g3d_stream_read_int32_be(gd->stream);
233 ld->nb -= 4;
234 /* light mode */
235 g3d_stream_read_int8(gd->stream);
236 ld->nb --;
237 /* reserved */
238 g3d_stream_skip(gd->stream, 7);
239 ld->nb -= 7;
240 /* packed color, primary */
241 if((flags & (1 << 1)) /* no color */ ||
242 !(flags & (1 << 3))) /* packed color */
243 g3d_stream_read_int32_be(gd->stream);
244 else {
245 g3d_stream_read_int8(gd->stream); /* alpha, unused */
246 b = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
247 g = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
248 r = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
249 material = g3d_material_new();
250 material->r = r;
251 material->g = g;
252 material->b = b;
253 material->a = 1.0;
254 face->material = material;
255 }
256 ld->nb -= 4;
257 /* packed color, alternate */
258 g3d_stream_read_int32_be(gd->stream);
259 ld->nb -= 4;
260 /* texture mapping index */
261 index = g3d_stream_read_int16_be(gd->stream);
262 ld->nb -= 2;
263
264 return TRUE;
265}
266
267/* push level */
268gboolean flt_cb_0010(FltGlobalData *gd, FltLocalData *ld)
269{
270 g_queue_push_head(gd->oqueue, ld->g3dobj);
271
272 gd->level ++;
273 return TRUE;
274}
275
276/* pop level */
277gboolean flt_cb_0011(FltGlobalData *gd, FltLocalData *ld)
278{
279 ld->g3dobj = g_queue_pop_head(gd->oqueue);
280 ld->level_object = NULL;
281
282 if(gd->level > 0)
283 gd->level --;
284 return TRUE;
285}
286
287/* color palette */
288gboolean flt_cb_0032(FltGlobalData *gd, FltLocalData *ld)
289{
290 G3DMaterial *material;
291 G3DObject *cobj;
292 gint32 i;
293
294 cobj = g_new0(G3DObject, 1);
295 cobj->name = g_strdup("color palette");
296 gd->model->objects = g_slist_append(gd->model->objects, cobj);
297
298 /* skip reserved bytes */
299 g3d_stream_skip(gd->stream, 128);
300 ld->nb -= 128;
301
302 /* get colors */
303 for(i = 0; i < 1024; i ++) {
304 material = g3d_material_new();
305 material->name = g_strdup_printf("color %d", i);
306 cobj->materials = g_slist_append(cobj->materials, material);
307
308 material->a = g3d_stream_read_int8(gd->stream) / 255.0;
309 material->b = g3d_stream_read_int8(gd->stream) / 255.0;
310 material->g = g3d_stream_read_int8(gd->stream) / 255.0;
311 material->r = g3d_stream_read_int8(gd->stream) / 255.0;
312 ld->nb -= 4;
313 }
314
315 return TRUE;
316}
317
318/* long ID */
319gboolean flt_cb_0033(FltGlobalData *gd, FltLocalData *ld)
320{
321 G3DObject *object = ld->g3dobj;
322
323 g_return_val_if_fail(object != NULL, FALSE);
324
325 g_free(object->name);
326 object->name = g_new0(gchar, ld->nb);
327 g3d_stream_read(gd->stream, object->name, ld->nb);
328 object->name[ld->nb - 1] = '\0';
329 ld->nb = 0;
330
331 return TRUE;
332}
333
334/* texture palette */
335gboolean flt_cb_0064(FltGlobalData *gd, FltLocalData *ld)
336{
337 gchar fname[201];
338 gint32 max, index, offx, offy;
339
340 g3d_stream_read(gd->stream, fname, 200);
341 ld->nb -= 200;
342
343 index = g3d_stream_read_int32_be(gd->stream);
344 offx = g3d_stream_read_int32_be(gd->stream);
345 offy = g3d_stream_read_int32_be(gd->stream);
346 ld->nb -= 12;
347
348 if(gd->texture_palette == NULL)
349 gd->texture_palette = g_new0(FltTexturePalette, 1);
350
351 max = MAX(index + 1, gd->texture_palette->size);
352 gd->texture_palette->size = max;
353 gd->texture_palette->offsets = g_realloc(gd->texture_palette->offsets,
354 max * 2 * sizeof(gint32));
355 gd->texture_palette->textures = g_realloc(gd->texture_palette->textures,
356 max * sizeof(G3DImage *));
357 gd->texture_palette->offsets[index * 2 + 0] = offx;
358 gd->texture_palette->offsets[index * 2 + 1] = offy;
359
360#if DEBUG > 2
361 g_debug("FLT: 0064: %s (index %d @ %d, %d)", fname, index, offx, offy);
362#endif
363
364 gd->texture_palette->textures[index] =
365 g3d_texture_load_cached(gd->context, gd->model, fname);
366
367 return TRUE;
368}
369
370static gboolean flt_inc_vertex_palette(FltGlobalData *gd)
371{
372 g_return_val_if_fail(gd->vertex_palette != NULL, FALSE);
373
374 gd->vertex_palette->n_entries ++;
375 gd->vertex_palette->offsets = g_realloc(
376 gd->vertex_palette->offsets,
377 gd->vertex_palette->n_entries * sizeof(goffset));
378 gd->vertex_palette->flags = g_realloc(
379 gd->vertex_palette->flags,
380 gd->vertex_palette->n_entries * sizeof(guint32));
381 gd->vertex_palette->vertex_data = g_realloc(
382 gd->vertex_palette->vertex_data,
383 gd->vertex_palette->n_entries * 3 * sizeof(G3DFloat));
384 gd->vertex_palette->normal_data = g_realloc(
385 gd->vertex_palette->normal_data,
386 gd->vertex_palette->n_entries * 3 * sizeof(G3DFloat));
387 gd->vertex_palette->tex_vertex_data = g_realloc(
388 gd->vertex_palette->tex_vertex_data,
389 gd->vertex_palette->n_entries * 2 * sizeof(G3DFloat));
390 gd->vertex_palette->vertex_materials = g_realloc(
391 gd->vertex_palette->vertex_materials,
392 gd->vertex_palette->n_entries * sizeof(G3DMaterial *));
393 return TRUE;
394}
395
396/* vertex palette */
397gboolean flt_cb_0067(FltGlobalData *gd, FltLocalData *ld)
398{
399 gd->vertex_palette = g_new0(FltVertexPalette, 1);
400 gd->vertex_palette->offset = 8;
401 return TRUE;
402}
403
404static G3DMaterial *flt_material_by_index(FltGlobalData *gd, guint32 i)
405{
406 G3DObject *colobj;
407
408 colobj = g3d_model_get_object_by_name(gd->model, "color palette");
409 if(colobj == NULL)
410 return NULL;
411
412 return g_slist_nth_data(colobj->materials, i);
413}
414
415#define FLOAT_EQUALS(a, b) (fabs((a) - (b)) < 0.001)
416
417static G3DMaterial *flt_find_color(G3DObject *pobj,
418 G3DFloat r, G3DFloat g, G3DFloat b, G3DFloat a)
419{
420 GSList *item;
421 G3DMaterial *material;
422
423 for(item = pobj->materials; item != NULL; item = item->next) {
424 material = item->data;
425 if(FLOAT_EQUALS(material->r, r) && FLOAT_EQUALS(material->g, g) &&
426 FLOAT_EQUALS(material->b, b) && FLOAT_EQUALS(material->a, a))
427 return material;
428 }
429 g_debug("did not find material");
430 return NULL;
431}
432
433static gboolean flt_handle_vertex_color(FltGlobalData *gd, FltLocalData *ld,
434 guint32 flags)
435{
436 G3DObject *vcolobj;
437 G3DMaterial *material;
438 G3DFloat r, g, b, a;
439
440 if(flags & FLT_FLAG_NO_COLOR)
441 return TRUE;
442
443 vcolobj = g3d_model_get_object_by_name(gd->model, "vertex colors");
444 if(vcolobj == NULL) {
445 vcolobj = g_new0(G3DObject, 1);
446 vcolobj->name = g_strdup("vertex colors");
447 gd->model->objects = g_slist_append(gd->model->objects, vcolobj);
448 }
449 a = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
450 b = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
451 g = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
452 r = (G3DFloat)g3d_stream_read_int8(gd->stream) / 255.0;
453 ld->nb -= 4;
454
455 if(flags & FLT_FLAG_PACKED_COLOR) {
456 material = flt_find_color(vcolobj, r, g, b, a);
457 if(material == NULL) {
458 material = g3d_material_new();
459 material->r = r;
460 material->g = g;
461 material->b = b;
462 material->a = a;
463 material->name = g_strdup_printf(
464 "vertex material (%.2f, %.2f, %.2f, %.2f)", r, g, b, a);
465 vcolobj->materials = g_slist_prepend(vcolobj->materials, material);
466 }
467 } else {
468 /* color index */
469 material = flt_material_by_index(gd,
470 g3d_stream_read_int32_be(gd->stream));
471 ld->nb -= 4;
472 }
473 gd->vertex_palette->vertex_materials[gd->vertex_palette->n_entries - 1] =
474 material;
475 return TRUE;
476}
477
478/* vertex with color record */
479gboolean flt_cb_0068(FltGlobalData *gd, FltLocalData *ld)
480{
481 gint32 i, index;
482 guint32 flags;
483
484 if(!flt_inc_vertex_palette(gd))
485 return FALSE;
486
487 index = gd->vertex_palette->n_entries - 1;
488 gd->vertex_palette->offsets[index] = gd->vertex_palette->offset;
489 gd->vertex_palette->offset += ld->nb + 4;
490 gd->vertex_palette->flags[index] = 0;
491
492 /* color name index */
493 gd->vertex_palette->vertex_materials[index] =
494 flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream));
495 ld->nb -= 2;
496
497 /* flags */
498 flags = g3d_stream_read_int16_be(gd->stream);
499 ld->nb -= 2;
500
501 /* vertex coordinate */
502 for(i = 0; i < 3; i ++) {
503 gd->vertex_palette->vertex_data[index * 3 + i] =
504 g3d_stream_read_double_be(gd->stream);
505 ld->nb -= 8;
506 }
507
508 flt_handle_vertex_color(gd, ld, flags);
509
510 return TRUE;
511}
512
513/* vertex with color and normal record */
514gboolean flt_cb_0069(FltGlobalData *gd, FltLocalData *ld)
515{
516 gint32 i, index;
517 guint32 flags;
518
519 if(!flt_inc_vertex_palette(gd))
520 return FALSE;
521
522 index = gd->vertex_palette->n_entries - 1;
523 gd->vertex_palette->offsets[index] = gd->vertex_palette->offset;
524 gd->vertex_palette->offset += ld->nb + 4;
525 gd->vertex_palette->flags[index] = G3D_FLAG_FAC_NORMALS;
526
527 /* color name index */
528 gd->vertex_palette->vertex_materials[index] =
529 flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream));
530 ld->nb -= 2;
531
532 /* flags */
533 flags = g3d_stream_read_int16_be(gd->stream);
534 ld->nb -= 2;
535
536 /* vertex coordinate */
537 for(i = 0; i < 3; i ++) {
538 gd->vertex_palette->vertex_data[index * 3 + i] =
539 g3d_stream_read_double_be(gd->stream);
540 ld->nb -= 8;
541 }
542
543 /* vertex normal */
544 for(i = 0; i < 3; i ++) {
545 gd->vertex_palette->normal_data[index * 3 + i] =
546 g3d_stream_read_float_be(gd->stream);
547 ld->nb -= 4;
548 }
549
550 flt_handle_vertex_color(gd, ld, flags);
551
552 return TRUE;
553}
554
555/* vertex with color, normal and uv record */
556gboolean flt_cb_0070(FltGlobalData *gd, FltLocalData *ld)
557{
558 gint32 i, index;
559 guint32 flags;
560
561 if(!flt_inc_vertex_palette(gd))
562 return FALSE;
563
564 index = gd->vertex_palette->n_entries - 1;
565 gd->vertex_palette->offsets[index] = gd->vertex_palette->offset;
566 gd->vertex_palette->offset += ld->nb + 4;
567 gd->vertex_palette->flags[index] =
568 G3D_FLAG_FAC_NORMALS | G3D_FLAG_FAC_TEXMAP;
569
570 /* color name index */
571 gd->vertex_palette->vertex_materials[index] =
572 flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream));
573 ld->nb -= 2;
574
575 /* flags */
576 flags = g3d_stream_read_int16_be(gd->stream);
577 ld->nb -= 2;
578
579 /* vertex coordinate */
580 for(i = 0; i < 3; i ++) {
581 gd->vertex_palette->vertex_data[index * 3 + i] =
582 g3d_stream_read_double_be(gd->stream);
583 ld->nb -= 8;
584 }
585
586 /* vertex normal */
587 for(i = 0; i < 3; i ++) {
588 gd->vertex_palette->normal_data[index * 3 + i] =
589 g3d_stream_read_float_be(gd->stream);
590 ld->nb -= 4;
591 }
592
593 /* vertex texture coordinate */
594 for(i = 0; i < 2; i ++) {
595 gd->vertex_palette->tex_vertex_data[index * 2 + i] =
596 g3d_stream_read_float_be(gd->stream);
597 ld->nb -= 4;
598 }
599
600 flt_handle_vertex_color(gd, ld, flags);
601
602 return TRUE;
603}
604
605/* vertex with color and uv record */
606gboolean flt_cb_0071(FltGlobalData *gd, FltLocalData *ld)
607{
608 gint32 i, index;
609 guint32 flags;
610
611 if(!flt_inc_vertex_palette(gd))
612 return FALSE;
613
614 index = gd->vertex_palette->n_entries - 1;
615 gd->vertex_palette->offsets[index] = gd->vertex_palette->offset;
616 gd->vertex_palette->offset += ld->nb + 4;
617 gd->vertex_palette->flags[index] = G3D_FLAG_FAC_TEXMAP;
618
619 /* color name index */
620 gd->vertex_palette->vertex_materials[index] =
621 flt_material_by_index(gd, g3d_stream_read_int16_be(gd->stream));
622 ld->nb -= 2;
623
624 /* flags */
625 flags = g3d_stream_read_int16_be(gd->stream);
626 ld->nb -= 2;
627
628 /* vertex coordinate */
629 for(i = 0; i < 3; i ++) {
630 gd->vertex_palette->vertex_data[index * 3 + i] =
631 g3d_stream_read_double_be(gd->stream);
632 ld->nb -= 8;
633 }
634
635 /* vertex texture coordinate */
636 for(i = 0; i < 2; i ++) {
637 gd->vertex_palette->tex_vertex_data[index * 2 + i] =
638 g3d_stream_read_float_be(gd->stream);
639 ld->nb -= 4;
640 }
641
642 flt_handle_vertex_color(gd, ld, flags);
643
644 return TRUE;
645}
646
647static gint32 flt_vertex_palette_index_from_offset(FltGlobalData *gd,
648 goffset offset)
649{
650 FltVertexPalette *pal = gd->vertex_palette;
651 gint i;
652
653 g_return_val_if_fail(pal != NULL, -1);
654
655 for(i = 0; (i < pal->n_entries) && (pal->offsets[i] < offset); i ++);
656 if((i < pal->n_entries) && (pal->offsets[i] == offset))
657 return i;
658 g_warning("FLT: flt_vertex_palette_index_from_offset: "
659 "could not get index for offset %li (i=%d)", (long int)offset, i);
660 return -1;
661}
662
663/* vertex list */
664gboolean flt_cb_0072(FltGlobalData *gd, FltLocalData *ld)
665{
666 G3DFace *face = ld->level_object;
667 gint32 i, j, index;
668 guint32 n;
669
670 g_return_val_if_fail(face != NULL, FALSE);
671
672 n = ld->nb / 4;
673 face->vertex_count = n;
674 face->vertex_indices = g_new0(guint32, n);
675
676 for(i = 0; i < n; i ++) {
677 j = g3d_stream_read_int32_be(gd->stream);
678 ld->nb -= 4;
679
680#define FLT_SUPPORT_BROKEN_VERTEX_LIST 1
681#if FLT_SUPPORT_BROKEN_VERTEX_LIST
682 /* FIXME: there are some broken models which directly specify the
683 * index instead of a byte offset in the vertex palette */
684
685 if(gd->flags & FLT_FLAG_BROKEN_VERTEX_LIST)
686 index = j;
687 else
688 index = flt_vertex_palette_index_from_offset(gd, j);
689 if(index == -1) {
690 index = j;
691 gd->flags |= FLT_FLAG_BROKEN_VERTEX_LIST;
692 }
693#else
694 index = flt_vertex_palette_index_from_offset(gd, j);
695#endif
696 if(index == -1)
697 return FALSE;
698 face->vertex_indices[i] = index;
699 if(gd->vertex_palette->flags[index] & G3D_FLAG_FAC_NORMALS) {
700 /* copy normal data */
701 if(face->normals == NULL) {
702 face->normals = g_new0(G3DFloat, n * 3);
703 face->flags |= G3D_FLAG_FAC_NORMALS;
704 }
705 for(j = 0; j < 3; j ++)
706 face->normals[i * 3 + j] =
707 gd->vertex_palette->normal_data[index * 3 + j];
708 }
709 if(gd->vertex_palette->flags[index] & G3D_FLAG_FAC_TEXMAP) {
710 /* copy texture coordinate data */
711 if(face->tex_vertex_data == NULL) {
712 face->tex_vertex_data = g_new0(G3DFloat, n * 2);
713 face->tex_vertex_count = n;
714 if(face->tex_image)
715 face->flags |= G3D_FLAG_FAC_TEXMAP;
716 }
717 for(j = 0; j < 2; j ++)
718 face->tex_vertex_data[i * 2 + j] =
719 gd->vertex_palette->tex_vertex_data[index * 2 + j];
720 }
721 if(gd->vertex_palette->vertex_materials[index] != NULL)
722 face->material = gd->vertex_palette->vertex_materials[index];
723 }
724 return TRUE;
725}
726
727/* mesh */
728gboolean flt_cb_0084(FltGlobalData *gd, FltLocalData *ld)
729{
730 G3DObject *object;
731 gchar *namebuf[8];
732 gint32 index;
733
734 object = (G3DObject *)g_queue_peek_head(gd->oqueue);
735 g_return_val_if_fail(object != NULL, FALSE);
736
737 /* ASCII ID */
738 g3d_stream_read(gd->stream, namebuf, 8);
739 namebuf[7] = '\0';
740 ld->nb -= 8;
741
742 /* reserved */
743 g3d_stream_read_int32_be(gd->stream);
744 ld->nb -= 4;
745 /* IR color code */
746 g3d_stream_read_int32_be(gd->stream);
747 ld->nb -= 4;
748 /* priority */
749 g3d_stream_read_int16_be(gd->stream);
750 ld->nb -= 2;
751 /* draw type */
752 g3d_stream_read_int8(gd->stream);
753 ld->nb --;
754 /* texture white */
755 g3d_stream_read_int8(gd->stream);
756 ld->nb --;
757 /* color name index */
758 g3d_stream_read_int16_be(gd->stream);
759 ld->nb -= 2;
760 /* alternate color name index */
761 g3d_stream_read_int16_be(gd->stream);
762 ld->nb -= 2;
763 /* reserved */
764 g3d_stream_read_int8(gd->stream);
765 ld->nb --;
766 /* template (billboard) */
767 g3d_stream_read_int8(gd->stream);
768 ld->nb --;
769 /* detail texture pattern */
770 index = g3d_stream_read_int16_be(gd->stream);
771 ld->nb -= 2;
772 if(index > -1)
773 if(gd->texture_palette && (index < gd->texture_palette->size))
774 object->tex_image = gd->texture_palette->textures[index];
775 /* texture pattern */
776 index = g3d_stream_read_int16_be(gd->stream);
777 ld->nb -= 2;
778 if((index > -1) && (object->tex_image == NULL))
779 if(gd->texture_palette && (index < gd->texture_palette->size))
780 object->tex_image = gd->texture_palette->textures[index];
781
782 return TRUE;
783}
784
785/* local vertex pool */
786gboolean flt_cb_0085(FltGlobalData *gd, FltLocalData *ld)
787{
788 G3DObject *object;
789 guint32 nverts, attrmask;
790 gint32 i;
791
792 object = (G3DObject *)g_queue_peek_head(gd->oqueue);
793 g_return_val_if_fail(object != NULL, FALSE);
794
795 nverts = g3d_stream_read_int32_be(gd->stream);
796 attrmask = g3d_stream_read_int32_be(gd->stream);
797 ld->nb -= 8;
798
799 object->vertex_count = nverts;
800 object->vertex_data = g_new0(G3DFloat, nverts * 3);
801 object->tex_vertex_count = nverts;
802 object->tex_vertex_data = g_new0(G3DFloat, nverts * 2);
803
804 for(i = 0; i < nverts; i ++) {
805 if(attrmask & (1 << 31)) { /* has position */
806 object->vertex_data[i * 3 + 0] =
807 g3d_stream_read_double_be(gd->stream);
808 object->vertex_data[i * 3 + 1] =
809 g3d_stream_read_double_be(gd->stream);
810 object->vertex_data[i * 3 + 2] =
811 g3d_stream_read_double_be(gd->stream);
812 ld->nb -= 24;
813 }
814
815 if(attrmask & (1 << 30)) { /* has color index */
816 g3d_stream_read_int32_be(gd->stream);
817 ld->nb -= 4;
818 }
819
820 if(attrmask & (1 << 29)) { /* has RGBA color */
821 g3d_stream_read_int32_be(gd->stream);
822 ld->nb -= 4;
823 }
824
825 if(attrmask & (1 << 28)) { /* has normal */
826 g3d_stream_read_float_be(gd->stream);
827 g3d_stream_read_float_be(gd->stream);
828 g3d_stream_read_float_be(gd->stream);
829 ld->nb -= 12;
830 }
831
832 if(attrmask & (1 << 27)) { /* has base UV */
833 object->tex_vertex_data[i * 2 + 0] =
834 g3d_stream_read_float_be(gd->stream);
835 object->tex_vertex_data[i * 2 + 1] =
836 g3d_stream_read_float_be(gd->stream);
837 ld->nb -= 8;
838 }
839
840 if(attrmask & (1 << 26)) { /* has UV layer 1 */
841 g3d_stream_read_float_be(gd->stream);
842 g3d_stream_read_float_be(gd->stream);
843 ld->nb -= 8;
844 }
845
846 if(attrmask & (1 << 25)) { /* has UV layer 2 */
847 g3d_stream_read_float_be(gd->stream);
848 g3d_stream_read_float_be(gd->stream);
849 ld->nb -= 8;
850 }
851
852 if(attrmask & (1 << 24)) { /* has UV layer 3 */
853 g3d_stream_read_float_be(gd->stream);
854 g3d_stream_read_float_be(gd->stream);
855 ld->nb -= 8;
856 }
857
858 if(attrmask & (1 << 23)) { /* has UV layer 4 */
859 g3d_stream_read_float_be(gd->stream);
860 g3d_stream_read_float_be(gd->stream);
861 ld->nb -= 8;
862 }
863
864 if(attrmask & (1 << 22)) { /* has UV layer 5 */
865 g3d_stream_read_float_be(gd->stream);
866 g3d_stream_read_float_be(gd->stream);
867 ld->nb -= 8;
868 }
869
870 if(attrmask & (1 << 21)) { /* has UV layer 6 */
871 g3d_stream_read_float_be(gd->stream);
872 g3d_stream_read_float_be(gd->stream);
873 ld->nb -= 8;
874 }
875
876 if(attrmask & (1 << 20)) { /* has UV layer 7 */
877 g3d_stream_read_float_be(gd->stream);
878 g3d_stream_read_float_be(gd->stream);
879 ld->nb -= 8;
880 }
881 }
882
883 return TRUE;
884}
885
886/* mesh primitive */
887gboolean flt_cb_0086(FltGlobalData *gd, FltLocalData *ld)
888{
889 guint32 type, isize, nverts;
890 gint32 i;
891 G3DFace *face;
892 G3DObject *object;
893
894 object = (G3DObject *)g_queue_peek_head(gd->oqueue);
895 g_return_val_if_fail(object != NULL, FALSE);
896
897 type = g3d_stream_read_int16_be(gd->stream);
898 isize = g3d_stream_read_int16_be(gd->stream);
899 nverts = g3d_stream_read_int32_be(gd->stream);
900 ld->nb -= 8;
901
902 switch(type) {
903 case 1: /* triangle strip */
904 g_debug("0086: triangle strip");
905 break;
906
907 case 2: /* triangle fan */
908 g_debug("0086: triangle fan");
909 break;
910
911 case 3: /* quadriteral strip */
912 g_debug("0086: quadriteral strip");
913 break;
914
915 case 4: /* indexed polygon */
916 face = g_new0(G3DFace, 1);
917 face->material = (G3DMaterial *)g_slist_nth_data(object->materials,
918 0);
919 face->vertex_count = nverts;
920 face->vertex_indices = g_new0(guint32, nverts);
921 for(i = 0; i < nverts; i ++) {
922 face->vertex_indices[i] = flt_read_typed_index(
923 gd->stream, isize, &(ld->nb));
924 }
925 face->tex_image = object->tex_image;
926 if(face->tex_image != NULL) {
927 face->tex_vertex_count = nverts;
928 face->tex_vertex_data = g_new0(G3DFloat, nverts * 2);
929 for(i = 0; i < nverts; i ++) {
930 face->tex_vertex_data[i * 2 + 0] =
931 object->tex_vertex_data[
932 face->vertex_indices[i] * 2 + 0];
933 face->tex_vertex_data[i * 2 + 1] =
934 object->tex_vertex_data[
935 face->vertex_indices[i] * 2 + 1];
936 }
937 face->flags |= G3D_FLAG_FAC_TEXMAP;
938 }
939 object->faces = g_slist_append(object->faces, face);
940 break;
941
942 default:
943 g_warning("FLT: mesh primitive: unknown type %d\n", type);
944 }
945
946 return TRUE;
947}
948
949/* material palette */
950gboolean flt_cb_0113(FltGlobalData *gd, FltLocalData *ld)
951{
952 G3DMaterial *material;
953 gchar name[13];
954
955 material = g3d_material_new();
956
957 /* material index */
958 g3d_stream_read_int32_be(gd->stream);
959 ld->nb -= 4;
960 /* material name */
961 g3d_stream_read(gd->stream, name, 12);
962 ld->nb -= 12;
963 name[12] = '\0';
964 material->name = g_strdup(name);
965 /* flags */
966 g3d_stream_read_int32_be(gd->stream);
967 ld->nb -= 4;
968 /* ambient */
969 g3d_stream_read_float_be(gd->stream);
970 g3d_stream_read_float_be(gd->stream);
971 g3d_stream_read_float_be(gd->stream);
972 ld->nb -= 12;
973 /* diffuse */
974 material->r = g3d_stream_read_float_be(gd->stream);
975 material->g = g3d_stream_read_float_be(gd->stream);
976 material->b = g3d_stream_read_float_be(gd->stream);
977 ld->nb -= 12;
978 /* specular */
979 material->specular[0] = g3d_stream_read_float_be(gd->stream);
980 material->specular[1] = g3d_stream_read_float_be(gd->stream);
981 material->specular[2] = g3d_stream_read_float_be(gd->stream);
982 ld->nb -= 12;
983 /* emissive */
984 g3d_stream_read_float_be(gd->stream);
985 g3d_stream_read_float_be(gd->stream);
986 g3d_stream_read_float_be(gd->stream);
987 ld->nb -= 12;
988 /* shininess */
989 material->shininess = g3d_stream_read_float_be(gd->stream);
990 ld->nb -= 4;
991 /* alpha */
992 material->a = g3d_stream_read_float_be(gd->stream);
993 ld->nb -= 4;
994
995 gd->model->materials = g_slist_append(gd->model->materials, material);
996
997 return TRUE;
998}
999
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.h
new file mode 100644
index 0000000..cc26120
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_callbacks.h
@@ -0,0 +1,95 @@
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_FLT_CALLBACKS_H
23#define _IMP_FLT_CALLBACKS_H
24
25#include <stdio.h>
26#include <glib.h>
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30typedef struct {
31 guint32 n_entries;
32 goffset offset;
33
34 goffset *offsets; /* n * goffset */
35 guint32 *flags; /* n * guint32 */
36 G3DMaterial **vertex_materials; /* n * G3DMaterial* */
37 G3DFloat *vertex_data; /* 3 x n * G3DFloat */
38 G3DFloat *normal_data; /* 3 x n * G3DFloat */
39 G3DFloat *tex_vertex_data; /* 2 x n * G3DFloat */
40} FltVertexPalette;
41
42typedef struct {
43 guint32 size;
44 G3DImage **textures;
45 gint32 *offsets;
46} FltTexturePalette;
47
48#define FLT_FLAG_BROKEN_VERTEX_LIST (1 << 0)
49
50#define FLT_FLAG_NO_COLOR (1 << 2)
51#define FLT_FLAG_PACKED_COLOR (1 << 3)
52
53typedef struct {
54 G3DContext *context;
55 G3DModel *model;
56 G3DStream *stream;
57 guint32 level;
58 GQueue *oqueue;
59 FltVertexPalette *vertex_palette;
60 FltTexturePalette *texture_palette;
61 guint32 fversion; /* format version */
62 guint32 flags;
63} FltGlobalData;
64
65typedef struct {
66 guint32 opcode;
67 G3DObject *g3dobj;
68 gpointer level_object;
69 gint32 nb;
70} FltLocalData;
71
72typedef gboolean (*FltCallbackFunc)(FltGlobalData *gd, FltLocalData *ld);
73
74/* callback functions */
75gboolean flt_cb_0001(FltGlobalData *gd, FltLocalData *ld);
76gboolean flt_cb_0002(FltGlobalData *gd, FltLocalData *ld);
77gboolean flt_cb_0004(FltGlobalData *gd, FltLocalData *ld);
78gboolean flt_cb_0005(FltGlobalData *gd, FltLocalData *ld);
79gboolean flt_cb_0010(FltGlobalData *gd, FltLocalData *ld);
80gboolean flt_cb_0011(FltGlobalData *gd, FltLocalData *ld);
81gboolean flt_cb_0032(FltGlobalData *gd, FltLocalData *ld);
82gboolean flt_cb_0033(FltGlobalData *gd, FltLocalData *ld);
83gboolean flt_cb_0064(FltGlobalData *gd, FltLocalData *ld);
84gboolean flt_cb_0067(FltGlobalData *gd, FltLocalData *ld);
85gboolean flt_cb_0068(FltGlobalData *gd, FltLocalData *ld);
86gboolean flt_cb_0069(FltGlobalData *gd, FltLocalData *ld);
87gboolean flt_cb_0070(FltGlobalData *gd, FltLocalData *ld);
88gboolean flt_cb_0071(FltGlobalData *gd, FltLocalData *ld);
89gboolean flt_cb_0072(FltGlobalData *gd, FltLocalData *ld);
90gboolean flt_cb_0084(FltGlobalData *gd, FltLocalData *ld);
91gboolean flt_cb_0085(FltGlobalData *gd, FltLocalData *ld);
92gboolean flt_cb_0086(FltGlobalData *gd, FltLocalData *ld);
93gboolean flt_cb_0113(FltGlobalData *gd, FltLocalData *ld);
94
95#endif /* _IMP_FLT_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h
new file mode 100644
index 0000000..8cb02b0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_flt/imp_flt_opcodes.h
@@ -0,0 +1,136 @@
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_FLT_OPCODES_H
23#define _IMP_FLT_OPCODES_H
24
25#include <glib.h>
26
27#include "imp_flt_callbacks.h"
28
29typedef struct {
30 guint32 opcode;
31 gchar *description;
32 gboolean container;
33 FltCallbackFunc callback;
34} FltOpcode;
35
36static FltOpcode flt_opcodes[] = {
37 { 1, "header", 0, flt_cb_0001 },
38 { 2, "group", 0, flt_cb_0002 },
39
40 { 4, "object", 0, flt_cb_0004 },
41 { 5, "face", 0, flt_cb_0005 },
42
43 { 10, "push level", 0, flt_cb_0010 },
44 { 11, "pop level", 0, flt_cb_0011 },
45
46 { 14, "degree of freedom", 0, NULL },
47
48 { 19, "push subface", 0, NULL },
49 { 20, "pop subface", 0, NULL },
50 { 21, "push extension", 0, NULL },
51 { 22, "pop extension", 0, NULL },
52 { 23, "continuation", 0, NULL },
53
54 { 31, "comment", 0, NULL },
55 { 32, "color palette", 0, flt_cb_0032 },
56 { 33, "long ID", 0, flt_cb_0033 },
57
58 { 49, "matrix", 0, NULL },
59 { 50, "vector", 0, NULL },
60
61 { 52, "multitexture", 0, NULL },
62 { 53, "UV list", 0, NULL },
63
64 { 55, "binary separating plane", 0, NULL },
65
66 { 60, "replicate", 0, NULL },
67 { 61, "instance reference", 0, NULL },
68 { 62, "instance definition", 0, NULL },
69 { 63, "external reference", 0, NULL },
70 { 64, "texture palette", 0, flt_cb_0064 },
71
72 { 67, "vertex palette", 0, flt_cb_0067 },
73 { 68, "vertex with color", 0, flt_cb_0068 },
74 { 69, "vertex with color and normal", 0, flt_cb_0069 },
75 { 70, "vertex with color, normal and UV", 0, flt_cb_0070 },
76 { 71, "vertex with color and UV", 0, flt_cb_0071 },
77 { 72, "vertex list", 0, flt_cb_0072 },
78 { 73, "level of detail", 0, NULL },
79 { 74, "bounding box", 0, NULL },
80
81 { 76, "rotate about edge", 0, NULL },
82
83 { 78, "translate", 0, NULL },
84 { 79, "scale", 0, NULL },
85 { 80, "rotate about point", 0, NULL },
86 { 81, "rotate and/or scale to point", 0, NULL },
87 { 82, "put", 0, NULL },
88 { 83, "eyepoint and trackplane palette", 0, NULL },
89 { 84, "mesh", 0, flt_cb_0084 },
90 { 85, "local vertex pool", 0, flt_cb_0085 },
91 { 86, "mesh primitive", 0, flt_cb_0086 },
92 { 87, "road segment", 0, NULL },
93 { 88, "road zone", 0, NULL },
94 { 89, "morph vertex list", 0, NULL },
95 { 90, "linkage palette", 0, NULL },
96 { 91, "sound node", 0, NULL },
97 { 92, "road path", 0, NULL },
98 { 93, "sound palette", 0, NULL },
99 { 94, "general matrix", 0, NULL },
100 { 95, "text", 0, NULL },
101 { 96, "switch", 0, NULL },
102 { 97, "line style palette", 0, NULL },
103 { 98, "clip region", 0, NULL },
104
105 { 100, "extension", 0, NULL },
106 { 101, "light source", 0, NULL },
107 { 102, "light source palette", 0, NULL },
108
109 { 105, "bounding sphere", 0, NULL },
110 { 106, "bounding cylinder", 0, NULL },
111 { 107, "bounding convex hull", 0, NULL },
112 { 108, "bounding volume center", 0, NULL },
113 { 109, "bounding volume orientation", 0, NULL },
114
115 { 111, "light point", 0, NULL },
116 { 112, "texture mapping palette", 0, NULL },
117 { 113, "material palette", 0, flt_cb_0113 },
118 { 114, "name table", 0, NULL },
119 { 115, "continuously adaptive terrain (CAT)", 0, NULL },
120 { 116, "CAT data", 0, NULL },
121
122 { 119, "bounding histogram", 0, NULL },
123
124 { 126, "curve", 0, NULL },
125 { 127, "road construction", 0, NULL },
126 { 128, "light point appearance palette", 0, NULL },
127 { 129, "light point animation", 0, NULL },
128 { 130, "indexed light point", 0, NULL },
129
130 { 132, "indexed string", 0, NULL },
131 { 133, "shader", 0, NULL },
132
133 { 0, NULL, 0, NULL }
134};
135
136#endif /* _IMP_FLT_OPCODES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile
new file mode 100644
index 0000000..fa6eb57
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_glb/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_glb
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_glb_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_glb_la_OBJECTS = imp_glb.lo
59imp_glb_la_OBJECTS = $(am_imp_glb_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_glb_la_SOURCES)
73DIST_SOURCES = $(imp_glb_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_glb.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_glb_la_SOURCES = imp_glb.c
229imp_glb_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_glb.la: $(imp_glb_la_OBJECTS) $(imp_glb_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_glb_la_OBJECTS) $(imp_glb_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_glb.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.am
new file mode 100644
index 0000000..15af6d8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_glb.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_glb_la_SOURCES = imp_glb.c
20imp_glb_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.in
new file mode 100644
index 0000000..377efd7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_glb
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_glb_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_glb_la_OBJECTS = imp_glb.lo
59imp_glb_la_OBJECTS = $(am_imp_glb_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_glb_la_SOURCES)
73DIST_SOURCES = $(imp_glb_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_glb.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_glb_la_SOURCES = imp_glb.c
229imp_glb_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_glb/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_glb.la: $(imp_glb_la_OBJECTS) $(imp_glb_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_glb_la_OBJECTS) $(imp_glb_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_glb.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c
new file mode 100644
index 0000000..d9bea0b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_glb/imp_glb.c
@@ -0,0 +1,258 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30#include <g3d/texture.h>
31#include <g3d/iff.h>
32#include <g3d/vector.h>
33
34static G3DObject *glb_load_object(G3DContext *context, G3DStream *stream,
35 G3DModel *model);
36
37EAPI
38gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
39 G3DModel *model, gpointer user_data)
40{
41 return (glb_load_object(context, stream, model) != NULL);
42}
43
44EAPI
45gchar *plugin_description(G3DContext *context)
46{
47 return g_strdup("UltimateStunts models.");
48}
49
50EAPI
51gchar **plugin_extensions(G3DContext *context)
52{
53 return g_strsplit("glb", ":", 0);
54}
55
56/*****************************************************************************/
57/* GLB specific */
58
59static G3DFloat glb_get_float(G3DStream *stream)
60{
61 return 0.001 * (
62 (float)((guint32)g3d_stream_read_int32_be(stream)) - (float)(0x7FFFFFFF));
63}
64
65static G3DObject *glb_load_object(G3DContext *context, G3DStream *stream,
66 G3DModel *model)
67{
68 G3DObject *pobject, *object;
69 G3DMaterial *material;
70 G3DFace *face;
71 guint32 magic, otype, index;
72 gint32 i, j, msize, namelen, datalen, nvertices, nindices;
73 gchar *name;
74 G3DFloat *normals = NULL, *texcoords = NULL;
75
76 magic = g3d_stream_read_int32_be(stream);
77 if(magic != G3D_IFF_MKID('\0', 'G', 'L', 'B')) {
78 g_warning("%s is not a correct GLB file (wrong magic)\n",
79 stream->uri);
80 return NULL;
81 }
82
83 pobject = g_new0(G3DObject, 1);
84 pobject->name = g_strdup(stream->uri);
85 model->objects = g_slist_append(model->objects, pobject);
86
87 while(!g3d_stream_eof(stream)) {
88 otype = g3d_stream_read_int32_be(stream);
89 namelen = g3d_stream_read_int32_be(stream);
90
91 if(namelen == 0)
92 break;
93
94 name = g_new0(gchar, namelen + 1);
95 g3d_stream_read(stream, name, namelen);
96#if DEBUG > 0
97 printf("GLB: object named '%s'\n", name);
98#endif
99
100 object = g_new0(G3DObject, 1);
101 object->name = g_strdup(name);
102 g_free(name);
103 pobject->objects = g_slist_append(pobject->objects, object);
104
105 /* hide collision planes by default */
106 if(strncmp(object->name, "Collision plane", 15) == 0)
107 object->hide = TRUE;
108
109 datalen = g3d_stream_read_int32_be(stream);
110
111 if(otype != 0) {
112 /* skip */
113 g3d_stream_skip(stream, datalen);
114 continue;
115 }
116
117 /* object type 0 */
118 msize = g3d_stream_read_int32_be(stream);
119 nvertices = g3d_stream_read_int32_be(stream);
120 nindices = g3d_stream_read_int32_be(stream);
121
122#if DEBUG > 0
123 printf("GLB: material size: %d bytes, %d vertices, %d indices\n",
124 msize, nvertices, nindices);
125#endif
126 if(msize > 0) {
127 /* material */
128 material = g3d_material_new();
129 material->name = g_strdup("default material");
130 object->materials = g_slist_append(object->materials, material);
131
132 material->r = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
133 material->g = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
134 material->b = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
135 material->a = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
136
137 if(material->a == 0.0)
138 material->a = 1.0;
139
140 /* replacement color */
141 g3d_stream_read_int8(stream);
142 g3d_stream_read_int8(stream);
143 g3d_stream_read_int8(stream);
144 g3d_stream_read_int8(stream); /* unused */
145
146 g3d_stream_read_int8(stream); /* LODs */
147 g3d_stream_read_int8(stream); /* reflectance */
148 /* emissivity */
149 material->shininess = (G3DFloat)g3d_stream_read_int8(stream) / 255.0;
150 g3d_stream_read_int8(stream); /* static friction */
151 g3d_stream_read_int8(stream); /* dynamic friction */
152 g3d_stream_read_int8(stream); /* unused */
153 g3d_stream_read_int8(stream); /* unused */
154 g3d_stream_read_int8(stream); /* unused */
155
156 /* texture name */
157 namelen = msize - 16;
158 if(namelen > 0) {
159 name = g_new0(gchar, namelen + 1);
160 g3d_stream_read(stream, name, namelen);
161#if DEBUG > 1
162 printf("GLB: texture name: %s\n", name);
163#endif
164
165 /* texture name is something like "0", the real name is in
166 * "../$carname.conf"; try to load default texture */
167 if(name[0] == '0') {
168 if(g_file_test("textures.jpg", G_FILE_TEST_EXISTS)) {
169 material->tex_image = g3d_texture_load_cached(
170 context, model, "textures.jpg");
171 if(material->tex_image != NULL)
172 material->tex_image->tex_id = 1;
173 }
174 }
175
176 g_free(name);
177 }
178 }
179
180 /* vertices */
181 if(nvertices > 0) {
182 object->vertex_count = nvertices;
183 object->vertex_data = g_new0(G3DFloat, nvertices * 3);
184 normals = g_new0(G3DFloat, nvertices * 3);
185 texcoords = g_new0(G3DFloat, nvertices * 2);
186
187 for(i = 0; i < nvertices; i ++) {
188 object->vertex_data[i * 3 + 0] = glb_get_float(stream);
189 object->vertex_data[i * 3 + 1] = glb_get_float(stream);
190 object->vertex_data[i * 3 + 2] = glb_get_float(stream);
191
192#if DEBUG > 3
193 printf("D: %f, %f, %f\n",
194 object->vertex_data[i * 3 + 0],
195 object->vertex_data[i * 3 + 1],
196 object->vertex_data[i * 3 + 2]);
197#endif
198
199 /* normal */
200 normals[i * 3 + 0] = glb_get_float(stream);
201 normals[i * 3 + 1] = glb_get_float(stream);
202 normals[i * 3 + 2] = glb_get_float(stream);
203 g3d_vector_unify(
204 normals + i * 3 + 0,
205 normals + i * 3 + 1,
206 normals + i * 3 + 2);
207
208 /* texture coordinates */
209 texcoords[i * 2 + 0] = glb_get_float(stream) / 64;
210 texcoords[i * 2 + 1] = 1.0 - glb_get_float(stream) / 64;
211 }
212 }
213
214 if(nindices > 0) {
215 for(i = 0; i < nindices; i += 3) {
216 face = g_new0(G3DFace, 1);
217 face->vertex_count = 3;
218 face->vertex_indices = g_new0(guint32, 3);
219 face->normals = g_new0(G3DFloat, 3 * 3);
220 face->flags |= G3D_FLAG_FAC_NORMALS;
221 for(j = 0; j < 3; j ++) {
222 face->vertex_indices[j] = g3d_stream_read_int32_be(stream);
223
224 /* set normals */
225 index = face->vertex_indices[j];
226 face->normals[j * 3 + 0] = normals[index * 3 + 0];
227 face->normals[j * 3 + 1] = normals[index * 3 + 1];
228 face->normals[j * 3 + 2] = normals[index * 3 + 2];
229 }
230 face->material = g_slist_nth_data(object->materials, 0);
231
232 if(face->material->tex_image != NULL) {
233 face->tex_vertex_count = 3;
234 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
235 face->tex_image = face->material->tex_image;
236 for(j = 0; j < 3; j ++) {
237 index = face->vertex_indices[j];
238
239 face->tex_vertex_data[j * 2 + 0] =
240 texcoords[index * 2 + 0];
241 face->tex_vertex_data[j * 2 + 1] =
242 texcoords[index * 2 + 1];
243 face->flags |= G3D_FLAG_FAC_TEXMAP;
244 }
245 }
246
247 object->faces = g_slist_append(object->faces, face);
248 }
249 }
250
251 if(normals != NULL)
252 g_free(normals);
253 if(texcoords != NULL)
254 g_free(texcoords);
255 }
256
257 return pobject;
258}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile
new file mode 100644
index 0000000..f7be1ca
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_heightfield/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_heightfield
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_heightfield_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_heightfield_la_OBJECTS = imp_heightfield.lo
59imp_heightfield_la_OBJECTS = $(am_imp_heightfield_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_heightfield_la_SOURCES)
73DIST_SOURCES = $(imp_heightfield_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_heightfield.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_heightfield_la_SOURCES = imp_heightfield.c
229imp_heightfield_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_heightfield.la: $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_heightfield.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.am
new file mode 100644
index 0000000..1830aae
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_heightfield.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_heightfield_la_SOURCES = imp_heightfield.c
20imp_heightfield_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.in
new file mode 100644
index 0000000..c64114d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_heightfield
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_heightfield_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_heightfield_la_OBJECTS = imp_heightfield.lo
59imp_heightfield_la_OBJECTS = $(am_imp_heightfield_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_heightfield_la_SOURCES)
73DIST_SOURCES = $(imp_heightfield_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_heightfield.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_heightfield_la_SOURCES = imp_heightfield.c
229imp_heightfield_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_heightfield/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_heightfield.la: $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_heightfield_la_OBJECTS) $(imp_heightfield_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_heightfield.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/imp_heightfield.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/imp_heightfield.c
new file mode 100644
index 0000000..a8251a1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_heightfield/imp_heightfield.c
@@ -0,0 +1,115 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdlib.h>
24#include <string.h>
25
26#include <g3d/types.h>
27#include <g3d/context.h>
28#include <g3d/plugins.h>
29#include <g3d/material.h>
30#include <g3d/primitive.h>
31
32EAPI
33gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
34 G3DModel *model, gpointer user_data)
35{
36 G3DImage *image = g_new0(G3DImage, 1);
37 G3DObject *object;
38 G3DMaterial *material;
39 guint32 x, y, index;
40 G3DFloat pcnt, prev_pcnt = 0.0;
41
42 if(!g3d_plugins_load_image_from_stream(context, stream, image)) {
43 g_free(image);
44 return FALSE;
45 }
46
47 material = g3d_material_new();
48 material->name = g_strdup("default material");
49 material->r = 0.4;
50 material->g = 0.4;
51 material->b = 0.4;
52 material->a = 1.0;
53 model->materials = g_slist_append(model->materials, material);
54
55 object = g3d_primitive_mesh(image->width, image->height, FALSE, FALSE,
56 material);
57 object->name = g_strdup("height field");
58 model->objects = g_slist_append(model->objects, object);
59
60#if DEBUG > 0
61 g_debug("height field loader: image: %dx%dx%d",
62 image->width, image->height, image->depth);
63#endif
64
65 for(y = 0; y < image->height; y ++) {
66 for(x = 0; x < image->width; x ++) {
67 index = y * image->width + x;
68
69 object->vertex_data[index * 3 + 0] = x;
70 object->vertex_data[index * 3 + 1] = y;
71 switch(image->depth) {
72 case 8:
73 object->vertex_data[index * 3 + 2] = 0.0 +
74 (G3DFloat)image->pixeldata[index] / 32.0;
75 break;
76 case 15:
77 case 16:
78 object->vertex_data[index*3+2] = 0.0 +
79 *((guint16*)&image->pixeldata[index]);
80 break;
81 case 24:
82 case 32:
83 object->vertex_data[index * 3 + 2] = 0.0 +
84 image->pixeldata[index * 4] / 32.0;
85 break;
86 default:
87 break;
88 }
89
90 pcnt = (G3DFloat)(y * image->width + x) /
91 (G3DFloat)(image->width * image->height);
92 if((pcnt - prev_pcnt) > 0.01) {
93 prev_pcnt = pcnt;
94 g3d_context_update_progress_bar(context, pcnt, TRUE);
95 }
96 g3d_context_update_interface(context);
97 } /* for(x) */
98 } /* for(y) */
99
100 return TRUE;
101}
102
103EAPI
104gchar *plugin_description(G3DContext *context)
105{
106 return g_strdup("Generate height fields from images.\n"
107 "Author: Markus Dahms");
108}
109
110EAPI
111gchar **plugin_extensions(G3DContext *context)
112{
113 return g3d_plugins_get_image_extensions(context);
114}
115
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile
new file mode 100644
index 0000000..469df7b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_iob/Makefile. Generated from Makefile.in by configure.
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15
16
17
18pkgdatadir = $(datadir)/libg3d
19pkglibdir = $(libdir)/libg3d
20pkgincludedir = $(includedir)/libg3d
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = x86_64-unknown-linux-gnu
34host_triplet = x86_64-unknown-linux-gnu
35subdir = plugins/import/imp_iob
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_iob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_iob_la_OBJECTS = imp_iob.lo imp_iob_callbacks.lo
59imp_iob_la_OBJECTS = $(am_imp_iob_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_iob_la_SOURCES)
73DIST_SOURCES = $(imp_iob_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_iob.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \
229 imp_iob_callbacks.c imp_iob_callbacks.h
230
231imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_iob.la: $(imp_iob_la_OBJECTS) $(imp_iob_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_iob_la_OBJECTS) $(imp_iob_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_iob.Plo
302include ./$(DEPDIR)/imp_iob_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am
new file mode 100644
index 0000000..295d757
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_iob.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \
20 imp_iob_callbacks.c imp_iob_callbacks.h
21imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in
new file mode 100644
index 0000000..907f8c3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/Makefile.in
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_iob
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
37ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
39 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
40 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
41 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
42 $(top_srcdir)/configure.in
43am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45mkinstalldirs = $(install_sh) -d
46CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
47CONFIG_CLEAN_FILES =
48am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
49am__vpath_adj = case $$p in \
50 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
51 *) f=$$p;; \
52 esac;
53am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
54am__installdirs = "$(DESTDIR)$(pluginimpdir)"
55pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
56LTLIBRARIES = $(pluginimp_LTLIBRARIES)
57imp_iob_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_iob_la_OBJECTS = imp_iob.lo imp_iob_callbacks.lo
59imp_iob_la_OBJECTS = $(am_imp_iob_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_iob_la_SOURCES)
73DIST_SOURCES = $(imp_iob_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_iob.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_iob_la_SOURCES = imp_iob.c imp_iob.h imp_iob_chunks.h \
229 imp_iob_callbacks.c imp_iob_callbacks.h
230
231imp_iob_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_iob/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_iob.la: $(imp_iob_la_OBJECTS) $(imp_iob_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_iob_la_OBJECTS) $(imp_iob_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_iob.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_iob_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c
new file mode 100644
index 0000000..1c4ce17
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.c
@@ -0,0 +1,98 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <glib.h>
27
28#include <g3d/types.h>
29#include <g3d/context.h>
30#include <g3d/model.h>
31#include <g3d/material.h>
32#include <g3d/stream.h>
33#include <g3d/iff.h>
34#include <g3d/matrix.h>
35
36#include "imp_iob_chunks.h"
37
38EAPI
39gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
40 G3DModel *model, gpointer user_data)
41{
42 G3DIffGlobal *global;
43 G3DIffLocal *local;
44 guint32 id;
45 gsize len;
46 G3DMatrix rmatrix[16];
47
48 if(!g3d_iff_check(stream, &id, &len) ||
49 (id != G3D_IFF_MKID('T','D','D','D'))) {
50 g_warning("file is not an .iob (TDDD) file %s", stream->uri);
51 return FALSE;
52 }
53
54 local = g_new0(G3DIffLocal, 1);
55 global = g_new0(G3DIffGlobal, 1);
56
57 global->context = context;
58 global->model = model;
59 global->stream = stream;
60
61 local->parent_id = id;
62 local->nb = len;
63
64 g3d_iff_read_ctnr(global, local, iob_chunks, G3D_IFF_PAD2);
65
66 g3d_matrix_identity(rmatrix);
67 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
68 g3d_model_transform(model, rmatrix);
69
70 g_free(local);
71 g_free(global);
72
73 return TRUE;
74}
75
76EAPI
77char *plugin_description(void)
78{
79 return g_strdup("Impulse Turbo Silver / Imagine models.");
80}
81
82EAPI
83char **plugin_extensions(void)
84{
85 return g_strsplit("iob", ":", 0);
86}
87
88
89/*****************************************************************************/
90/* IOB specific */
91/*****************************************************************************/
92
93G3DFloat iob_read_fract(G3DStream *stream)
94{
95 gint32 i = g3d_stream_read_int32_be(stream);
96 return (G3DFloat)(i / 0xFFFF);
97}
98
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h
new file mode 100644
index 0000000..56ee3f6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob.h
@@ -0,0 +1,33 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_IOB_H
24#define _IMP_IOB_H
25
26#include <stdio.h>
27#include <glib.h>
28
29#include <g3d/stream.h>
30
31G3DFloat iob_read_fract(G3DStream *stream);
32
33#endif /* _IMP_IOB_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c
new file mode 100644
index 0000000..ddbbc27
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.c
@@ -0,0 +1,347 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/iff.h>
23#include <g3d/stream.h>
24#include <g3d/material.h>
25
26#include "imp_iob.h"
27
28gboolean iob_cb_xLSx(G3DIffGlobal *global, G3DIffLocal *local)
29{
30 G3DObject *object;
31 G3DMaterial *material;
32 G3DFace *face;
33 gint32 i, nitems;
34
35 object = (G3DObject *)local->object;
36 g_return_val_if_fail(object != NULL, FALSE);
37
38 if((local->id & 0xFF) == '2')
39 {
40 nitems = g3d_stream_read_int32_be(global->stream);
41 local->nb -= 4;
42 }
43 else
44 {
45 nitems = g3d_stream_read_int16_be(global->stream);
46 local->nb -= 2;
47 }
48
49 for(i = 0; i < nitems; i ++)
50 {
51 /* TODO: find material by parameters, don't create too much
52 * materials */
53
54 /* default material + nth */
55 material = g_slist_nth_data(object->materials, i + 1);
56 if(material == NULL)
57 {
58 material = g3d_material_new();
59 material->flags |= G3D_FLAG_MAT_TWOSIDE;
60 material->name = g_strdup_printf("per face material #%d", i);
61 object->materials = g_slist_append(object->materials, material);
62
63 /* assign to face */
64 face = g_slist_nth_data(object->faces, i);
65 if(face)
66 face->material = material;
67 }
68
69 switch(local->id)
70 {
71 case G3D_IFF_MKID('C', 'L', 'S', 'T'):
72 case G3D_IFF_MKID('C', 'L', 'S', '2'):
73 material->r = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0;
74 material->g = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0;
75 material->b = (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0;
76 break;
77
78 case G3D_IFF_MKID('R', 'L', 'S', 'T'):
79 case G3D_IFF_MKID('R', 'L', 'S', '2'):
80 material->specular[0] =
81 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
82 material->specular[1] =
83 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
84 material->specular[2] =
85 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
86 break;
87
88 case G3D_IFF_MKID('T', 'L', 'S', 'T'):
89 case G3D_IFF_MKID('T', 'L', 'S', '2'):
90 material->a = 1.0 - (
91 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
92 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
93 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0) / 3.0;
94 break;
95 }
96
97 local->nb -= 3;
98 }
99
100 return TRUE;
101}
102
103gboolean iob_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local)
104{
105 G3DObject *object;
106 G3DMaterial *material;
107
108 object = (G3DObject *)local->object;
109 g_return_val_if_fail(object != NULL, FALSE);
110
111 material = g_slist_nth_data(object->materials, 0);
112 g_return_val_if_fail(material != NULL, FALSE);
113
114 g3d_stream_read_int8(global->stream);
115 material->r = (float)g3d_stream_read_int8(global->stream) / 255.0;
116 material->g = (float)g3d_stream_read_int8(global->stream) / 255.0;
117 material->b = (float)g3d_stream_read_int8(global->stream) / 255.0;
118 local->nb -= 4;
119
120 return TRUE;
121}
122
123gboolean iob_cb_DESC(G3DIffGlobal *global, G3DIffLocal *local)
124{
125 G3DObject *object;
126 G3DMaterial *material;
127
128 if(local->finalize) return TRUE;
129
130 object = g_new0(G3DObject, 1);
131 global->model->objects = g_slist_append(global->model->objects, object);
132
133 material = g3d_material_new();
134 material->flags |= G3D_FLAG_MAT_TWOSIDE;
135 material->name = g_strdup("(default material)");
136
137 object->materials = g_slist_append(object->materials, material);
138
139 local->object = object;
140
141 return TRUE;
142}
143
144gboolean iob_cb_EDGx(G3DIffGlobal *global, G3DIffLocal *local)
145{
146 G3DObject *object;
147 gint32 i, nedges;
148 gint32 *edges;
149
150 object = (G3DObject *)local->object;
151 g_return_val_if_fail(object != NULL, FALSE);
152
153 if(local->id == G3D_IFF_MKID('E','D','G','E'))
154 {
155 nedges = g3d_stream_read_int16_be(global->stream);
156 local->nb -= 2;
157 }
158 else
159 {
160 nedges = g3d_stream_read_int32_be(global->stream);
161 local->nb -= 4;
162 }
163
164 edges = g_malloc(nedges * 2 * sizeof(gint32));
165 for(i = 0; i < nedges; i ++)
166 {
167 if(local->id == G3D_IFF_MKID('E','D','G','E'))
168 {
169 edges[i * 2 + 0] = g3d_stream_read_int16_be(global->stream);
170 edges[i * 2 + 1] = g3d_stream_read_int16_be(global->stream);
171 local->nb -= 4;
172 }
173 else
174 {
175 edges[i * 2 + 0] = g3d_stream_read_int32_be(global->stream);
176 edges[i * 2 + 1] = g3d_stream_read_int32_be(global->stream);
177 local->nb -= 8;
178 }
179 }
180
181 local->level_object = edges;
182
183 return TRUE;
184}
185
186gboolean iob_cb_FACx(G3DIffGlobal *global, G3DIffLocal *local)
187{
188 G3DObject *object;
189 gint32 *edges, e[3], v1, v2, v3;
190 gint32 i, nfaces;
191
192 object = (G3DObject *)local->object;
193 g_return_val_if_fail(object != NULL, FALSE);
194
195 /* edges are read in EDGE/EDG2 chunk */
196 edges = (gint32 *)local->level_object;
197 g_return_val_if_fail(edges != NULL, FALSE);
198
199 if(local->id == G3D_IFF_MKID('F','A','C','E'))
200 {
201 nfaces = g3d_stream_read_int16_be(global->stream);
202 local->nb -= 2;
203 }
204 else
205 {
206 nfaces = g3d_stream_read_int32_be(global->stream);
207 local->nb -= 4;
208 }
209
210 for(i = 0; i < nfaces; i ++)
211 {
212 G3DFace *face = g_new0(G3DFace, 1);
213 face->vertex_count = 3;
214 face->vertex_indices = g_new0(guint32, 3);
215
216 if(local->id == G3D_IFF_MKID('F','A','C','E'))
217 {
218 e[0] = g3d_stream_read_int16_be(global->stream);
219 e[1] = g3d_stream_read_int16_be(global->stream);
220 e[2] = g3d_stream_read_int16_be(global->stream);
221 local->nb -= 6;
222 }
223 else
224 {
225 e[0] = g3d_stream_read_int32_be(global->stream);
226 e[1] = g3d_stream_read_int32_be(global->stream);
227 e[2] = g3d_stream_read_int32_be(global->stream);
228 local->nb -= 12;
229 }
230
231 face->vertex_indices[0] = v1 = edges[e[0] * 2 + 0];
232 face->vertex_indices[1] = v2 = edges[e[0] * 2 + 1];
233 if((v1 != edges[e[1] * 2 + 0]) && (v2 != edges[e[1] * 2 + 0]))
234 v3 = edges[e[1] * 2 + 0];
235 else if((v1 != edges[e[1] * 2 + 1]) && (v2 != edges[e[1] * 2 + 1]))
236 v3 = edges[e[1] * 2 + 1];
237 else if((v1 != edges[e[2] * 2 + 0]) && (v2 != edges[e[2] * 2 + 0]))
238 v3 = edges[e[2] * 2 + 0];
239 else
240 v3 = edges[e[2] * 2 + 1];
241
242 face->vertex_indices[2] = v3;
243
244 face->material = g_slist_nth_data(object->materials, 0);
245 object->faces = g_slist_append(object->faces, face);
246 }
247
248 /* free edges now */
249 g_free(edges);
250 local->level_object = NULL;
251
252 return TRUE;
253}
254
255gboolean iob_cb_NAME(G3DIffGlobal *global, G3DIffLocal *local)
256{
257 G3DObject *object;
258 gchar buffer[512];
259
260 object = (G3DObject *)local->object;
261 g_return_val_if_fail(object != NULL, FALSE);
262
263 g3d_stream_read(global->stream, buffer, local->nb);
264
265 object->name = g_convert(buffer, local->nb,
266 "UTF-8", "ISO-8859-1",
267 NULL, NULL, NULL);
268
269 local->nb = 0;
270
271 return TRUE;
272}
273
274gboolean iob_cb_PNTx(G3DIffGlobal *global, G3DIffLocal *local)
275{
276 G3DObject *object;
277 gint32 i;
278
279 object = (G3DObject *)local->object;
280 g_return_val_if_fail(object != NULL, FALSE);
281
282 if(local->id == G3D_IFF_MKID('P','N','T','S'))
283 {
284 object->vertex_count = g3d_stream_read_int16_be(global->stream);
285 local->nb -= 2;
286 }
287 else
288 {
289 object->vertex_count = g3d_stream_read_int32_be(global->stream);
290 local->nb -= 4;
291 }
292
293 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
294
295 for(i = 0; i < object->vertex_count; i ++)
296 {
297 object->vertex_data[i * 3 + 0] = iob_read_fract(global->stream);
298 object->vertex_data[i * 3 + 1] = iob_read_fract(global->stream);
299 object->vertex_data[i * 3 + 2] = iob_read_fract(global->stream);
300 local->nb -= 12;
301 }
302
303 return TRUE;
304}
305
306gboolean iob_cb_REFL(G3DIffGlobal *global, G3DIffLocal *local)
307{
308 G3DObject *object;
309 G3DMaterial *material;
310 gint32 i;
311
312 object = (G3DObject *)local->object;
313 g_return_val_if_fail(object != NULL, FALSE);
314
315 material = g_slist_nth_data(object->materials, 0);
316 g_return_val_if_fail(material != NULL, FALSE);
317
318 g3d_stream_read_int8(global->stream);
319 for(i = 0; i < 3; i ++)
320 material->specular[i] =
321 (GLfloat)g3d_stream_read_int8(global->stream) / 255.0;
322 local->nb -= 4;
323
324 return TRUE;
325}
326
327gboolean iob_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local)
328{
329 G3DObject *object;
330 G3DMaterial *material;
331
332 object = (G3DObject *)local->object;
333 g_return_val_if_fail(object != NULL, FALSE);
334
335 material = g_slist_nth_data(object->materials, 0);
336 g_return_val_if_fail(material != NULL, FALSE);
337
338 g3d_stream_read_int8(global->stream);
339 material->a = 1.0 - (
340 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
341 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0 +
342 (G3DFloat)g3d_stream_read_int8(global->stream) / 255.0) / 3.0;
343 local->nb -= 4;
344
345 return TRUE;
346}
347
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h
new file mode 100644
index 0000000..f4b78a0
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_callbacks.h
@@ -0,0 +1,37 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_IOB_CALLBACKS_H
23#define _IMP_IOB_CALLBACKS_H
24
25#include <g3d/iff.h>
26
27gboolean iob_cb_xLSx(G3DIffGlobal *global, G3DIffLocal *local);
28gboolean iob_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean iob_cb_DESC(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean iob_cb_EDGx(G3DIffGlobal *global, G3DIffLocal *local);
31gboolean iob_cb_FACx(G3DIffGlobal *global, G3DIffLocal *local);
32gboolean iob_cb_NAME(G3DIffGlobal *global, G3DIffLocal *local);
33gboolean iob_cb_PNTx(G3DIffGlobal *global, G3DIffLocal *local);
34gboolean iob_cb_REFL(G3DIffGlobal *global, G3DIffLocal *local);
35gboolean iob_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local);
36
37#endif /* _IMP_IOB_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h
new file mode 100644
index 0000000..1a10d44
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_iob/imp_iob_chunks.h
@@ -0,0 +1,73 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_IOB_CHUNKS_H
23#define _IMP_IOB_CHUNKS_H
24
25#include <g3d/iff.h>
26
27#include "imp_iob_callbacks.h"
28
29static G3DIffChunkInfo iob_chunks[] = {
30 { "AXIS", "coordinate system", 0, NULL },
31 { "BBOX", "bounding box data", 0, NULL },
32 { "BRS4", "brush (4)", 0, NULL },
33 { "BRS5", "brush (5)", 0, NULL },
34 { "COLR", "color", 0, iob_cb_COLR },
35 { "CLS2", "color list (2)", 0, iob_cb_xLSx },
36 { "CLST", "color list", 0, iob_cb_xLSx },
37 { "DESC", "object description", 1, iob_cb_DESC },
38 { "EDG2", "edges", 0, iob_cb_EDGx },
39 { "EDGE", "edges", 0, iob_cb_EDGx },
40 { "EFLG", "edge flags", 0, NULL },
41 { "FACE", "faces", 0, iob_cb_FACx },
42 { "FAC2", "faces (2)", 0, iob_cb_FACx },
43 { "FGR2", "face group (2)", 0, NULL },
44 { "FGR3", "face group (3)", 0, NULL },
45 { "FGR4", "face group (4)", 0, NULL },
46 { "INT1", "light intensity (1)", 0, NULL },
47 { "NAME", "name", 0, iob_cb_NAME },
48 { "OBJ ", "object", 1, NULL },
49 { "PART", "particle parameters", 0, NULL },
50 { "PNT2", "points (2)", 0, iob_cb_PNTx },
51 { "PNTS", "points", 0, iob_cb_PNTx },
52 { "POSI", "position in world", 0, NULL },
53 { "PRP1", "properties (1)", 0, NULL },
54 { "PRP2", "properties (2)", 0, NULL },
55 { "REFL", "reflection", 0, iob_cb_REFL },
56 { "RLS2", "reflection list (2)", 0, iob_cb_xLSx },
57 { "RLST", "reflection list", 0, iob_cb_xLSx },
58 { "SPC1", "specularity (1)", 0, NULL },
59 { "SPC2", "specularity (2)", 0, NULL },
60 { "SHAP", "shape type", 0, NULL },
61 { "SHP2", "shape type (2)", 0, NULL },
62 { "SIZE", "size", 0, NULL },
63 { "TLS2", "transparency list", 0, iob_cb_xLSx },
64 { "TLST", "transparency list (2)", 0, iob_cb_xLSx },
65 { "TOBJ", "end of object", 0, NULL },
66 { "TRAN", "transparency", 0, iob_cb_TRAN },
67 { "TXT3", "texture data (3)", 0, NULL },
68 { "TXT4", "texture data (4)", 0, NULL },
69
70 { NULL, NULL, 0, NULL }
71};
72
73#endif /* _IMP_IOB_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile
new file mode 100644
index 0000000..971e951
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_joe/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_joe
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_joe_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_joe_la_OBJECTS = imp_joe.lo
59imp_joe_la_OBJECTS = $(am_imp_joe_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_joe_la_SOURCES)
73DIST_SOURCES = $(imp_joe_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_joe.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_joe_la_SOURCES = imp_joe.c
229imp_joe_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_joe.la: $(imp_joe_la_OBJECTS) $(imp_joe_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_joe_la_OBJECTS) $(imp_joe_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_joe.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.am
new file mode 100644
index 0000000..c157cf7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_joe.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_joe_la_SOURCES = imp_joe.c
20imp_joe_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.in
new file mode 100644
index 0000000..ebd7ce6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_joe
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_joe_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_joe_la_OBJECTS = imp_joe.lo
59imp_joe_la_OBJECTS = $(am_imp_joe_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_joe_la_SOURCES)
73DIST_SOURCES = $(imp_joe_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_joe.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_joe_la_SOURCES = imp_joe.c
229imp_joe_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_joe/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_joe.la: $(imp_joe_la_OBJECTS) $(imp_joe_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_joe_la_OBJECTS) $(imp_joe_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_joe.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c
new file mode 100644
index 0000000..b79447e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_joe/imp_joe.c
@@ -0,0 +1,386 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <locale.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/model.h>
30#include <g3d/object.h>
31#include <g3d/iff.h>
32#include <g3d/material.h>
33#include <g3d/texture.h>
34#include <g3d/matrix.h>
35
36G3DObject *joe_load_object(G3DContext *context, const gchar *filename,
37 G3DModel *model);
38GHashTable *joe_load_car(const gchar *filename);
39void joe_destroy_car(GHashTable *hashtable);
40gboolean joe_parse_vertex(const gchar *text, G3DFloat *x, G3DFloat *y, G3DFloat *z);
41void joe_object_flip_x(G3DObject *object);
42
43/*****************************************************************************/
44/* plugin interface */
45/*****************************************************************************/
46
47EAPI
48gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
49 G3DModel *model, gpointer plugin_data)
50{
51 G3DObject *object;
52 GHashTable *cardata;
53 gchar *value;
54 G3DFloat x, y, z;
55 G3DMatrix matrix[16];
56 gboolean rval = FALSE;
57
58 if(g_strcasecmp(stream->uri + strlen(stream->uri) - 3, "car") == 0)
59 {
60 /* .car file */
61 setlocale(LC_NUMERIC, "C");
62
63 cardata = joe_load_car(stream->uri);
64
65 joe_load_object(context, "body.joe", model);
66 joe_load_object(context, "interior.joe", model);
67 joe_load_object(context, "glass.joe", model);
68
69 /* wheels */
70 object = joe_load_object(context, "wheel_front.joe", model);
71 joe_object_flip_x(object);
72 value = g_hash_table_lookup(cardata, "wheel-FL.position");
73 if(value != NULL)
74 {
75 joe_parse_vertex(value, &x, &y, &z);
76 g3d_matrix_identity(matrix);
77 g3d_matrix_translate(y, x, z, matrix);
78 g3d_object_transform(object, matrix);
79 }
80
81 object = joe_load_object(context, "wheel_front.joe", model);
82 value = g_hash_table_lookup(cardata, "wheel-FR.position");
83 if(value != NULL)
84 {
85 joe_parse_vertex(value, &x, &y, &z);
86 g3d_matrix_identity(matrix);
87 g3d_matrix_translate(y, x, z, matrix);
88 g3d_object_transform(object, matrix);
89 }
90
91 object = joe_load_object(context, "wheel_rear.joe", model);
92 joe_object_flip_x(object);
93 value = g_hash_table_lookup(cardata, "wheel-RL.position");
94 if(value != NULL)
95 {
96 joe_parse_vertex(value, &x, &y, &z);
97 g3d_matrix_identity(matrix);
98 g3d_matrix_translate(y, x, z, matrix);
99 g3d_object_transform(object, matrix);
100 }
101
102 object = joe_load_object(context, "wheel_rear.joe", model);
103 value = g_hash_table_lookup(cardata, "wheel-RR.position");
104 if(value != NULL)
105 {
106 joe_parse_vertex(value, &x, &y, &z);
107 g3d_matrix_identity(matrix);
108 g3d_matrix_translate(y, x, z, matrix);
109 g3d_object_transform(object, matrix);
110 }
111
112 joe_destroy_car(cardata);
113 rval = TRUE;
114 }
115 else
116 {
117 /* .joe file */
118 rval = (joe_load_object(context, stream->uri, model) != NULL);
119 }
120
121 g3d_matrix_identity(matrix);
122 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, matrix);
123 g3d_model_transform(model, matrix);
124
125 return rval;
126}
127
128EAPI
129gchar *plugin_description(void)
130{
131 return g_strdup("VDrift models.");
132}
133
134EAPI
135gchar **plugin_extensions(void)
136{
137 return g_strsplit("joe:car", ":", 0);
138}
139
140/*****************************************************************************/
141
142G3DObject *joe_load_object(G3DContext *context, const gchar *filename,
143 G3DModel *model)
144{
145 G3DStream *stream;
146 gchar *basename, *texname;
147 G3DObject *object;
148 G3DMaterial *material;
149 G3DFace *face;
150 G3DImage *image;
151 GSList *item;
152 guint32 magic, version;
153 guint32 num_faces, num_frames, num_verts, num_texcoords, num_normals;
154 gint32 frame, i, j, index;
155 guint16 *tex_indices, *normal_indices;
156 G3DFloat *normals = NULL, *texcoords = NULL;
157
158 stream = g3d_stream_open_file(filename, "rb");
159 if(stream == NULL) {
160 g_critical("JOE: failed to read '%s'", filename);
161 return NULL;
162 }
163
164 magic = g3d_stream_read_int32_be(stream);
165 if(magic != G3D_IFF_MKID('I','D','P','2')) {
166 g_critical("JOE: wrong magic in '%s'", filename);
167 g3d_stream_close(stream);
168 return NULL;
169 }
170
171 /* base file name for object name & texture loading */
172 basename = g_path_get_basename(filename);
173
174 /* version 3 */
175
176 version = g3d_stream_read_int32_le(stream);
177 num_faces = g3d_stream_read_int32_le(stream);
178 num_frames = g3d_stream_read_int32_le(stream);
179
180 printf("JOE: faces: %d, frames: %d\n", num_faces, num_frames);
181
182 /* create object */
183 object = g_new0(G3DObject, 1);
184 object->name = g_strdup(basename);
185 model->objects = g_slist_append(model->objects, object);
186
187 /* load texture image */
188 memcpy(basename + strlen(basename) - 3, "png", 3);
189 texname = g_strdup_printf("textures/%s", basename);
190 image = g3d_texture_load_cached(context, model, texname);
191 if(image == NULL)
192 g_warning("JOE: failed to load texture '%s'\n", texname);
193 else
194 image->tex_id = g_str_hash(texname);
195 g_free(texname);
196
197 /* create default material */
198 material = g3d_material_new();
199 material->name = g_strdup("default material");
200 material->tex_image = image;
201 object->materials = g_slist_append(object->materials, material);
202
203 /* frames */
204 for(frame = 0; frame < 1; frame ++) {
205 /* create temporary storage */
206 tex_indices = g_new0(guint16, num_faces * 3 * 3);
207 normal_indices = g_new0(guint16, num_faces * 3 * 2);
208
209 /* faces blob */
210 for(i = 0; i < num_faces; i ++) {
211 face = g_new0(G3DFace, 1);
212 face->material = material;
213 face->vertex_count = 3;
214 face->vertex_indices = g_new0(guint32, 3);
215
216 for(j = 0; j < 3; j ++)
217 face->vertex_indices[j] = g3d_stream_read_int16_le(stream);
218
219 /* normalIndex */
220 for(j = 0; j < 3; j ++)
221 normal_indices[i * 3 + j] = g3d_stream_read_int16_le(stream);
222
223 /* textureIndex */
224 /* JOE_MAX_TEXTURES times, 1x for version 3 */
225 for(j = 0; j < 3; j ++)
226 tex_indices[i * 3 + j] = g3d_stream_read_int16_le(stream);
227
228 object->faces = g_slist_append(object->faces, face);
229 }
230
231 /* num_verts */
232 num_verts = g3d_stream_read_int32_le(stream);
233
234 /* num_texcoords */
235 num_texcoords = g3d_stream_read_int32_le(stream);
236 if(num_texcoords != 0)
237 texcoords = g_new0(G3DFloat, num_texcoords * 2);
238
239 /* num_normals */
240 num_normals = g3d_stream_read_int32_le(stream);
241 if(num_normals != 0)
242 normals = g_new0(G3DFloat, num_normals * 3);
243
244 g_debug("JOE: verts: %d, texcoords: %d, normals: %d\n",
245 num_verts, num_texcoords, num_normals);
246
247 /* verts blob */
248 object->vertex_count = num_verts;
249 object->vertex_data = g_new0(G3DFloat, num_verts * 3);
250 for(i = 0; i < num_verts; i ++) {
251 object->vertex_data[i * 3 + 0] = g3d_stream_read_float_le(stream);
252 object->vertex_data[i * 3 + 1] = g3d_stream_read_float_le(stream);
253 object->vertex_data[i * 3 + 2] = g3d_stream_read_float_le(stream);
254 }
255
256 /* normals blob */
257 for(i = 0; i < num_normals; i ++) {
258 normals[i * 3 + 0] = - g3d_stream_read_float_le(stream);
259 normals[i * 3 + 1] = - g3d_stream_read_float_le(stream);
260 normals[i * 3 + 2] = - g3d_stream_read_float_le(stream);
261 }
262
263 /* texcoords blob */
264 for(i = 0; i < num_texcoords; i ++) {
265 texcoords[i * 2 + 0] = g3d_stream_read_float_le(stream);
266 texcoords[i * 2 + 1] = g3d_stream_read_float_le(stream);
267 }
268
269 /* fix faces */
270 for(item = object->faces, i = 0; item != NULL; item = item->next, i ++)
271 {
272 face = (G3DFace *)item->data;
273
274 face->flags |= G3D_FLAG_FAC_NORMALS;
275 if(image != NULL) face->flags |= G3D_FLAG_FAC_TEXMAP;
276
277 face->normals = g_new0(G3DFloat, 3 * 3);
278 face->tex_image = image;
279 face->tex_vertex_count = 3;
280 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
281 for(j = 0; j < 3; j ++)
282 {
283 index = normal_indices[i * 3 + j];
284 face->normals[j * 3 + 0] = normals[index * 3 + 0];
285 face->normals[j * 3 + 1] = normals[index * 3 + 1];
286 face->normals[j * 3 + 2] = normals[index * 3 + 2];
287
288 index = tex_indices[i * 3 + j];
289 face->tex_vertex_data[j * 2 + 0] = texcoords[index * 2 + 0];
290 face->tex_vertex_data[j * 2 + 1] = texcoords[index * 2 + 1];
291 }
292 }
293
294 /* clear temporary storage */
295 g_free(normal_indices);
296 g_free(tex_indices);
297
298 if(normals != NULL)
299 {
300 g_free(normals);
301 normals = NULL;
302 }
303
304 if(texcoords != NULL)
305 {
306 g_free(texcoords);
307 texcoords = NULL;
308 }
309 }
310
311 /* clean up */
312 g_free(basename);
313 g3d_stream_close(stream);
314
315 return object;
316}
317
318GHashTable *joe_load_car(const gchar *filename)
319{
320 G3DStream *stream;
321 GHashTable *ht;
322 gchar buffer[2048 + 1], section[256], varname[256], value[256];
323 gchar *ep;
324
325 stream = g3d_stream_open_file(filename, "r");
326 if(stream == NULL) {
327 g_critical("JOE: failed to read '%s'", filename);
328 return NULL;
329 }
330
331 ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
332
333 memset(section, 0, 256);
334
335 while(!g3d_stream_eof(stream)) {
336 g3d_stream_read_line(stream, buffer, 2048);
337 if((buffer[0] == '\0') || (buffer[0] == '\n'))
338 continue;
339
340 if(buffer[0] == '[') {
341 /* section title */
342 if(sscanf(buffer, "[ %s ]", section) != 1) {
343 g_warning("JOE: CAR: failed to read section title '%s'\n",
344 buffer);
345 }
346 } else {
347 /* property */
348 ep = strchr(buffer, '=');
349 if(ep != NULL)
350 {
351 memset(varname, 0, 256);
352 strncpy(varname, buffer, (ep - buffer));
353 g_strstrip(varname);
354
355 strcpy(value, ep + 1);
356 g_strstrip(value);
357#if DEBUG > 0
358 g_debug("JOE: %s.%s = %s", section, varname, value);
359#endif
360 g_hash_table_insert(ht,
361 g_strdup_printf("%s.%s", section, varname),
362 g_strdup(value));
363 }
364 }
365 }
366
367 return ht;
368}
369
370void joe_destroy_car(GHashTable *hashtable)
371{
372 g_hash_table_destroy(hashtable);
373}
374
375gboolean joe_parse_vertex(const gchar *text, G3DFloat *x, G3DFloat *y, G3DFloat *z)
376{
377 return (sscanf(text, G3D_SCANF_FLOAT ", " G3D_SCANF_FLOAT ", " G3D_SCANF_FLOAT, x, y, z) == 3);
378}
379
380void joe_object_flip_x(G3DObject *object)
381{
382 guint32 i;
383
384 for(i = 0; i < object->vertex_count; i ++)
385 object->vertex_data[i * 3 + 0] *= -1;
386}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile
new file mode 100644
index 0000000..43766b6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile
@@ -0,0 +1,514 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_kmz/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_kmz
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_kmz_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_kmz_la_OBJECTS = imp_kmz.lo
59imp_kmz_la_OBJECTS = $(am_imp_kmz_la_OBJECTS)
60am_imp_kmz_la_rpath = -rpath \
61 $(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_kmz_la_SOURCES)
75DIST_SOURCES = $(imp_kmz_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_kmz
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz
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
218pluginimp_LTLIBRARIES = imp_kmz.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 -I/usr/include/libxml2 \
224 -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
225
226INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
227AM_LDFLAGS = \
228 -no-undefined -module \
229 -avoid-version -export-dynamic
230
231imp_kmz_la_SOURCES = imp_kmz.c
232imp_kmz_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0 \
233 -L/usr/lib/x86_64-linux-gnu -lxml2
234
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_kmz.la: $(imp_kmz_la_OBJECTS) $(imp_kmz_la_DEPENDENCIES)
296 $(LINK) $(am_imp_kmz_la_rpath) $(imp_kmz_la_OBJECTS) $(imp_kmz_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304include ./$(DEPDIR)/imp_kmz.Plo
305
306.c.o:
307 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309# source='$<' object='$@' libtool=no \
310# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
311# $(COMPILE) -c $<
312
313.c.obj:
314 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316# source='$<' object='$@' libtool=no \
317# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
318# $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323# source='$<' object='$@' libtool=yes \
324# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
325# $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512# Tell versions [3.59,3.63) of GNU make to not export all variables.
513# Otherwise a system limit (for SysV at least) may be exceeded.
514.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.am
new file mode 100644
index 0000000..17f747d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if HAVE_LIBXML2
4if HAVE_LIBGSF
5pluginimp_LTLIBRARIES = imp_kmz.la
6endif
7endif
8
9AM_CFLAGS = \
10 -Wall -ansi -pedantic \
11 -DG_LOG_DOMAIN=\"LibG3D\" \
12 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
13 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ \
14 @LIBGSF_CFLAGS@
15
16INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
17
18AM_LDFLAGS = \
19 -no-undefined -module \
20 @PLUGINS_LDFLAGS@
21
22LIBTOOL += --quiet
23
24imp_kmz_la_SOURCES = imp_kmz.c
25imp_kmz_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@ \
26 @LIBXML2_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.in
new file mode 100644
index 0000000..b519d28
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/Makefile.in
@@ -0,0 +1,514 @@
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_kmz
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_kmz_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_kmz_la_OBJECTS = imp_kmz.lo
59imp_kmz_la_OBJECTS = $(am_imp_kmz_la_OBJECTS)
60@HAVE_LIBGSF_TRUE@@HAVE_LIBXML2_TRUE@am_imp_kmz_la_rpath = -rpath \
61@HAVE_LIBGSF_TRUE@@HAVE_LIBXML2_TRUE@ $(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_kmz_la_SOURCES)
75DIST_SOURCES = $(imp_kmz_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@HAVE_LIBGSF_TRUE@@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_kmz.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@ \
224 @LIBGSF_CFLAGS@
225
226INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
227AM_LDFLAGS = \
228 -no-undefined -module \
229 @PLUGINS_LDFLAGS@
230
231imp_kmz_la_SOURCES = imp_kmz.c
232imp_kmz_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@ \
233 @LIBXML2_LIBS@
234
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_kmz/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_kmz.la: $(imp_kmz_la_OBJECTS) $(imp_kmz_la_DEPENDENCIES)
296 $(LINK) $(am_imp_kmz_la_rpath) $(imp_kmz_la_OBJECTS) $(imp_kmz_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_kmz.Plo@am__quote@
305
306.c.o:
307@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
310@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311@am__fastdepCC_FALSE@ $(COMPILE) -c $<
312
313.c.obj:
314@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
324@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512# Tell versions [3.59,3.63) of GNU make to not export all variables.
513# Otherwise a system limit (for SysV at least) may be exceeded.
514.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c
new file mode 100644
index 0000000..9f44f87
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_kmz/imp_kmz.c
@@ -0,0 +1,168 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/config.h>
24
25#include <locale.h>
26#include <string.h>
27
28#include <libxml/parser.h>
29#include <libxml/tree.h>
30
31#include <g3d/types.h>
32#include <g3d/stream.h>
33#include <g3d/plugins.h>
34
35static gchar * kmz_find_model(xmlDocPtr xmldoc);
36
37static int kml_stream_read_cb(gpointer ctx, gchar *buffer, gint len)
38{
39 return g3d_stream_read((G3DStream *)ctx, buffer, len);
40}
41
42EAPI
43gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
44 G3DModel *model)
45{
46 G3DStream *stream_dockml, *stream_model;
47 gchar *daename;
48 xmlDocPtr xmldoc;
49 gboolean retval = FALSE, from_zip = TRUE;
50
51 setlocale(LC_NUMERIC, "C");
52
53 xmlInitParser();
54
55 stream_dockml = g3d_stream_open_zip_from_stream(stream, "doc.kml");
56 if(stream_dockml == NULL) {
57 g_debug("KMZ: failed to read 'doc.kml' from '%s', trying to "
58 "use input stream as 'doc.kml'", stream->uri);
59 stream_dockml = stream;
60 from_zip = FALSE;
61 }
62
63 xmldoc = xmlReadIO(kml_stream_read_cb, NULL,
64 stream_dockml, "file:///tmp/doc.kml", NULL, 0);
65 if(xmldoc) {
66 g_debug("KMZ: parsed doc.kml");
67
68 daename = kmz_find_model(xmldoc);
69 if(daename != NULL) {
70/*#if DEBUG > 1*/
71 g_debug("KMZ: loading '%s' from '%s'", daename, stream->uri);
72/*#endif*/
73 if(from_zip)
74 stream_model = g3d_stream_open_zip_from_stream(stream,
75 daename);
76 else
77 stream_model = g3d_stream_open_file(daename, "r");
78
79 if(stream_model != NULL) {
80 retval = g3d_plugins_load_model_from_stream(context,
81 stream_model, model);
82 g3d_stream_close(stream_model);
83 } else {
84 g_warning("KMZ: failed to find '%s'%s%s%s", daename,
85 from_zip ? " in '" : "",
86 from_zip ? stream->uri : "",
87 from_zip ? "'" : "");
88 }
89 }
90
91 xmlFreeDoc(xmldoc);
92 }
93
94 if(from_zip)
95 g3d_stream_close(stream_dockml);
96 xmlCleanupParser();
97
98 return retval;
99}
100
101EAPI
102gchar *plugin_description(void)
103{
104 return g_strdup("Keyhole Markup Language model containers.");
105}
106
107EAPI
108gchar **plugin_extensions(void)
109{
110 return g_strsplit("kmz:kml:zip", ":", 0);
111}
112
113/*****************************************************************************/
114
115static xmlNodePtr kmz_find_node(xmlNodePtr parentnode, const gchar *path)
116{
117 gchar *slash, *elem;
118 xmlNodePtr node, pathnode;
119 gboolean last = FALSE;
120
121 slash = strchr(path, '/');
122 if(slash)
123 elem = g_strndup(path, slash - path);
124 else {
125 elem = g_strdup(path);
126 last = TRUE;
127 }
128
129 if(strlen(elem) == 0)
130 return NULL;
131
132 for(node = parentnode->children; node != NULL; node = node->next) {
133 if(node->type != XML_ELEMENT_NODE)
134 continue;
135 if(xmlStrcmp(node->name, (xmlChar *)elem) == 0) {
136 if(last) {
137 g_free(elem);
138 return node;
139 } else {
140 pathnode = kmz_find_node(node, slash + 1);
141 if(pathnode != NULL) {
142 g_free(elem);
143 return pathnode;
144 }
145 }
146 }
147 }
148 g_free(elem);
149 return NULL;
150}
151
152static gchar * kmz_find_model(xmlDocPtr xmldoc)
153{
154 xmlNodePtr rootnode, hrefnode;
155
156 rootnode = xmlDocGetRootElement(xmldoc);
157 if(rootnode == NULL)
158 return NULL;
159
160 hrefnode = kmz_find_node(rootnode, "Folder/Placemark/Model/Link/href");
161 if(hrefnode)
162 return (gchar *)hrefnode->children->content;
163 hrefnode = kmz_find_node(rootnode, "Placemark/Model/Link/href");
164 if(hrefnode)
165 return (gchar *)hrefnode->children->content;
166 return NULL;
167}
168
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile
new file mode 100644
index 0000000..f57ae4d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile
@@ -0,0 +1,519 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ldraw/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_ldraw
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_ldraw_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ldraw_la_OBJECTS = imp_ldraw.lo imp_ldraw_part.lo \
59 imp_ldraw_library.lo imp_ldraw_color.lo imp_ldraw_mpd.lo
60imp_ldraw_la_OBJECTS = $(am_imp_ldraw_la_OBJECTS)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ldraw_la_SOURCES)
74DIST_SOURCES = $(imp_ldraw_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = imp_ldraw.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_ldraw_la_SOURCES = imp_ldraw.c imp_ldraw_misc.h imp_ldraw_types.h \
230 imp_ldraw_part.c imp_ldraw_part.h \
231 imp_ldraw_library.c imp_ldraw_library.h \
232 imp_ldraw_color.c imp_ldraw_color.h \
233 imp_ldraw_mpd.c imp_ldraw_mpd.h
234
235imp_ldraw_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_ldraw.la: $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_DEPENDENCIES)
297 $(LINK) -rpath $(pluginimpdir) $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305include ./$(DEPDIR)/imp_ldraw.Plo
306include ./$(DEPDIR)/imp_ldraw_color.Plo
307include ./$(DEPDIR)/imp_ldraw_library.Plo
308include ./$(DEPDIR)/imp_ldraw_mpd.Plo
309include ./$(DEPDIR)/imp_ldraw_part.Plo
310
311.c.o:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c $<
317
318.c.obj:
319 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321# source='$<' object='$@' libtool=no \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(COMPILE) -c `$(CYGPATH_W) '$<'`
324
325.c.lo:
326 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
328# source='$<' object='$@' libtool=yes \
329# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
330# $(LTCOMPILE) -c -o $@ $<
331
332mostlyclean-libtool:
333 -rm -f *.lo
334
335clean-libtool:
336 -rm -rf .libs _libs
337
338ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
339 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
340 unique=`for i in $$list; do \
341 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
342 done | \
343 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
344 END { if (nonempty) { for (i in files) print i; }; }'`; \
345 mkid -fID $$unique
346tags: TAGS
347
348TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
349 $(TAGS_FILES) $(LISP)
350 tags=; \
351 here=`pwd`; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363ctags: CTAGS
364CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368 unique=`for i in $$list; do \
369 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370 done | \
371 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372 END { if (nonempty) { for (i in files) print i; }; }'`; \
373 test -z "$(CTAGS_ARGS)$$tags$$unique" \
374 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375 $$tags $$unique
376
377GTAGS:
378 here=`$(am__cd) $(top_builddir) && pwd` \
379 && cd $(top_srcdir) \
380 && gtags -i $(GTAGS_ARGS) $$here
381
382distclean-tags:
383 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384
385distdir: $(DISTFILES)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388 list='$(DISTFILES)'; \
389 dist_files=`for file in $$list; do echo $$file; done | \
390 sed -e "s|^$$srcdirstrip/||;t" \
391 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
392 case $$dist_files in \
393 */*) $(MKDIR_P) `echo "$$dist_files" | \
394 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
395 sort -u` ;; \
396 esac; \
397 for file in $$dist_files; do \
398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
399 if test -d $$d/$$file; then \
400 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
403 fi; \
404 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
405 else \
406 test -f $(distdir)/$$file \
407 || cp -p $$d/$$file $(distdir)/$$file \
408 || exit 1; \
409 fi; \
410 done
411check-am: all-am
412check: check-am
413all-am: Makefile $(LTLIBRARIES)
414installdirs:
415 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
416 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
417 done
418install: install-am
419install-exec: install-exec-am
420install-data: install-data-am
421uninstall: uninstall-am
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-am
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-am
443
444clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
445 mostlyclean-am
446
447distclean: distclean-am
448 -rm -rf ./$(DEPDIR)
449 -rm -f Makefile
450distclean-am: clean-am distclean-compile distclean-generic \
451 distclean-tags
452
453dvi: dvi-am
454
455dvi-am:
456
457html: html-am
458
459info: info-am
460
461info-am:
462
463install-data-am: install-pluginimpLTLIBRARIES
464
465install-dvi: install-dvi-am
466
467install-exec-am:
468
469install-html: install-html-am
470
471install-info: install-info-am
472
473install-man:
474
475install-pdf: install-pdf-am
476
477install-ps: install-ps-am
478
479installcheck-am:
480
481maintainer-clean: maintainer-clean-am
482 -rm -rf ./$(DEPDIR)
483 -rm -f Makefile
484maintainer-clean-am: distclean-am maintainer-clean-generic
485
486mostlyclean: mostlyclean-am
487
488mostlyclean-am: mostlyclean-compile mostlyclean-generic \
489 mostlyclean-libtool
490
491pdf: pdf-am
492
493pdf-am:
494
495ps: ps-am
496
497ps-am:
498
499uninstall-am: uninstall-pluginimpLTLIBRARIES
500
501.MAKE: install-am install-strip
502
503.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
504 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
505 distclean-compile distclean-generic distclean-libtool \
506 distclean-tags distdir dvi dvi-am html html-am info info-am \
507 install install-am install-data install-data-am install-dvi \
508 install-dvi-am install-exec install-exec-am install-html \
509 install-html-am install-info install-info-am install-man \
510 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
511 install-ps install-ps-am install-strip installcheck \
512 installcheck-am installdirs maintainer-clean \
513 maintainer-clean-generic mostlyclean mostlyclean-compile \
514 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
515 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
516
517# Tell versions [3.59,3.63) of GNU make to not export all variables.
518# Otherwise a system limit (for SysV at least) may be exceeded.
519.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.am
new file mode 100644
index 0000000..f27cd09
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.am
@@ -0,0 +1,24 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_ldraw.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_ldraw_la_SOURCES = imp_ldraw.c imp_ldraw_misc.h imp_ldraw_types.h \
20 imp_ldraw_part.c imp_ldraw_part.h \
21 imp_ldraw_library.c imp_ldraw_library.h \
22 imp_ldraw_color.c imp_ldraw_color.h \
23 imp_ldraw_mpd.c imp_ldraw_mpd.h
24imp_ldraw_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.in
new file mode 100644
index 0000000..94985b2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/Makefile.in
@@ -0,0 +1,519 @@
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_ldraw
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_ldraw_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ldraw_la_OBJECTS = imp_ldraw.lo imp_ldraw_part.lo \
59 imp_ldraw_library.lo imp_ldraw_color.lo imp_ldraw_mpd.lo
60imp_ldraw_la_OBJECTS = $(am_imp_ldraw_la_OBJECTS)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ldraw_la_SOURCES)
74DIST_SOURCES = $(imp_ldraw_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217pluginimp_LTLIBRARIES = imp_ldraw.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_ldraw_la_SOURCES = imp_ldraw.c imp_ldraw_misc.h imp_ldraw_types.h \
230 imp_ldraw_part.c imp_ldraw_part.h \
231 imp_ldraw_library.c imp_ldraw_library.h \
232 imp_ldraw_color.c imp_ldraw_color.h \
233 imp_ldraw_mpd.c imp_ldraw_mpd.h
234
235imp_ldraw_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_ldraw/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_ldraw.la: $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_DEPENDENCIES)
297 $(LINK) -rpath $(pluginimpdir) $(imp_ldraw_la_OBJECTS) $(imp_ldraw_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_color.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_library.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_mpd.Plo@am__quote@
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ldraw_part.Plo@am__quote@
310
311.c.o:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c $<
317
318.c.obj:
319@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
324
325.c.lo:
326@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
327@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
328@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
329@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
330@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
331
332mostlyclean-libtool:
333 -rm -f *.lo
334
335clean-libtool:
336 -rm -rf .libs _libs
337
338ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
339 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
340 unique=`for i in $$list; do \
341 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
342 done | \
343 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
344 END { if (nonempty) { for (i in files) print i; }; }'`; \
345 mkid -fID $$unique
346tags: TAGS
347
348TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
349 $(TAGS_FILES) $(LISP)
350 tags=; \
351 here=`pwd`; \
352 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
357 END { if (nonempty) { for (i in files) print i; }; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363ctags: CTAGS
364CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
368 unique=`for i in $$list; do \
369 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
370 done | \
371 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
372 END { if (nonempty) { for (i in files) print i; }; }'`; \
373 test -z "$(CTAGS_ARGS)$$tags$$unique" \
374 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
375 $$tags $$unique
376
377GTAGS:
378 here=`$(am__cd) $(top_builddir) && pwd` \
379 && cd $(top_srcdir) \
380 && gtags -i $(GTAGS_ARGS) $$here
381
382distclean-tags:
383 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
384
385distdir: $(DISTFILES)
386 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
387 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388 list='$(DISTFILES)'; \
389 dist_files=`for file in $$list; do echo $$file; done | \
390 sed -e "s|^$$srcdirstrip/||;t" \
391 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
392 case $$dist_files in \
393 */*) $(MKDIR_P) `echo "$$dist_files" | \
394 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
395 sort -u` ;; \
396 esac; \
397 for file in $$dist_files; do \
398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
399 if test -d $$d/$$file; then \
400 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
401 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
402 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
403 fi; \
404 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
405 else \
406 test -f $(distdir)/$$file \
407 || cp -p $$d/$$file $(distdir)/$$file \
408 || exit 1; \
409 fi; \
410 done
411check-am: all-am
412check: check-am
413all-am: Makefile $(LTLIBRARIES)
414installdirs:
415 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
416 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
417 done
418install: install-am
419install-exec: install-exec-am
420install-data: install-data-am
421uninstall: uninstall-am
422
423install-am: all-am
424 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
425
426installcheck: installcheck-am
427install-strip:
428 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
429 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
430 `test -z '$(STRIP)' || \
431 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
432mostlyclean-generic:
433
434clean-generic:
435
436distclean-generic:
437 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
438
439maintainer-clean-generic:
440 @echo "This command is intended for maintainers to use"
441 @echo "it deletes files that may require special tools to rebuild."
442clean: clean-am
443
444clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
445 mostlyclean-am
446
447distclean: distclean-am
448 -rm -rf ./$(DEPDIR)
449 -rm -f Makefile
450distclean-am: clean-am distclean-compile distclean-generic \
451 distclean-tags
452
453dvi: dvi-am
454
455dvi-am:
456
457html: html-am
458
459info: info-am
460
461info-am:
462
463install-data-am: install-pluginimpLTLIBRARIES
464
465install-dvi: install-dvi-am
466
467install-exec-am:
468
469install-html: install-html-am
470
471install-info: install-info-am
472
473install-man:
474
475install-pdf: install-pdf-am
476
477install-ps: install-ps-am
478
479installcheck-am:
480
481maintainer-clean: maintainer-clean-am
482 -rm -rf ./$(DEPDIR)
483 -rm -f Makefile
484maintainer-clean-am: distclean-am maintainer-clean-generic
485
486mostlyclean: mostlyclean-am
487
488mostlyclean-am: mostlyclean-compile mostlyclean-generic \
489 mostlyclean-libtool
490
491pdf: pdf-am
492
493pdf-am:
494
495ps: ps-am
496
497ps-am:
498
499uninstall-am: uninstall-pluginimpLTLIBRARIES
500
501.MAKE: install-am install-strip
502
503.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
504 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
505 distclean-compile distclean-generic distclean-libtool \
506 distclean-tags distdir dvi dvi-am html html-am info info-am \
507 install install-am install-data install-data-am install-dvi \
508 install-dvi-am install-exec install-exec-am install-html \
509 install-html-am install-info install-info-am install-man \
510 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
511 install-ps install-ps-am install-strip installcheck \
512 installcheck-am installdirs maintainer-clean \
513 maintainer-clean-generic mostlyclean mostlyclean-compile \
514 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
515 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
516
517# Tell versions [3.59,3.63) of GNU make to not export all variables.
518# Otherwise a system limit (for SysV at least) may be exceeded.
519.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw.c
new file mode 100644
index 0000000..09a013d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw.c
@@ -0,0 +1,112 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <stdio.h>
25
26#include <g3d/types.h>
27#include <g3d/stream.h>
28#include <g3d/matrix.h>
29#include <g3d/object.h>
30
31#include "imp_ldraw_types.h"
32#include "imp_ldraw_part.h"
33#include "imp_ldraw_library.h"
34#include "imp_ldraw_mpd.h"
35
36static gboolean ldraw_load_simple(G3DStream *stream, G3DModel *model,
37 LDrawLibrary *lib);
38
39
40EAPI
41gpointer plugin_init(G3DContext *context)
42{
43 return ldraw_library_init();
44}
45
46EAPI
47void plugin_cleanup(gpointer user_data)
48{
49 LDrawLibrary *lib = user_data;
50
51 ldraw_library_cleanup(lib);
52}
53
54EAPI
55gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
56 G3DModel *model, gpointer user_data)
57{
58 LDrawLibrary *lib = user_data;
59
60 g_return_val_if_fail(lib != NULL, FALSE);
61 if(lib->libdir == NULL) {
62 g_warning("LDraw: library not found, please set LDRAWDIR");
63 return FALSE;
64 }
65
66 lib->context = context;
67
68 if(g_ascii_strcasecmp(stream->uri + strlen(stream->uri) - 4, ".mpd") == 0)
69 return ldraw_mpd_load(stream, model, lib);
70 else
71 return ldraw_load_simple(stream, model, lib);
72
73 return TRUE;
74}
75
76EAPI
77gchar *plugin_description(void)
78{
79 return g_strdup("LDraw models.");
80}
81
82EAPI
83gchar **plugin_extensions(void)
84{
85 return g_strsplit("ldr:mpd:dat", ":", 0);
86}
87
88/*****************************************************************************/
89
90static gboolean ldraw_load_simple(G3DStream *stream, G3DModel *model,
91 LDrawLibrary *lib)
92{
93 LDrawPart *part;
94 G3DObject *object;
95 G3DFloat m[16];
96
97 part = g_new0(LDrawPart, 1);
98 part->name = g_path_get_basename(stream->uri);
99 part->stream = stream;
100 part->master = TRUE;
101
102 object = ldraw_part_get_object(part, lib);
103 if(object == NULL)
104 return FALSE;
105
106 g3d_matrix_identity(m);
107 g3d_matrix_rotate_xyz(0.0, 0.0, G_PI, m);
108 g3d_object_transform(object, m);
109 model->objects = g_slist_append(model->objects, object);
110 return TRUE;
111}
112
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.c
new file mode 100644
index 0000000..6b76e50
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.c
@@ -0,0 +1,124 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/material.h>
23
24#include "imp_ldraw_types.h"
25
26typedef struct {
27 gint32 id;
28 const gchar *name;
29 G3DFloat r;
30 G3DFloat g;
31 G3DFloat b;
32 G3DFloat a;
33} LDrawColorDef;
34
35static LDrawColorDef ldraw_colors[] = {
36 { 0, "Black", 0.13, 0.13, 0.13, 1.0 },
37 { 1, "Blue", 0.00, 0.20, 0.70, 1.0 },
38 { 2, "Green", 0.00, 0.55, 0.08, 1.0 },
39 { 3, "Teal", 0.00, 0.60, 0.62, 1.0 },
40 { 4, "Red", 0.77, 0.00, 0.15, 1.0 },
41 { 5, "Dark Pink", 0.87, 0.40, 0.58, 1.0 },
42 { 6, "Brown", 0.36, 0.13, 0.00, 1.0 },
43 { 7, "Gray", 0.76, 0.76, 0.76, 1.0 },
44 { 8, "Dark Gray", 0.39, 0.37, 0.32, 1.0 },
45 { 9, "Light Blue", 0.42, 0.67, 0.86, 1.0 },
46 { 10, "Bright Green", 0.42, 0.93, 0.56, 1.0 },
47 { 11, "Cyan", 0.20, 0.65, 0.65, 1.0 },
48 { 12, "Light Red", 1.00, 0.52, 0.48, 1.0 },
49 { 13, "Pink", 0.98, 0.64, 0.78, 1.0 },
50 { 14, "Yellow", 1.00, 0.86, 0.00, 1.0 },
51 { 15, "White", 1.00, 1.00, 1.00, 1.0 },
52
53 { 17, "Light Green", 0.73, 1.00, 0.81, 1.0 },
54 { 18, "Light Yellow", 0.99, 0.91, 0.59, 1.0 },
55 { 20, "Light Violet", 0.84, 0.77, 0.90, 1.0 },
56 { 28, "Dark Tan", 0.77, 0.59, 0.31, 1.0 },
57 { 32, "Trans Gray", 0.39, 0.37, 0.32, 0.9 },
58 { 33, "Trans Blue", 0.00, 0.13, 0.63, 0.9 },
59 { 36, "Trans Red", 0.77, 0.00, 0.15, 0.9 },
60 { 39, "Trans Light Gray", 0.76, 0.76, 0.76, 0.9 }, /* FIXME */
61 { 40, "Trans Gray", 0.39, 0.37, 0.32, 0.9 },
62 { 41, "Trans Light Cyan", 0.68, 0.94, 0.93, 0.95 },
63 { 46, "Trans Yellow", 0.79, 0.69, 0.00, 0.9 },
64 { 47, "Clear (trans white)", 1.00, 1.00, 1.00, 0.9 },
65 { 72, "Dark Stone Gray", 0.39, 0.37, 0.38, 1.0 },
66 { 272, "Dark Blue", 0.00, 0.11, 0.41, 1.0 },
67 { 288, "Dark Green", 0.15, 0.27, 0.17, 1.0 },
68 { 320, "Dark Red", 0.47, 0.00, 0.11, 1.0 },
69 { 334, "Chrome Gold", 0.88, 0.43, 0.07, 1.0 },
70 { 336, "Earth Orange", 0.82, 0.51, 0.02, 1.0 },
71 { 383, "Chrome Silver", 0.88, 0.88, 0.88, 1.0 },
72 { 431, "Light Green", 0.73, 1.00, 0.81, 1.0 },
73 { 463, "Light Red", 1.00, 0.52, 0.48, 1.0 },
74 { 484, "Dark Orange", 0.70, 0.24, 0.00, 1.0 },
75 { 494, "Electric Contact", 0.82, 0.82, 0.82, 1.0 },
76 { 495, "Light Yellow", 0.99, 0.91, 0.59, 1.0 },
77 { 503, "Light Gray", 0.90, 0.89, 0.85, 1.0 },
78
79 { -1, NULL, 0,0,0,0 }
80};
81
82gboolean ldraw_color_init(LDrawLibrary *lib)
83{
84 G3DMaterial *material;
85 gint32 i;
86
87 lib->colordb = g_hash_table_new(g_int_hash, g_int_equal);
88
89 for(i = 0; ldraw_colors[i].id >= 0; i ++) {
90 material = g3d_material_new();
91 material->name = g_strdup(ldraw_colors[i].name);
92 material->r = ldraw_colors[i].r;
93 material->g = ldraw_colors[i].g;
94 material->b = ldraw_colors[i].b;
95 material->a = ldraw_colors[i].a;
96 g_hash_table_insert(lib->colordb, &(ldraw_colors[i].id), material);
97 lib->colorlist = g_slist_append(lib->colorlist, material);
98#if DEBUG > 2
99 g_debug("LDraw: adding color '%s' with id %d",
100 ldraw_colors[i].name, ldraw_colors[i].id);
101#endif
102 }
103 return TRUE;
104}
105
106G3DMaterial *ldraw_color_lookup(LDrawLibrary *lib, guint32 colid)
107{
108 G3DMaterial *material;
109 guint32 fbid = 0;
110
111 /* current color */
112 if(colid == 16)
113 return NULL;
114
115 material = g_hash_table_lookup(lib->colordb, &colid);
116 if(material == NULL) { /* fall back */
117#if DEBUG > 0
118 g_debug("LDraw: failed to lookup color %u", colid);
119#endif
120 material = g_hash_table_lookup(lib->colordb, &fbid);
121 }
122 return material;
123}
124
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.h
new file mode 100644
index 0000000..e5844de
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_color.h
@@ -0,0 +1,30 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LDRAW_COLOR_H
23#define _IMP_LDRAW_COLOR_H
24
25#include "imp_ldraw_types.h"
26
27gboolean ldraw_color_init(LDrawLibrary *lib);
28G3DMaterial *ldraw_color_lookup(LDrawLibrary *lib, guint32 colid);
29
30#endif /* _IMP_LDRAW_COLOR_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.c
new file mode 100644
index 0000000..aa07cdb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.c
@@ -0,0 +1,175 @@
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 <g3d/object.h>
25
26#include "imp_ldraw_types.h"
27#include "imp_ldraw_part.h"
28#include "imp_ldraw_color.h"
29#include "imp_ldraw_misc.h"
30
31static gboolean ldraw_library_add_dir(LDrawLibrary *lib, const gchar *subdir)
32{
33 LDrawPart *part;
34 const gchar *filename;
35 gchar *partdir, *strup;
36 GDir *dir;
37 GError *error;
38 gboolean prefix = FALSE;
39
40 partdir = g_strdup_printf("%s%c%s", lib->libdir, G_DIR_SEPARATOR, subdir);
41 dir = g_dir_open(partdir, 0, &error);
42 if(dir == NULL) {
43 g_warning("LDraw: failed to open directory '%s': %s", partdir,
44 error->message);
45 g_error_free(error);
46 g_free(partdir);
47 return FALSE;
48 }
49
50 if(path_sep(subdir))
51 prefix = TRUE;
52
53 filename = g_dir_read_name(dir);
54 while(filename) {
55 if(g_ascii_strcasecmp(filename + strlen(filename) - 4, ".dat") == 0) {
56#if DEBUG > 3
57 g_debug("LDraw: Library: adding '%s'", filename);
58#endif
59 part = g_new0(LDrawPart, 1);
60 part->filename = g_strdup_printf("%s%c%s",
61 partdir, G_DIR_SEPARATOR, filename);
62 strup = g_ascii_strup(filename, -1);
63 if(prefix)
64 part->name = g_strdup_printf("%s%c%s",
65 path_sep(subdir) + 1,
66 G_DIR_SEPARATOR, strup);
67 else
68 part->name = g_strdup(strup);
69 g_free(strup);
70 g_hash_table_insert(lib->partdb, part->name, part);
71 lib->partlist = g_slist_append(lib->partlist, part);
72 }
73 filename = g_dir_read_name(dir);
74 }
75 g_dir_close(dir);
76 g_free(partdir);
77
78 return TRUE;
79}
80
81LDrawLibrary *ldraw_library_init(void)
82{
83 LDrawLibrary *lib;
84 const gchar *lddir;
85
86 lib = g_new0(LDrawLibrary, 1);
87 lib->partdb = g_hash_table_new(g_str_hash, g_str_equal);
88
89 ldraw_color_init(lib);
90
91 lddir = g_getenv("LDRAWDIR");
92 if(lddir == NULL) /* warning is issued when trying to load a model */
93 return lib;
94
95 lib->libdir = g_strdup(lddir);
96
97 ldraw_library_add_dir(lib, "PARTS");
98 ldraw_library_add_dir(lib, "PARTS" G_DIR_SEPARATOR_S "S");
99 ldraw_library_add_dir(lib, "P");
100 ldraw_library_add_dir(lib, "P" G_DIR_SEPARATOR_S "48");
101
102 return lib;
103}
104
105void ldraw_library_cleanup(LDrawLibrary *lib)
106{
107 GSList *item;
108 LDrawPart *part;
109
110 item = lib->partlist;
111 while(item != NULL) {
112 part = item->data;
113 item = g_slist_remove(item, part);
114 ldraw_part_free(part);
115 }
116 g_hash_table_destroy(lib->partdb);
117 g_free(lib);
118}
119
120void ldraw_library_insert(LDrawLibrary *lib, gchar *name, gpointer data)
121{
122 g_hash_table_insert(lib->partdb, name, data);
123}
124
125G3DObject *ldraw_library_lookup(LDrawLibrary *lib, const gchar *name)
126{
127 LDrawPart *part;
128 gchar *strc;
129
130 part = g_hash_table_lookup(lib->partdb, name);
131 if(part == NULL) {
132 strc = g_ascii_strup(name, -1);
133 g_strdelimit(strc, "/\\", G_DIR_SEPARATOR);
134 part = g_hash_table_lookup(lib->partdb, strc);
135 g_free(strc);
136 }
137#if 0
138 if(part == NULL) {
139 strc = g_ascii_strdown(name, -1);
140 g_strdelimit(strc, "/\\", G_DIR_SEPARATOR);
141 part = g_hash_table_lookup(lib->partdb, strc);
142 g_free(strc);
143 }
144#endif
145 if(part == NULL) {
146 g_warning("LDraw: failed to find '%s' in library", name);
147 return NULL;
148 }
149 if(part->object == NULL) {
150 if(part->stream) {
151 /* MPD loader has a custom stream */
152 part->object = ldraw_part_get_object(part, lib);
153 } else if(part->filename) {
154 /* try to load part from standard library */
155 part->stream = g3d_stream_open_file(part->filename, "r");
156 if(part->stream) {
157 part->object = ldraw_part_get_object(part, lib);
158 g3d_stream_close(part->stream);
159 part->stream = NULL;
160 } else {
161 g_warning("LDraw: failed to open stream for '%s'",
162 part->filename);
163 }
164 } else {
165 g_warning("LDraw: don't know how to open part '%s'", part->name);
166 }
167
168 if(part->object == NULL) {
169 g_warning("LDraw: failed to load part '%s'", part->name);
170 return NULL;
171 }
172 }
173 return g3d_object_duplicate(part->object);
174}
175
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.h
new file mode 100644
index 0000000..39fa0f9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_library.h
@@ -0,0 +1,32 @@
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_LDRAW_LIBRARY_H
23#define _IMP_LDRAW_LIBRARY_H
24
25#include "imp_ldraw_types.h"
26
27LDrawLibrary *ldraw_library_init(void);
28void ldraw_library_cleanup(LDrawLibrary *lib);
29void ldraw_library_insert(LDrawLibrary *lib, gchar *name, gpointer data);
30G3DObject *ldraw_library_lookup(LDrawLibrary *lib, const gchar *name);
31
32#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_misc.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_misc.h
new file mode 100644
index 0000000..16651d5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_misc.h
@@ -0,0 +1,36 @@
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_LDRAW_MISC_H
23#define _IMP_LDRAW_MISC_H
24
25#include <string.h>
26#include <glib.h>
27
28static inline gchar *path_sep(const gchar *text)
29{
30 gchar *p = strchr(text, '/');
31 if(p != NULL)
32 return p;
33 return strchr(text, '\\');
34}
35
36#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.c
new file mode 100644
index 0000000..a699f2a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.c
@@ -0,0 +1,121 @@
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 <stdio.h>
24
25#include <g3d/types.h>
26#include <g3d/matrix.h>
27#include <g3d/object.h>
28
29#include "imp_ldraw_types.h"
30#include "imp_ldraw_part.h"
31#include "imp_ldraw_library.h"
32
33static inline void ldraw_create_subpart(LDrawLibrary *lib, gchar *name,
34 gchar *buffer, GSList **partsp)
35{
36 G3DStream *substream;
37 LDrawPart *part;
38
39#if DEBUG > 2
40 g_debug("LDraw: adding sub-file %s to library", name);
41#endif
42
43 substream = g3d_stream_from_buffer((guint8 *)buffer, strlen(buffer),
44 name, TRUE);
45 if(substream == NULL) {
46 g_warning("LDraw: failed to create stream for %s", name);
47 return;
48 }
49 part = g_new0(LDrawPart, 1);
50 part->name = g_ascii_strup(name, -1);
51 part->stream = substream;
52
53 ldraw_library_insert(lib, part->name, part);
54 *partsp = g_slist_append(*partsp, part);
55}
56
57gboolean ldraw_mpd_load(G3DStream *stream, G3DModel *model,
58 LDrawLibrary *lib)
59{
60 G3DObject *object = NULL;
61 GSList *parts = NULL, *item;
62 LDrawPart *part;
63 gchar buffer[1024], name[256], *streambuf = NULL;
64 gsize size;
65 goffset off;
66 G3DFloat m[16];
67
68 while(!g3d_stream_eof(stream)) {
69 memset(buffer, 0, 1024);
70 g3d_stream_read_line(stream, buffer, 1023);
71 if(strncmp(buffer, "0 FILE ", 7) == 0) {
72 if(streambuf) {
73 ldraw_create_subpart(lib, name, streambuf, &parts);
74 streambuf = NULL;
75 }
76 memset(name, 0, 256);
77 if(sscanf(buffer + 7, "%255s", name) == 1)
78 streambuf = g_strdup("");
79 } else if(strncmp(buffer, "0 NOFILE", 8) == 0) {
80 if(streambuf) {
81 ldraw_create_subpart(lib, name, streambuf, &parts);
82 streambuf = NULL;
83 }
84 break;
85 } else if(streambuf) {
86 /* append line to buffer */
87 size = strlen(buffer) + strlen(streambuf) + 1;
88 off = strlen(streambuf);
89 streambuf = g_realloc(streambuf, size * sizeof(gchar));
90 strcpy(streambuf + off, buffer);
91 }
92 } /* !eof */
93
94 if(streambuf)
95 ldraw_create_subpart(lib, name, streambuf, &parts);
96
97 if(parts) {
98 part = parts->data;
99 part->master = TRUE;
100 object = ldraw_part_get_object(part, lib);
101 if(object != NULL) {
102 g3d_matrix_identity(m);
103 g3d_matrix_rotate_xyz(0.0, 0.0, G_PI, m);
104 g3d_object_transform(object, m);
105 model->objects = g_slist_append(model->objects, object);
106 }
107 }
108
109#if 1
110 /* close open streams */
111 for(item = parts; item != NULL; item = item->next) {
112 part = item->data;
113 if(part->stream) {
114 g3d_stream_close(part->stream);
115 part->stream = NULL;
116 }
117 }
118#endif
119 return (object != NULL);
120}
121
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.h
new file mode 100644
index 0000000..75a5f11
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_mpd.h
@@ -0,0 +1,33 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_LDRAW_MPD_H
23#define _IMP_LDRAW_MPD_H
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27
28#include "imp_ldraw_types.h"
29
30gboolean ldraw_mpd_load(G3DStream *stream, G3DModel *model,
31 LDrawLibrary *lib);
32
33#endif /* _IMP_LDRAW_MPD_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.c
new file mode 100644
index 0000000..9f7f608
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.c
@@ -0,0 +1,291 @@
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 <stdio.h>
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/context.h>
27#include <g3d/stream.h>
28#include <g3d/material.h>
29#include <g3d/matrix.h>
30#include <g3d/object.h>
31
32#include "imp_ldraw_types.h"
33#include "imp_ldraw_part.h"
34#include "imp_ldraw_library.h"
35#include "imp_ldraw_color.h"
36#include "imp_ldraw_misc.h"
37
38static gboolean ldraw_part_parse_meta(G3DObject *object, gchar *buffer)
39{
40 if(object->name == NULL) {
41 object->name = g_strdup(buffer);
42 return TRUE;
43 }
44#if DEBUG > 2
45 g_debug("META: %s", buffer);
46#endif
47 return TRUE;
48}
49
50static void ldraw_part_replace_material(G3DObject *object,
51 G3DMaterial *material)
52{
53 GSList *item;
54 G3DObject *sub;
55 G3DFace *face;
56
57 for(item = object->faces; item != NULL; item = item->next) {
58 face = item->data;
59 if(face->material == NULL)
60 face->material = material;
61 }
62 for(item = object->objects; item != NULL; item = item->next) {
63 sub = item->data;
64 ldraw_part_replace_material(sub, material);
65 }
66}
67
68static gboolean ldraw_part_parse_ref(G3DObject *object, gchar *buffer,
69 LDrawLibrary *lib)
70{
71 G3DObject *subobj;
72 G3DMaterial *material;
73 G3DFloat m[16], x, y, z;
74 guint32 colid;
75 gchar fname[256], *strp;
76
77 g3d_matrix_identity(m);
78 memset(fname, 0, 256);
79
80 if(sscanf(buffer, "%u "
81 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
82 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
83 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " %255s",
84 &colid, &x, &y, &z,
85 m + 0 * 4 + 0, m + 1 * 4 + 0, m + 2 * 4 + 0,
86 m + 0 * 4 + 1, m + 1 * 4 + 1, m + 2 * 4 + 1,
87 m + 0 * 4 + 2, m + 1 * 4 + 2, m + 2 * 4 + 2,
88 fname) == 14) {
89
90 strp = path_sep(fname);
91 if(strp != NULL)
92 strp[0] = G_DIR_SEPARATOR;
93
94 subobj = ldraw_part_from_file(lib, fname);
95 if(!subobj)
96 subobj = ldraw_library_lookup(lib, fname);
97 if(subobj != NULL) {
98 g3d_object_transform(subobj, m);
99 g3d_matrix_identity(m);
100 g3d_matrix_translate(x, y, z, m);
101 g3d_object_transform(subobj, m);
102 if(colid != 16) {
103 material = ldraw_color_lookup(lib, colid);
104 ldraw_part_replace_material(subobj, material);
105 }
106 object->objects = g_slist_append(object->objects, subobj);
107 return TRUE;
108 }
109 }
110#if DEBUG > 1
111 g_warning("LDraw: failed to parse/process reference: %s", buffer);
112#endif
113 return FALSE;
114}
115
116static gboolean ldraw_part_parse_tri(G3DObject *object, gchar *buffer,
117 LDrawLibrary *lib)
118{
119 guint32 off, colid;
120 G3DFace *face;
121
122 off = object->vertex_count;
123 object->vertex_count += 3;
124 object->vertex_data = g_realloc(object->vertex_data,
125 object->vertex_count * 3 * sizeof(G3DFloat));
126 if(sscanf(buffer, "%u "
127 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
128 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
129 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
130 &colid,
131 object->vertex_data + (off + 0) * 3 + 0,
132 object->vertex_data + (off + 0) * 3 + 1,
133 object->vertex_data + (off + 0) * 3 + 2,
134 object->vertex_data + (off + 1) * 3 + 0,
135 object->vertex_data + (off + 1) * 3 + 1,
136 object->vertex_data + (off + 1) * 3 + 2,
137 object->vertex_data + (off + 2) * 3 + 0,
138 object->vertex_data + (off + 2) * 3 + 1,
139 object->vertex_data + (off + 2) * 3 + 2) == 10) {
140
141 face = g_new0(G3DFace, 1);
142 face->material = ldraw_color_lookup(lib, colid);
143 face->vertex_count = 3;
144 face->vertex_indices = g_new0(guint32, 3);
145 face->vertex_indices[0] = off + 0;
146 face->vertex_indices[1] = off + 1;
147 face->vertex_indices[2] = off + 2;
148 object->faces = g_slist_append(object->faces, face);
149 return TRUE;
150 }
151 return FALSE;
152}
153
154static gboolean ldraw_part_parse_quad(G3DObject *object, gchar *buffer,
155 LDrawLibrary *lib)
156{
157 guint32 off, colid;
158 G3DFace *face;
159
160 off = object->vertex_count;
161 object->vertex_count += 4;
162 object->vertex_data = g_realloc(object->vertex_data,
163 object->vertex_count * 3 * sizeof(G3DFloat));
164 if(sscanf(buffer, "%u "
165 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
166 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " "
167 G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
168 &colid,
169 object->vertex_data + (off + 0) * 3 + 0,
170 object->vertex_data + (off + 0) * 3 + 1,
171 object->vertex_data + (off + 0) * 3 + 2,
172 object->vertex_data + (off + 1) * 3 + 0,
173 object->vertex_data + (off + 1) * 3 + 1,
174 object->vertex_data + (off + 1) * 3 + 2,
175 object->vertex_data + (off + 2) * 3 + 0,
176 object->vertex_data + (off + 2) * 3 + 1,
177 object->vertex_data + (off + 2) * 3 + 2,
178 object->vertex_data + (off + 3) * 3 + 0,
179 object->vertex_data + (off + 3) * 3 + 1,
180 object->vertex_data + (off + 3) * 3 + 2) == 13) {
181
182 face = g_new0(G3DFace, 1);
183 face->material = ldraw_color_lookup(lib, colid);
184 face->vertex_count = 4;
185 face->vertex_indices = g_new0(guint32, 4);
186 face->vertex_indices[0] = off + 0;
187 face->vertex_indices[1] = off + 1;
188 face->vertex_indices[2] = off + 2;
189 face->vertex_indices[3] = off + 3;
190 object->faces = g_slist_append(object->faces, face);
191 return TRUE;
192 }
193 return FALSE;
194}
195
196static inline G3DObject *ldraw_part_open_file(LDrawLibrary *lib,
197 const gchar *filename)
198{
199 LDrawPart *part;
200
201 part = g_new0(LDrawPart, 1);
202 part->name = g_strdup(filename);
203 part->stream = g3d_stream_open_file(filename, "r");
204 if(part->stream == NULL) {
205 g_free(part);
206 return NULL;
207 }
208 part->object = ldraw_part_get_object(part, lib);
209 g3d_stream_close(part->stream);
210 part->stream = NULL;
211
212 ldraw_library_insert(lib, part->name, part);
213
214 return part->object;
215}
216
217G3DObject *ldraw_part_from_file(LDrawLibrary *lib, const gchar *filename)
218{
219 G3DObject *object;
220 gchar *path;
221
222 if(g_file_test(filename, G_FILE_TEST_EXISTS))
223 return ldraw_part_open_file(lib, filename);
224 path = g_ascii_strdown(filename, -1);
225 if(g_file_test(path, G_FILE_TEST_EXISTS)) {
226 object = ldraw_part_open_file(lib, path);
227 g_free(path);
228 return object;
229 }
230 g_free(path);
231 return NULL;
232}
233
234G3DObject *ldraw_part_get_object(LDrawPart *part, LDrawLibrary *lib)
235{
236 G3DObject *object;
237 G3DMaterial *material;
238 gchar buffer[1024];
239
240 object = g_new0(G3DObject, 1);
241 material = g3d_material_new();
242 material->name = g_strdup("default material");
243 object->materials = g_slist_append(object->materials, material);
244
245 while(!g3d_stream_eof(part->stream)) {
246 memset(buffer, 0, 1024);
247 g3d_stream_read_line(part->stream, buffer, 1023);
248 g_strstrip(buffer);
249 if(strlen(buffer) == 0)
250 continue;
251 switch(buffer[0] - 0x30) {
252 case 0: /* meta data */
253 ldraw_part_parse_meta(object, buffer + 2);
254 break;
255 case 1: /* sub-file reference */
256 ldraw_part_parse_ref(object, buffer + 2, lib);
257 break;
258 case 2: /* line */
259 break;
260 case 3: /* triangle */
261 ldraw_part_parse_tri(object, buffer + 2, lib);
262 break;
263 case 4: /* quadrilateral */
264 ldraw_part_parse_quad(object, buffer + 2, lib);
265 break;
266 case 5: /* optional line */
267 break;
268 default:
269 g_warning("LDraw: unknown type of line: %s", buffer);
270 break;
271 }
272 if(part->master) {
273 g3d_context_update_progress_bar(lib->context,
274 (G3DFloat)g3d_stream_tell(part->stream) /
275 (G3DFloat)g3d_stream_size(part->stream), TRUE);
276 g3d_context_update_interface(lib->context);
277 }
278 }
279
280 return object;
281}
282
283void ldraw_part_free(LDrawPart *part)
284{
285 if(part->stream)
286 g3d_stream_close(part->stream);
287 if(part->filename)
288 g_free(part->filename);
289 g_free(part->name);
290 g_free(part);
291}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.h
new file mode 100644
index 0000000..8bd758d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_part.h
@@ -0,0 +1,31 @@
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_LDRAW_PART_H
23#define _IMP_LDRAW_PART_H
24
25#include "imp_ldraw_types.h"
26
27G3DObject *ldraw_part_from_file(LDrawLibrary *lib, const gchar *filename);
28G3DObject *ldraw_part_get_object(LDrawPart *part, LDrawLibrary *lib);
29void ldraw_part_free(LDrawPart *part);
30
31#endif /* _IMP_LDRAW_PART_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_types.h
new file mode 100644
index 0000000..56805db
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ldraw/imp_ldraw_types.h
@@ -0,0 +1,48 @@
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_LDRAW_TYPES_H
23#define _IMP_LDRAW_TYPES_H
24
25#include <glib.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29
30typedef struct {
31 gchar *name;
32 gchar *filename;
33 G3DObject *object;
34 G3DStream *stream;
35 gboolean failed;
36 gboolean master;
37} LDrawPart;
38
39typedef struct {
40 G3DContext *context;
41 gchar *libdir;
42 GHashTable *partdb;
43 GSList *partlist;
44 GHashTable *colordb;
45 GSList *colorlist;
46} LDrawLibrary;
47
48#endif /* _IMP_LDRAW_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile
new file mode 100644
index 0000000..9c0164a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_leocad/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_leocad
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_leocad_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_leocad_la_OBJECTS = imp_leocad.lo imp_leocad_library.lo
59imp_leocad_la_OBJECTS = $(am_imp_leocad_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_leocad_la_SOURCES)
73DIST_SOURCES = $(imp_leocad_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_leocad.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_leocad_la_SOURCES = imp_leocad.c imp_leocad_library.h imp_leocad_library.c
229imp_leocad_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_leocad.la: $(imp_leocad_la_OBJECTS) $(imp_leocad_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_leocad_la_OBJECTS) $(imp_leocad_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_leocad.Plo
300include ./$(DEPDIR)/imp_leocad_library.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.am
new file mode 100644
index 0000000..50b500a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_leocad.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_leocad_la_SOURCES = imp_leocad.c imp_leocad_library.h imp_leocad_library.c
20imp_leocad_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.in
new file mode 100644
index 0000000..8549398
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/Makefile.in
@@ -0,0 +1,510 @@
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_leocad
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_leocad_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_leocad_la_OBJECTS = imp_leocad.lo imp_leocad_library.lo
59imp_leocad_la_OBJECTS = $(am_imp_leocad_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_leocad_la_SOURCES)
73DIST_SOURCES = $(imp_leocad_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_leocad.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_leocad_la_SOURCES = imp_leocad.c imp_leocad_library.h imp_leocad_library.c
229imp_leocad_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_leocad/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_leocad.la: $(imp_leocad_la_OBJECTS) $(imp_leocad_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_leocad_la_OBJECTS) $(imp_leocad_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_leocad.Plo@am__quote@
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_leocad_library.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad.c
new file mode 100644
index 0000000..590c342
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad.c
@@ -0,0 +1,496 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdlib.h>
24#include <string.h>
25#include <locale.h>
26
27#include <math.h>
28
29#include <g3d/types.h>
30#include <g3d/context.h>
31#include <g3d/model.h>
32#include <g3d/read.h>
33#include <g3d/vector.h>
34#include <g3d/matrix.h>
35
36#include "imp_leocad_library.h"
37
38static int leocad_load_lcd(G3DStream *stream, G3DModel *model,
39 LeoCadLibrary *library, G3DContext *context);
40
41EAPI
42gpointer plugin_init(G3DContext *context)
43{
44 LeoCadLibrary *library;
45 const gchar *libdir;
46
47 libdir = g_getenv("LEOCAD_LIB");
48 if(libdir == NULL)
49 libdir = "/usr/local/share/leocad";
50
51 library = leocad_library_load(libdir);
52
53 if(library == NULL)
54 {
55#if DEBUG > 1
56 g_warning("LeoCAD: failed to load library");
57#endif
58 return NULL;
59 }
60
61 return library;
62}
63
64EAPI
65void plugin_cleanup(gpointer user_data)
66{
67 LeoCadLibrary *library;
68
69#if DEBUG > 1
70 g_debug("LeoCAD: cleaning up library\n");
71#endif
72
73 library = (LeoCadLibrary *)user_data;
74
75 if(library)
76 leocad_library_free(library);
77}
78
79EAPI
80gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
81 G3DModel *model, gpointer user_data)
82{
83 LeoCadLibrary *library;
84
85 library = (LeoCadLibrary *)user_data;
86
87 if(library == NULL)
88 {
89 g_warning("LeoCAD: library not loaded");
90 return FALSE;
91 }
92
93 setlocale(LC_NUMERIC, "C");
94
95 return leocad_load_lcd(stream, model, library, context);
96}
97
98EAPI
99gchar *plugin_description(G3DContext *context)
100{
101 return g_strdup("LeoCAD models.");
102}
103
104EAPI
105gchar **plugin_extensions(G3DContext *context)
106{
107 return g_strsplit("lcd", ":", 0);
108}
109
110/*
111 * LeoCAD specific stuff
112 */
113
114static gboolean leocad_change_key(guint16 ktime, G3DFloat *param, guint8 ktype,
115 G3DFloat *matrix, G3DFloat *mloc, gboolean *valid_matrix)
116{
117 /* get first frame */
118 if(ktime == 1)
119 {
120 switch(ktype)
121 {
122 case 0x00: /* translation */
123 g3d_matrix_identity(mloc);
124 g3d_matrix_translate(param[0], param[1], param[2], mloc);
125 g3d_matrix_multiply(matrix, mloc, matrix);
126 *valid_matrix = TRUE;
127 break;
128
129 case 0x01: /* rotation */
130 g3d_matrix_rotate((G3DFloat)param[3] * G_PI / 180.0,
131 param[0], param[1], param[2], matrix);
132 g3d_matrix_multiply(mloc, matrix, matrix);
133 *valid_matrix = TRUE;
134 break;
135
136 default:
137 break;
138 }
139 }
140#if DEBUG > 0
141 g_debug("LeoCAD: key 0x%02x (%d): %+2.2f %+2.2f %+2.2f %+2.2f",
142 ktype, ktime, param[0], param[1], param[2], param[3]);
143#endif
144 return TRUE;
145}
146
147static gboolean leocad_load_lcd_piece(G3DStream *stream, G3DModel *model,
148 LeoCadLibrary *library, G3DFloat lcdversion)
149{
150 guint32 i, j, k, nkeys, nobjs;
151 guint16 ktime;
152 guint8 pver, over, ktype, color = 0, len8;
153 gchar name[9];
154 G3DFloat param[4], matrix[16], mloc[16];
155 G3DFloat offx = 0.0, offy = 0.0, offz = 0.0;
156 G3DFloat rotx = 0.0, roty = 0.0, rotz = 0.0;
157 G3DObject *object;
158 G3DMaterial *mat_change;
159 G3DFace *face;
160 GSList *fitem;
161 gboolean valid_matrix = FALSE;
162
163 g3d_matrix_identity(mloc);
164 g3d_matrix_identity(matrix);
165
166 mat_change = leocad_library_get_nth_material(library, 0x10);
167
168 if(lcdversion > 0.4)
169 {
170 pver = g3d_stream_read_int8(stream);
171
172 if(pver >= 9)
173 {
174 /* object stuff */
175 over = g3d_stream_read_int8(stream);
176 nobjs = g3d_stream_read_int32_le(stream);
177 for(i = 0; i < nobjs; i ++)
178 {
179 /* time */
180 ktime = g3d_stream_read_int16_le(stream);
181 /* param */
182 param[0] = g3d_stream_read_float_le(stream);
183 param[1] = g3d_stream_read_float_le(stream);
184 param[2] = g3d_stream_read_float_le(stream);
185 param[3] = g3d_stream_read_float_le(stream);
186 /* type */
187 ktype = g3d_stream_read_int8(stream);
188
189 leocad_change_key(ktime, param, ktype, matrix, mloc,
190 &valid_matrix);
191 }
192
193 if(over == 1)
194 {
195 nobjs = g3d_stream_read_int32_le(stream);
196 for(i = 0; i < nobjs; i ++)
197 {
198 ktime = g3d_stream_read_int16_le(stream);
199 param[0] = g3d_stream_read_float_le(stream);
200 param[1] = g3d_stream_read_float_le(stream);
201 param[2] = g3d_stream_read_float_le(stream);
202 param[3] = g3d_stream_read_float_le(stream);
203 ktype = g3d_stream_read_int8(stream);
204 }
205 }
206 }
207 else /* pver < 9 */
208 {
209 if(pver > 5)
210 {
211 nkeys = g3d_stream_read_int32_le(stream);
212 for(i = 0; i < nkeys; i ++)
213 {
214 /* param */
215 param[0] = g3d_stream_read_float_le(stream);
216 param[1] = g3d_stream_read_float_le(stream);
217 param[2] = g3d_stream_read_float_le(stream);
218 param[3] = g3d_stream_read_float_le(stream);
219
220 /* time */
221 ktime = g3d_stream_read_int16_le(stream);
222
223 /* type */
224 ktype = g3d_stream_read_int8(stream);
225
226 leocad_change_key(ktime, param, ktype, matrix, mloc,
227 &valid_matrix);
228
229 } /* keys */
230
231 nkeys = g3d_stream_read_int32_le(stream);
232 for(i = 0; i < nkeys; i ++)
233 {
234 /* param */
235 param[0] = g3d_stream_read_float_le(stream);
236 param[1] = g3d_stream_read_float_le(stream);
237 param[2] = g3d_stream_read_float_le(stream);
238 param[3] = g3d_stream_read_float_le(stream);
239
240 /* time */
241 ktime = g3d_stream_read_int16_le(stream);
242
243 /* type */
244 ktype = g3d_stream_read_int8(stream);
245 }
246 } /* pver > 5 */
247 else /* pver <= 5 */
248 {
249 if(pver > 2)
250 {
251 nkeys = g3d_stream_read_int8(stream);
252 for(i = 0; i < nkeys; i ++)
253 {
254 if(pver > 3)
255 {
256#if DEBUG > 2
257 g_debug("LeoCAD: matrix\n");
258#endif
259 /* matrix */
260 for(j = 0; j < 4; j ++)
261 for(k = 0; k < 4; k ++)
262 matrix[j * 4 + k] =
263 g3d_stream_read_float_le(stream);
264
265 valid_matrix = TRUE;
266 }
267 else
268 {
269 /* move: 3 x float */
270 offx = g3d_stream_read_float_le(stream);
271 offy = g3d_stream_read_float_le(stream);
272 offz = g3d_stream_read_float_le(stream);
273
274 /* rotate: 3 x float */
275 rotx = g3d_stream_read_float_le(stream);
276 roty = g3d_stream_read_float_le(stream);
277 rotz = g3d_stream_read_float_le(stream);
278 }
279
280 /* time */
281 ktime = g3d_stream_read_int8(stream);
282
283 /* bl? */
284 g3d_stream_read_int32_le(stream);
285 } /* .. nkeys */
286 } /* pver > 2 */
287 else /* pver <= 2 */
288 {
289 /* move: 3 x float */
290 offx = g3d_stream_read_float_le(stream);
291 offy = g3d_stream_read_float_le(stream);
292 offz = g3d_stream_read_float_le(stream);
293
294 /* rotate: 3 x float */
295 rotx = g3d_stream_read_float_le(stream);
296 roty = g3d_stream_read_float_le(stream);
297 rotz = g3d_stream_read_float_le(stream);
298 }
299 } /* pver <= 5 */
300 } /* pver < 9 */
301
302 /* common stuff */
303
304 /* name of piece */
305 g3d_stream_read(stream, name, 9);
306
307 /* color */
308 color = g3d_stream_read_int8(stream);
309
310 if(pver < 5)
311 color = leocad_library_convert_color(color);
312
313#if DEBUG > 0
314 g_debug("LeoCAD: [%d]: '%-8s', color 0x%02x", pver, name, color);
315#endif
316
317 /* step show */
318 g3d_stream_read_int8(stream);
319
320 /* step hide */
321 if(pver > 1)
322 g3d_stream_read_int8(stream);
323
324 if(pver > 5)
325 {
326 /* frame show */
327 g3d_stream_read_int16_le(stream);
328 /* frame hide */
329 g3d_stream_read_int16_le(stream);
330
331 if(pver > 7) {
332 /* state */
333 g3d_stream_read_int8(stream);
334
335 len8 = g3d_stream_read_int8(stream);
336 g3d_stream_skip(stream, len8);
337 } else { /* pver <= 7 */
338 /* hide */
339 g3d_stream_read_int32_le(stream);
340 g3d_stream_skip(stream, 81);
341 } /* pver <= 7 */
342
343 if(pver > 6) {
344 /* group pointer ?! */
345 g3d_stream_read_int32_le(stream);
346 }
347 } /* pver > 5 */
348 else /* pver <= 5 */
349 {
350 /* group pointer ?! */
351 g3d_stream_read_int8(stream);
352
353 /* hide */
354 g3d_stream_read_int8(stream);
355 }
356
357 } /* lcdversion > 0.4 */
358
359 object = leocad_library_get_piece(library, name);
360 if(object == NULL)
361 {
362 g_warning("LeoCAD: failed to load piece '%s'", name);
363 return FALSE;
364 }
365
366 /* matrix */
367 if(!valid_matrix)
368 {
369 /* translation */
370 g3d_matrix_identity(mloc);
371 g3d_matrix_translate(offx, offy, offz, mloc);
372 /* rotation */
373 rotx = (G3DFloat)(rotx * G_PI) / 180.0;
374 roty = (G3DFloat)(roty * G_PI) / 180.0;
375 rotz = (G3DFloat)(rotz * G_PI) / 180.0;
376 g3d_matrix_identity(matrix);
377 g3d_matrix_rotate_xyz(rotx, roty, rotz, matrix);
378
379 /* combine */
380 g3d_matrix_multiply(mloc, matrix, matrix);
381 }
382
383 /*g3d_matrix_dump(matrix);*/
384
385 /* transform vertices */
386 for(i = 0; i < object->vertex_count; i ++)
387 g3d_vector_transform(
388 &(object->vertex_data[i * 3 + 0]),
389 &(object->vertex_data[i * 3 + 1]),
390 &(object->vertex_data[i * 3 + 2]),
391 matrix);
392
393 /* change color */
394 fitem = object->faces;
395 while(fitem)
396 {
397 face = (G3DFace *)fitem->data;
398 if(face->material == mat_change)
399 {
400 face->material = leocad_library_get_nth_material(library, color);
401 }
402
403 if(face->material == NULL)
404 {
405 face->material = leocad_library_get_nth_material(library, 0);
406 }
407
408 fitem = fitem->next;
409 }
410
411 /* add to model object list */
412 model->objects = g_slist_append(model->objects, object);
413
414 return TRUE;
415}
416
417static gboolean leocad_load_lcd(G3DStream *stream, G3DModel *model,
418 LeoCadLibrary *library, G3DContext *context)
419{
420 gchar magic[32];
421 float version;
422 guint32 i, count;
423 G3DFloat r, g, b;
424 G3DMatrix rmatrix[16];
425
426 g3d_stream_read(stream, magic, 32);
427 if(strncmp(magic, "LeoCAD", 6) != 0) {
428 g_warning("LeoCAD: '%s' is not a valid LeoCAD project file",
429 stream->uri);
430 return FALSE;
431 }
432
433 sscanf(&magic[7], "%f", &version);
434
435 if(version > 0.4) {
436#if DEBUG > 0
437 g_debug("LeoCAD: file version %.1f, getting next float", version);
438#endif
439 version = g3d_stream_read_float_le(stream);
440 }
441
442#if DEBUG > 0
443 g_debug("LeoCAD: file version %.1f", version);
444#endif
445
446 r = g3d_stream_read_int8(stream) / 255.0;
447 g = g3d_stream_read_int8(stream) / 255.0;
448 b = g3d_stream_read_int8(stream) / 255.0;
449 /* background color */
450 g3d_context_set_bgcolor(context, r, g, b, 1.0);
451 g3d_stream_read_int8(stream);
452
453 /* view */
454 if(version < 0.6) {
455 /* eye: 3 x double */
456 g3d_stream_skip(stream, 24);
457
458 /* target: 3 x double */
459 g3d_stream_skip(stream, 24);
460 }
461
462 /* angle snap */
463 g3d_stream_read_int32_le(stream);
464 /* snap */
465 g3d_stream_read_int32_le(stream);
466 /* line width */
467 g3d_stream_read_float_le(stream);
468 /* detail */
469 g3d_stream_read_int32_le(stream);
470 /* cur group */
471 g3d_stream_read_int32_le(stream);
472 /* cur color */
473 g3d_stream_read_int32_le(stream);
474 /* action */
475 g3d_stream_read_int32_le(stream);
476 /* cur step */
477 g3d_stream_read_int32_le(stream);
478
479 if(version > 0.8) {
480 /* scene */
481 g3d_stream_read_int32_le(stream);
482 }
483
484 /* piece count */
485 count = g3d_stream_read_int32_le(stream);
486 for(i = 0; i < count; i ++) {
487 /* load piece */
488 leocad_load_lcd_piece(stream, model, library, version);
489 }
490
491 g3d_matrix_identity(rmatrix);
492 g3d_matrix_rotate_xyz(G_PI * -90.0 / 180, 0.0, 0.0, rmatrix);
493 g3d_model_transform(model, rmatrix);
494
495 return TRUE;
496}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.c
new file mode 100644
index 0000000..7336336
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.c
@@ -0,0 +1,633 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/config.h>
24
25#include <string.h>
26
27#include <glib.h>
28
29#include <g3d/types.h>
30#include <g3d/object.h>
31#include <g3d/material.h>
32#include <g3d/stream.h>
33#include <g3d/primitive.h>
34#include <g3d/matrix.h>
35
36#include "imp_leocad_library.h"
37
38#define LEOCAD_FLAG_PIECE_COUNT 0x01
39#define LEOCAD_FLAG_PIECE_LONGDATA 0x02
40#define LEOCAD_FLAG_PIECE_CCW 0x04
41#define LEOCAD_FLAG_PIECE_SMALL 0x10
42#define LEOCAD_FLAG_PIECE_MEDIUM 0x20
43#define LEOCAD_FLAG_LONGDATA_RUNTIME 0x40
44#define LEOCAD_FLAG_PIECE_RENAMED 0x80
45
46#define LEOCAD_TYPE_MESH 0x01
47#define LEOCAD_TYPE_STUD 0x02
48#define LEOCAD_TYPE_STUD2 0x03
49#define LEOCAD_TYPE_STUD3 0x04
50#define LEOCAD_TYPE_STUD4 0x05
51
52static gboolean leocad_library_read_pieces_idx(LeoCadLibrary *library,
53 G3DStream *idx);
54static gboolean leocad_create_materials(LeoCadLibrary *library);
55
56struct LeoCadConnection {
57 guint8 type;
58 G3DFloat center[3];
59 G3DFloat normal[3];
60};
61
62LeoCadLibrary *leocad_library_load(const gchar *libdir)
63{
64 LeoCadLibrary *library;
65 gchar filename[1025];
66 G3DStream *idx, *bin;
67
68 library = g_new0(LeoCadLibrary, 1);
69
70 g_snprintf(filename, 1024, "%s/%s", libdir, "pieces.idx");
71 idx = g3d_stream_open_file(filename, "rb");
72 if(idx == NULL) {
73#if DEBUG > 0
74 g_warning("LeoCAD: failed to read '%s'", filename);
75#endif
76 g_free(library);
77 return NULL;
78 }
79
80 g_snprintf(filename, 1024, "%s/%s", libdir, "pieces.bin");
81 bin = g3d_stream_open_file(filename, "rb");
82 if(bin == NULL) {
83#if DEBUG > 0
84 g_debug("LeoCAD: failed to read '%s'", filename);
85#endif
86 g3d_stream_close(idx);
87 g_free(library);
88 return NULL;
89 }
90
91 library->pieces = g_hash_table_new(g_str_hash, g_str_equal);
92 library->pieces_bin = bin;
93
94 leocad_library_read_pieces_idx(library, idx);
95 g3d_stream_close(idx);
96
97 leocad_create_materials(library);
98
99 return library;
100}
101
102static gboolean leocad_free_piece_cb(gpointer key, gpointer value,
103 gpointer user_data)
104{
105 LeoCadPiece *piece;
106
107 piece = (LeoCadPiece *)value;
108
109#if DEBUG > 3
110 g_debug("D: freeing piece %s", piece->name);
111#endif
112
113 if(piece->name) g_free(piece->name);
114 if(piece->description) g_free(piece->description);
115 if(piece->moved_to) g_free(piece->moved_to);
116
117 if(!(piece->flags & LEOCAD_FLAG_PIECE_RENAMED))
118 if(piece->object) g3d_object_free(piece->object);
119
120 g_free(piece);
121
122 return TRUE;
123}
124
125void leocad_library_free(LeoCadLibrary *library)
126{
127 GSList *mlist;
128 G3DMaterial *material;
129
130 /* remove materials */
131 mlist = library->materials;
132 while(mlist)
133 {
134 material = (G3DMaterial *)mlist->data;
135 mlist = g_slist_remove(mlist, material);
136 g3d_material_free(material);
137 }
138
139 /* remove pieces */
140 g_hash_table_foreach_remove(library->pieces, leocad_free_piece_cb, NULL);
141 g_hash_table_destroy(library->pieces);
142
143 /* free library */
144 g_free(library);
145}
146
147static G3DFloat leocad_read_scaled16(G3DStream *stream, G3DFloat scale)
148{
149 gint16 x;
150
151 x = g3d_stream_read_int16_le(stream);
152
153 return (G3DFloat)(x / scale);
154}
155
156static gboolean leocad_create_materials(LeoCadLibrary *library)
157{
158 const guint8 colors[] = {
159 166, 25, 25, 255, /* 0 - Red */
160 255, 127, 51, 255, /* 1 - Orange */
161 25, 102, 25, 255, /* 2 - Green */
162 76, 153, 76, 255, /* 3 - Light Green */
163 0, 51, 178, 255, /* 4 - Blue */
164 51, 102, 229, 255, /* 5 - Light Blue */
165 204, 204, 0, 255, /* 6 - Yellow */
166 242, 242, 242, 255, /* 7 - White */
167 76, 76, 76, 255, /* 8 - Dark Gray */
168 25, 25, 25, 255, /* 9 - Black */
169 102, 51, 51, 255, /* 10 - Brown */
170 178, 76, 153, 255, /* 11 - Pink */
171 153, 51, 153, 255, /* 12 - Purple */
172 229, 178, 51, 255, /* 13 - Gold */
173 153, 25, 25, 153, /* 14 - Clear Red */
174 255, 153, 76, 153, /* 15 - Clear Orange */
175 25, 102, 25, 153, /* 16 - Clear Green */
176 153, 178, 76, 153, /* 17 - Clear Light Green */
177 0, 0, 127, 153, /* 18 - Clear Blue */
178 51, 102, 229, 153, /* 19 - Clear Light Blue */
179 229, 229, 0, 153, /* 20 - Clear Yellow */
180 229, 229, 229, 153, /* 21 - Clear White */
181 127, 127, 127, 255, /* 22 - Light Gray */
182 204, 204, 178, 255, /* 23 - Tan */
183 153, 102, 102, 255, /* 24 - Light Brown */
184 229, 178, 229, 255, /* 25 - Light Pink */
185 25, 178, 204, 255, /* 26 - Turquoise */
186 204, 204, 204, 255, /* 27 - Silver */
187 51, 51, 51, 255, /* 28 - Edges */
188 229, 76, 102, 255, /* 29 - Selected */
189 102, 76, 229, 255}; /* 30 - Focused */
190
191 G3DMaterial *material;
192 guint32 i;
193
194 for(i = 0; i < 31; i ++)
195 {
196 material = g3d_material_new();
197 material->r = (G3DFloat)colors[i * 4 + 0] / 255.0;
198 material->g = (G3DFloat)colors[i * 4 + 1] / 255.0;
199 material->b = (G3DFloat)colors[i * 4 + 2] / 255.0;
200 material->a = (G3DFloat)colors[i * 4 + 3] / 255.0;
201
202 library->materials = g_slist_append(library->materials, material);
203 }
204
205 return TRUE;
206}
207
208guint8 leocad_library_convert_color(guint8 n)
209{
210 static guint8 converted_colors[20] =
211 { 0,2,4,9,7,6,22,8,10,11,14,16,18,9,21,20,22,8,10,11 };
212
213 if(n >= 20)
214 return 0;
215
216 return converted_colors[n];
217}
218
219G3DMaterial *leocad_library_get_nth_material(LeoCadLibrary *library, guint8 n)
220{
221 return g_slist_nth_data(library->materials, n);
222}
223
224G3DObject *leocad_library_get_piece(LeoCadLibrary *library, const gchar *name)
225{
226 LeoCadPiece *piece;
227 G3DObject *stud;
228 G3DFace *face;
229 guint32 i, j, k, nconn, ngrp, ntex, ngrpconn, ncol, nx, color = 0;
230 guint16 grp_type;
231 G3DFloat scale = 100.0;
232 G3DFloat matrix[16];
233 G3DStream *bin;
234 struct LeoCadConnection *connections;
235
236 piece = g_hash_table_lookup(library->pieces, name);
237
238 if(piece == NULL)
239 {
240 g_warning("LeoCAD: failed to load piece '%s'", name);
241 return NULL;
242 }
243
244 bin = library->pieces_bin;
245
246 if(piece->object == NULL)
247 {
248 piece->object = g_new0(G3DObject, 1);
249 piece->object->name = g_strdup(piece->description);
250
251 g3d_stream_seek(bin, piece->offset_bin, G_SEEK_SET);
252 piece->object->vertex_count = g3d_stream_read_int32_le(bin);
253 piece->object->vertex_data = g_new0(G3DFloat,
254 piece->object->vertex_count * 3);
255
256 if(piece->flags & LEOCAD_FLAG_PIECE_SMALL)
257 scale = 10000.0;
258 else if(piece->flags & LEOCAD_FLAG_PIECE_MEDIUM)
259 scale = 1000.0;
260
261 for(i = 0; i < piece->object->vertex_count; i ++)
262 {
263 piece->object->vertex_data[i * 3 + 0] =
264 leocad_read_scaled16(bin, scale);
265 piece->object->vertex_data[i * 3 + 1] =
266 leocad_read_scaled16(bin, scale);
267 piece->object->vertex_data[i * 3 + 2] =
268 leocad_read_scaled16(bin, scale);
269 }
270#if DEBUG > 1
271 g_debug("LeoCAD: piece '%s': flags 0x%02X", name, piece->flags);
272#endif
273
274#if DEBUG > 1
275 g_debug("LeoCAD: piece '%s': %d vertices",
276 name, piece->object->vertex_count);
277#endif
278
279 /* connections */
280 nconn = g3d_stream_read_int16_le(bin);
281#if DEBUG > 1
282 g_debug("LeoCAD: piece '%s': %d connections", name, nconn);
283#endif
284 connections = g_new0(struct LeoCadConnection, nconn);
285 for(i = 0; i < nconn; i ++)
286 {
287 connections[i].type = g3d_stream_read_int8(bin);
288
289 /* center */
290 connections[i].center[0] = leocad_read_scaled16(bin, scale);
291 connections[i].center[1] = leocad_read_scaled16(bin, scale);
292 connections[i].center[2] = leocad_read_scaled16(bin, scale);
293
294 /* normal */
295 connections[i].normal[0] = g3d_stream_read_int16_le(bin) / (1 << 14);
296 connections[i].normal[1] = g3d_stream_read_int16_le(bin) / (1 << 14);
297 connections[i].normal[2] = g3d_stream_read_int16_le(bin) / (1 << 14);
298 }
299
300 /* textures */
301 ntex = g3d_stream_read_int8(bin);
302#if DEBUG > 0
303 if(ntex > 0)
304 g_debug("LeoCAD: piece '%s': %d textures", name, ntex);
305#endif
306 for(i = 0; i < ntex; i ++)
307 {
308 /* TODO: */
309 }
310
311 /* groups */
312 ngrp = g3d_stream_read_int16_le(bin);
313#if DEBUG > 1
314 g_debug("LeoCAD: piece '%s': %d groups @ 0x%08lx",
315 name, ngrp, ftell(bin));
316#endif
317 for(i = 0; i < ngrp; i ++)
318 {
319 /* group connections */
320 ngrpconn = g3d_stream_read_int8(bin);
321 for(j = 0; j < ngrpconn; j ++)
322 {
323 g3d_stream_read_int16_le(bin);
324 }
325
326#if 0
327 while(1)
328 {
329#endif
330 grp_type = g3d_stream_read_int8(bin);
331 if(grp_type == 0)
332 {
333 break;
334 }
335#if DEBUG > 1
336 g_debug("LeoCAD: piece '%s': grp %d: type 0x%02x @ 0x%08lx",
337 name, i, grp_type, ftell(bin));
338#endif
339
340 switch(grp_type)
341 {
342 case LEOCAD_TYPE_MESH:
343 ncol = g3d_stream_read_int16_le(bin);
344#if DEBUG > 1
345 g_debug("LeoCAD: piece '%s': grp %d: %d colors "
346 "(@ 0x%08lx)", name, i, ncol, ftell(bin));
347#endif
348 for(j = 0; j < ncol; j ++)
349 {
350 /* color code */
351 color = g3d_stream_read_int16_le(bin);
352#if DEBUG > 1
353 g_debug("LeoCAD: piece '%s': grp %d: color 0x%04x",
354 name, i, color);
355#endif
356 /* quads? */
357 nx = g3d_stream_read_int16_le(bin);
358 for(k = 0; k < nx / 4; k ++)
359 {
360 face = g_new0(G3DFace, 1);
361 face->material =
362 g_slist_nth_data(
363 library->materials, color);
364 face->vertex_count = 4;
365 face->vertex_indices = g_new0(guint32, 4);
366
367 face->vertex_indices[0] =
368 g3d_stream_read_int16_le(bin);
369 face->vertex_indices[1] =
370 g3d_stream_read_int16_le(bin);
371 face->vertex_indices[2] =
372 g3d_stream_read_int16_le(bin);
373 face->vertex_indices[3] =
374 g3d_stream_read_int16_le(bin);
375
376 piece->object->faces = g_slist_prepend(
377 piece->object->faces, face);
378 }
379#if DEBUG > 1
380 g_debug("LeoCAD: piece '%s': grp %d: "
381 "quads: %d bytes", name, i, nx * 2);
382#endif
383 nx = g3d_stream_read_int16_le(bin);
384 for(k = 0; k < nx / 3; k ++)
385 {
386 face = g_new0(G3DFace, 1);
387 face->material =
388 g_slist_nth_data(
389 library->materials, color);
390 face->vertex_count = 3;
391 face->vertex_indices = g_new0(guint32, 3);
392
393 face->vertex_indices[0] =
394 g3d_stream_read_int16_le(bin);
395 face->vertex_indices[1] =
396 g3d_stream_read_int16_le(bin);
397 face->vertex_indices[2] =
398 g3d_stream_read_int16_le(bin);
399
400 piece->object->faces = g_slist_prepend(
401 piece->object->faces, face);
402 }
403
404#if DEBUG > 1
405 g_debug("LeoCAD: piece '%s': grp %d: "
406 "triangles: %d bytes",
407 name, i, nx * 2);
408#endif
409 nx = g3d_stream_read_int16_le(bin);
410#if DEBUG > 1
411 g_debug("LeoCAD: piece '%s': grp %d: "
412 "skipping %d bytes @ 0x%08lx",
413 name, i, nx * 2, ftell(bin));
414#endif
415 g3d_stream_skip(bin, nx * 2);
416 }
417 break;
418
419 case LEOCAD_TYPE_STUD:
420 case LEOCAD_TYPE_STUD2:
421 case LEOCAD_TYPE_STUD3:
422 case LEOCAD_TYPE_STUD4:
423 stud = NULL;
424 color = g3d_stream_read_int8(bin);
425#if DEBUG > 0
426 g_debug("LeoCAD: piece '%s': stud 0x%02x",
427 name, grp_type);
428#endif
429 if(grp_type == LEOCAD_TYPE_STUD4)
430 stud = g3d_primitive_tube(
431 0.24, /* inner radius */
432 0.32, /* outer radius */
433 0.16, /* height */
434 16, /* sides */
435 TRUE, FALSE, /* top, bottom */
436 leocad_library_get_nth_material(
437 library, color));
438
439 g3d_matrix_identity(matrix);
440 for(j = 0; j < 12; j ++)
441#if 1
442 matrix[(j / 3) * 4 + (j % 3)] =
443 g3d_stream_read_float_le(bin);
444#else
445 matrix[j] = g3d_stream_read_float_le(bin);
446#endif
447 /* g3d_matrix_dump(matrix); */
448
449 if(stud && piece->object)
450 {
451 g3d_object_transform(stud, matrix);
452 g3d_object_merge(piece->object, stud);
453 stud = NULL;
454 }
455
456 break;
457
458 default:
459#if DEBUG > 1
460 g_debug(
461 "LeoCAD: piece '%s': unhandled group type 0x%02x "
462 "@ 0x%08lx",
463 name, grp_type, ftell(bin));
464#endif
465 break;
466 } /* grp_type */
467#if 0
468 } /* grp_type != 0 */
469#endif
470 g3d_stream_read_int8(bin);
471 } /* ngrp */
472
473 /* generate studs */
474 for(i = 0; i < nconn; i ++)
475 {
476#if DEBUG > 4
477 g_debug("LeoCAD: connection %d: type 0x%02x",
478 i, connections[i].type);
479#endif
480
481 switch(connections[i].type)
482 {
483 case 0:
484 stud = g3d_primitive_cylinder(
485 0.24, /* radius */
486 0.16, /* height */
487 16, /* sides */
488 TRUE, FALSE, /* top, bottom */
489 leocad_library_get_nth_material(library, color));
490 break;
491
492 case 2:
493 stud = g3d_primitive_tube(
494 0.24, /* inner radius */
495 0.32, /* outer radius */
496 0.16, /* height */
497 16, /* sides */
498 FALSE, TRUE, /* top, bottom */
499 leocad_library_get_nth_material(library, color));
500 break;
501
502 default:
503 stud = NULL;
504 break;
505 }
506
507 if(stud)
508 {
509#if DEBUG > 5
510 g_debug("LeoCAD: stud");
511#endif
512 /* transform stud */
513 for(j = 0; j < stud->vertex_count; j ++)
514 {
515#if 0
516 g3d_vector_transform(
517 &(stud->vertices[j * 3 + 0]),
518 &(stud->vertices[j * 3 + 1]),
519 &(stud->vertices[j * 3 + 2]),
520 matrix);
521#endif
522
523 stud->vertex_data[j * 3 + 0] += connections[i].center[0];
524 stud->vertex_data[j * 3 + 1] += connections[i].center[1];
525 stud->vertex_data[j * 3 + 2] += connections[i].center[2];
526 }
527
528 /* merge stud */
529 g3d_object_merge(piece->object, stud);
530 } /* stud */
531 } /* nconn */
532
533 if(connections)
534 g_free(connections);
535 }
536
537 return g3d_object_duplicate(piece->object);
538}
539
540static gboolean leocad_library_read_piece(LeoCadLibrary *library,
541 G3DStream *idx)
542{
543 gchar buffer[128];
544 guint32 i;
545 LeoCadPiece *piece;
546
547 piece = g_new0(LeoCadPiece, 1);
548
549 g3d_stream_read(idx, buffer, 8);
550 buffer[8] = '\0';
551 piece->name = g_strdup(buffer);
552
553 g3d_stream_read(idx, buffer, 64);
554 buffer[64] = '\0';
555 piece->description = g_strdup(buffer);
556
557 for(i = 0; i < 6; i ++)
558 piece->bounding_box[i] = g3d_stream_read_int16_le(idx);
559
560 piece->flags = g3d_stream_read_int8(idx);
561 piece->default_group = g3d_stream_read_int32_le(idx);
562 piece->offset_bin = g3d_stream_read_int32_le(idx);
563 piece->info_size = g3d_stream_read_int32_le(idx);
564
565#if DEBUG > 1
566 g_debug("LeoCAD: %-8s: @ 0x%08x, %s",
567 piece->name, piece->offset_bin, piece->description);
568#endif
569
570 g_hash_table_insert(library->pieces, piece->name, piece);
571
572 return TRUE;
573}
574
575static gboolean leocad_library_read_pieces_idx(LeoCadLibrary *library,
576 G3DStream *idx)
577{
578 gchar magic[32], nameold[9], namenew[9];
579 guint8 version, lastupdate;
580 guint32 nmoved, nbinsize, npieces, i;
581 LeoCadPiece *piece, *newpiece;
582
583 g3d_stream_read(idx, magic, 32);
584 if(strncmp(magic, "LeoCAD piece library index file", 31) != 0)
585 {
586 g_debug("LeoCAD: pieces.idx: wrong magic");
587 return FALSE;
588 }
589
590 version = g3d_stream_read_int8(idx);
591 lastupdate = g3d_stream_read_int8(idx);
592
593 g3d_stream_seek(idx, -8, G_SEEK_END);
594 nmoved = g3d_stream_read_int16_le(idx);
595 nbinsize = g3d_stream_read_int32_le(idx);
596 npieces = g3d_stream_read_int16_le(idx);
597
598 g3d_stream_seek(idx, 34, G_SEEK_SET);
599
600#if DEBUG > 0
601 g_debug("LeoCAD: pieces.idx: version %d, last update %d",
602 version, lastupdate);
603 g_debug("LeoCAD: pieces.idx: %d pieces, %d moves, pieces.bin %d bytes",
604 npieces, nmoved, nbinsize);
605#endif
606
607 for(i = 0; i < npieces; i ++)
608 leocad_library_read_piece(library, idx);
609
610 for(i = 0; i < nmoved; i ++) {
611 memset(nameold, 0, 9);
612 memset(namenew, 0, 9);
613
614 g3d_stream_read(idx, nameold, 8);
615 g3d_stream_read(idx, namenew, 8);
616
617 piece = g_hash_table_lookup(library->pieces, namenew);
618 if(piece) {
619 newpiece = g_new0(LeoCadPiece, 1);
620 memcpy(newpiece, piece, sizeof(LeoCadPiece));
621 newpiece->name = g_strdup(nameold);
622 newpiece->description = g_strdup(piece->description);
623 newpiece->moved_to = g_strdup(namenew);
624 newpiece->object = piece->object;
625 newpiece->flags |= LEOCAD_FLAG_PIECE_RENAMED;
626
627 g_hash_table_insert(library->pieces, piece->name, newpiece);
628 }
629 }
630
631 return TRUE;
632}
633
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h
new file mode 100644
index 0000000..ac7299e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_leocad/imp_leocad_library.h
@@ -0,0 +1,62 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef IMP_LEOCAD_LIBRARY_H
24#define IMP_LEOCAD_LIBRARY_H
25
26#include <stdio.h>
27
28#include <g3d/types.h>
29#include <g3d/stream.h>
30
31typedef struct
32{
33 gchar *name;
34 gchar *description;
35 gchar *moved_to;
36
37 guint16 bounding_box[6];
38 guint8 flags;
39 guint32 default_group;
40 guint32 offset_bin;
41 guint32 info_size;
42
43 G3DObject *object;
44}
45LeoCadPiece;
46
47typedef struct
48{
49 G3DStream *pieces_bin;
50 GHashTable *pieces;
51 GSList *materials;
52}
53LeoCadLibrary;
54
55LeoCadLibrary *leocad_library_load(const gchar *libdir);
56void leocad_library_free(LeoCadLibrary *library);
57guint8 leocad_library_convert_color(guint8 n);
58G3DObject *leocad_library_get_piece(LeoCadLibrary *library, const gchar *name);
59G3DMaterial *leocad_library_get_nth_material(LeoCadLibrary *library, guint8 n);
60
61#endif /* IMP_LEOCAD_LIBRARY_H */
62
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile
new file mode 100644
index 0000000..54c1aef
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_lwo/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_lwo
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_lwo_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_lwo_la_OBJECTS = imp_lwo.lo imp_lwo_callbacks.lo
59imp_lwo_la_OBJECTS = $(am_imp_lwo_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_lwo_la_SOURCES)
73DIST_SOURCES = $(imp_lwo_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_lwo.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_lwo_la_SOURCES = imp_lwo.c imp_lwo.h imp_lwo_chunks.h \
229 imp_lwo_callbacks.c imp_lwo_callbacks.h
230
231imp_lwo_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_lwo.la: $(imp_lwo_la_OBJECTS) $(imp_lwo_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_lwo_la_OBJECTS) $(imp_lwo_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_lwo.Plo
302include ./$(DEPDIR)/imp_lwo_callbacks.Plo
303
304.c.o:
305 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307# source='$<' object='$@' libtool=no \
308# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
309# $(COMPILE) -c $<
310
311.c.obj:
312 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314# source='$<' object='$@' libtool=no \
315# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
316# $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321# source='$<' object='$@' libtool=yes \
322# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
323# $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.am
new file mode 100644
index 0000000..8eba1a1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.am
@@ -0,0 +1,21 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_lwo.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_lwo_la_SOURCES = imp_lwo.c imp_lwo.h imp_lwo_chunks.h \
20 imp_lwo_callbacks.c imp_lwo_callbacks.h
21imp_lwo_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.in
new file mode 100644
index 0000000..db7b118
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/Makefile.in
@@ -0,0 +1,512 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_lwo
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_lwo_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_lwo_la_OBJECTS = imp_lwo.lo imp_lwo_callbacks.lo
59imp_lwo_la_OBJECTS = $(am_imp_lwo_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_lwo_la_SOURCES)
73DIST_SOURCES = $(imp_lwo_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_lwo.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_lwo_la_SOURCES = imp_lwo.c imp_lwo.h imp_lwo_chunks.h \
229 imp_lwo_callbacks.c imp_lwo_callbacks.h
230
231imp_lwo_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_lwo/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_lwo.la: $(imp_lwo_la_OBJECTS) $(imp_lwo_la_DEPENDENCIES)
293 $(LINK) -rpath $(pluginimpdir) $(imp_lwo_la_OBJECTS) $(imp_lwo_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_lwo.Plo@am__quote@
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_lwo_callbacks.Plo@am__quote@
303
304.c.o:
305@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
306@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
309@am__fastdepCC_FALSE@ $(COMPILE) -c $<
310
311.c.obj:
312@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
313@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
314@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
316@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
317
318.c.lo:
319@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
320@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
323@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
324
325mostlyclean-libtool:
326 -rm -f *.lo
327
328clean-libtool:
329 -rm -rf .libs _libs
330
331ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
333 unique=`for i in $$list; do \
334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
335 done | \
336 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
337 END { if (nonempty) { for (i in files) print i; }; }'`; \
338 mkid -fID $$unique
339tags: TAGS
340
341TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
342 $(TAGS_FILES) $(LISP)
343 tags=; \
344 here=`pwd`; \
345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
346 unique=`for i in $$list; do \
347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
348 done | \
349 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
350 END { if (nonempty) { for (i in files) print i; }; }'`; \
351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
352 test -n "$$unique" || unique=$$empty_fix; \
353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
354 $$tags $$unique; \
355 fi
356ctags: CTAGS
357CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
358 $(TAGS_FILES) $(LISP)
359 tags=; \
360 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
361 unique=`for i in $$list; do \
362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
363 done | \
364 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
366 test -z "$(CTAGS_ARGS)$$tags$$unique" \
367 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
368 $$tags $$unique
369
370GTAGS:
371 here=`$(am__cd) $(top_builddir) && pwd` \
372 && cd $(top_srcdir) \
373 && gtags -i $(GTAGS_ARGS) $$here
374
375distclean-tags:
376 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
377
378distdir: $(DISTFILES)
379 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 list='$(DISTFILES)'; \
382 dist_files=`for file in $$list; do echo $$file; done | \
383 sed -e "s|^$$srcdirstrip/||;t" \
384 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
385 case $$dist_files in \
386 */*) $(MKDIR_P) `echo "$$dist_files" | \
387 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
388 sort -u` ;; \
389 esac; \
390 for file in $$dist_files; do \
391 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
392 if test -d $$d/$$file; then \
393 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
394 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
395 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
396 fi; \
397 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
398 else \
399 test -f $(distdir)/$$file \
400 || cp -p $$d/$$file $(distdir)/$$file \
401 || exit 1; \
402 fi; \
403 done
404check-am: all-am
405check: check-am
406all-am: Makefile $(LTLIBRARIES)
407installdirs:
408 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
409 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
410 done
411install: install-am
412install-exec: install-exec-am
413install-data: install-data-am
414uninstall: uninstall-am
415
416install-am: all-am
417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
418
419installcheck: installcheck-am
420install-strip:
421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
423 `test -z '$(STRIP)' || \
424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
425mostlyclean-generic:
426
427clean-generic:
428
429distclean-generic:
430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
431
432maintainer-clean-generic:
433 @echo "This command is intended for maintainers to use"
434 @echo "it deletes files that may require special tools to rebuild."
435clean: clean-am
436
437clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
438 mostlyclean-am
439
440distclean: distclean-am
441 -rm -rf ./$(DEPDIR)
442 -rm -f Makefile
443distclean-am: clean-am distclean-compile distclean-generic \
444 distclean-tags
445
446dvi: dvi-am
447
448dvi-am:
449
450html: html-am
451
452info: info-am
453
454info-am:
455
456install-data-am: install-pluginimpLTLIBRARIES
457
458install-dvi: install-dvi-am
459
460install-exec-am:
461
462install-html: install-html-am
463
464install-info: install-info-am
465
466install-man:
467
468install-pdf: install-pdf-am
469
470install-ps: install-ps-am
471
472installcheck-am:
473
474maintainer-clean: maintainer-clean-am
475 -rm -rf ./$(DEPDIR)
476 -rm -f Makefile
477maintainer-clean-am: distclean-am maintainer-clean-generic
478
479mostlyclean: mostlyclean-am
480
481mostlyclean-am: mostlyclean-compile mostlyclean-generic \
482 mostlyclean-libtool
483
484pdf: pdf-am
485
486pdf-am:
487
488ps: ps-am
489
490ps-am:
491
492uninstall-am: uninstall-pluginimpLTLIBRARIES
493
494.MAKE: install-am install-strip
495
496.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
497 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
498 distclean-compile distclean-generic distclean-libtool \
499 distclean-tags distdir dvi dvi-am html html-am info info-am \
500 install install-am install-data install-data-am install-dvi \
501 install-dvi-am install-exec install-exec-am install-html \
502 install-html-am install-info install-info-am install-man \
503 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
504 install-ps install-ps-am install-strip installcheck \
505 installcheck-am installdirs maintainer-clean \
506 maintainer-clean-generic mostlyclean mostlyclean-compile \
507 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
508 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
509
510# Tell versions [3.59,3.63) of GNU make to not export all variables.
511# Otherwise a system limit (for SysV at least) may be exceeded.
512.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c
new file mode 100644
index 0000000..d01b817
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.c
@@ -0,0 +1,216 @@
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 * imp_lwo.c - LightWave import plugin
25 *
26 * (C) 2005,2006 Markus Dahms
27 *
28 * based on gtkglarea example viewlw:
29 * Copyright (C) 1998 Janne Löf <jlof@mail.student.oulu.fi>
30 */
31
32#include <string.h>
33
34#include <g3d/types.h>
35#include <g3d/context.h>
36#include <g3d/stream.h>
37#include <g3d/material.h>
38#include <g3d/iff.h>
39
40#define LW_MAX_POINTS 200
41#define LW_MAX_NAME_LEN 500
42#define LW_F_LWO2 1
43
44#include "imp_lwo.h"
45#include "imp_lwo_chunks.h"
46
47/*****************************************************************************/
48/* plugin interface */
49/*****************************************************************************/
50
51static void lwo_fix_texfaces(G3DModel *model);
52
53EAPI
54gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
55 G3DModel *model, gpointer user_data)
56{
57 LwoObject *obj;
58 G3DMaterial *material;
59 guint32 id;
60 gsize len;
61 G3DIffGlobal *global;
62 G3DIffLocal *local;
63
64 if(!g3d_iff_check(stream, &id, &len))
65 return FALSE;
66
67 if((id != G3D_IFF_MKID('L','W','O','B')) &&
68 (id != G3D_IFF_MKID('L','W','O','2'))) {
69 g_warning("'%s' is not a LightWave object", stream->uri);
70 return FALSE;
71 }
72
73 obj = g_new0(LwoObject, 1);
74
75 global = g_new0(G3DIffGlobal, 1);
76 global->stream = stream;
77 global->context = context;
78 global->model = model;
79 if(id == G3D_IFF_MKID('L','W','O','2'))
80 global->flags |= LWO_FLAG_LWO2;
81 global->user_data = obj;
82
83 local = g_new0(G3DIffLocal, 1);
84 local->id = id;
85 local->nb = len;
86
87 material = g3d_material_new();
88 material->name = g_strdup("fallback material");
89 model->materials = g_slist_append(model->materials, material);
90
91 g3d_iff_read_ctnr(global, local, lwo_chunks,
92 G3D_IFF_PAD2 | G3D_IFF_SUBCHUNK_LEN16);
93
94 lwo_fix_texfaces(model);
95
96 /* cleanup */
97 if(obj->ntags)
98 g_strfreev(obj->tags);
99
100 if(obj->nclips)
101 {
102 g_free(obj->clips);
103 g_strfreev(obj->clipfiles);
104 }
105
106 if(obj->tex_vertices)
107 g_free(obj->tex_vertices);
108
109 g_free(obj);
110
111 g_free(local);
112 g_free(global);
113
114 g3d_context_update_progress_bar(context, 0.0, FALSE);
115
116 return TRUE;
117}
118
119EAPI
120gchar *plugin_description(G3DContext *context)
121{
122 return g_strdup("LightWave models.\n"
123 "Author: Markus Dahms.");
124}
125
126EAPI
127gchar **plugin_extensions(G3DContext *context)
128{
129 return g_strsplit("lwo:lwb:lw", ":", 0);
130}
131
132/*****************************************************************************/
133/* private */
134/*****************************************************************************/
135
136G3DObject *lwo_create_object(G3DStream *stream, G3DModel *model, guint32 flags)
137{
138 G3DObject *object = g_new0(G3DObject, 1);
139 object->name = g_strdup_printf("LWO%c object @ 0x%08x",
140 (flags & LW_F_LWO2) ? '2' : 'B', (guint32)g3d_stream_tell(stream) - 8);
141 model->objects = g_slist_append(model->objects, object);
142
143#if 0
144 /* LWO files should have correct faces */
145 model->glflags &= ~G3D_FLAG_GL_ALLTWOSIDE;
146#endif
147
148 return object;
149}
150
151/*****************************************************************************/
152/* LWO specific */
153/*****************************************************************************/
154
155gint lwo_read_string(G3DStream *stream, char *s)
156{
157 gint c;
158 gint cnt = 0;
159 do {
160 c = g3d_stream_read_int8(stream);
161 if (cnt < LW_MAX_NAME_LEN)
162 s[cnt] = c;
163 else
164 s[LW_MAX_NAME_LEN-1] = 0;
165 cnt++;
166 } while (c != 0);
167 /* if length of string (including \0) is odd skip another byte */
168 if (cnt%2) {
169 g3d_stream_read_int8(stream);
170 cnt++;
171 }
172 return cnt;
173}
174
175guint32 lwo_read_vx(G3DStream *stream, guint *index)
176{
177 *index = g3d_stream_read_int16_be(stream);
178 if((*index & 0xFF00) == 0xFF00) {
179 *index <<= 16;
180 *index += g3d_stream_read_int16_be(stream);
181 *index &= 0x00FFFFFF;
182 return 4;
183 } else {
184 return 2;
185 }
186}
187
188static void lwo_fix_texfaces(G3DModel *model)
189{
190 GSList *olist, *flist;
191 G3DObject *object;
192 G3DFace *face;
193
194 olist = model->objects;
195 while(olist)
196 {
197 object = (G3DObject *)olist->data;
198 olist = olist->next;
199
200 flist = object->faces;
201 while(flist)
202 {
203 face = (G3DFace *)flist->data;
204 flist = flist->next;
205
206 if(face->flags & G3D_FLAG_FAC_TEXMAP)
207 {
208 face->tex_image = face->material->tex_image;
209 if(face->tex_image == NULL)
210 {
211 face->flags &= ~G3D_FLAG_FAC_TEXMAP;
212 }
213 }
214 }
215 }
216}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h
new file mode 100644
index 0000000..84aba2d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo.h
@@ -0,0 +1,48 @@
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_LWO_H
23#define _IMP_LWO_H
24
25#include <stdio.h>
26#include <g3d/types.h>
27
28#define LWO_FLAG_LWO2 (1 << 0)
29
30typedef struct {
31 gint32 ntags;
32 gchar **tags;
33
34 gint32 nclips;
35 guint32 *clips;
36 gchar **clipfiles;
37
38 G3DFloat *tex_vertices;
39
40 G3DObject *object;
41} LwoObject;
42
43G3DObject *lwo_create_object(G3DStream *stream, G3DModel *model,
44 guint32 flags);
45gint lwo_read_string(G3DStream *stream, gchar *s);
46guint32 lwo_read_vx(G3DStream *stream, guint *index);
47
48#endif /* _IMP_LWO_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.c
new file mode 100644
index 0000000..165c3aa
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.c
@@ -0,0 +1,584 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <glib.h>
26
27#include <g3d/context.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30#include <g3d/texture.h>
31#include <g3d/iff.h>
32#include <g3d/debug.h>
33
34#include "imp_lwo.h"
35
36gboolean lwo_cb_CLIP(G3DIffGlobal *global, G3DIffLocal *local)
37{
38 LwoObject *obj;
39 guint32 index;
40
41 obj = (LwoObject *)global->user_data;
42 g_return_val_if_fail(obj != NULL, FALSE);
43
44 if(!local->finalize)
45 {
46 index = g3d_stream_read_int32_be(global->stream);
47 local->nb -= 4;
48
49 obj->nclips ++;
50 obj->clips = g_realloc(obj->clips, obj->nclips * sizeof(guint32));
51 obj->clipfiles = g_realloc(obj->clipfiles,
52 (obj->nclips + 1) * sizeof(gchar *));
53
54 obj->clips[obj->nclips - 1] = index;
55 obj->clipfiles[obj->nclips - 1] = g_strdup("undef");
56 obj->clipfiles[obj->nclips] = NULL;
57 }
58
59 return TRUE;
60}
61
62gboolean lwo_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local)
63{
64 G3DMaterial *material;
65
66 material = (G3DMaterial *)local->object;
67 g_return_val_if_fail(material != NULL, FALSE);
68
69 if(global->flags & LWO_FLAG_LWO2)
70 {
71 material->r = g3d_stream_read_float_be(global->stream);
72 material->g = g3d_stream_read_float_be(global->stream);
73 material->b = g3d_stream_read_float_be(global->stream);
74 local->nb -= 12;
75 g3d_stream_read_int16_be(global->stream);
76 local->nb -= 2;
77 }
78 else
79 {
80 material->r = g3d_stream_read_int8(global->stream) / 255.0;
81 material->g = g3d_stream_read_int8(global->stream) / 255.0;
82 material->b = g3d_stream_read_int8(global->stream) / 255.0;
83 g3d_stream_read_int8(global->stream);
84 local->nb -= 4;
85 }
86
87 return TRUE;
88}
89
90/* image index */
91gboolean lwo_cb_IMAG(G3DIffGlobal *global, G3DIffLocal *local)
92{
93 LwoObject *obj;
94 G3DMaterial *material;
95 guint32 index, i;
96
97 obj = (LwoObject *)global->user_data;
98 g_return_val_if_fail(obj != NULL, FALSE);
99
100 material = (G3DMaterial *)local->object;
101 g_return_val_if_fail(material != NULL, FALSE);
102
103 local->nb -= lwo_read_vx(global->stream, &index);
104
105 for(i = 0; i < obj->nclips; i ++)
106 {
107 if(obj->clips[i] == index)
108 break;
109 }
110
111 if((i < obj->nclips) && (obj->clips[i] == index))
112 {
113 material->tex_image = g3d_texture_load_cached(
114 global->context, global->model, obj->clipfiles[i]);
115 }
116
117 return TRUE;
118}
119
120/* points */
121gboolean lwo_cb_PNTS(G3DIffGlobal *global, G3DIffLocal *local)
122{
123 LwoObject *obj;
124 G3DObject *object;
125 gint32 i, off;
126
127 obj = (LwoObject *)global->user_data;
128 g_return_val_if_fail(obj != NULL, FALSE);
129
130 if(global->flags & LWO_FLAG_LWO2) {
131 object = lwo_create_object(global->stream, global->model,
132 global->flags);
133 obj->object = object;
134
135 if(obj->tex_vertices) {
136 g_free(obj->tex_vertices);
137 obj->tex_vertices = NULL;
138 }
139 } else {
140 object = (G3DObject *)obj->object;
141 if(object == NULL) {
142 object = lwo_create_object(global->stream, global->model,
143 global->flags);
144 obj->object = object;
145 }
146 }
147 off = object->vertex_count;
148 object->vertex_count += (local->nb / 12);
149 g_return_val_if_fail(object->vertex_count >= 3, FALSE);
150
151 object->vertex_data = g_realloc(object->vertex_data,
152 sizeof(G3DFloat) * object->vertex_count * 3);
153
154 for(i = off; i < object->vertex_count; i ++) {
155 object->vertex_data[i * 3 + 0] =
156 -g3d_stream_read_float_be(global->stream);
157 object->vertex_data[i * 3 + 1] =
158 g3d_stream_read_float_be(global->stream);
159 object->vertex_data[i * 3 + 2] =
160 g3d_stream_read_float_be(global->stream);
161 local->nb -= 12;
162 }
163 return TRUE;
164}
165
166/* polygons */
167gboolean lwo_cb_POLS(G3DIffGlobal *global, G3DIffLocal *local)
168{
169 LwoObject *obj;
170 G3DObject *object;
171 G3DFace *face;
172 gboolean skip_face;
173 guint32 type;
174 gint32 n = 0, i, nmat, det_cnt, cnt;
175 gint16 index;
176 gchar *tmp;
177
178 obj = (LwoObject *)global->user_data;
179 g_return_val_if_fail(obj != NULL, FALSE);
180
181 object = (G3DObject *)obj->object;
182 g_return_val_if_fail(object != NULL, FALSE);
183
184 if(global->flags & LWO_FLAG_LWO2) {
185 type = g3d_stream_read_int32_be(global->stream);
186 local->nb -= 4;
187
188 switch(type) {
189 case G3D_IFF_MKID('F', 'A', 'C', 'E'):
190 case G3D_IFF_MKID('P', 'T', 'C', 'H'):
191 break;
192 default:
193 tmp = g3d_iff_id_to_text(type);
194 g_warning("[LWO] unhandled polygon type %s", tmp);
195 g_free(tmp);
196 return FALSE;
197 }
198 }
199
200 while(local->nb > 0) {
201 n ++;
202 skip_face = FALSE;
203 face = g_new0(G3DFace, 1);
204 face->vertex_count = g3d_stream_read_int16_be(global->stream);
205 local->nb -= 2;
206
207 if(global->flags & LWO_FLAG_LWO2)
208 face->vertex_count &= 0x03FF;
209
210 face->vertex_indices = g_new0(guint32, face->vertex_count);
211
212 if(obj->tex_vertices) {
213 face->flags |= G3D_FLAG_FAC_TEXMAP;
214 face->tex_vertex_count = face->vertex_count;
215 face->tex_vertex_data = g_new0(G3DFloat, face->tex_vertex_count * 2);
216 }
217
218 for(i = 0; i < face->vertex_count; i ++) {
219 if(global->flags & LWO_FLAG_LWO2) {
220 local->nb -= lwo_read_vx(global->stream,
221 &(face->vertex_indices[i]));
222 } else {
223 index = g3d_stream_read_int16_be(global->stream);
224 local->nb -= 2;
225 if(index < 0) {
226 skip_face = TRUE;
227 } else
228 face->vertex_indices[i] = index;
229 }
230
231 if(obj->tex_vertices) {
232 face->tex_vertex_data[i * 2 + 0] =
233 obj->tex_vertices[face->vertex_indices[i] * 2 + 0];
234 face->tex_vertex_data[i * 2 + 1] =
235 obj->tex_vertices[face->vertex_indices[i] * 2 + 1];
236 }
237 } /* i: 0..face->vertex_count */
238
239 if(!(global->flags & LWO_FLAG_LWO2)) {
240 nmat = g3d_stream_read_int16_be(global->stream);
241 local->nb -= 2;
242
243 if(nmat < 0) {
244 /* detail polygons, skipped */
245 det_cnt = g3d_stream_read_int16_be(global->stream);
246 local->nb -= 2;
247 nmat *= -1;
248 while(det_cnt-- > 0) {
249 cnt = g3d_stream_read_int16_be(global->stream);
250 local->nb -= 2;
251 g3d_stream_skip(global->stream, cnt * 2 + 2);
252 local->nb -= cnt * 2 + 2;
253 }
254 } else if(nmat == 0) {
255 nmat = 1;
256 }
257
258 face->material = g_slist_nth_data(global->model->materials, nmat);
259
260 if(face->material == NULL) {
261#if 0
262 g_warning("[LWO] face->material is NULL (#%d)\n", nmat - 1);
263#endif
264 face->material = g_slist_nth_data(global->model->materials, 0);
265 }
266 } /* !LWO2 */ else {
267 face->material = g_slist_nth_data(global->model->materials, 0);
268 } /* LWO2 */
269
270 if(skip_face || (face->vertex_count < 3)) {
271 if(face->tex_vertex_data)
272 g_free(face->tex_vertex_data);
273 g_free(face->vertex_indices);
274 g_free(face);
275 } else {
276 object->faces = g_slist_prepend(object->faces, face);
277 }
278
279 g3d_context_update_interface(global->context);
280 } /* local->nb > 0 */
281
282 return TRUE;
283}
284
285/* poly tag mapping */
286gboolean lwo_cb_PTAG(G3DIffGlobal *global, G3DIffLocal *local)
287{
288 LwoObject *obj;
289 G3DObject *object;
290 G3DMaterial *material, *tmat;
291 G3DFace *face;
292 GSList *mlist;
293 gint32 id, fmax;
294 guint32 poly, tag;
295
296 obj = (LwoObject *)global->user_data;
297 g_return_val_if_fail(obj != NULL, FALSE);
298
299 object = (G3DObject *)obj->object;
300 g_return_val_if_fail(object != NULL, FALSE);
301
302 id = g3d_stream_read_int32_be(global->stream);
303 local->nb -= 4;
304
305 if(id != G3D_IFF_MKID('S','U','R','F'))
306 return FALSE;
307
308 fmax = g_slist_length(object->faces) - 1;
309
310 while(local->nb > 0)
311 {
312 local->nb -= lwo_read_vx(global->stream, &poly);
313 tag = g3d_stream_read_int16_be(global->stream);
314 local->nb -= 2;
315
316 face = (G3DFace *)g_slist_nth_data(object->faces, fmax - poly);
317 g_return_val_if_fail(face != NULL, FALSE);
318
319 if(tag > obj->ntags)
320 {
321 g_warning("[LWO] tag %d not listed (%d tags)", tag, obj->ntags);
322 continue;
323 }
324
325 material = NULL;
326 mlist = global->model->materials;
327 while(mlist != NULL)
328 {
329 tmat = (G3DMaterial*)mlist->data;
330 if(strcmp(obj->tags[tag], tmat->name) == 0)
331 {
332 material = tmat;
333 break;
334 }
335 mlist = mlist->next;
336 }
337
338 if(material)
339 face->material = material;
340 else
341 g_warning("[LWO] unknown material tag %s", obj->tags[tag]);
342 }
343
344 return TRUE;
345}
346
347/* specularity */
348gboolean lwo_cb_SPEC(G3DIffGlobal *global, G3DIffLocal *local)
349{
350 G3DMaterial *material;
351 GLfloat tmpf;
352
353 material = (G3DMaterial *)local->object;
354 g_return_val_if_fail(material != NULL, FALSE);
355
356 if(global->flags & LWO_FLAG_LWO2)
357 {
358 tmpf = 1.0 - g3d_stream_read_float_be(global->stream);
359 local->nb -= 4;
360 }
361 else
362 {
363 tmpf = 1.0 - (GLfloat)g3d_stream_read_int16_be(global->stream) / 256.0;
364 local->nb -= 2;
365 }
366
367 material->specular[0] = material->r * tmpf;
368 material->specular[1] = material->g * tmpf;
369 material->specular[2] = material->b * tmpf;
370
371 return TRUE;
372}
373
374/* surfaces */
375gboolean lwo_cb_SRFS(G3DIffGlobal *global, G3DIffLocal *local)
376{
377 LwoObject *obj;
378 G3DMaterial *material;
379 gchar buffer[512];
380
381 obj = (LwoObject *)global->user_data;
382 g_return_val_if_fail(obj != NULL, FALSE);
383
384 while(local->nb > 0)
385 {
386 material = g3d_material_new();
387 local->nb -= lwo_read_string(global->stream, buffer);
388 material->name = g_strdup(buffer);
389 global->model->materials = g_slist_append(global->model->materials,
390 material);
391
392 }
393
394 return TRUE;
395}
396
397/* still image */
398gboolean lwo_cb_STIL(G3DIffGlobal *global, G3DIffLocal *local)
399{
400 LwoObject *obj;
401
402 gchar buffer[512];
403
404 obj = (LwoObject *)global->user_data;
405 g_return_val_if_fail(obj != NULL, FALSE);
406
407 local->nb -= lwo_read_string(global->stream, buffer);
408
409 g_free(obj->clipfiles[obj->nclips - 1]);
410 obj->clipfiles[obj->nclips - 1] = g_strdup(buffer);
411 obj->clipfiles[obj->nclips] = NULL;
412
413 return TRUE;
414}
415
416/* surface */
417gboolean lwo_cb_SURF(G3DIffGlobal *global, G3DIffLocal *local)
418{
419 LwoObject *obj;
420 G3DObject *object;
421 G3DMaterial *material = NULL, *tmat;
422 GSList *mlist;
423 gchar name[512];
424
425 obj = (LwoObject *)global->user_data;
426 g_return_val_if_fail(obj != NULL, FALSE);
427
428 object = (G3DObject *)obj->object;
429 g_return_val_if_fail(object != NULL, FALSE);
430
431 if(!local->finalize)
432 {
433 local->nb -= lwo_read_string(global->stream, name);
434
435 if(global->flags & LWO_FLAG_LWO2)
436 {
437 g3d_stream_read_int16_be(global->stream);
438 local->nb -= 2;
439 }
440
441 mlist = global->model->materials;
442 while(mlist != NULL)
443 {
444 tmat = (G3DMaterial*)mlist->data;
445 if(strcmp(name, tmat->name) == 0)
446 {
447 material = tmat;
448 break;
449 }
450 mlist = mlist->next;
451 }
452
453 if(material == NULL)
454 {
455 material = g3d_material_new();
456 material->name = g_strdup(name);
457 global->model->materials = g_slist_append(global->model->materials,
458 material);
459 }
460
461 local->object = material;
462 }
463
464 return TRUE;
465}
466
467/* tags */
468gboolean lwo_cb_TAGS(G3DIffGlobal *global, G3DIffLocal *local)
469{
470 LwoObject *obj;
471 G3DMaterial *material;
472 gchar buffer[512];
473
474 obj = (LwoObject *)global->user_data;
475 g_return_val_if_fail(obj != NULL, FALSE);
476
477 if(obj->ntags)
478 {
479 g_strfreev(obj->tags);
480 obj->ntags = 0;
481 }
482
483 /* read tags */
484 while(local->nb > 0)
485 {
486 local->nb -= lwo_read_string(global->stream, buffer);
487 obj->ntags ++;
488 obj->tags = g_realloc(obj->tags, (1 + obj->ntags) * sizeof(gchar *));
489 obj->tags[obj->ntags - 1] = g_strdup(buffer);
490 obj->tags[obj->ntags] = NULL;
491
492 material = g3d_material_new();
493 material->name = g_strdup(buffer);
494 global->model->materials = g_slist_append(global->model->materials,
495 material);
496 }
497
498 return TRUE;
499}
500
501/* transparency */
502gboolean lwo_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local)
503{
504 G3DMaterial *material;
505
506 material = (G3DMaterial *)local->object;
507 g_return_val_if_fail(material != NULL, FALSE);
508
509 if(global->flags & LWO_FLAG_LWO2) {
510 material->a = 1.0 - g3d_stream_read_float_be(global->stream);
511 local->nb -= 4;
512 } else {
513 material->a = 1.0 -
514 (G3DFloat)g3d_stream_read_int16_be(global->stream) / 256.0;
515 local->nb -= 2;
516 }
517 if(material->a < 0.1)
518 material->a = 0.1;
519
520 return TRUE;
521}
522
523/* vertex mapping */
524gboolean lwo_cb_VMAP(G3DIffGlobal *global, G3DIffLocal *local)
525{
526 LwoObject *obj;
527 guint32 index, type, dim;
528 gchar buffer[512], *tmp;
529
530 obj = (LwoObject *)global->user_data;
531 g_return_val_if_fail(obj != NULL, FALSE);
532
533 tmp = g3d_iff_id_to_text(local->parent_id);
534 g_debug("[LWO][VMAP] parent is %s", tmp);
535 g_free(tmp);
536
537 if(local->parent_id == G3D_IFF_MKID('L','W','O','2'))
538 {
539 type = g3d_stream_read_int32_be(global->stream);
540 local->nb -= 4;
541
542 dim = g3d_stream_read_int16_be(global->stream);
543 local->nb -= 2;
544
545 local->nb -= lwo_read_string(global->stream, buffer);
546
547 if(type == G3D_IFF_MKID('T','X','U','V'))
548 {
549 g_debug("[LWO][VMAP] **TXUV**");
550
551 g_return_val_if_fail(obj->tex_vertices == NULL, FALSE);
552
553 obj->tex_vertices = g_new0(G3DFloat,
554 obj->object->vertex_count * 2);
555
556 while(local->nb > 0)
557 {
558 local->nb -= lwo_read_vx(global->stream, &index);
559 g_return_val_if_fail(index < obj->object->vertex_count, FALSE);
560
561 obj->tex_vertices[index * 2 + 0] =
562 g3d_stream_read_float_be(global->stream);
563 obj->tex_vertices[index * 2 + 1] = 1.0 -
564 g3d_stream_read_float_be(global->stream);
565#if DEBUG > 0
566 if((obj->tex_vertices[index * 2 + 0] > 1.0) ||
567 (obj->tex_vertices[index * 2 + 1] > 1.0))
568 g_debug("LWO: TXUV: %.2f, %.2f",
569 obj->tex_vertices[index * 2 + 0],
570 obj->tex_vertices[index * 2 + 1]);
571#endif
572 local->nb -= 8;
573 }
574 }
575 else
576 {
577 tmp = g3d_iff_id_to_text(type);
578 g_warning("[LWO][VMAP] unhandled vertex mapping %s", tmp);
579 g_free(tmp);
580 }
581 }
582
583 return TRUE;
584}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.h
new file mode 100644
index 0000000..5b8e2e4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_callbacks.h
@@ -0,0 +1,41 @@
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_LWO_CALLBACKS_H
23#define _IMP_LWO_CALLBACKS_H
24
25#include <g3d/iff.h>
26
27gboolean lwo_cb_CLIP(G3DIffGlobal *global, G3DIffLocal *local);
28gboolean lwo_cb_COLR(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean lwo_cb_IMAG(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean lwo_cb_PNTS(G3DIffGlobal *global, G3DIffLocal *local);
31gboolean lwo_cb_POLS(G3DIffGlobal *global, G3DIffLocal *local);
32gboolean lwo_cb_PTAG(G3DIffGlobal *global, G3DIffLocal *local);
33gboolean lwo_cb_SPEC(G3DIffGlobal *global, G3DIffLocal *local);
34gboolean lwo_cb_SRFS(G3DIffGlobal *global, G3DIffLocal *local);
35gboolean lwo_cb_STIL(G3DIffGlobal *global, G3DIffLocal *local);
36gboolean lwo_cb_SURF(G3DIffGlobal *global, G3DIffLocal *local);
37gboolean lwo_cb_TAGS(G3DIffGlobal *global, G3DIffLocal *local);
38gboolean lwo_cb_TRAN(G3DIffGlobal *global, G3DIffLocal *local);
39gboolean lwo_cb_VMAP(G3DIffGlobal *global, G3DIffLocal *local);
40
41#endif
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_chunks.h
new file mode 100644
index 0000000..ddc7832
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_lwo/imp_lwo_chunks.h
@@ -0,0 +1,124 @@
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_LWO_CHUNKS_H
23#define _IMP_LWO_CHUNKS_H
24
25#include <g3d/iff.h>
26
27#include "imp_lwo_callbacks.h"
28
29static G3DIffChunkInfo lwo_chunks[] = {
30 { "AAST", "antialiasing strength", 0, NULL },
31 { "ADTR", "additive transparency", 0, NULL },
32 { "ALPH", "alpha mode", 0, NULL },
33 { "AXIS", "major axis", 0, NULL },
34 { "BBOX", "bounding box", 0, NULL },
35 { "BLOK", "block", 1, NULL },
36 { "BTEX", "unknown", 0, NULL },
37 { "BUMP", "bump intensity", 0, NULL },
38 { "CLIP", "image or image sequence", 1, lwo_cb_CLIP },
39 { "CLRF", "color filter", 0, NULL },
40 { "CLRH", "color highlights", 0, NULL },
41 { "CMNT", "unknown", 0, NULL },
42 { "COLR", "color", 0, lwo_cb_COLR },
43 { "CTEX", "unknown", 0, NULL },
44 { "DESC", "description", 0, NULL },
45 { "DIFF", "diffuse", 0, NULL },
46 { "DTEX", "unknown", 0, NULL },
47 { "FKEY", "gradient key values", 0, NULL },
48 { "FLAG", "flags", 0, NULL },
49 { "FUNC", "algorithm and parameters", 0, NULL },
50 { "GLOS", "specular glossiness", 0, NULL },
51 { "GRAD", "gradient texture (header)", 0, NULL },
52 { "GREN", "gradient end", 0, NULL },
53 { "GRPT", "gradient repeat mode", 0, NULL },
54 { "GRST", "gradient start", 0, NULL },
55 { "GVAL", "glow value", 0, NULL },
56 { "ICON", "icon", 0, NULL },
57 { "IKEY", "gradient key parameters", 0, NULL },
58 { "IMAG", "image index", 0, lwo_cb_IMAG },
59 { "IMAP", "image map (header)", 0, NULL },
60 { "INAM", "item name", 0, NULL },
61 { "LAYR", "layer", 0, NULL },
62 { "LTEX", "unknown", 0, NULL },
63 { "LUMI", "luminosity", 0, NULL },
64 { "PIXB", "pixel blending", 0, NULL },
65 { "PNAM", "parameter name", 0, NULL },
66 { "PNTS", "points", 0, lwo_cb_PNTS },
67 { "POLS", "polygons", 0, lwo_cb_POLS },
68 { "PROC", "procedural texture (header)", 0, NULL },
69 { "PROJ", "projection mode", 0, NULL },
70 { "PTAG", "polygon tag mapping", 0, lwo_cb_PTAG },
71 { "RBLR", "reflection blurring", 0, NULL },
72 { "REFL", "reflection", 0, NULL },
73 { "RFLT", "unknown", 0, NULL },
74 { "RFOP", "reflection options", 0, NULL },
75 { "RIMG", "reflection map image", 0, NULL },
76 { "RIND", "refractive index", 0, NULL },
77 { "RSAN", "reflection map seam angle", 0, NULL },
78 { "SHDR", "shader", 0, NULL },
79 { "SIDE", "polygon sidedness", 0, NULL },
80 { "SMAN", "max smooting angle", 0, NULL },
81 { "SPEC", "specular", 0, lwo_cb_SPEC },
82 { "SRFS", "surface materials", 0, lwo_cb_SRFS },
83 { "STEX", "unknown", 0, NULL },
84 { "STIL", "still image", 0, lwo_cb_STIL },
85 { "SURF", "surface material", 1, lwo_cb_SURF },
86 { "TAAS", "unknown", 0, NULL },
87 { "TAGS", "tags", 0, lwo_cb_TAGS },
88 { "TAMP", "texture amplitude", 0, NULL },
89 { "TCLR", "unknown", 0, NULL },
90 { "TCTR", "unknown", 0, NULL },
91 { "TEXT", "commentary text", 0, NULL },
92 { "TFAL", "unknown", 0, NULL },
93 { "TFLG", "unknown", 0, NULL },
94 { "TFP0", "unknown", 0, NULL },
95 { "TFP1", "unknown", 0, NULL },
96 { "TFP2", "unknown", 0, NULL },
97 { "TFP3", "unknown", 0, NULL },
98 { "TFRQ", "unknown", 0, NULL },
99 { "TIMG", "refraction map image", 0, NULL },
100 { "TIP0", "unknown", 0, NULL },
101 { "TMAP", "texture map", 0, NULL },
102 { "TRAN", "transparency", 0, lwo_cb_TRAN },
103 { "TRNL", "translucency", 0, NULL },
104 { "TROP", "transparency options", 0, NULL },
105 { "TSIZ", "unknown", 0, NULL },
106 { "TSP0", "unknown", 0, NULL },
107 { "TTEX", "unknown", 0, NULL },
108 { "TVAL", "unknown", 0, NULL },
109 { "VALU", "basic value", 0, NULL },
110 { "VDIF", "unknown", 0, NULL },
111 { "VMAD", "discontinuous vertex map", 0, NULL },
112 { "VMAP", "uv vertex map", 0, lwo_cb_VMAP },
113 { "VMPA", "vertex map parameters", 0, NULL },
114 { "VRFL", "unknown", 0, NULL },
115 { "VSPC", "unknown", 0, NULL },
116 { "VTRN", "unknown", 0, NULL },
117 { "WRAP", "image wrap options", 0, NULL },
118 { "WRPH", "wrap amount (width)", 0, NULL },
119 { "WRPW", "wrap amount (height)", 0, NULL },
120
121 { NULL, NULL, 0, NULL }
122};
123
124#endif /* _IMP_LWO_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile
new file mode 100644
index 0000000..53add53
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile
@@ -0,0 +1,515 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_max/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_max
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_max_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_max_la_OBJECTS = imp_max.lo imp_max_callbacks.lo
59imp_max_la_OBJECTS = $(am_imp_max_la_OBJECTS)
60#am_imp_max_la_rpath = -rpath \
61# $(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_max_la_SOURCES)
75DIST_SOURCES = $(imp_max_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_max
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max
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_max.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 -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_max_la_SOURCES = imp_max.c \
231 imp_max_chunks.h imp_max_callbacks.c imp_max_callbacks.h
232
233imp_max_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
234all: all-am
235
236.SUFFIXES:
237.SUFFIXES: .c .lo .o .obj
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
243 && exit 0; \
244 exit 1;; \
245 esac; \
246 done; \
247 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile'; \
248 cd $(top_srcdir) && \
249 $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile
250.PRECIOUS: Makefile
251Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
252 @case '$?' in \
253 *config.status*) \
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
255 *) \
256 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
257 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
258 esac;
259
260$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262
263$(top_srcdir)/configure: $(am__configure_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265$(ACLOCAL_M4): $(am__aclocal_m4_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
268 @$(NORMAL_INSTALL)
269 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
270 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
271 if test -f $$p; then \
272 f=$(am__strip_dir) \
273 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
274 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
275 else :; fi; \
276 done
277
278uninstall-pluginimpLTLIBRARIES:
279 @$(NORMAL_UNINSTALL)
280 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
281 p=$(am__strip_dir) \
282 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
283 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
284 done
285
286clean-pluginimpLTLIBRARIES:
287 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
288 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
289 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
290 test "$$dir" != "$$p" || dir=.; \
291 echo "rm -f \"$${dir}/so_locations\""; \
292 rm -f "$${dir}/so_locations"; \
293 done
294imp_max.la: $(imp_max_la_OBJECTS) $(imp_max_la_DEPENDENCIES)
295 $(LINK) $(am_imp_max_la_rpath) $(imp_max_la_OBJECTS) $(imp_max_la_LIBADD) $(LIBS)
296
297mostlyclean-compile:
298 -rm -f *.$(OBJEXT)
299
300distclean-compile:
301 -rm -f *.tab.c
302
303include ./$(DEPDIR)/imp_max.Plo
304include ./$(DEPDIR)/imp_max_callbacks.Plo
305
306.c.o:
307 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309# source='$<' object='$@' libtool=no \
310# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
311# $(COMPILE) -c $<
312
313.c.obj:
314 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316# source='$<' object='$@' libtool=no \
317# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
318# $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323# source='$<' object='$@' libtool=yes \
324# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
325# $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512 -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
513# Tell versions [3.59,3.63) of GNU make to not export all variables.
514# Otherwise a system limit (for SysV at least) may be exceeded.
515.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.am
new file mode 100644
index 0000000..c1b46fb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4if HAVE_LIBGSF
5pluginimp_LTLIBRARIES = imp_max.la
6endif
7endif
8
9AM_CFLAGS = \
10 -Wall -ansi -pedantic \
11 -DG_LOG_DOMAIN=\"LibG3D\" \
12 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
13 @GLIB_CFLAGS@
14 @LIBGSF_CFLAGS@
15
16INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
17
18AM_LDFLAGS = \
19 -no-undefined -module \
20 @PLUGINS_LDFLAGS@
21
22LIBTOOL += --quiet
23
24imp_max_la_SOURCES = imp_max.c \
25 imp_max_chunks.h imp_max_callbacks.c imp_max_callbacks.h
26imp_max_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.in
new file mode 100644
index 0000000..054a849
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/Makefile.in
@@ -0,0 +1,515 @@
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_max
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_max_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_max_la_OBJECTS = imp_max.lo imp_max_callbacks.lo
59imp_max_la_OBJECTS = $(am_imp_max_la_OBJECTS)
60@EXPERIMENTAL_TRUE@@HAVE_LIBGSF_TRUE@am_imp_max_la_rpath = -rpath \
61@EXPERIMENTAL_TRUE@@HAVE_LIBGSF_TRUE@ $(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_max_la_SOURCES)
75DIST_SOURCES = $(imp_max_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@@HAVE_LIBGSF_TRUE@pluginimp_LTLIBRARIES = imp_max.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 -I$(top_builddir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_max_la_SOURCES = imp_max.c \
231 imp_max_chunks.h imp_max_callbacks.c imp_max_callbacks.h
232
233imp_max_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBGSF_LIBS@
234all: all-am
235
236.SUFFIXES:
237.SUFFIXES: .c .lo .o .obj
238$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
239 @for dep in $?; do \
240 case '$(am__configure_deps)' in \
241 *$$dep*) \
242 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
243 && exit 0; \
244 exit 1;; \
245 esac; \
246 done; \
247 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile'; \
248 cd $(top_srcdir) && \
249 $(AUTOMAKE) --gnu plugins/import/imp_max/Makefile
250.PRECIOUS: Makefile
251Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
252 @case '$?' in \
253 *config.status*) \
254 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
255 *) \
256 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
257 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
258 esac;
259
260$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262
263$(top_srcdir)/configure: $(am__configure_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265$(ACLOCAL_M4): $(am__aclocal_m4_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
268 @$(NORMAL_INSTALL)
269 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
270 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
271 if test -f $$p; then \
272 f=$(am__strip_dir) \
273 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
274 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
275 else :; fi; \
276 done
277
278uninstall-pluginimpLTLIBRARIES:
279 @$(NORMAL_UNINSTALL)
280 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
281 p=$(am__strip_dir) \
282 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
283 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
284 done
285
286clean-pluginimpLTLIBRARIES:
287 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
288 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
289 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
290 test "$$dir" != "$$p" || dir=.; \
291 echo "rm -f \"$${dir}/so_locations\""; \
292 rm -f "$${dir}/so_locations"; \
293 done
294imp_max.la: $(imp_max_la_OBJECTS) $(imp_max_la_DEPENDENCIES)
295 $(LINK) $(am_imp_max_la_rpath) $(imp_max_la_OBJECTS) $(imp_max_la_LIBADD) $(LIBS)
296
297mostlyclean-compile:
298 -rm -f *.$(OBJEXT)
299
300distclean-compile:
301 -rm -f *.tab.c
302
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_max.Plo@am__quote@
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_max_callbacks.Plo@am__quote@
305
306.c.o:
307@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
308@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
310@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
311@am__fastdepCC_FALSE@ $(COMPILE) -c $<
312
313.c.obj:
314@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
315@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
317@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
318@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
319
320.c.lo:
321@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
322@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
324@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
325@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
326
327mostlyclean-libtool:
328 -rm -f *.lo
329
330clean-libtool:
331 -rm -rf .libs _libs
332
333ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
334 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
335 unique=`for i in $$list; do \
336 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
337 done | \
338 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
339 END { if (nonempty) { for (i in files) print i; }; }'`; \
340 mkid -fID $$unique
341tags: TAGS
342
343TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
344 $(TAGS_FILES) $(LISP)
345 tags=; \
346 here=`pwd`; \
347 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
348 unique=`for i in $$list; do \
349 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
350 done | \
351 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
352 END { if (nonempty) { for (i in files) print i; }; }'`; \
353 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
354 test -n "$$unique" || unique=$$empty_fix; \
355 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
356 $$tags $$unique; \
357 fi
358ctags: CTAGS
359CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
360 $(TAGS_FILES) $(LISP)
361 tags=; \
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
367 END { if (nonempty) { for (i in files) print i; }; }'`; \
368 test -z "$(CTAGS_ARGS)$$tags$$unique" \
369 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
370 $$tags $$unique
371
372GTAGS:
373 here=`$(am__cd) $(top_builddir) && pwd` \
374 && cd $(top_srcdir) \
375 && gtags -i $(GTAGS_ARGS) $$here
376
377distclean-tags:
378 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
379
380distdir: $(DISTFILES)
381 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
383 list='$(DISTFILES)'; \
384 dist_files=`for file in $$list; do echo $$file; done | \
385 sed -e "s|^$$srcdirstrip/||;t" \
386 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
387 case $$dist_files in \
388 */*) $(MKDIR_P) `echo "$$dist_files" | \
389 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
390 sort -u` ;; \
391 esac; \
392 for file in $$dist_files; do \
393 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
394 if test -d $$d/$$file; then \
395 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
398 fi; \
399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
400 else \
401 test -f $(distdir)/$$file \
402 || cp -p $$d/$$file $(distdir)/$$file \
403 || exit 1; \
404 fi; \
405 done
406check-am: all-am
407check: check-am
408all-am: Makefile $(LTLIBRARIES)
409installdirs:
410 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
411 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
412 done
413install: install-am
414install-exec: install-exec-am
415install-data: install-data-am
416uninstall: uninstall-am
417
418install-am: all-am
419 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
420
421installcheck: installcheck-am
422install-strip:
423 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
424 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
425 `test -z '$(STRIP)' || \
426 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
427mostlyclean-generic:
428
429clean-generic:
430
431distclean-generic:
432 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
433
434maintainer-clean-generic:
435 @echo "This command is intended for maintainers to use"
436 @echo "it deletes files that may require special tools to rebuild."
437clean: clean-am
438
439clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
440 mostlyclean-am
441
442distclean: distclean-am
443 -rm -rf ./$(DEPDIR)
444 -rm -f Makefile
445distclean-am: clean-am distclean-compile distclean-generic \
446 distclean-tags
447
448dvi: dvi-am
449
450dvi-am:
451
452html: html-am
453
454info: info-am
455
456info-am:
457
458install-data-am: install-pluginimpLTLIBRARIES
459
460install-dvi: install-dvi-am
461
462install-exec-am:
463
464install-html: install-html-am
465
466install-info: install-info-am
467
468install-man:
469
470install-pdf: install-pdf-am
471
472install-ps: install-ps-am
473
474installcheck-am:
475
476maintainer-clean: maintainer-clean-am
477 -rm -rf ./$(DEPDIR)
478 -rm -f Makefile
479maintainer-clean-am: distclean-am maintainer-clean-generic
480
481mostlyclean: mostlyclean-am
482
483mostlyclean-am: mostlyclean-compile mostlyclean-generic \
484 mostlyclean-libtool
485
486pdf: pdf-am
487
488pdf-am:
489
490ps: ps-am
491
492ps-am:
493
494uninstall-am: uninstall-pluginimpLTLIBRARIES
495
496.MAKE: install-am install-strip
497
498.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
499 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
500 distclean-compile distclean-generic distclean-libtool \
501 distclean-tags distdir dvi dvi-am html html-am info info-am \
502 install install-am install-data install-data-am install-dvi \
503 install-dvi-am install-exec install-exec-am install-html \
504 install-html-am install-info install-info-am install-man \
505 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
506 install-ps install-ps-am install-strip installcheck \
507 installcheck-am installdirs maintainer-clean \
508 maintainer-clean-generic mostlyclean mostlyclean-compile \
509 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
510 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
511
512 @LIBGSF_CFLAGS@
513# Tell versions [3.59,3.63) of GNU make to not export all variables.
514# Otherwise a system limit (for SysV at least) may be exceeded.
515.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max.c
new file mode 100644
index 0000000..0dba25c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max.c
@@ -0,0 +1,358 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/config.h>
24
25#include <string.h>
26
27#include <g3d/types.h>
28#include <g3d/context.h>
29#include <g3d/object.h>
30#include <g3d/material.h>
31#include <g3d/stream.h>
32#include <g3d/debug.h>
33
34#include "imp_max_chunks.h"
35
36
37
38static gboolean max_read_subfile(G3DContext *context, G3DModel *model,
39 G3DStream *stream, const gchar *subfile);
40static gboolean max_read_chunk(MaxGlobalData *global, gint32 *nb,
41 guint32 level, gint32 parentid, gpointer object, guint32 *l2cnt,
42 GNode *tree);
43static MaxChunk *max_get_chunk_desc(guint16 id, gint32 parentid,
44 gboolean container);
45
46static const gchar *max_subfiles[] = {
47#if 0
48 "Config",
49 "VideoPostQueue",
50 "ScriptedCustAttribDefs",
51 "DllDirectory",
52 "ClassDirectory",
53 "ClassDirectory2",
54 "ClassDirectory3",
55 "ClassData",
56#endif
57 "Scene",
58 NULL
59};
60
61typedef enum {
62 MAX_ROOT_NODE,
63 MAX_L2_NODE,
64 MAX_CNT_NODE,
65 MAX_DATA_NODE
66} MaxNodeType;
67
68typedef struct {
69 MaxNodeType type;
70 gchar *name;
71 guint32 cnt2034;
72 guint32 val2034;
73 gint32 data2034;
74 GSList *children;
75} MaxNode;
76
77typedef struct {
78 guint32 l2id;
79 guint32 id;
80 gchar *text;
81 G3DObject *object;
82} MaxTreeItem;
83
84EAPI
85gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
86 G3DModel *model)
87{
88 gboolean retval = FALSE;
89 G3DMaterial *material;
90 const gchar **subfile = max_subfiles;
91
92 /* create default material */
93 material = g3d_material_new();
94 material->name = g_strdup("default material");
95 model->materials = g_slist_append(model->materials, material);
96
97 /* debugging material */
98 material = g3d_material_new();
99 material->r = 1.0;
100 material->g = 0.2;
101 material->b = 0.1;
102 material->name = g_strdup("debugging material");
103 model->materials = g_slist_append(model->materials, material);
104
105 while(*subfile) {
106 retval = max_read_subfile(context, model, stream, *subfile);
107 subfile ++;
108 }
109
110 g3d_context_update_progress_bar(context, 0.0, FALSE);
111
112 return retval;
113}
114
115EAPI
116gchar *plugin_description(void)
117{
118 return g_strdup("3D Studio MAX models (EXPERIMENTAL).");
119}
120
121EAPI
122gchar **plugin_extensions(void)
123{
124 return g_strsplit("max:gmax", ":", 0);
125}
126
127/*****************************************************************************
128 * max specific
129 *****************************************************************************/
130
131static void max_walk_tree(GNode *tree, guint32 level)
132{
133 GNode *node;
134 MaxTreeItem *mtitem;
135
136 mtitem = (MaxTreeItem *)tree->data;
137
138#if DEBUG > 0
139 g_debug("\\%s(%u)[0x%04X][0x%04X] %s", debug_pad(level), level,
140 mtitem->l2id, mtitem->id, mtitem->text);
141#endif
142
143 for(node = tree->children; node != NULL; node = node->next) {
144 max_walk_tree(node, level + 1);
145 }
146}
147
148static gboolean max_read_subfile(G3DContext *context, G3DModel *model,
149 G3DStream *stream, const gchar *subfile)
150{
151 G3DStream *ssf;
152 MaxGlobalData *global;
153 gint32 fsize;
154 guint32 l2cnt = 0;
155 MaxTreeItem *rootitem;
156 GNode *tree;
157
158 rootitem = g_new0(MaxTreeItem, 1);
159 rootitem->text = g_strdup("ROOT");
160 tree = g_node_new(rootitem);
161
162 ssf = g3d_stream_open_structured_file_from_stream(stream, subfile);
163 if(ssf == NULL) {
164 g_warning("MAX: failed to open '%s' in structured file '%s'",
165 subfile, stream->uri);
166 return FALSE;
167 }
168
169 fsize = g3d_stream_size(ssf);
170
171 g_debug("\\%s (%d bytes)", subfile, fsize);
172
173 global = g_new0(MaxGlobalData, 1);
174 global->context = context;
175 global->model = model;
176 global->stream = ssf;
177 global->subfile = subfile;
178
179 while(max_read_chunk(global, &fsize, 1 /* level */, IDNONE, NULL, &l2cnt,
180 tree));
181
182 g_debug("MAX tree:");
183 max_walk_tree(tree, 0);
184
185 g_free(global);
186 g3d_stream_close(ssf);
187
188 return TRUE;
189}
190
191static GNode *max_find_node(GNode *tree, guint32 id)
192{
193 GNode *node, *found;
194 MaxTreeItem *mtitem;
195
196 mtitem = (MaxTreeItem *)tree->data;
197 if(mtitem->l2id == id)
198 return tree;
199
200 for(node = tree->children; node != NULL; node = node->next) {
201 found = max_find_node(node, id);
202 if(found != NULL)
203 return found;
204 }
205
206 return NULL;
207}
208
209static gboolean max_create_l2_tree_object(MaxGlobalData *global,
210 MaxLocalData *local, G3DObject *parent)
211{
212 G3DObject *object;
213
214 object = g_new0(G3DObject, 1);
215 object->name = g_strdup_printf("0x%04X object @ 0x%08x",
216 local->id, (guint32)g3d_stream_tell(global->stream));
217 local->object = object;
218 if(parent)
219 parent->objects = g_slist_append(parent->objects, object);
220 else
221 global->model->objects = g_slist_append(global->model->objects,
222 object);
223
224 global->object = object;
225 global->vertex_offset = 0;
226
227 return TRUE;
228}
229
230static gboolean max_read_chunk(MaxGlobalData *global, gint32 *nb,
231 guint32 level, gint32 parentid, gpointer object, guint32 *l2cnt,
232 GNode *tree)
233{
234 guint16 id;
235 guint32 length;
236 gboolean container;
237 MaxChunk *chunk;
238 MaxLocalData *local;
239 MaxTreeItem *mtitem;
240 GNode *pnode = NULL, *node;
241
242 if(nb && (*nb < 6))
243 return FALSE;
244
245 id = g3d_stream_read_int16_le(global->stream);
246 length = g3d_stream_read_int32_le(global->stream);
247 container = (length & 0x80000000);
248 length &= 0x7FFFFFFF;
249
250 if(nb && (length > *nb))
251 return FALSE;
252 if(nb)
253 *nb -= length;
254
255 if((level == 2) && l2cnt)
256 (*l2cnt) ++;
257
258 chunk = max_get_chunk_desc(id, parentid, container);
259
260#if DEBUG > 0
261 g_debug("\\%s(%d)[0x%04X][%c%c] %s -- %d (%d) bytes @ 0x%08x",
262 debug_pad(level), level,
263 id, (container ? 'c' : ' '),
264 (chunk && chunk->callback) ? 'f' : ' ',
265 chunk ? chunk->desc : (level == 2) ? "level 2 container" : "unknown",
266 length - 6, length,
267 (guint32)g3d_stream_tell(global->stream) - 6);
268#endif
269
270 node = tree;
271 if(level == 2) {
272 pnode = max_find_node(tree, id);
273 if(pnode != NULL) {
274 mtitem = g_new0(MaxTreeItem, 1);
275 mtitem->l2id = *l2cnt;
276 mtitem->id = id;
277 mtitem->text = g_strdup("L2ITEM");
278 node = g_node_append_data(pnode, mtitem);
279 } else {
280 mtitem = g_new0(MaxTreeItem, 1);
281 mtitem->l2id = 0xFFFF;
282 mtitem->id = id;
283 mtitem->text = g_strdup_printf("OUTOFTREE: 0x%04X", id);
284 node = g_node_append_data(tree, mtitem);
285 }
286 } else if(level > 2) {
287 mtitem = g_new0(MaxTreeItem, 1);
288 mtitem->l2id = 0xFFFF;
289 mtitem->id = id;
290 mtitem->text = g_strdup_printf("REGITEM: 0x%04X: %s",
291 id, chunk ? chunk->desc : "unknown");
292 node = g_node_append_data(tree, mtitem);
293 }
294
295 local = g_new0(MaxLocalData, 1);
296 local->id = (level > 2) ? id : 0x0000;
297 local->parentid = parentid;
298 local->nb = length - 6;
299 local->level = level + 1;
300 local->object = object;
301
302 if((level > 2) && chunk && chunk->callback)
303 chunk->callback(global, local);
304 if(level == 2) {
305 mtitem = pnode ? pnode->data : NULL;
306 max_create_l2_tree_object(global, local,
307 mtitem ? mtitem->object : NULL);
308 mtitem = node->data;
309 mtitem->object = local->object;
310 }
311
312 if(container)
313 while(local->nb > 0)
314 if(!max_read_chunk(global, &(local->nb), level + 1, id,
315 local->object, l2cnt, node))
316 return FALSE;
317
318 if(local->nb > 0)
319 g3d_stream_skip(global->stream, local->nb);
320
321 g_free(local);
322
323 g3d_context_update_interface(global->context);
324
325 if(level < 3)
326 g3d_context_update_progress_bar(global->context,
327 (G3DFloat)g3d_stream_tell(global->stream) /
328 (G3DFloat)g3d_stream_size(global->stream),
329 TRUE);
330
331 return TRUE;
332}
333
334static MaxChunk *max_get_chunk_desc(guint16 id, gint32 parentid,
335 gboolean container)
336{
337 MaxChunk *chunk, *chunks;
338 gint32 i;
339
340 if(container)
341 chunks = max_cnt_chunks;
342 else
343 chunks = max_chunks;
344
345 for(i = 0, chunk = &(chunks[i]); chunk->id != IDNONE;
346 i ++, chunk = &(chunks[i])) {
347 if((chunk->parentid == IDSOME) || (parentid == chunk->parentid) ||
348 (parentid == IDSOME) ||
349 ((chunk->parentid == IDROOT) && ID_IS_ROOT(parentid)) ||
350 ((chunk->parentid == IDGEOM) && ID_IS_GEOM(parentid)) ||
351 ((chunk->parentid == IDMATG) && ID_IS_MATG(parentid)) ||
352 ((chunk->parentid == IDFILE) && ID_IS_FILE(parentid))) {
353 if(chunk->id == id)
354 return chunk;
355 } /* parentid */
356 }
357 return NULL;
358}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.c
new file mode 100644
index 0000000..219ad4f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.c
@@ -0,0 +1,696 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <g3d/material.h>
25#include <g3d/stream.h>
26#include <g3d/debug.h>
27
28#include "imp_max_callbacks.h"
29
30static gchar *max_read_wchar(G3DStream *stream, guint32 n)
31{
32 gint32 i;
33 gunichar2 *u16text;
34 gchar *text;
35 GError *error = NULL;
36
37 u16text = g_new0(gunichar2, n + 1);
38 for(i = 0; i < n; i ++) {
39 u16text[i] = g3d_stream_read_int16_le(stream);
40 }
41
42 text = g_utf16_to_utf8(u16text, n, NULL, NULL, &error);
43 if(error != NULL) {
44 g_warning("UTF-16 to UTF-8 conversion failed: %s",
45 error->message);
46 g_error_free(error);
47 }
48 g_free(u16text);
49
50 return text;
51}
52
53gboolean max_cb_debug_int32(MaxGlobalData *global, MaxLocalData *local)
54{
55 union {
56 gint32 i;
57 G3DFloat f;
58 } u;
59
60 while(local->nb >= 4) {
61 u.i = g3d_stream_read_int32_le(global->stream);
62 local->nb -= 4;
63#if DEBUG > 0
64 g_debug("|%s[D32] 0x%08x, %d, %.2f", debug_pad(local->level),
65 u.i, u.i, u.f);
66#endif
67 }
68 return TRUE;
69}
70
71gboolean max_cb_debug_wchars(MaxGlobalData *global, MaxLocalData *local)
72{
73 gchar *str;
74 guint32 len;
75
76 len = local->nb / 2;
77 str = max_read_wchar(global->stream, len);
78 local->nb -= len * 2;
79#if DEBUG > 0
80 g_debug("|%s[TEXT] %s (%d)", debug_pad(local->level),
81 str, len);
82#endif
83 g_free(str);
84
85 return TRUE;
86}
87
88gboolean max_cb_debug_string(MaxGlobalData *global, MaxLocalData *local)
89{
90 gchar *str;
91 guint32 len;
92
93 g_return_val_if_fail(local->nb >= 4, FALSE);
94 len = g3d_stream_read_int32_le(global->stream);
95 local->nb -= 4;
96 if(len > local->nb)
97 len = local->nb;
98
99 str = g_new0(gchar, len + 1);
100 g3d_stream_read(global->stream, str, len);
101 local->nb -= len;
102#if DEBUG > 0
103 g_debug("|%s[TEXT] %s (%d)", debug_pad(local->level),
104 str, len);
105#endif
106 g_free(str);
107
108 return TRUE;
109}
110
111gboolean max_cb_0x0001_0x0005(MaxGlobalData *global, MaxLocalData *local)
112{
113 gchar *str;
114 gint32 len, i, w3[3], cnt = 0;
115
116 if(local->nb < 4)
117 return FALSE;
118
119 /* flags? */
120 i = g3d_stream_read_int32_le(global->stream);
121 local->nb -= 4;
122
123#if DEBUG > 0
124 g_debug("|%s[PROP] 0x%08x", debug_pad(local->level), i);
125#endif
126
127 while(local->nb > 0) {
128 len = g3d_stream_read_int32_le(global->stream);
129 local->nb -= 4;
130 str = g_malloc0(len + 1);
131 g3d_stream_read(global->stream, str, len);
132 local->nb -= len;
133 for(i = 0; i < 3; i ++)
134 w3[i] = g3d_stream_read_int16_le(global->stream);
135 local->nb -= 6;
136 cnt ++;
137#if DEBUG > 0
138 g_debug("|%s[PROP] %04d: '%s' (%d bytes) [%d, %d, %d]",
139 debug_pad(local->level),
140 cnt, str, len,
141 w3[0], w3[1], w3[2]);
142#endif
143 g_free(str);
144 }
145 return TRUE;
146}
147
148gboolean max_cb_IDFILE_0x1201(MaxGlobalData *global, MaxLocalData *local)
149{
150 guint16 width, height;
151
152 width = g3d_stream_read_int16_le(global->stream);
153 height = g3d_stream_read_int16_le(global->stream);
154 local->nb -= 4;
155#if DEBUG > 0
156 g_debug("|%s[IMG] %u x %u", debug_pad(local->level), width, height);
157#endif
158 return TRUE;
159}
160
161/* vertex data */
162gboolean max_cb_0x08FE_0x0100(MaxGlobalData *global, MaxLocalData *local)
163{
164 guint32 num;
165 gint i, j;
166 G3DObject *object;
167
168 if(local->nb < 4)
169 return FALSE;
170
171 /* vertices */
172 num = g3d_stream_read_int32_le(global->stream);
173 local->nb -= 4;
174 object = (G3DObject *)local->object;
175 if(object == NULL) {
176 g_warning("MAX: 0x08FE::0x0100: no object");
177 return FALSE;
178 }
179
180#if DEBUG > 0
181 g_debug("|%s[VERT] %d vertices", debug_pad(local->level), num);
182#endif
183 global->vertex_offset = object->vertex_count;
184 object->vertex_count += num;
185 object->vertex_data = g_realloc(object->vertex_data,
186 object->vertex_count * 3 * sizeof(G3DFloat));
187
188 for(i = 0; i < num; i ++) {
189 if(local->nb < 16)
190 return FALSE;
191 g3d_stream_read_int32_le(global->stream); /* always 0 */
192 for(j = 0; j < 3; j ++)
193 object->vertex_data[(global->vertex_offset + i) * 3 + j] =
194 g3d_stream_read_float_le(global->stream);
195 local->nb -= 16;
196 }
197 return TRUE;
198}
199
200/* lines (vertex indices) */
201gboolean max_cb_0x08FE_0x010A(MaxGlobalData *global, MaxLocalData *local)
202{
203 guint32 num;
204 gint i, j;
205 guint32 v[3];
206
207 if(local->nb < 4)
208 return FALSE;
209
210 num = g3d_stream_read_int32_le(global->stream);
211 local->nb -= 4;
212
213#if DEBUG > 0
214 g_debug("|%s[LINE] %d lines", debug_pad(local->level), num);
215#endif
216 for(i = 0; i < num; i ++) {
217 if(local->nb < 12)
218 return FALSE;
219 for(j = 0; j < 3; j ++) {
220 v[j] = g3d_stream_read_int32_le(global->stream);
221 }
222 local->nb -= 12;
223
224#if DEBUG > 1
225 g_debug("|%s[LINE] 0x%08x: (%d => %d)", debug_pad(local->level),
226 v[0], v[1], v[2]);
227#endif
228 }
229 return TRUE;
230}
231
232/* polygon data */
233gboolean max_cb_0x08FE_0x011A(MaxGlobalData *global, MaxLocalData *local)
234{
235 gint32 i;
236 guint32 numpoly, type, numvert, cntpoly = 0;
237 G3DObject *object = (G3DObject *)local->object;
238 G3DFace *face;
239 G3DMaterial *material;
240
241 g_return_val_if_fail(local->nb >= 4, FALSE);
242 g_return_val_if_fail(object != NULL, FALSE);
243
244 material = (G3DMaterial *)g_slist_nth_data(global->model->materials,
245 (global->vertex_offset ? 1 : 0));
246 g_return_val_if_fail(material != NULL, FALSE);
247
248 numpoly = g3d_stream_read_int32_le(global->stream);
249 local->nb -= 4;
250#if DEBUG > 0
251 g_debug("|%s[POLY] %d polygons to read", debug_pad(local->level),
252 numpoly);
253#endif
254 while(local->nb >= 4) {
255 numvert = g3d_stream_read_int32_le(global->stream);
256 local->nb -= 4;
257#if DEBUG > 0
258 g_debug("|%s[POLY] %04d: %d vertices", debug_pad(local->level),
259 cntpoly, numvert);
260#endif
261 g_return_val_if_fail(numvert >= 3, FALSE);
262
263 face = g_new0(G3DFace, 1);
264 face->material = material;
265 face->vertex_count = numvert;
266 face->vertex_indices = g_new0(guint32, numvert);
267 object->faces = g_slist_append(object->faces, face);
268 for(i = 0; i < numvert; i ++) {
269 face->vertex_indices[i] =
270 global->vertex_offset +
271 g3d_stream_read_int32_le(global->stream);
272 local->nb -= 4;
273 g_return_val_if_fail(
274 face->vertex_indices[i] < object->vertex_count, FALSE);
275 }
276 type = g3d_stream_read_int16_le(global->stream);
277 local->nb -= 2;
278
279 if(type & 0xFFC6) {
280 g_warning("MAX: 0x011A: unhandled 0x%08x", type);
281#if DEBUG > 0
282 numvert = MIN(local->nb / 2, 20);
283 for(i = 0; i < numvert; i ++) {
284 g_debug("|%s[POLY] 0x%04x", debug_pad(local->level),
285 g3d_stream_read_int16_le(global->stream));
286 local->nb -= 2;
287 }
288#endif
289 return FALSE;
290 }
291
292 /* FIXME: order of additional data most likely wrong */
293 for(i = 3; i < numvert; i ++) {
294 g3d_stream_read_int32_le(global->stream);
295 g3d_stream_read_int32_le(global->stream);
296 local->nb -= 8;
297 }
298 if(type & 0x0001) {
299 g3d_stream_read_int32_le(global->stream);
300 local->nb -= 4;
301 }
302 if(type & 0x0008) {
303 g3d_stream_read_int16_le(global->stream);
304 local->nb -= 2;
305 }
306 if(type & 0x0010) {
307 g3d_stream_read_int32_le(global->stream);
308 local->nb -= 4;
309 }
310 cntpoly ++;
311 }
312#if DEBUG > 0
313 g_debug("|%s[POLY] %d faces added to object", debug_pad(local->level),
314 cntpoly);
315#endif
316 return TRUE;
317}
318
319/* texture vertices */
320gboolean max_cb_0x08FE_0x0128(MaxGlobalData *global, MaxLocalData *local)
321{
322 guint32 num;
323 G3DObject *object = (G3DObject *)local->object;
324
325 g_return_val_if_fail(local->nb >= 4, FALSE);
326 g_return_val_if_fail(object != NULL, FALSE);
327
328 num = g3d_stream_read_int32_le(global->stream);
329 local->nb -= 4;
330
331#if DEBUG > 0
332 g_debug("|%s[TEXV] %d texture vertices", debug_pad(local->level), num);
333#endif
334 return TRUE;
335}
336
337/* texture indices */
338gboolean max_cb_0x08FE_0x012B(MaxGlobalData *global, MaxLocalData *local)
339{
340 gint i;
341 guint32 *vdata, vcnt, maxidx = 0, numpoly = 0, maxvcnt = 0;
342#if 0
343 G3DObject *object = (G3DObject *)local->object;
344 G3DFace *face;
345
346 g_return_val_if_fail(object != NULL, FALSE);
347#endif
348
349 while(local->nb >= 4) {
350 vcnt = g3d_stream_read_int32_le(global->stream);
351 local->nb -= 4;
352 if(vcnt > maxvcnt)
353 maxvcnt = vcnt;
354#if 0
355 face = g_new0(G3DFace, 1);
356 face->vertex_count = vcnt;
357#endif
358 if(local->nb < (vcnt * 4)) {
359#if DEBUG > 0
360 g_debug("|%s[TIDX] %d polygons, max index: %d, max vcnt: %d "
361 "(nb=%d, vcnt=%d)", debug_pad(local->level),
362 numpoly, maxidx, maxvcnt, local->nb, vcnt);
363#endif
364
365 return FALSE;
366 }
367 vdata = g_new0(guint32, vcnt);
368 numpoly ++;
369 for(i = 0; i < vcnt; i ++) {
370 vdata[i] = g3d_stream_read_int32_le(global->stream);
371 local->nb -= 4;
372 if(vdata[i] > maxidx)
373 maxidx = vdata[i];
374 }
375#if 1
376 g_free(vdata);
377#endif
378 }
379#if DEBUG > 0
380 g_debug("|%s[TIDX] %d polygons, max index: %d, max vcnt: %d",
381 debug_pad(local->level), numpoly, maxidx, maxvcnt);
382#endif
383 return TRUE;
384}
385
386/* geometric object */
387gboolean max_cb_IDROOT_IDGEOM(MaxGlobalData *global, MaxLocalData *local)
388{
389 G3DObject *object;
390
391 object = g_new0(G3DObject, 1);
392 object->name = g_strdup_printf("0x%04X object @ 0x%08x",
393 local->id, (guint32)g3d_stream_tell(global->stream));
394 local->object = object;
395 global->model->objects = g_slist_append(global->model->objects, object);
396
397 global->object = object;
398 global->vertex_offset = 0;
399
400 return TRUE;
401}
402
403/* mesh */
404gboolean max_cb_IDGEOM_0x08FE(MaxGlobalData *global, MaxLocalData *local)
405{
406 g_return_val_if_fail(global->object != NULL, FALSE);
407 return TRUE;
408}
409
410/* object name */
411gboolean max_cb_IDGEOM_0x0962(MaxGlobalData *global, MaxLocalData *local)
412{
413 G3DObject *object = (G3DObject *)local->object;
414 gchar *name;
415 gint32 len;
416
417 g_return_val_if_fail(object != NULL, FALSE);
418
419 g_free(object->name);
420 len = local->nb / 2;
421 name = max_read_wchar(global->stream, len);
422 object->name = g_strdup_printf("%s (0x%08x)",
423 name, (guint32)g3d_stream_tell(global->stream) - len - 6);
424 g_free(name);
425#if DEBUG > 0
426 g_debug("|%s[NAME] %s", debug_pad(local->level), object->name);
427#endif
428 local->nb -= len * 2;
429
430 return TRUE;
431}
432
433/* single face */
434gboolean max_cb_0x0118_0x0110(MaxGlobalData *global, MaxLocalData *local)
435{
436 guint32 num;
437 gint i;
438 G3DObject *object = (G3DObject *)local->object;
439 G3DMaterial *mat;
440 G3DFace *face;
441
442 g_return_val_if_fail(local->nb >= 4, FALSE);
443 g_return_val_if_fail(object != NULL, FALSE);
444
445 mat = (G3DMaterial *)g_slist_nth_data(global->model->materials,
446 (global->vertex_offset ? 1 : 0));
447
448 num = g3d_stream_read_int32_le(global->stream);
449 local->nb -= 4;
450
451 face = g_new0(G3DFace, 1);
452 face->vertex_count = num;
453 face->vertex_indices = g_new0(guint32, num);
454 face->material = mat;
455 object->faces = g_slist_append(object->faces, face);
456
457 g_return_val_if_fail(local->nb >= (num * 4), FALSE);
458 for(i = 0; i < num; i ++) {
459 face->vertex_indices[i] =
460 global->vertex_offset +
461 g3d_stream_read_int32_le(global->stream);
462 local->nb -= 4;
463 if(face->vertex_indices[i] >= object->vertex_count) {
464 g_warning("MAX: 0x0118::0x0110: vertex index (%d) >= "
465 "vertex count (%d)",
466 face->vertex_indices[i],
467 object->vertex_count);
468 face->vertex_indices[i] = 0;
469 }
470 }
471 return TRUE;
472}
473
474/* triangles */
475gboolean max_cb_0x08FE_0x0912(MaxGlobalData *global, MaxLocalData *local)
476{
477 guint32 num;
478 gint i, j;
479 G3DObject *object;
480 G3DFace *face;
481 G3DMaterial *mat;
482
483 mat = (G3DMaterial *)g_slist_nth_data(global->model->materials,
484 (global->vertex_offset ? 1 : 0));
485
486 if(local->nb < 4)
487 return FALSE;
488
489 /* faces */
490 num = g3d_stream_read_int32_le(global->stream);
491 local->nb -= 4;
492 object = (G3DObject *)local->object;
493 if(object == NULL) {
494 g_warning("MAX: 0x08FE::0x0912: no object");
495 return FALSE;
496 }
497#if DEBUG > 0
498 g_debug("|%s[TRIS] %d triangles", debug_pad(local->level), num);
499#endif
500 for(i = 0; i < num; i ++) {
501 face = g_new0(G3DFace, 1);
502 face->vertex_count = 3;
503 face->vertex_indices = g_new0(guint32, 3);
504 face->material = mat;
505 object->faces = g_slist_append(object->faces, face);
506
507 if(local->nb < 20)
508 return FALSE;
509 for(j = 0; j < 3; j ++) {
510 face->vertex_indices[j] =
511 global->vertex_offset +
512 g3d_stream_read_int32_le(global->stream);
513 if(face->vertex_indices[j] >= object->vertex_count) {
514 g_warning("MAX: 0x08FE::0x0912: vertex index too high"
515 " (%d (0x%08x) >= %d)",
516 face->vertex_indices[j], face->vertex_indices[j],
517 object->vertex_count);
518 face->vertex_indices[j] = 0;
519 }
520 }
521 /* unknown for now */
522 g3d_stream_read_int32_le(global->stream);
523 g3d_stream_read_int32_le(global->stream);
524 local->nb -= 20;
525 }
526 return TRUE;
527}
528
529/* vertices */
530gboolean max_cb_0x08FE_0x0914(MaxGlobalData *global, MaxLocalData *local)
531{
532 guint32 num;
533 gint i, j;
534 G3DObject *object = (G3DObject *)local->object;
535
536 g_return_val_if_fail(local->nb >= 4, FALSE);
537 g_return_val_if_fail(object != NULL, FALSE);
538
539 /* vertices */
540 num = g3d_stream_read_int32_le(global->stream);
541 local->nb -= 4;
542#if DEBUG > 0
543 g_debug("|%s[VERT] %d vertices", debug_pad(local->level), num);
544#endif
545 global->vertex_offset = object->vertex_count;
546 object->vertex_count += num;
547 object->vertex_data = g_realloc(object->vertex_data,
548 object->vertex_count * 3 * sizeof(G3DFloat));
549
550 for(i = 0; i < num; i ++) {
551 if(local->nb < 12)
552 return FALSE;
553 for(j = 0; j < 3; j ++)
554 object->vertex_data[(global->vertex_offset + i) * 3 + j] =
555 g3d_stream_read_float_le(global->stream);
556 local->nb -= 12;
557 }
558 return TRUE;
559}
560
561/* texture vertices */
562gboolean max_cb_0x08FE_0x0916(MaxGlobalData *global, MaxLocalData *local)
563{
564 return max_cb_0x08FE_0x0128(global, local);
565}
566
567/* texture triangles */
568gboolean max_cb_0x08FE_0x0918(MaxGlobalData *global, MaxLocalData *local)
569{
570 guint32 cnttris = 0;
571
572 while(local->nb >= 12) {
573 cnttris ++;
574
575 g3d_stream_read_int32_le(global->stream);
576 g3d_stream_read_int32_le(global->stream);
577 g3d_stream_read_int32_le(global->stream);
578 local->nb -= 12;
579 }
580
581#if DEBUG > 0
582 g_debug("|%s[TEXI] %d textured triangles (%d bytes left)",
583 debug_pad(local->level), cnttris, local->nb);
584#endif
585 return 0;
586}
587
588/* vertices */
589gboolean max_cb_0x08FE_0x2394(MaxGlobalData *global, MaxLocalData *local)
590{
591 return max_cb_0x08FE_0x0914(global, local);
592}
593
594/* triangles */
595gboolean max_cb_0x08FE_0x2396(MaxGlobalData *global, MaxLocalData *local)
596{
597 guint32 num;
598 gint32 i, j;
599 G3DObject *object = (G3DObject *)local->object;
600 G3DFace *face;
601 G3DMaterial *mat;
602
603 mat = (G3DMaterial *)g_slist_nth_data(global->model->materials,
604 (global->vertex_offset ? 1 : 0));
605
606 g_return_val_if_fail(local->nb >= 4, FALSE);
607 g_return_val_if_fail(object != NULL, FALSE);
608
609 /* faces */
610 num = g3d_stream_read_int32_le(global->stream);
611 local->nb -= 4;
612#if DEBUG > 0
613 g_debug("|%s[TRIS] %d triangles", debug_pad(local->level), num);
614#endif
615 for(i = 0; i < num; i ++) {
616 g_return_val_if_fail(local->nb >= 12, FALSE);
617
618 face = g_new0(G3DFace, 1);
619 face->vertex_count = 3;
620 face->vertex_indices = g_new0(guint32, 3);
621 face->material = mat;
622 object->faces = g_slist_append(object->faces, face);
623
624 g_return_val_if_fail(local->nb >= 12, FALSE);
625 for(j = 0; j < 3; j ++) {
626 face->vertex_indices[j] =
627 global->vertex_offset +
628 g3d_stream_read_int32_le(global->stream);
629 local->nb -= 4;
630 if(face->vertex_indices[j] >= object->vertex_count) {
631 g_warning("MAX: 0x08FE::0x2396: vertex index too high"
632 " (%d (0x%08x) >= %d)",
633 face->vertex_indices[j], face->vertex_indices[j],
634 object->vertex_count);
635 face->vertex_indices[j] = 0;
636 }
637 }
638 }
639 return TRUE;
640}
641
642/* material */
643gboolean max_cb_IDMATG_0x4000(MaxGlobalData *global, MaxLocalData *local)
644{
645 G3DMaterial *material;
646
647 if(strcmp(global->subfile, "Scene") != 0)
648 return FALSE;
649
650 material = g3d_material_new();
651 material->name = g_strdup_printf("0x4000 material @ 0x%08x",
652 (guint32)g3d_stream_tell(global->stream));
653 local->object = material;
654 global->model->materials = g_slist_append(global->model->materials,
655 material);
656 return TRUE;
657}
658
659/* material name */
660gboolean max_cb_0x4000_0x4001(MaxGlobalData *global, MaxLocalData *local)
661{
662 guint32 len;
663 G3DMaterial *material = (G3DMaterial *)local->object;
664
665 g_return_val_if_fail(material != NULL, FALSE);
666 if(material->name)
667 g_free(material->name);
668 len = local->nb / 2;
669 material->name = max_read_wchar(global->stream, len);
670 local->nb -= len * 2;
671#if DEBUG > 0
672 g_debug("|%s[MATN] %s", debug_pad(local->level), material->name);
673#endif
674 return TRUE;
675}
676
677/* material color */
678gboolean max_cb_0x4000_0x4030(MaxGlobalData *global, MaxLocalData *local)
679{
680 G3DMaterial *material = (G3DMaterial *)local->object;
681
682 g_return_val_if_fail(material != NULL, FALSE);
683 g_return_val_if_fail(local->nb >= 16, FALSE);
684
685 material->r = g3d_stream_read_float_le(global->stream);
686 material->g = g3d_stream_read_float_le(global->stream);
687 material->b = g3d_stream_read_float_le(global->stream);
688 material->a = g3d_stream_read_float_le(global->stream);
689 local->nb -= 16;
690#if DEBUG > 0
691 g_debug("|%s[MATC] %.2f, %.2f, %.2f, %.2f", debug_pad(local->level),
692 material->r, material->g, material->b, material->a);
693#endif
694 return TRUE;
695}
696
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.h
new file mode 100644
index 0000000..244020e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_callbacks.h
@@ -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#ifndef _IMP_MAX_CALLBACKS_H
23#define _IMP_MAX_CALLBACKS_H
24
25#include <stdio.h>
26#include <glib.h>
27#include <g3d/types.h>
28
29typedef struct {
30 G3DContext *context;
31 G3DModel *model;
32 G3DStream *stream;
33 const gchar *subfile;
34
35 G3DObject *object;
36 guint32 vertex_offset;
37} MaxGlobalData;
38
39typedef struct {
40 guint16 id;
41 gint32 parentid;
42 guint16 level;
43 gint32 nb;
44 gpointer object;
45} MaxLocalData;
46
47typedef gboolean (* MaxCallback)(MaxGlobalData *global, MaxLocalData *local);
48
49/* callbacks */
50
51gboolean max_cb_debug_int32(MaxGlobalData *global, MaxLocalData *local);
52gboolean max_cb_debug_string(MaxGlobalData *global, MaxLocalData *local);
53gboolean max_cb_debug_wchars(MaxGlobalData *global, MaxLocalData *local);
54
55gboolean max_cb_IDROOT_IDGEOM(MaxGlobalData *global, MaxLocalData *local);
56gboolean max_cb_IDMATG_0x4000(MaxGlobalData *global, MaxLocalData *local);
57
58gboolean max_cb_IDGEOM_0x08FE(MaxGlobalData *global, MaxLocalData *local);
59gboolean max_cb_IDGEOM_0x0962(MaxGlobalData *global, MaxLocalData *local);
60
61gboolean max_cb_IDFILE_0x1201(MaxGlobalData *global, MaxLocalData *local);
62
63gboolean max_cb_0x0001_0x0005(MaxGlobalData *global, MaxLocalData *local);
64
65gboolean max_cb_0x0118_0x0110(MaxGlobalData *global, MaxLocalData *local);
66
67gboolean max_cb_0x08FE_0x0100(MaxGlobalData *global, MaxLocalData *local);
68gboolean max_cb_0x08FE_0x010A(MaxGlobalData *global, MaxLocalData *local);
69gboolean max_cb_0x08FE_0x011A(MaxGlobalData *global, MaxLocalData *local);
70gboolean max_cb_0x08FE_0x0128(MaxGlobalData *global, MaxLocalData *local);
71gboolean max_cb_0x08FE_0x012B(MaxGlobalData *global, MaxLocalData *local);
72gboolean max_cb_0x08FE_0x0912(MaxGlobalData *global, MaxLocalData *local);
73gboolean max_cb_0x08FE_0x0914(MaxGlobalData *global, MaxLocalData *local);
74gboolean max_cb_0x08FE_0x0916(MaxGlobalData *global, MaxLocalData *local);
75gboolean max_cb_0x08FE_0x0918(MaxGlobalData *global, MaxLocalData *local);
76gboolean max_cb_0x08FE_0x2394(MaxGlobalData *global, MaxLocalData *local);
77gboolean max_cb_0x08FE_0x2396(MaxGlobalData *global, MaxLocalData *local);
78
79gboolean max_cb_0x4000_0x4001(MaxGlobalData *global, MaxLocalData *local);
80gboolean max_cb_0x4000_0x4030(MaxGlobalData *global, MaxLocalData *local);
81
82#endif /* _IMP_MAX_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_chunks.h
new file mode 100644
index 0000000..96691bc
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_max/imp_max_chunks.h
@@ -0,0 +1,289 @@
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_MAX_CHUNKS_H
23#define _IMP_MAX_CHUNKS_H
24
25#include <glib.h>
26
27#include "imp_max_callbacks.h"
28
29#define IDNONE -1
30#define IDSOME -2
31#define IDROOT -3
32#define IDGEOM -4
33#define IDMATG -5
34#define IDFILE -6
35
36#define ID_IS_ROOT(pid) \
37 (((pid) == 0x2001) || ((pid) == 0x2003) || ((pid) == 0x2004) || \
38 ((pid) == 0x2006) || ((pid) == 0x2008) || ((pid) == 0x2009) || \
39 ((pid) == 0x200A) || ((pid) == 0x200B))
40#define ID_IS_GEOM(pid) \
41 ((((pid) >= 0x0010) && ((pid) <= 0x0011)) || \
42 (((pid) >= 0x0013) && ((pid) <= 0x0014)) || \
43 (((pid) >= 0x0016) && ((pid) <= 0x001C)) || \
44 ((pid) == 0x0023) || ((pid) == 0x0026))
45#define ID_IS_MATG(pid) \
46 (((pid) == 0x0002) || \
47 (((pid) >= 0x0004) && ((pid) <= 0x000F)))
48#define ID_IS_FILE(pid) \
49 (((pid) == 0x0003) || ((pid) == 0x0400))
50
51typedef struct {
52 gint32 id;
53 gint32 parentid;
54 char *desc;
55 MaxCallback callback;
56} MaxChunk;
57
58/* container chunks */
59static MaxChunk max_cnt_chunks[] = {
60 { 0x0118, 0x08FE, "face", NULL },
61
62 { 0x08FE, IDGEOM, "mesh", max_cb_IDGEOM_0x08FE },
63 { 0x0901, IDGEOM, "matrix or not", NULL },
64 { 0x0906, IDGEOM, "matrix or not", NULL },
65
66 { 0x092C, 0x08FE, "mesh bit map group", NULL },
67 { 0x092D, 0x08FE, "mesh bit map group", NULL },
68 { 0x092E, 0x08FE, "mesh bit map group", NULL },
69
70 { 0x2001, IDNONE, "3ds MAX x.x root node", NULL },
71 { 0x2003, IDNONE, "3ds MAX x.x root node", NULL },
72 { 0x2004, IDNONE, "3ds MAX 3.x root node", NULL },
73 { 0x2006, IDNONE, "3ds MAX 4.x root node", NULL },
74 { 0x2008, IDNONE, "3ds MAX 5.x root node", NULL },
75 { 0x2009, IDNONE, "3ds MAX 6.x root node", NULL },
76 { 0x200A, IDNONE, "3ds MAX 7.x root node", NULL },
77 { 0x200B, IDNONE, "3ds MAX 8.x root node", NULL },
78 { 0x2038, IDNONE, "DLL directory entry", NULL },
79 { 0x2040, IDNONE, "class directory entry", NULL },
80 { 0x2100, IDNONE, "class data entry", NULL },
81
82 { 0x4000, IDMATG, "material group", max_cb_IDMATG_0x4000 },
83
84 { IDNONE, IDSOME, NULL, NULL }
85};
86
87/* data chunks */
88static MaxChunk max_chunks[] = {
89 /* IDGEOM */
90 { 0x08FF, IDGEOM, "mesh something", max_cb_debug_int32 },
91 { 0x0900, IDGEOM, "object something", max_cb_debug_int32 },
92 { 0x0902, IDGEOM, "object something", max_cb_debug_int32 },
93 { 0x0903, IDGEOM, "object something", max_cb_debug_int32 },
94 { 0x0904, IDGEOM, "object something", max_cb_debug_int32 },
95 { 0x0960, IDGEOM, "object something", max_cb_debug_int32 },
96 { 0x0962, IDGEOM, "object name", max_cb_IDGEOM_0x0962 },
97 { 0x0963, IDGEOM, "object something", max_cb_debug_int32 },
98 { 0x096A, IDGEOM, "object something", max_cb_debug_int32 },
99 { 0x096B, IDGEOM, "object something", max_cb_debug_int32 },
100 { 0x096C, IDGEOM, "object something", max_cb_debug_int32 },
101 { 0x0974, IDGEOM, "object something", max_cb_debug_int32 },
102 { 0x0975, IDGEOM, "object flag", NULL },
103 { 0x0978, IDGEOM, "object flag", NULL },
104 { 0x099C, IDGEOM, "object something", max_cb_debug_int32 },
105 { 0x09BA, IDGEOM, "object flag", NULL },
106 { 0x09CE, IDGEOM, "object something", max_cb_debug_int32 },
107 { 0x0A28, IDGEOM, "object something", max_cb_debug_int32 },
108 { 0x0A32, IDGEOM, "object something", max_cb_debug_int32 },
109 { 0x0ABE, IDGEOM, "object something", max_cb_debug_int32 },
110 { 0x2500, IDGEOM, "object something", max_cb_debug_int32 },
111 { 0x2501, IDGEOM, "object something", max_cb_debug_int32 },
112 { 0x2505, IDGEOM, "object something", max_cb_debug_int32 },
113 { 0x2532, IDGEOM, "object something", max_cb_debug_int32 },
114 { 0x3002, IDGEOM, "object something", max_cb_debug_int32 },
115 { 0x3003, IDGEOM, "object something", max_cb_debug_int32 },
116 { 0x3005, IDGEOM, "object something", max_cb_debug_int32 },
117 { 0x4020, IDGEOM, "object something", max_cb_debug_int32 },
118 { 0x4024, IDGEOM, "object something", max_cb_debug_int32 },
119 { 0x4025, IDGEOM, "object something", max_cb_debug_int32 },
120 { 0x4026, IDGEOM, "object something", max_cb_debug_int32 },
121 { 0x402C, IDGEOM, "object something", max_cb_debug_int32 },
122 { 0x402D, IDGEOM, "object something", max_cb_debug_int32 },
123 { 0x4030, IDGEOM, "object something", max_cb_debug_int32 },
124 { 0x4034, IDGEOM, "object something", max_cb_debug_int32 },
125 { 0x4038, IDGEOM, "object something", max_cb_debug_int32 },
126 { 0x403B, IDGEOM, "object something", max_cb_debug_int32 },
127 { 0x7230, IDGEOM, "object something", max_cb_debug_int32 },
128 { 0x7231, IDGEOM, "object something", max_cb_debug_int32 },
129 /* IDMATG */
130 { 0x5300, IDMATG, "material something", max_cb_debug_int32 },
131 /* IDFILE */
132 { 0x1201, IDFILE, "file dimensions + unknown", max_cb_IDFILE_0x1201 },
133 { 0x1230, IDFILE, "file name", max_cb_debug_wchars },
134 { 0x1240, IDFILE, "file type", max_cb_debug_wchars },
135 /* 0x0000 */
136 { 0x0005, 0x0000, "[DEBUG] big chunk", NULL },
137 { 0x0009, 0x0000, "[DEBUG] 16", max_cb_debug_int32 },
138 { 0x000A, 0x0000, "[DEBUG] 3n, 11", NULL },
139 { 0x000B, 0x0000, "[DEBUG] 24", max_cb_debug_int32 },
140 { 0x000C, 0x0000, "[DEBUG] 10", NULL },
141 { 0x2035, 0x0000, "[DEBUG] n * 4", max_cb_debug_int32 },
142 /* 0x0001 */
143 { 0x0005, 0x0001, "properties", max_cb_0x0001_0x0005 },
144 { 0x1000, 0x0003, "[DEBUG] 4", max_cb_debug_int32 },
145 { 0x2045, 0x0001, "[DEBUG] 4", max_cb_debug_int32 },
146 /* 0x0002 */
147 { 0x2045, 0x0002, "[DEBUG] 4", max_cb_debug_int32 },
148 /* 0x0003 */
149 { 0x2045, 0x0003, "[DEBUG] 4", max_cb_debug_int32 },
150 { 0x1030, 0x0003, "[DEBUG] 4", max_cb_debug_int32 },
151 { 0x1040, 0x0003, "[DEBUG] 4", max_cb_debug_int32 },
152 /* 0x0004 */
153 { 0x2035, 0x0004, "[DEBUG] n * 4", max_cb_debug_int32 },
154 { 0x2500, 0x0004, "[DEBUG] 8", max_cb_debug_int32 },
155 { 0x2501, 0x0004, "[DEBUG] 4", max_cb_debug_int32 },
156 { 0x2532, 0x0004, "[DEBUG] flag", NULL },
157 { 0x2533, 0x0004, "[DEBUG] flag", NULL },
158 { 0x2534, 0x0004, "[DEBUG] flag", NULL },
159 { 0x3002, 0x0004, "[DEBUG] 4", max_cb_debug_int32 },
160 { 0x3003, 0x0004, "[DEBUG] 8", max_cb_debug_int32 },
161 { 0x3005, 0x0004, "[DEBUG] 4", max_cb_debug_int32 },
162 /* 0x0010 */
163 { 0x0962, 0x0010, "name", max_cb_debug_wchars },
164 /* 0x0013 */
165 { 0x1000, 0x0013, "text", max_cb_debug_string },
166 /* 0x0019 */
167 { 0x0110, 0x0019, "name", max_cb_debug_wchars },
168 { 0x0120, 0x0019, "name", max_cb_debug_wchars },
169 /* 0x0022 */
170 { 0x0110, 0x0022, "text", max_cb_debug_wchars },
171 { 0x0120, 0x0022, "type data", max_cb_debug_int32 },
172 { 0x0130, 0x0022, "type data", max_cb_debug_int32 },
173 /* 0x0027 */
174 { 0x0110, 0x0027, "text", max_cb_debug_wchars },
175 /* 0x002C */
176 { 0x0110, 0x002C, "text", max_cb_debug_wchars },
177 /* 0x002E */
178 { 0x0110, 0x002E, "text", max_cb_debug_wchars },
179 { 0x0120, 0x002E, "type data", max_cb_debug_int32 },
180 { 0x0130, 0x002E, "type data", max_cb_debug_int32 },
181 { 0x0140, 0x002E, "type data", max_cb_debug_int32 },
182 /* 0x0110 */
183 { 0x0120, 0x0110, "something", max_cb_debug_int32 },
184 { 0x0130, 0x0110, "something", max_cb_debug_int32 },
185 /* 0x0118 */
186 { 0x0100, 0x0118, "face data", max_cb_debug_int32 },
187 { 0x0110, 0x0118, "face indices", max_cb_0x0118_0x0110 },
188
189 /* 0x08FE */
190 { 0x0100, 0x08FE, "vertices", max_cb_0x08FE_0x0100 },
191 { 0x0108, 0x08FE, "mesh data", max_cb_debug_int32 },
192 { 0x010A, 0x08FE, "lines", max_cb_0x08FE_0x010A },
193 { 0x0110, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
194 { 0x0114, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
195 { 0x011A, 0x08FE, "polygons", max_cb_0x08FE_0x011A },
196 { 0x0120, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
197 { 0x0124, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
198 { 0x0128, 0x08FE, "texture vertices", max_cb_0x08FE_0x0128 },
199 { 0x012B, 0x08FE, "texture indices", max_cb_0x08FE_0x012B },
200 { 0x0130, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
201 { 0x0140, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
202 { 0x0150, 0x08FE, "[DEBUG] 4", max_cb_debug_int32 },
203 { 0x0906, 0x08FE, "mesh something", max_cb_debug_int32 },
204 { 0x0908, 0x08FE, "mesh something", max_cb_debug_int32 },
205 { 0x0912, 0x08FE, "triangles", max_cb_0x08FE_0x0912 },
206 { 0x0914, 0x08FE, "vertices", max_cb_0x08FE_0x0914 },
207 { 0x0916, 0x08FE, "texture vertices", max_cb_0x08FE_0x0916 },
208 { 0x0918, 0x08FE, "texture indices (tris)", max_cb_0x08FE_0x0918 },
209 { 0x0924, 0x08FE, "mesh something", max_cb_debug_int32 },
210 { 0x0928, 0x08FE, "mesh something", max_cb_debug_int32 },
211 { 0x092A, 0x08FE, "mesh something", max_cb_debug_int32 },
212 { 0x0959, 0x08FE, "mesh something", max_cb_debug_int32 },
213 { 0x2394, 0x08FE, "vertices", max_cb_0x08FE_0x2394 },
214 { 0x2396, 0x08FE, "triangles", max_cb_0x08FE_0x2396 },
215 { 0x2398, 0x08FE, "mesh something", max_cb_debug_int32 },
216 /* 0x0901 */
217 { 0x300D, 0x0901, "x32", max_cb_debug_int32 },
218 { 0x300E, 0x0901, "x32", max_cb_debug_int32 },
219 { 0x300F, 0x0901, "x32", max_cb_debug_int32 },
220 { 0x3010, 0x0901, "x32", max_cb_debug_int32 },
221 { 0x3012, 0x0901, "x32", max_cb_debug_int32 },
222 { 0x3013, 0x0901, "x32", max_cb_debug_int32 },
223 { 0x3014, 0x0901, "x32", max_cb_debug_int32 },
224 { 0x3015, 0x0901, "x32", max_cb_debug_int32 },
225 { 0x3016, 0x0901, "x32", max_cb_debug_int32 },
226 { 0x3017, 0x0901, "x32", max_cb_debug_int32 },
227 { 0x3019, 0x0901, "x32", max_cb_debug_int32 },
228 { 0x301A, 0x0901, "x32", max_cb_debug_int32 },
229 { 0x301B, 0x0901, "x32", max_cb_debug_int32 },
230 { 0x301C, 0x0901, "x32", max_cb_debug_int32 },
231 { 0x301D, 0x0901, "x32", max_cb_debug_int32 },
232 { 0x301E, 0x0901, "x32", max_cb_debug_int32 },
233 /* 0x0906 */
234 { 0x300D, 0x0906, "x32", max_cb_debug_int32 },
235 { 0x300E, 0x0906, "x32", max_cb_debug_int32 },
236 { 0x300F, 0x0906, "x32", max_cb_debug_int32 },
237 { 0x3010, 0x0906, "x32", max_cb_debug_int32 },
238 { 0x3012, 0x0906, "x32", max_cb_debug_int32 },
239 { 0x3013, 0x0906, "x32", max_cb_debug_int32 },
240 { 0x3014, 0x0906, "x32", max_cb_debug_int32 },
241 { 0x3015, 0x0906, "x32", max_cb_debug_int32 },
242 { 0x3016, 0x0906, "x32", max_cb_debug_int32 },
243 { 0x3017, 0x0906, "x32", max_cb_debug_int32 },
244 { 0x3019, 0x0906, "x32", max_cb_debug_int32 },
245 { 0x301A, 0x0906, "x32", max_cb_debug_int32 },
246 { 0x301B, 0x0906, "x32", max_cb_debug_int32 },
247 { 0x301C, 0x0906, "x32", max_cb_debug_int32 },
248 { 0x301D, 0x0906, "x32", max_cb_debug_int32 },
249 { 0x301E, 0x0906, "x32", max_cb_debug_int32 },
250 /* 0x092C */
251 { 0x2700, 0x092C, "bit map", NULL },
252 /* 0x092D */
253 { 0x2700, 0x092D, "bit map", NULL },
254 /* 0x092E */
255 { 0x2700, 0x092E, "bit map", NULL },
256 /* 0x0AF0 */
257 { 0x0001, 0x0AF0, "something", max_cb_debug_int32 },
258 { 0x0002, 0x0AF0, "something", max_cb_debug_int32 },
259 { 0x0003, 0x0AF0, "something", max_cb_debug_int32 },
260 { 0x0004, 0x0AF0, "something", max_cb_debug_int32 },
261 { 0x0005, 0x0AF0, "something", max_cb_debug_int32 },
262 { 0x0006, 0x0AF0, "something", max_cb_debug_int32 },
263 { 0x0007, 0x0AF0, "something", max_cb_debug_int32 },
264 { 0x0008, 0x0AF0, "something", max_cb_debug_int32 },
265 /* 2500 */
266 { 0x2510, 0x2500, "something", max_cb_debug_int32 },
267 { 0x2511, 0x2500, "something", max_cb_debug_int32 },
268 { 0x2513, 0x2500, "something", max_cb_debug_int32 },
269 /* 2512 */
270 { 0x0530, 0x2512, "something", max_cb_debug_int32 },
271 { 0x0540, 0x2512, "something", max_cb_debug_int32 },
272 { 0x0550, 0x2512, "something", max_cb_debug_int32 },
273 { 0x0560, 0x2512, "something", max_cb_debug_int32 },
274 /* 0x39BF */
275 { 0x0100, 0x39BF, "text", max_cb_debug_wchars },
276 /* 0x4000 */
277 { 0x4001, 0x4000, "material name", max_cb_0x4000_0x4001 },
278 { 0x4003, 0x4000, "material something (4)", max_cb_debug_int32 },
279 { 0x4020, 0x4000, "material something (4)", max_cb_debug_int32 },
280 { 0x4030, 0x4000, "material color", max_cb_0x4000_0x4030 },
281
282 /* IDSOME */
283 { 0x2034, IDSOME, "init something", max_cb_debug_int32 },
284 { 0x2035, IDSOME, "init something", max_cb_debug_int32 },
285
286 { IDNONE, IDSOME, NULL, NULL }
287};
288
289#endif /* _IMP_MAX_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile
new file mode 100644
index 0000000..ac3c0b3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile
@@ -0,0 +1,518 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_maya/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_maya
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_maya_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_maya_la_OBJECTS = imp_maya.lo imp_maya_callbacks.lo \
59 imp_maya_obj.lo imp_maya_var.lo
60imp_maya_la_OBJECTS = $(am_imp_maya_la_OBJECTS)
61#am_imp_maya_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_maya_la_SOURCES)
75DIST_SOURCES = $(imp_maya_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_maya
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya
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_maya.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_maya_la_SOURCES = imp_maya.c imp_maya_chunks.h \
231 imp_maya_callbacks.c imp_maya_callbacks.h \
232 imp_maya_obj.c imp_maya_obj.h \
233 imp_maya_var.c imp_maya_var.h
234
235imp_maya_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_maya.la: $(imp_maya_la_OBJECTS) $(imp_maya_la_DEPENDENCIES)
297 $(LINK) $(am_imp_maya_la_rpath) $(imp_maya_la_OBJECTS) $(imp_maya_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305include ./$(DEPDIR)/imp_maya.Plo
306include ./$(DEPDIR)/imp_maya_callbacks.Plo
307include ./$(DEPDIR)/imp_maya_obj.Plo
308include ./$(DEPDIR)/imp_maya_var.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_maya/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.am
new file mode 100644
index 0000000..5ca42bd
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.am
@@ -0,0 +1,25 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_maya.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_maya_la_SOURCES = imp_maya.c imp_maya_chunks.h \
22 imp_maya_callbacks.c imp_maya_callbacks.h \
23 imp_maya_obj.c imp_maya_obj.h \
24 imp_maya_var.c imp_maya_var.h
25imp_maya_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/Makefile.in
new file mode 100644
index 0000000..306a6c9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/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_maya
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_maya_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_maya_la_OBJECTS = imp_maya.lo imp_maya_callbacks.lo \
59 imp_maya_obj.lo imp_maya_var.lo
60imp_maya_la_OBJECTS = $(am_imp_maya_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_maya_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_maya_la_SOURCES)
75DIST_SOURCES = $(imp_maya_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_maya.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_maya_la_SOURCES = imp_maya.c imp_maya_chunks.h \
231 imp_maya_callbacks.c imp_maya_callbacks.h \
232 imp_maya_obj.c imp_maya_obj.h \
233 imp_maya_var.c imp_maya_var.h
234
235imp_maya_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
236all: all-am
237
238.SUFFIXES:
239.SUFFIXES: .c .lo .o .obj
240$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
241 @for dep in $?; do \
242 case '$(am__configure_deps)' in \
243 *$$dep*) \
244 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
245 && exit 0; \
246 exit 1;; \
247 esac; \
248 done; \
249 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile'; \
250 cd $(top_srcdir) && \
251 $(AUTOMAKE) --gnu plugins/import/imp_maya/Makefile
252.PRECIOUS: Makefile
253Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
254 @case '$?' in \
255 *config.status*) \
256 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
257 *) \
258 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
259 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
260 esac;
261
262$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264
265$(top_srcdir)/configure: $(am__configure_deps)
266 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
267$(ACLOCAL_M4): $(am__aclocal_m4_deps)
268 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
270 @$(NORMAL_INSTALL)
271 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
272 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
273 if test -f $$p; then \
274 f=$(am__strip_dir) \
275 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
276 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
277 else :; fi; \
278 done
279
280uninstall-pluginimpLTLIBRARIES:
281 @$(NORMAL_UNINSTALL)
282 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
283 p=$(am__strip_dir) \
284 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
285 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
286 done
287
288clean-pluginimpLTLIBRARIES:
289 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
290 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
291 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
292 test "$$dir" != "$$p" || dir=.; \
293 echo "rm -f \"$${dir}/so_locations\""; \
294 rm -f "$${dir}/so_locations"; \
295 done
296imp_maya.la: $(imp_maya_la_OBJECTS) $(imp_maya_la_DEPENDENCIES)
297 $(LINK) $(am_imp_maya_la_rpath) $(imp_maya_la_OBJECTS) $(imp_maya_la_LIBADD) $(LIBS)
298
299mostlyclean-compile:
300 -rm -f *.$(OBJEXT)
301
302distclean-compile:
303 -rm -f *.tab.c
304
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya_callbacks.Plo@am__quote@
307@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya_obj.Plo@am__quote@
308@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_maya_var.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_maya/imp_maya.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya.c
new file mode 100644
index 0000000..d07bfb2
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya.c
@@ -0,0 +1,77 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <glib.h>
27
28#include <g3d/iff.h>
29#include <g3d/stream.h>
30
31#include "imp_maya_chunks.h"
32
33EAPI
34gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
35 G3DModel *model, gpointer user_data)
36{
37 G3DIffGlobal *global;
38 G3DIffLocal *local;
39 guint32 id;
40 gsize len;
41
42 if(!g3d_iff_check(stream, &id, &len) ||
43 (id != G3D_IFF_MKID('M','a','y','a'))) {
44 g_warning("file is not an Maya file %s", stream->uri);
45 return FALSE;
46 }
47
48 local = g_new0(G3DIffLocal, 1);
49 global = g_new0(G3DIffGlobal, 1);
50
51 global->context = context;
52 global->model = model;
53 global->stream = stream;
54
55 local->parent_id = id;
56 local->nb = len;
57
58 g3d_iff_read_ctnr(global, local, maya_chunks, G3D_IFF_PAD4);
59
60 g_free(local);
61 g_free(global);
62
63 return TRUE;
64}
65
66EAPI
67gchar *plugin_description(void)
68{
69 return g_strdup("Maya models.");
70}
71
72EAPI
73gchar **plugin_extensions(void)
74{
75 return g_strsplit("mb", ":", 0);
76}
77
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.c
new file mode 100644
index 0000000..f2b4907
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.c
@@ -0,0 +1,645 @@
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 <g3d/iff.h>
25#include <g3d/model.h>
26#include <g3d/material.h>
27#include <g3d/primitive.h>
28#include <g3d/stream.h>
29#include <g3d/matrix.h>
30#include <g3d/debug.h>
31
32#include "imp_maya_obj.h"
33#include "imp_maya_var.h"
34
35/* compound? */
36gboolean maya_cb_CMPD(G3DIffGlobal *global, G3DIffLocal *local)
37{
38 gint32 flags, i;
39 gdouble *val;
40 gchar *var;
41 gchar *padding = " ";
42
43 if(local->nb < 26)
44 {
45 g_warning("[Maya][CMPD] size: %d", local->nb);
46 return FALSE;
47 }
48
49 /* var */
50 var = g_new0(gchar, local->nb - 25);
51 g3d_stream_read(global->stream, var, local->nb - 25);
52 local->nb -= (local->nb - 25);
53
54 /* flags ? */
55 flags = g3d_stream_read_int8(global->stream);
56 local->nb -= 1;
57
58 val = g_new0(gdouble, 3);
59
60 for(i = 0; i < 3; i ++)
61 {
62 val[i] = g3d_stream_read_double_be(global->stream);
63 local->nb -= 8;
64 }
65
66 g_debug("\\%s[Maya][CMPD] %s = [%g %g %g]",
67 padding + (strlen(padding) - local->level),
68 var,
69 val[0], val[1], val[2]);
70
71 if(local->object)
72 maya_var_set((MayaObject *)local->object, var, val);
73 else
74 g_free(val);
75
76 g_free(var);
77
78 return TRUE;
79}
80
81/* creator */
82gboolean maya_cb_CREA(G3DIffGlobal *global, G3DIffLocal *local)
83{
84 MayaObject *obj;
85 gint32 max_len, flags;
86 gchar *buffer, *name;
87 gchar *padding = " ";
88
89 /* flags ? */
90 flags = g3d_stream_read_int8(global->stream);
91 local->nb -= 1;
92
93 max_len = local->nb;
94 buffer = g_malloc(max_len + 1);
95
96 /* object name */
97 local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len);
98 name = g_strdup(buffer);
99
100 obj = (MayaObject *)local->object;
101 if(obj)
102 obj->name = g_strdup(buffer);
103
104 /* parent name */
105 if(local->nb > 0)
106 local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len);
107 else
108 *buffer = '\0';
109
110 if(obj && *buffer)
111 obj->parent = g_strdup(buffer);
112
113 g_debug("\\%s[Maya][CREA] %s (%s)",
114 padding + (strlen(padding) - local->level),
115 name, *buffer ? buffer : "none");
116
117 g_free(buffer);
118 g_free(name);
119
120 return TRUE;
121}
122
123gboolean maya_cb_CWFL(G3DIffGlobal *global, G3DIffLocal *local)
124{
125 gchar *buffer, *name;
126 gchar *padding = " ";
127 guint32 flags, max_len;
128
129 /* flags ? */
130 flags = g3d_stream_read_int8(global->stream);
131 local->nb -= 1;
132
133 max_len = local->nb;
134 buffer = g_malloc(max_len + 1);
135
136 local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len);
137 name = g_strdup(buffer);
138
139 local->nb -= g3d_stream_read_cstr(global->stream, buffer, max_len);
140
141 g_debug("\\%s[Maya][CWFL] %s; %s (flags: %u, %d bytes left)",
142 padding + (strlen(padding) - local->level),
143 name, buffer, flags, local->nb);
144
145 g_free(name);
146 g_free(buffer);
147
148 return TRUE;
149}
150
151/* double # */
152gboolean maya_cb_DBLn(G3DIffGlobal *global, G3DIffLocal *local)
153{
154 gint32 len, flags, ndbl, i;
155 gdouble *val;
156 gchar *var;
157 gchar *padding = " ";
158
159 len = local->nb - 9;
160 var = g_malloc(len);
161 g3d_stream_read(global->stream, var, len);
162 local->nb -= len;
163
164 flags = g3d_stream_read_int8(global->stream);
165 local->nb -= 1;
166
167 ndbl = local->nb / 8;
168 val = g_new0(gdouble, ndbl);
169 for(i = 0; i < ndbl; i ++)
170 {
171 val[i] = g3d_stream_read_double_be(global->stream);
172 local->nb -= 8;
173 }
174
175 g_debug("\\%s[Maya][DBL#] %s (%d doubles) (0x%02X)",
176 padding + (strlen(padding) - local->level),
177 var, ndbl, flags);
178
179 if(local->object)
180 maya_var_set((MayaObject *)local->object, var, val);
181 else
182 g_free(val);
183
184 g_free(var);
185
186 return TRUE;
187}
188
189/* double 2 */
190gboolean maya_cb_DBL2(G3DIffGlobal *global, G3DIffLocal *local)
191{
192 gint32 len, flags;
193 gdouble *val;
194 gchar *var;
195 gchar *padding = " ";
196
197 len = local->nb - 17;
198 var = g_malloc(len);
199 g3d_stream_read(global->stream, var, len);
200 local->nb -= len;
201
202 flags = g3d_stream_read_int8(global->stream);
203 local->nb -= 1;
204
205 val = g_new0(gdouble, 2);
206 val[0] = g3d_stream_read_double_be(global->stream);
207 val[1] = g3d_stream_read_double_be(global->stream);
208 local->nb -= 16;
209
210 g_debug("\\%s[Maya][DBL2] %s = (%g,%g) (0x%02X)",
211 padding + (strlen(padding) - local->level),
212 var, val[0], val[1], flags);
213
214 if(local->object)
215 maya_var_set((MayaObject *)local->object, var, val);
216 else
217 g_free(val);
218
219 g_free(var);
220
221 return TRUE;
222}
223
224/* double 3 */
225gboolean maya_cb_DBL3(G3DIffGlobal *global, G3DIffLocal *local)
226{
227 gint32 len, flags;
228 gdouble *val;
229 gchar *var;
230 gchar *padding = " ";
231
232 len = local->nb - 25;
233 var = g_malloc(len);
234 g3d_stream_read(global->stream, var, len);
235 local->nb -= len;
236
237 flags = g3d_stream_read_int8(global->stream);
238 local->nb -= 1;
239
240 val = g_new0(gdouble, 3);
241 val[0] = g3d_stream_read_double_be(global->stream);
242 val[1] = g3d_stream_read_double_be(global->stream);
243 val[2] = g3d_stream_read_double_be(global->stream);
244 local->nb -= 24;
245
246 g_debug("\\%s[Maya][DBL3] %s = (%g,%g,%g) (0x%02X)",
247 padding + (strlen(padding) - local->level),
248 var, val[0], val[1], val[2], flags);
249
250 if(local->object)
251 maya_var_set((MayaObject *)local->object, var, val);
252 else
253 g_free(val);
254
255 g_free(var);
256
257 return TRUE;
258}
259
260/* double */
261gboolean maya_cb_DBLE(G3DIffGlobal *global, G3DIffLocal *local)
262{
263 gint32 len, flags;
264 gdouble val;
265 gchar *var;
266 gchar *padding = " ";
267
268 len = local->nb - 9;
269 if(len <= 0)
270 {
271 g_warning("[Maya][DBLE] length of chunk: %d", local->nb);
272 return FALSE;
273 }
274
275 var = g_malloc(len);
276 g3d_stream_read(global->stream, var, len);
277 local->nb -= len;
278
279 flags = g3d_stream_read_int8(global->stream);
280 local->nb -= 1;
281
282 val = g3d_stream_read_double_be(global->stream);
283 local->nb -= 8;
284
285 g_debug("\\%s[Maya][DBLE] %s = %g (0x%02X)",
286 padding + (strlen(padding) - local->level),
287 var, val, flags);
288
289 if(local->object)
290 maya_var_set_double((MayaObject *)local->object, var, val);
291
292 g_free(var);
293
294 return TRUE;
295}
296
297/* mesh object */
298gboolean maya_cb_DMSH(G3DIffGlobal *global, G3DIffLocal *local)
299{
300 MayaObject *obj;
301 G3DObject *object, *parent;
302 G3DMaterial *material;
303
304 if(local->finalize)
305 {
306 obj = (MayaObject *)local->object;
307
308 object = (G3DObject *)obj->user_data;
309 object->name = obj->name ? g_strdup(obj->name) : "(unnamed mesh)";
310
311 if(obj->parent)
312 {
313 parent = g3d_model_get_object_by_name(global->model, obj->parent);
314 if(parent)
315 object->transformation = parent->transformation;
316 }
317
318 maya_obj_add_to_tree(obj, global->model, object);
319 maya_obj_free(obj);
320 }
321 else
322 {
323 obj = maya_obj_new();
324 local->object = obj;
325
326 material = g3d_material_new();
327 material->name = g_strdup("(default material)");
328
329 object = g_new0(G3DObject, 1);
330 object->materials = g_slist_append(object->materials, material);
331
332 obj->user_data = object;
333 }
334
335 return TRUE;
336}
337
338/* float 3 */
339gboolean maya_cb_FLT3(G3DIffGlobal *global, G3DIffLocal *local)
340{
341 gint32 len, flags;
342 G3DFloat *val;
343 gchar *var;
344 gchar *padding = " ";
345
346 len = local->nb - 13;
347 var = g_malloc(len);
348 g3d_stream_read(global->stream, var, len);
349 local->nb -= len;
350
351 flags = g3d_stream_read_int8(global->stream);
352 local->nb -= 1;
353
354 val = g_new0(G3DFloat, 3);
355 val[0] = g3d_stream_read_float_be(global->stream);
356 val[1] = g3d_stream_read_float_be(global->stream);
357 val[2] = g3d_stream_read_float_be(global->stream);
358 local->nb -= 12;
359
360 g_debug("\\%s[Maya][DBL3] %s = (%g; %g; %g) (0x%02X)",
361 padding + (strlen(padding) - local->level),
362 var, val[0], val[1], val[2], flags);
363
364 if(local->object)
365 maya_var_set((MayaObject *)local->object, var, val);
366 else
367 g_free(val);
368
369 g_free(var);
370
371 return TRUE;
372}
373
374/* matrix */
375gboolean maya_cb_MATR(G3DIffGlobal *global, G3DIffLocal *local)
376{
377 gint32 flags, i;
378 G3DFloat *val;
379 gchar *var;
380 gchar *padding = " ";
381
382 if(local->nb <= 129)
383 {
384 g_warning("[Maya][MATR] matrix size: %d", local->nb);
385 return FALSE;
386 }
387
388 /* var */
389 var = g_new0(gchar, local->nb - 129);
390 g3d_stream_read(global->stream, var, local->nb - 129);
391 local->nb -= (local->nb - 129);
392
393 /* flags ? */
394 flags = g3d_stream_read_int8(global->stream);
395 local->nb -= 1;
396
397 val = g_new0(G3DFloat, 16);
398
399 for(i = 0; i < 16; i ++)
400 {
401 val[i] = (G3DFloat)g3d_stream_read_double_be(global->stream);
402 local->nb -= 8;
403 }
404
405 g_debug("\\%s[Maya][MATR] %s = \n"
406 "%f %f %f %f\n"
407 "%f %f %f %f\n"
408 "%f %f %f %f\n"
409 "%f %f %f %f",
410 padding + (strlen(padding) - local->level),
411 var,
412 val[0 * 4 + 0], val[1 * 4 + 0], val[2 * 4 + 0], val[3 * 4 + 0],
413 val[0 * 4 + 1], val[1 * 4 + 1], val[2 * 4 + 1], val[3 * 4 + 1],
414 val[0 * 4 + 2], val[1 * 4 + 2], val[2 * 4 + 2], val[3 * 4 + 2],
415 val[0 * 4 + 3], val[1 * 4 + 3], val[2 * 4 + 3], val[3 * 4 + 3]);
416
417 if(local->object)
418 maya_var_set((MayaObject *)local->object, var, val);
419 else
420 g_free(val);
421
422 g_free(var);
423
424 return TRUE;
425}
426
427/* mesh */
428gboolean maya_cb_MESH(G3DIffGlobal *global, G3DIffLocal *local)
429{
430 G3DObject *object;
431 G3DMaterial *material;
432 G3DFace *face;
433 gint32 x1, x2, x3, x4, i, i1, i2;
434
435 x1 = g3d_stream_read_int16_be(global->stream);
436 x2 = g3d_stream_read_int16_be(global->stream);
437 x3 = g3d_stream_read_int16_be(global->stream);
438 x4 = g3d_stream_read_int16_be(global->stream);
439 local->nb -= 8;
440
441 object = (G3DObject *)((MayaObject *)local->object)->user_data;
442 material = (G3DMaterial *)g_slist_nth_data(object->materials, 0);
443
444 if(x1 == 0x6369)
445 {
446 object->vertex_count = x4 / 3;
447 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
448
449 for(i = 0; i < object->vertex_count; i ++)
450 {
451 object->vertex_data[i * 3 + 0] = g3d_stream_read_float_be(global->stream);
452 object->vertex_data[i * 3 + 1] = g3d_stream_read_float_be(global->stream);
453 object->vertex_data[i * 3 + 2] = g3d_stream_read_float_be(global->stream);
454 local->nb -= 12;
455 }
456
457 x3 = g3d_stream_read_int16_be(global->stream);
458 x4 = g3d_stream_read_int16_be(global->stream);
459 local->nb -= 4;
460#if 0
461 g_debug("[Maya][MESH] %d %d", x3, x4);
462#endif
463 i1 = -1;
464 i2 = -1;
465 for(i = 0; i < x4 / 2; i ++)
466 {
467 if(i1 == -1)
468 {
469 i1 = g3d_stream_read_int32_be(global->stream) & 0xFFFFFF;
470 i2 = g3d_stream_read_int32_be(global->stream) & 0xFFFFFF;
471 local->nb -= 8;
472 }
473 else
474 {
475 face = g_new0(G3DFace, 1);
476 face->vertex_count = 4;
477 face->vertex_indices = g_new0(guint32, 4);
478 face->vertex_indices[0] = i1;
479 face->vertex_indices[1] = i2;
480 face->vertex_indices[2] =
481 g3d_stream_read_int32_be(global->stream) & 0xFFFFFF;
482 face->vertex_indices[3] =
483 g3d_stream_read_int32_be(global->stream) & 0xFFFFFF;
484 face->material = material;
485 local->nb -= 8;
486 i1 = face->vertex_indices[3];
487 i2 = face->vertex_indices[2];
488
489 object->faces = g_slist_append(object->faces, face);
490 }
491 }
492
493 x3 = g3d_stream_read_int16_be(global->stream);
494 x4 = g3d_stream_read_int16_be(global->stream);
495 local->nb -= 4;
496 }
497 return TRUE;
498}
499
500/* poly cube */
501gboolean maya_cb_PCUB(G3DIffGlobal *global, G3DIffLocal *local)
502{
503 MayaObject *obj;
504 G3DObject *object;
505 G3DMaterial *material;
506 gdouble w, h, d;
507
508 if(local->finalize)
509 {
510 obj = (MayaObject *)local->object;
511 g_return_val_if_fail(obj != NULL, FALSE);
512
513 w = maya_var_get_double(obj, "w", 1.0);
514 h = maya_var_get_double(obj, "h", 1.0);
515 d = maya_var_get_double(obj, "d", 1.0);
516
517 material = g3d_material_new();
518 object = g3d_primitive_box(w, h, d, material);
519 object->name = obj->name ? g_strdup(obj->name) :
520 g_strdup("(unnamed cube)");
521
522 object->materials = g_slist_append(object->materials, material);
523 maya_obj_add_to_tree(obj, global->model, object);
524
525 /* destroy object */
526 maya_obj_free(obj);
527 }
528 else
529 {
530 /* create object */
531 obj = maya_obj_new();
532 local->object = obj;
533 }
534
535 return TRUE;
536}
537
538/* cylinder */
539gboolean maya_cb_PCYL(G3DIffGlobal *global, G3DIffLocal *local)
540{
541 MayaObject *obj;
542 G3DObject *object;
543 G3DMaterial *material;
544 gdouble h, r;
545 guint32 s;
546
547 if(local->finalize) {
548 obj = (MayaObject *)local->object;
549 g_return_val_if_fail(obj != NULL, FALSE);
550
551 h = maya_var_get_double(obj, "h", 1.0);
552 r = maya_var_get_double(obj, "r", 0.5);
553 s = MAX(3, (guint32)maya_var_get_double(obj, "sx", 20));
554
555 material = g3d_material_new();
556 object = g3d_primitive_cylinder(r, h, s, TRUE, TRUE, material);
557 if(object) {
558 object->name = obj->name ? g_strdup(obj->name) :
559 g_strdup("(unnamed cylinder)");
560
561 object->materials = g_slist_append(object->materials, material);
562 maya_obj_add_to_tree(obj, global->model, object);
563 }
564 /* destroy object */
565 maya_obj_free(obj);
566 } else {
567 /* create object */
568 obj = maya_obj_new();
569 local->object = obj;
570 }
571 return TRUE;
572}
573
574/* string */
575gboolean maya_cb_STR_(G3DIffGlobal *global, G3DIffLocal *local)
576{
577 gchar *buffer, *var;
578 gchar *padding = " ";
579
580 /* variable */
581 buffer = g_malloc(local->nb);
582 local->nb -= g3d_stream_read_cstr(global->stream, buffer, local->nb);
583 var = g_strdup(buffer);
584
585 /* value */
586 local->nb -= g3d_stream_read_cstr(global->stream, buffer, local->nb);
587
588 g_debug("\\%s[Maya][STR ] %s = '%.*s' (%d characters)",
589 padding + (strlen(padding) - local->level),
590 var, 40, buffer, (int) strlen(buffer));
591
592 if(local->object)
593 maya_var_set((MayaObject *)local->object, var, g_strdup(buffer));
594
595 g_free(buffer);
596 g_free(var);
597
598 return TRUE;
599}
600
601/* transformation */
602gboolean maya_cb_XFRM(G3DIffGlobal *global, G3DIffLocal *local)
603{
604 MayaObject *obj;
605 G3DObject *object;
606 G3DTransformation *tf;
607 gdouble *val;
608
609 if(local->finalize)
610 {
611 obj = (MayaObject *)local->object;
612
613 object = maya_obj_to_g3d(obj);
614
615 tf = g_new0(G3DTransformation, 1);
616 g3d_matrix_identity(tf->matrix);
617
618 val = maya_var_get(obj, "t");
619 if(val)
620 g3d_matrix_translate(val[0], val[1], val[2], tf->matrix);
621
622 val = maya_var_get(obj, "r");
623 if(val)
624 g3d_matrix_rotate_xyz(val[0], val[1], val[2], tf->matrix);
625
626 val = maya_var_get(obj, "s");
627 if(val)
628 g3d_matrix_scale(val[0], val[1], val[2], tf->matrix);
629
630 /* g3d_matrix_dump(tf->matrix); */
631
632 object->transformation = tf;
633
634 maya_obj_add_to_tree(obj, global->model, object);
635
636 maya_obj_free(obj);
637 }
638 else
639 {
640 obj = maya_obj_new();
641 local->object = obj;
642 }
643
644 return TRUE;
645}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.h
new file mode 100644
index 0000000..aaa0718
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_callbacks.h
@@ -0,0 +1,43 @@
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_MAYA_CALLBACKS_H
23#define _IMP_MAYA_CALLBACKS_H
24
25#include <g3d/iff.h>
26
27gboolean maya_cb_CMPD(G3DIffGlobal *global, G3DIffLocal *local);
28gboolean maya_cb_CREA(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean maya_cb_CWFL(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean maya_cb_DBLn(G3DIffGlobal *global, G3DIffLocal *local);
31gboolean maya_cb_DBL2(G3DIffGlobal *global, G3DIffLocal *local);
32gboolean maya_cb_DBL3(G3DIffGlobal *global, G3DIffLocal *local);
33gboolean maya_cb_DBLE(G3DIffGlobal *global, G3DIffLocal *local);
34gboolean maya_cb_DMSH(G3DIffGlobal *global, G3DIffLocal *local);
35gboolean maya_cb_FLT3(G3DIffGlobal *global, G3DIffLocal *local);
36gboolean maya_cb_MATR(G3DIffGlobal *global, G3DIffLocal *local);
37gboolean maya_cb_MESH(G3DIffGlobal *global, G3DIffLocal *local);
38gboolean maya_cb_PCUB(G3DIffGlobal *global, G3DIffLocal *local);
39gboolean maya_cb_PCYL(G3DIffGlobal *global, G3DIffLocal *local);
40gboolean maya_cb_STR_(G3DIffGlobal *global, G3DIffLocal *local);
41gboolean maya_cb_XFRM(G3DIffGlobal *global, G3DIffLocal *local);
42
43#endif /* _IMP_MAYA_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h
new file mode 100644
index 0000000..84997a9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_chunks.h
@@ -0,0 +1,130 @@
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_MAYA_CHUNKS_H
23#define _IMP_MAYA_CHUNKS_H
24
25#include <g3d/iff.h>
26
27#include "imp_maya_callbacks.h"
28
29static G3DIffChunkInfo maya_chunks[] = {
30 { "ATTR", "unknown", 0, NULL },
31 { "AUDI", "audio", 1, NULL }, /* FOR4 */
32 { "AUNI", "angle unit", 0, NULL },
33 { "BRSH", "brush", 1, NULL }, /* FOR4 */
34 { "CHNG", "changes", 0, NULL },
35 { "CMP#", "unknown", 0, NULL },
36 { "CMPD", "compound", 0, maya_cb_CMPD },
37 { "CONN", "connection list", 1, NULL }, /* FOR4 */
38 { "CONS", "construction", 1, NULL }, /* LIS4 */
39 { "CWFL", "connect attr", 0, maya_cb_CWFL },
40 { "CREA", "create node", 0, maya_cb_CREA },
41 { "DBL#", "double #", 0, maya_cb_DBLn },
42 { "DBL2", "double 2", 0, maya_cb_DBL2 },
43 { "DBL3", "double 3", 0, maya_cb_DBL3 },
44 { "DBLE", "double", 0, maya_cb_DBLE },
45 { "DCAM", "camera", 1, NULL }, /* FOR4 */
46 { "DECT", "delete component", 1, NULL }, /* FOR4 */
47 { "DELA", "delete attribute", 1, NULL }, /* FOR4 */
48 { "DELL", "delete list", 1, NULL }, /* LIS4 */
49 { "DISC", "unknown", 0, NULL },
50 { "DISL", "unknown", 1, NULL }, /* LIS4 */
51 { "DMSH", "mesh", 1, maya_cb_DMSH },
52 { "DMTI", "material info", 1, NULL }, /* FOR4 */
53 { "DPLM", "layer manager", 1, NULL }, /* FOR4 */
54 { "DSPL", "layer ?", 1, NULL }, /* FOR4 */
55 { "FINF", "file information", 0, maya_cb_STR_ },
56 { "FDFL", "flare ?", 1, NULL }, /* FOR4 */
57 { "FLGS", "flags", 0, NULL },
58 { "FLT2", "float 2", 0, NULL },
59 { "FLT3", "float 3", 0, maya_cb_FLT3 },
60 { "FMPT", "unknown", 1, NULL }, /* FOR4 */
61 { "FNLD", "unknown", 1, NULL }, /* FOR4 */
62 { "GPID", "group id", 1, NULL }, /* FOR4 */
63 { "GRPP", "group parts", 1, NULL }, /* FOR4 */
64 { "HEAD", "header", 1, NULL }, /* FOR4 */
65 { "ICON", "icon", 0, NULL },
66 { "INCL", "includes", 0, NULL },
67 { "INFO", "information", 0, NULL },
68 { "LUNI", "length unit", 0, NULL },
69 { "MADE", "creation date", 0, NULL },
70 { "MATR", "matrix", 0, maya_cb_MATR },
71 { "MESH", "mesh", 0, maya_cb_MESH },
72 { "NPLN", "unknown", 0, NULL },
73 { "NRBS", "NURBS ?", 0, NULL },
74 { "NSRF", "surface", 1, NULL }, /* FOR4 */
75 { "OBJN", "unknown", 0, NULL },
76 { "OBST", "unknown", 1, NULL }, /* FOR4 */
77 { "PAUP", "poly auto proj", 1, NULL }, /* FOR4 */
78 { "PBOP", "poly boolean operation", 1, NULL }, /* FOR4 */
79 { "PBVL", "poly bevel", 1, NULL }, /* FOR4 */
80 { "PCRE", "poly create face", 1, NULL }, /* FOR4 */
81 { "PCTA", "poly rotate ?", 1, NULL }, /* FOR4 */
82 { "PCTL", "poly translate ?", 1, NULL }, /* FOR4 */
83 { "PCTU", "poly scale ?", 1, NULL }, /* FOR4 */
84 { "PCUB", "poly cube", 1, maya_cb_PCUB },
85 { "PCYL", "poly cylinder", 1, maya_cb_PCYL },
86 { "PEXE", "poly extrude", 1, NULL }, /* FOR4 */
87 { "PEXF", "poly extrude face", 1, NULL }, /* FOR4 */
88 { "PFUV", "poly flip UV", 1, NULL }, /* FOR4 */
89 { "PING", "unknown", 1, NULL }, /* FOR4 */
90 { "PLUG", "plugin ?", 0, NULL },
91 { "PMIR", "poly mirror", 1, NULL }, /* FOR4 */
92 { "PMVE", "poly merge vertices", 1, NULL }, /* FOR4 */
93 { "PPCT", "poly cut", 1, NULL }, /* FOR4 */
94 { "PPIP", "poly pipe", 1, NULL }, /* FOR4 */
95 { "PRNS", "unknown", 0, NULL },
96 { "PRNT", "unknown", 0, NULL },
97 { "PSEP", "poly separate", 1, NULL }, /* FOR4 */
98 { "PSMF", "poly smooth face", 1, NULL }, /* FOR4 */
99 { "PSOE", "poly soft edge", 1, NULL }, /* FOR4 */
100 { "PSPH", "poly sphere", 1, NULL }, /* FOR4 */
101 { "PSPL", "poly split", 1, NULL }, /* FOR4 */
102 { "PTRI", "poly triangulate", 1, NULL }, /* FOR4 */
103 { "PTUV", "poly tweak UV", 1, NULL }, /* FOR4 */
104 { "PTWK", "poly tweak", 1, NULL }, /* FOR4 */
105 { "PUNI", "poly unite", 1, NULL }, /* FOR4 */
106 { "RANI", "anisotropic", 1, NULL }, /* FOR4 */
107 { "RBLN", "unknown", 1, NULL }, /* FOR4 */
108 { "RLAM", "lambert", 1, NULL }, /* FOR4 */
109 { "RLLK", "light linker", 1, NULL }, /* FOR4 */
110 { "RNDL", "render layer", 1, NULL }, /* FOR4 */
111 { "RNLM", "render layer manager", 1, NULL }, /* FOR4 */
112 { "RPHO", "phong ?", 1, NULL }, /* FOR4 */
113 { "RPL2", "place texture", 1, NULL }, /* FOR4 */
114 { "RPLD", "place texture", 1, NULL }, /* FOR4 */
115 { "RPRJ", "projection", 1, NULL }, /* FOR4 */
116 { "RTFT", "texture file", 1, NULL }, /* FOR4 */
117 { "SCRP", "script", 1, NULL }, /* FOR4 */
118 { "SHAD", "shadow", 1, NULL }, /* FOR4 */
119 { "SLCT", "select", 0, NULL }, /* evil ;) */
120 { "STR ", "string", 0, maya_cb_STR_ },
121 { "TGEO", "transform geometry", 1, NULL }, /* FOR4 */
122 { "TUNI", "time unit", 0, NULL },
123 { "UVER", "minor version?", 0, NULL },
124 { "VERS", "version", 0, NULL },
125 { "XFRM", "transformation", 1, maya_cb_XFRM },
126
127 { NULL, NULL, 0, NULL }
128};
129
130#endif /* _IMP_MAYA_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.c
new file mode 100644
index 0000000..d55bc71
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.c
@@ -0,0 +1,110 @@
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 <g3d/model.h>
25
26#include "imp_maya_obj.h"
27
28MayaObject *maya_obj_new(void)
29{
30 MayaObject *obj;
31
32 obj = g_new0(MayaObject, 1);
33 obj->vars = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
34
35 return obj;
36}
37
38void maya_obj_free(MayaObject *obj)
39{
40 g_hash_table_destroy(obj->vars);
41 if(obj->name) g_free(obj->name);
42 g_free(obj);
43}
44
45G3DObject *maya_obj_to_g3d(MayaObject *obj)
46{
47 G3DObject *object;
48
49 object = g_new0(G3DObject, 1);
50 object->name = obj->name ? g_strdup(obj->name) : "(unnamed)";
51
52 return object;
53}
54
55static G3DObject *get_by_path(G3DModel *model, gchar *path)
56{
57 gchar **parts, **partp;
58 G3DObject *object = NULL;
59 GSList *olist;
60
61 partp = parts = g_strsplit(path, "|", 0);
62 olist = model->objects;
63 while(*partp)
64 {
65 while(olist)
66 {
67 object = (G3DObject *)olist->data;
68
69 if(strcmp(object->name, *partp) == 0) break;
70
71 olist = olist->next;
72 object = NULL;
73 }
74
75 if(object == NULL) return NULL;
76
77 partp ++;
78 olist = object->objects;
79 }
80
81 g_strfreev(parts);
82
83 return object;
84}
85
86gboolean maya_obj_add_to_tree(MayaObject *obj, G3DModel *model,
87 G3DObject *object)
88{
89 G3DObject *parent = NULL;
90
91 if(obj->parent)
92 {
93 if(*(obj->parent) == '|')
94 parent = get_by_path(model, obj->parent + 1);
95 else
96 parent = g3d_model_get_object_by_name(model, obj->parent);
97
98 if(parent == NULL)
99 g_warning(
100 "[Maya] maya_obj_add_to_tree: parent object '%s' not found",
101 obj->parent);
102 }
103
104 if(parent != NULL)
105 parent->objects = g_slist_append(parent->objects, object);
106 else
107 model->objects = g_slist_append(model->objects, object);
108
109 return TRUE;
110}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.h
new file mode 100644
index 0000000..6feb52e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_obj.h
@@ -0,0 +1,41 @@
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_MAYA_OBJ_H
23#define _IMP_MAYA_OBJ_H
24
25#include <glib.h>
26#include <g3d/types.h>
27
28typedef struct {
29 gchar *name;
30 gchar *parent;
31 GHashTable *vars;
32 gpointer user_data;
33} MayaObject;
34
35MayaObject *maya_obj_new(void);
36void maya_obj_free(MayaObject *obj);
37G3DObject *maya_obj_to_g3d(MayaObject *obj);
38gboolean maya_obj_add_to_tree(MayaObject *obj, G3DModel *model,
39 G3DObject *object);
40
41#endif /* _IMP_MAYA_OBJ_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.c
new file mode 100644
index 0000000..03bb8bf
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.c
@@ -0,0 +1,60 @@
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 <glib.h>
23
24#include "imp_maya_obj.h"
25
26gboolean maya_var_set(MayaObject *obj, const gchar *var, gpointer value)
27{
28 g_hash_table_replace(obj->vars, g_strdup(var), value);
29
30 return TRUE;
31}
32
33gpointer maya_var_get(MayaObject *obj, const gchar *var)
34{
35 gpointer val;
36
37 val = g_hash_table_lookup(obj->vars, var);
38 return val;
39}
40
41gboolean maya_var_set_double(MayaObject *obj, const gchar *var, gdouble value)
42{
43 gdouble *pval;
44
45 pval = g_new0(gdouble, 1);
46 *pval = value;
47
48 return maya_var_set(obj, var, pval);
49}
50
51gdouble maya_var_get_double(MayaObject *obj, const gchar *var, gdouble defval)
52{
53 gdouble *pval;
54
55 pval = maya_var_get(obj, var);
56 if(pval == NULL)
57 return defval;
58
59 return *pval;
60}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.h
new file mode 100644
index 0000000..f0aa66c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_maya/imp_maya_var.h
@@ -0,0 +1,33 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_MAYA_VAR_H
23#define _IMP_MAYA_VAR_H
24
25#include "imp_maya_obj.h"
26
27gboolean maya_var_set(MayaObject *obj, const gchar *var, gpointer value);
28gpointer maya_var_get(MayaObject *obj, const gchar *var);
29
30gboolean maya_var_set_double(MayaObject *obj, const gchar *var, gdouble value);
31gdouble maya_var_get_double(MayaObject *obj, const gchar *var, gdouble defval);
32
33#endif /* _IMP_MAYA_VAR_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile
new file mode 100644
index 0000000..989303f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_md2/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_md2
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_md2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_md2_la_OBJECTS = imp_md2.lo
59imp_md2_la_OBJECTS = $(am_imp_md2_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_md2_la_SOURCES)
73DIST_SOURCES = $(imp_md2_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_md2.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_md2_la_SOURCES = imp_md2.c imp_md2_normals.h
229imp_md2_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_md2.la: $(imp_md2_la_OBJECTS) $(imp_md2_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_md2_la_OBJECTS) $(imp_md2_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_md2.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.am
new file mode 100644
index 0000000..935ec9d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_md2.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_md2_la_SOURCES = imp_md2.c imp_md2_normals.h
20imp_md2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.in
new file mode 100644
index 0000000..fabe6b9
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_md2
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_md2_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_md2_la_OBJECTS = imp_md2.lo
59imp_md2_la_OBJECTS = $(am_imp_md2_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_md2_la_SOURCES)
73DIST_SOURCES = $(imp_md2_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_md2.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_md2_la_SOURCES = imp_md2.c imp_md2_normals.h
229imp_md2_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_md2/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_md2.la: $(imp_md2_la_OBJECTS) $(imp_md2_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_md2_la_OBJECTS) $(imp_md2_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_md2.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c
new file mode 100644
index 0000000..4c9d4c6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2.c
@@ -0,0 +1,292 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <g3d/types.h>
27#include <g3d/material.h>
28#include <g3d/texture.h>
29#include <g3d/stream.h>
30#include <g3d/iff.h>
31
32#include "imp_md2_normals.h"
33
34#define MD2_SKINNAMELEN 64
35
36static const char *textureExtensions[] = {
37 ".pcx", ".bmp", ".jpg", ".tga", ".png", NULL };
38
39EAPI
40gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
41 G3DModel *model, gpointer user_data)
42{
43 guint32 idid, idver, skinwidth, skinheight, framesize;
44 guint32 numskins, numverts, numtexs, numfaces, numglcmds, numframes;
45 guint32 offskins, offtexs, offfaces, offframes, offglcmds, offend;
46 G3DFloat *texco = NULL, *normals;
47 gchar **skinnames = NULL;
48 gint i, j;
49 G3DObject *object;
50 G3DMaterial *material;
51 G3DImage *image = NULL;
52
53 idid = g3d_stream_read_int32_be(stream);
54 if(idid != G3D_IFF_MKID('I','D','P','2')) {
55 g_critical("file '%s' is not a .md2 file", stream->uri);
56 return FALSE;
57 }
58
59 idver = g3d_stream_read_int32_le(stream);
60 if(idver != 8) {
61 g_warning("file '%s' has wrong version (%d)", stream->uri, idver);
62#define CLOSE_ON_WRONG_VERSION
63#ifdef CLOSE_ON_WRONG_VERSION
64 return FALSE;
65#endif
66 }
67
68 object = g_new0(G3DObject, 1);
69 object->name = g_strdup("Q2Object");
70 material = g3d_material_new();
71 object->materials = g_slist_append(object->materials, material);
72 model->objects = g_slist_append(model->objects, object);
73
74 skinwidth = g3d_stream_read_int32_le(stream);
75 skinheight = g3d_stream_read_int32_le(stream);
76 framesize = g3d_stream_read_int32_le(stream);
77 numskins = g3d_stream_read_int32_le(stream);
78 numverts = g3d_stream_read_int32_le(stream);
79 numtexs = g3d_stream_read_int32_le(stream);
80 numfaces = g3d_stream_read_int32_le(stream);
81 numglcmds = g3d_stream_read_int32_le(stream);
82 numframes = g3d_stream_read_int32_le(stream);
83
84 object->vertex_count = numverts;
85 object->vertex_data = g_new0(G3DFloat, numverts * 3);
86 normals = g_new0(G3DFloat, numverts * 3);
87
88 offskins = g3d_stream_read_int32_le(stream);
89 offtexs = g3d_stream_read_int32_le(stream);
90 offfaces = g3d_stream_read_int32_le(stream);
91 offframes = g3d_stream_read_int32_le(stream);
92 offglcmds = g3d_stream_read_int32_le(stream);
93 offend = g3d_stream_read_int32_le(stream);
94
95 if(numskins > 0) {
96 skinnames = g_new0(gchar *, numskins);
97 for(i = 0; i < numskins; i ++) {
98 skinnames[i] = g_new0(gchar, MD2_SKINNAMELEN);
99 g3d_stream_read(stream, skinnames[i], MD2_SKINNAMELEN);
100
101 /* some md2 models have a dot as first character to tell the engine
102 * load the texture from the dir where the model is located */
103 if(skinnames[i][0] == '.')
104 memmove(skinnames[i], skinnames[i] + 1, MD2_SKINNAMELEN - 1);
105#if DEBUG > 0
106 g_debug("skin #%d: %s", i + 1, skinnames[i]);
107#endif
108 }
109
110 /* not every skin has a texture assigned, the engines will search
111 * a list of supported images to get the texture */
112 for(j = 0; j < numskins; j++) {
113 gchar skinname[MD2_SKINNAMELEN];
114 gchar *basename;
115
116 /* real filename */
117 if(g_file_test(skinnames[j], G_FILE_TEST_EXISTS))
118 image = g3d_texture_load_cached(context, model, skinnames[j]);
119 if(image)
120 break;
121 basename = g_path_get_basename(skinnames[j]);
122 if(g_file_test(basename, G_FILE_TEST_EXISTS))
123 image = g3d_texture_load_cached(context, model, skinnames[j]);
124 g_free(basename);
125 if(image)
126 break;
127
128 /* without extension */
129 for(i = 0; textureExtensions[i] != NULL; i ++) {
130 g_snprintf(skinname, sizeof(skinname), "%s%s", skinnames[j],
131 textureExtensions[i]);
132 if(g_file_test(skinname, G_FILE_TEST_EXISTS))
133 image = g3d_texture_load_cached(context, model, skinname);
134 if(image)
135 break;
136 basename = g_path_get_basename(skinname);
137 if(g_file_test(basename, G_FILE_TEST_EXISTS))
138 image = g3d_texture_load_cached(context, model, skinname);
139 g_free(basename);
140 if(image)
141 break;
142 }
143
144 /* replace extension */
145 for(i = 0; textureExtensions[i] != NULL; i ++) {
146 g_snprintf(skinname, sizeof(skinname), "%.*s%s",
147 ((int) strlen(skinnames[j])) - 4, skinnames[j],
148 textureExtensions[i]);
149 if(g_file_test(skinname, G_FILE_TEST_EXISTS))
150 image = g3d_texture_load_cached(context, model, skinname);
151 if(image)
152 break;
153 basename = g_path_get_basename(skinname);
154 if(g_file_test(basename, G_FILE_TEST_EXISTS))
155 image = g3d_texture_load_cached(context, model, skinname);
156 g_free(basename);
157 if(image)
158 break;
159 }
160 if(image)
161 break;
162 }
163
164 /* fallback skin name */
165 if(image == NULL)
166 image = g3d_texture_load_cached(context, model, "tris0.bmp");
167 if(image)
168 image->tex_env = G3D_TEXENV_REPLACE;
169 }
170
171 g3d_stream_seek(stream, offframes, G_SEEK_SET);
172 /* vertices per frame */
173#if DEBUG > 0
174 g_debug("numframes: %d", numframes);
175#endif
176 for(i = 0; i < numframes; i ++) {
177 G3DFloat s0,s1,s2, t0,t1,t2;
178 gchar fname[16];
179 guint32 j;
180
181 s0 = g3d_stream_read_float_le(stream); /* scale */
182 s1 = g3d_stream_read_float_le(stream);
183 s2 = g3d_stream_read_float_le(stream);
184 t0 = g3d_stream_read_float_le(stream); /* translate */
185 t1 = g3d_stream_read_float_le(stream);
186 t2 = g3d_stream_read_float_le(stream);
187 g3d_stream_read(stream, fname, 16); /* frame name*/
188
189 for(j = 0; j < numverts; j ++) {
190 G3DFloat x,y,z;
191 guint32 v,n;
192
193 v = g3d_stream_read_int8(stream);
194 x = (G3DFloat)v * s0 + t0;
195 v = g3d_stream_read_int8(stream);
196 y = (G3DFloat)v * s1 + t1;
197 v = g3d_stream_read_int8(stream);
198 z = (G3DFloat)v * s2 + t2;
199 n = g3d_stream_read_int8(stream);
200 if(i == 0) {
201 object->vertex_data[j * 3 + 0] = x;
202 object->vertex_data[j * 3 + 1] = y;
203 object->vertex_data[j * 3 + 2] = z;
204
205 normals[j * 3 + 0] = md2_normals[n * 3 + 0];
206 normals[j * 3 + 1] = md2_normals[n * 3 + 1];
207 normals[j * 3 + 2] = md2_normals[n * 3 + 2];
208 }
209 }
210 }
211
212 g3d_stream_seek(stream, offtexs, G_SEEK_SET);
213 /* texture coordinates */
214 if(numtexs > 0) {
215 texco = g_new0(G3DFloat, numtexs * 2);
216 for(i = 0; i < numtexs; i ++) {
217 texco[i * 2 + 0] = g3d_stream_read_int16_le(stream) /
218 (G3DFloat)skinwidth;
219 texco[i * 2 + 1] = g3d_stream_read_int16_le(stream) /
220 (G3DFloat)skinheight;
221 }
222 }
223
224 /* faces */
225 for(i = 0; i < numfaces; i ++) {
226 G3DFace *face;
227 guint32 i;
228 guint16 index;
229
230 face = g_new0(G3DFace, 1);
231 object->faces = g_slist_append(object->faces, face);
232 face->material = material;
233 face->vertex_count = 3;
234 face->vertex_indices = g_new0(guint32, 3);
235 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
236 face->normals = g_new0(G3DFloat, 3 * 3);
237 face->flags |= G3D_FLAG_FAC_NORMALS;
238
239 if(image)
240 {
241 face->flags |= G3D_FLAG_FAC_TEXMAP;
242 face->tex_image = image;
243 }
244
245 for(i = 0; i < 3; i ++)
246 {
247 face->vertex_indices[i] = g3d_stream_read_int16_le(stream);
248 face->normals[i * 3 + 0] =
249 - normals[face->vertex_indices[i] * 3 + 0];
250 face->normals[i * 3 + 1] =
251 - normals[face->vertex_indices[i] * 3 + 1];
252 face->normals[i * 3 + 2] =
253 - normals[face->vertex_indices[i] * 3 + 2];
254 }
255
256 for(i = 0; i < 3; i ++)
257 {
258 index = g3d_stream_read_int16_le(stream);
259 face->tex_vertex_data[i * 2 + 0] = texco[index * 2 + 0];
260 face->tex_vertex_data[i * 2 + 1] = texco[index * 2 + 1];
261 }
262 }
263
264
265 /* free skin names */
266 if(skinnames)
267 {
268 for(i = 0; i < numskins; i ++)
269 g_free(skinnames[i]);
270 g_free(skinnames);
271 }
272
273 if(texco)
274 g_free(texco);
275 if(normals)
276 g_free(normals);
277
278 return TRUE;
279}
280
281EAPI
282gchar *plugin_description(G3DContext *context)
283{
284 return g_strdup("ID Software's Quake II models.");
285}
286
287EAPI
288gchar **plugin_extensions(G3DContext *context)
289{
290 return g_strsplit("md2", ":", 0);
291}
292
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2_normals.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2_normals.h
new file mode 100644
index 0000000..e815d2f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md2/imp_md2_normals.h
@@ -0,0 +1,192 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef __G3D_IMP_MD2_NORMALS_H__
24#define __G3D_IMP_MD2_NORMALS_H__
25
26#include <glib.h>
27
28static G3DFloat md2_normals[] = {
29 -0.525731f, 0.000000f, 0.850651f,
30 -0.442863f, 0.238856f, 0.864188f,
31 -0.295242f, 0.000000f, 0.955423f,
32 -0.309017f, 0.500000f, 0.809017f,
33 -0.162460f, 0.262866f, 0.951056f,
34 0.000000f, 0.000000f, 1.000000f,
35 0.000000f, 0.850651f, 0.525731f,
36 -0.147621f, 0.716567f, 0.681718f,
37 0.147621f, 0.716567f, 0.681718f,
38 0.000000f, 0.525731f, 0.850651f,
39 0.309017f, 0.500000f, 0.809017f,
40 0.525731f, 0.000000f, 0.850651f,
41 0.295242f, 0.000000f, 0.955423f,
42 0.442863f, 0.238856f, 0.864188f,
43 0.162460f, 0.262866f, 0.951056f,
44 -0.681718f, 0.147621f, 0.716567f,
45 -0.809017f, 0.309017f, 0.500000f,
46 -0.587785f, 0.425325f, 0.688191f,
47 -0.850651f, 0.525731f, 0.000000f,
48 -0.864188f, 0.442863f, 0.238856f,
49 -0.716567f, 0.681718f, 0.147621f,
50 -0.688191f, 0.587785f, 0.425325f,
51 -0.500000f, 0.809017f, 0.309017f,
52 -0.238856f, 0.864188f, 0.442863f,
53 -0.425325f, 0.688191f, 0.587785f,
54 -0.716567f, 0.681718f, -0.147621f,
55 -0.500000f, 0.809017f, -0.309017f,
56 -0.525731f, 0.850651f, 0.000000f,
57 0.000000f, 0.850651f, -0.525731f,
58 -0.238856f, 0.864188f, -0.442863f,
59 0.000000f, 0.955423f, -0.295242f,
60 -0.262866f, 0.951056f, -0.162460f,
61 0.000000f, 1.000000f, 0.000000f,
62 0.000000f, 0.955423f, 0.295242f,
63 -0.262866f, 0.951056f, 0.162460f,
64 0.238856f, 0.864188f, 0.442863f,
65 0.262866f, 0.951056f, 0.162460f,
66 0.500000f, 0.809017f, 0.309017f,
67 0.238856f, 0.864188f, -0.442863f,
68 0.262866f, 0.951056f, -0.162460f,
69 0.500000f, 0.809017f, -0.309017f,
70 0.850651f, 0.525731f, 0.000000f,
71 0.716567f, 0.681718f, 0.147621f,
72 0.716567f, 0.681718f, -0.147621f,
73 0.525731f, 0.850651f, 0.000000f,
74 0.425325f, 0.688191f, 0.587785f,
75 0.864188f, 0.442863f, 0.238856f,
76 0.688191f, 0.587785f, 0.425325f,
77 0.809017f, 0.309017f, 0.500000f,
78 0.681718f, 0.147621f, 0.716567f,
79 0.587785f, 0.425325f, 0.688191f,
80 0.955423f, 0.295242f, 0.000000f,
81 1.000000f, 0.000000f, 0.000000f,
82 0.951056f, 0.162460f, 0.262866f,
83 0.850651f, -0.525731f, 0.000000f,
84 0.955423f, -0.295242f, 0.000000f,
85 0.864188f, -0.442863f, 0.238856f,
86 0.951056f, -0.162460f, 0.262866f,
87 0.809017f, -0.309017f, 0.500000f,
88 0.681718f, -0.147621f, 0.716567f,
89 0.850651f, 0.000000f, 0.525731f,
90 0.864188f, 0.442863f, -0.238856f,
91 0.809017f, 0.309017f, -0.500000f,
92 0.951056f, 0.162460f, -0.262866f,
93 0.525731f, 0.000000f, -0.850651f,
94 0.681718f, 0.147621f, -0.716567f,
95 0.681718f, -0.147621f, -0.716567f,
96 0.850651f, 0.000000f, -0.525731f,
97 0.809017f, -0.309017f, -0.500000f,
98 0.864188f, -0.442863f, -0.238856f,
99 0.951056f, -0.162460f, -0.262866f,
100 0.147621f, 0.716567f, -0.681718f,
101 0.309017f, 0.500000f, -0.809017f,
102 0.425325f, 0.688191f, -0.587785f,
103 0.442863f, 0.238856f, -0.864188f,
104 0.587785f, 0.425325f, -0.688191f,
105 0.688191f, 0.587785f, -0.425325f,
106 -0.147621f, 0.716567f, -0.681718f,
107 -0.309017f, 0.500000f, -0.809017f,
108 0.000000f, 0.525731f, -0.850651f,
109 -0.525731f, 0.000000f, -0.850651f,
110 -0.442863f, 0.238856f, -0.864188f,
111 -0.295242f, 0.000000f, -0.955423f,
112 -0.162460f, 0.262866f, -0.951056f,
113 0.000000f, 0.000000f, -1.000000f,
114 0.295242f, 0.000000f, -0.955423f,
115 0.162460f, 0.262866f, -0.951056f,
116 -0.442863f, -0.238856f, -0.864188f,
117 -0.309017f, -0.500000f, -0.809017f,
118 -0.162460f, -0.262866f, -0.951056f,
119 0.000000f, -0.850651f, -0.525731f,
120 -0.147621f, -0.716567f, -0.681718f,
121 0.147621f, -0.716567f, -0.681718f,
122 0.000000f, -0.525731f, -0.850651f,
123 0.309017f, -0.500000f, -0.809017f,
124 0.442863f, -0.238856f, -0.864188f,
125 0.162460f, -0.262866f, -0.951056f,
126 0.238856f, -0.864188f, -0.442863f,
127 0.500000f, -0.809017f, -0.309017f,
128 0.425325f, -0.688191f, -0.587785f,
129 0.716567f, -0.681718f, -0.147621f,
130 0.688191f, -0.587785f, -0.425325f,
131 0.587785f, -0.425325f, -0.688191f,
132 0.000000f, -0.955423f, -0.295242f,
133 0.000000f, -1.000000f, 0.000000f,
134 0.262866f, -0.951056f, -0.162460f,
135 0.000000f, -0.850651f, 0.525731f,
136 0.000000f, -0.955423f, 0.295242f,
137 0.238856f, -0.864188f, 0.442863f,
138 0.262866f, -0.951056f, 0.162460f,
139 0.500000f, -0.809017f, 0.309017f,
140 0.716567f, -0.681718f, 0.147621f,
141 0.525731f, -0.850651f, 0.000000f,
142 -0.238856f, -0.864188f, -0.442863f,
143 -0.500000f, -0.809017f, -0.309017f,
144 -0.262866f, -0.951056f, -0.162460f,
145 -0.850651f, -0.525731f, 0.000000f,
146 -0.716567f, -0.681718f, -0.147621f,
147 -0.716567f, -0.681718f, 0.147621f,
148 -0.525731f, -0.850651f, 0.000000f,
149 -0.500000f, -0.809017f, 0.309017f,
150 -0.238856f, -0.864188f, 0.442863f,
151 -0.262866f, -0.951056f, 0.162460f,
152 -0.864188f, -0.442863f, 0.238856f,
153 -0.809017f, -0.309017f, 0.500000f,
154 -0.688191f, -0.587785f, 0.425325f,
155 -0.681718f, -0.147621f, 0.716567f,
156 -0.442863f, -0.238856f, 0.864188f,
157 -0.587785f, -0.425325f, 0.688191f,
158 -0.309017f, -0.500000f, 0.809017f,
159 -0.147621f, -0.716567f, 0.681718f,
160 -0.425325f, -0.688191f, 0.587785f,
161 -0.162460f, -0.262866f, 0.951056f,
162 0.442863f, -0.238856f, 0.864188f,
163 0.162460f, -0.262866f, 0.951056f,
164 0.309017f, -0.500000f, 0.809017f,
165 0.147621f, -0.716567f, 0.681718f,
166 0.000000f, -0.525731f, 0.850651f,
167 0.425325f, -0.688191f, 0.587785f,
168 0.587785f, -0.425325f, 0.688191f,
169 0.688191f, -0.587785f, 0.425325f,
170 -0.955423f, 0.295242f, 0.000000f,
171 -0.951056f, 0.162460f, 0.262866f,
172 -1.000000f, 0.000000f, 0.000000f,
173 -0.850651f, 0.000000f, 0.525731f,
174 -0.955423f, -0.295242f, 0.000000f,
175 -0.951056f, -0.162460f, 0.262866f,
176 -0.864188f, 0.442863f, -0.238856f,
177 -0.951056f, 0.162460f, -0.262866f,
178 -0.809017f, 0.309017f, -0.500000f,
179 -0.864188f, -0.442863f, -0.238856f,
180 -0.951056f, -0.162460f, -0.262866f,
181 -0.809017f, -0.309017f, -0.500000f,
182 -0.681718f, 0.147621f, -0.716567f,
183 -0.681718f, -0.147621f, -0.716567f,
184 -0.850651f, 0.000000f, -0.525731f,
185 -0.688191f, 0.587785f, -0.425325f,
186 -0.587785f, 0.425325f, -0.688191f,
187 -0.425325f, 0.688191f, -0.587785f,
188 -0.425325f, -0.688191f, -0.587785f,
189 -0.587785f, -0.425325f, -0.688191f,
190 -0.688191f, -0.587785f, -0.425325f };
191
192#endif /* __G3D_IMP_MD2_NORMALS_H__ */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile
new file mode 100644
index 0000000..83c9432
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_md3/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_md3
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_md3_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_md3_la_OBJECTS = imp_md3.lo
59imp_md3_la_OBJECTS = $(am_imp_md3_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_md3_la_SOURCES)
73DIST_SOURCES = $(imp_md3_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_md3.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_md3_la_SOURCES = imp_md3.c
229imp_md3_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_md3.la: $(imp_md3_la_OBJECTS) $(imp_md3_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_md3_la_OBJECTS) $(imp_md3_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_md3.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.am
new file mode 100644
index 0000000..395fb51
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_md3.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_md3_la_SOURCES = imp_md3.c
20imp_md3_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.in
new file mode 100644
index 0000000..69c676c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_md3
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_md3_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_md3_la_OBJECTS = imp_md3.lo
59imp_md3_la_OBJECTS = $(am_imp_md3_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_md3_la_SOURCES)
73DIST_SOURCES = $(imp_md3_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_md3.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_md3_la_SOURCES = imp_md3.c
229imp_md3_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_md3/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_md3.la: $(imp_md3_la_OBJECTS) $(imp_md3_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_md3_la_OBJECTS) $(imp_md3_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_md3.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c
new file mode 100644
index 0000000..360a568
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_md3/imp_md3.c
@@ -0,0 +1,396 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <math.h>
25
26#ifndef M_PI
27# define M_PI 3.14159265358979323846
28#endif
29
30#include <g3d/types.h>
31#include <g3d/object.h>
32#include <g3d/stream.h>
33#include <g3d/iff.h>
34#include <g3d/material.h>
35#include <g3d/texture.h>
36#include <g3d/vector.h>
37
38#define MD3_TYPE_MD3 0x01
39#define MD3_TYPE_MDC 0x02
40
41gboolean md3_load_skin(G3DContext *context, G3DModel *model,
42 const gchar *filename);
43gboolean md3_read_tag(G3DStream *stream, G3DContext *context, G3DModel *model);
44gboolean md3_read_mesh(G3DStream *stream, G3DContext *context, G3DModel *model);
45
46
47EAPI
48gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
49 G3DModel *model, gpointer user_data)
50{
51 guint32 magic, version, nboneframes, ntags, nmeshes, nskins;
52 guint32 off_bfs, off_tags, off_meshes, filesize, i, flags;
53
54 magic = g3d_stream_read_int32_be(stream);
55 if((magic != G3D_IFF_MKID('I', 'D', 'P', '3')) &&
56 (magic != G3D_IFF_MKID('I', 'D', 'P', 'C'))) {
57 g_warning("MD3: %s is not a valid md3 file", stream->uri);
58 return FALSE;
59 }
60
61 version = g3d_stream_read_int32_le(stream);
62 g3d_stream_skip(stream, 64);
63
64 flags = g3d_stream_read_int32_le(stream);
65 nboneframes = g3d_stream_read_int32_le(stream);
66 ntags = g3d_stream_read_int32_le(stream);
67 nmeshes = g3d_stream_read_int32_le(stream);
68 nskins = g3d_stream_read_int32_le(stream);
69 off_bfs = g3d_stream_read_int32_le(stream);
70 off_tags = g3d_stream_read_int32_le(stream);
71 off_meshes = g3d_stream_read_int32_le(stream);
72 filesize = g3d_stream_read_int32_le(stream);
73
74 /* try to load skin */
75 md3_load_skin(context, model, stream->uri);
76
77 g_debug("MD3: version: %u, file size: %u bytes", version, filesize);
78 g_debug("MD3: tags @ 0x%08x, meshes @ 0x%08x", off_tags, off_meshes);
79
80 g3d_stream_seek(stream, off_tags, G_SEEK_SET);
81 if(magic == G3D_IFF_MKID('I', 'D', 'P', '3'))
82 for(i = 0; i < nboneframes * ntags; i ++)
83 md3_read_tag(stream, context, model);
84
85 /* read meshes */
86 g3d_stream_seek(stream, off_meshes, G_SEEK_SET);
87 for(i = 0; i < nmeshes; i ++)
88 md3_read_mesh(stream, context, model);
89
90 return TRUE;
91}
92
93EAPI
94gchar *plugin_description(G3DContext *context)
95{
96 return g_strdup("Quake 3 models.");
97}
98
99EAPI
100gchar **plugin_extensions(G3DContext *context)
101{
102 return g_strsplit("md3:mdc", ":", 0);
103}
104
105/*
106 * MD3 specific
107 */
108
109gboolean md3_load_skin(G3DContext *context, G3DModel *model,
110 const gchar *filename)
111{
112 gchar *basename, *skinname, **parts;
113 gchar line[256];
114 G3DStream *stream;
115 G3DMaterial *material;
116
117 basename = g_path_get_basename(filename);
118 skinname = g_strdup_printf("%.*s_default.skin",
119 ((int) strlen(basename)) - 4, basename);
120
121 g_debug("MD3: trying to open skin file %s", skinname);
122
123 stream = g3d_stream_open_file(skinname, "r");
124
125 g_free(basename);
126 g_free(skinname);
127
128 /* no skin */
129 if(stream == NULL)
130 return FALSE;
131
132 while(g3d_stream_read_line(stream, line, 255) != NULL) {
133 parts = g_strsplit(line, ",", 2);
134 if(parts[0] && parts[1]) {
135 g_strchomp(parts[1]);
136 if(strlen(parts[1]) > 0)
137 {
138 g_debug("MD3: skin texture for %s: %s",
139 parts[0], parts[1]);
140
141 material = g3d_material_new();
142 material->name = g_strdup(parts[0]);
143 material->tex_image = g3d_texture_load_cached(context, model,
144 parts[1]);
145
146 model->materials = g_slist_append(model->materials,
147 material);
148 }
149 }
150 g_strfreev(parts);
151 }
152
153 g3d_stream_close(stream);
154
155 return TRUE;
156}
157
158gboolean md3_read_tag(G3DStream *stream, G3DContext *context, G3DModel *model)
159{
160 gchar name[65];
161
162 g3d_stream_read(stream, name, 64);
163 name[64] = '\0';
164
165 g_debug("MD3: tag: %s", name);
166
167 /* position */
168 g3d_stream_read_float_le(stream);
169 g3d_stream_read_float_le(stream);
170 g3d_stream_read_float_le(stream);
171
172 /* rotation */
173 g3d_stream_read_float_le(stream);
174 g3d_stream_read_float_le(stream);
175 g3d_stream_read_float_le(stream);
176
177 g3d_stream_read_float_le(stream);
178 g3d_stream_read_float_le(stream);
179 g3d_stream_read_float_le(stream);
180
181 g3d_stream_read_float_le(stream);
182 g3d_stream_read_float_le(stream);
183 g3d_stream_read_float_le(stream);
184
185 return TRUE;
186}
187
188gboolean md3_read_mesh(G3DStream *stream, G3DContext *context, G3DModel *model)
189{
190 G3DObject *object;
191 G3DImage *image = NULL;
192 G3DMaterial *material, *mat;
193 G3DFace *face;
194 GSList *mitem;
195 guint32 magic, i, j;
196 guint8 type = 0, r, s;
197 G3DFloat rho, sigma, *normals;
198 gchar name[64], *strp;
199 guint32 nmeshframe, nskin, nvertex, ntris, mlength, flags;
200 goffset off_tris, off_texvec, off_vertex, off_start, off_skins;
201
202 off_start = g3d_stream_tell(stream);
203
204 magic = g3d_stream_read_int32_be(stream);
205
206 if(magic == G3D_IFF_MKID('I', 'D', 'P', '3'))
207 type = MD3_TYPE_MD3;
208 else /* if(magic == 0x07000000)*/
209 type = MD3_TYPE_MDC;
210#if 0
211 else
212 {
213 g_warning("MD3: mesh magic unknown (%02x%02x%02x%02x)\n",
214 (magic >> 24) & 0xFF,
215 (magic >> 16) & 0xFF,
216 (magic >> 8) & 0xFF,
217 magic & 0xFF);
218 return FALSE;
219 }
220#endif
221
222 object = g_new0(G3DObject, 1);
223
224 /* read name */
225 g3d_stream_read(stream, name, 64);
226 object->name = g_strndup(name, 64);
227
228 flags = g3d_stream_read_int32_le(stream);
229
230 if(type == MD3_TYPE_MD3) {
231 nmeshframe = g3d_stream_read_int32_le(stream);
232 nskin = g3d_stream_read_int32_le(stream);
233 } else if(type == MD3_TYPE_MDC) {
234 g3d_stream_read_int32_le(stream); /* ncompframes */
235 g3d_stream_read_int32_le(stream); /* nbaseframes */
236 g3d_stream_read_int32_le(stream); /* nshaders */
237 }
238
239 nvertex = g3d_stream_read_int32_le(stream);
240 ntris = g3d_stream_read_int32_le(stream);
241
242 off_tris = g3d_stream_read_int32_le(stream);
243 off_skins = g3d_stream_read_int32_le(stream);
244
245 off_texvec = g3d_stream_read_int32_le(stream);
246 off_vertex = g3d_stream_read_int32_le(stream);
247
248 if(type == MD3_TYPE_MDC) {
249 g3d_stream_read_int32_le(stream); /* off_compvert */
250 g3d_stream_read_int32_le(stream); /* off_fbasef */
251 g3d_stream_read_int32_le(stream); /* off_fcompf */
252 }
253
254 mlength = g3d_stream_read_int32_le(stream);
255
256 if((nvertex == 0) || (ntris == 0)) {
257 g_warning("MD3: %u vertices, %u triangles", nvertex, ntris);
258 g3d_stream_seek(stream, off_start + mlength, G_SEEK_SET);
259 return FALSE;
260 }
261
262 /* default material */
263 material = g3d_material_new();
264 material->name = g_strdup("default material");
265 object->materials = g_slist_append(object->materials, material);
266
267 /* skins */
268 g3d_stream_seek(stream, off_start + off_skins, G_SEEK_SET);
269 g3d_stream_read(stream, name, 64);
270 g_debug("MD3: skin name: %s", name);
271
272 /* read texture image */
273 if(strlen(name) > 0) {
274 image = g3d_texture_load_cached(context, model, name);
275 if(image == NULL) {
276 /* try jpeg */
277 strp = strrchr(name, '.');
278 if(strp) {
279 strcpy(strp, ".jpg");
280 image = g3d_texture_load_cached(context, model, name);
281 }
282 }
283 }
284
285 if(image == NULL) {
286 mitem = model->materials;
287 while(mitem) {
288 mat = (G3DMaterial *)mitem->data;
289 if(strcmp(mat->name, object->name) == 0) {
290 image = mat->tex_image;
291 break;
292 }
293 mitem = mitem->next;
294 }
295 }
296
297 /* read vertex data */
298 g3d_stream_seek(stream, off_start + off_vertex, G_SEEK_SET);
299 object->vertex_count = nvertex;
300 object->vertex_data = g_new0(G3DFloat, nvertex * 3);
301 normals = g_new0(G3DFloat, nvertex * 3);
302 for(i = 0; i < nvertex; i ++) {
303 gint16 d;
304
305 d = g3d_stream_read_int16_le(stream);
306 object->vertex_data[i * 3 + 0] = d;
307 d = g3d_stream_read_int16_le(stream);
308 object->vertex_data[i * 3 + 1] = d;
309 d = g3d_stream_read_int16_le(stream);
310 object->vertex_data[i * 3 + 2] = d;
311
312 /* compressed normal */
313 /* FIXME: the normals don't look right... */
314 r = g3d_stream_read_int8(stream); /* rho */
315 s = g3d_stream_read_int8(stream); /* sigma */
316 rho = r * 2 * M_PI / 256.0;
317 sigma = s * 2 * M_PI / 256.0;
318
319 normals[i * 3 + 0] = - cos(sigma) * sin(rho);
320 normals[i * 3 + 1] = - cos(sigma) * sin(rho);
321 normals[i * 3 + 2] = - cos(rho);
322
323 g3d_vector_unify(
324 &(normals[i * 3 + 0]),
325 &(normals[i * 3 + 1]),
326 &(normals[i * 3 + 2]));
327 }
328
329 /* read texture vertex data */
330 g3d_stream_seek(stream, off_start + off_texvec, G_SEEK_SET);
331 object->tex_vertex_data = g_new0(G3DFloat, nvertex * 2);
332 for(i = 0; i < nvertex; i ++) {
333 object->tex_vertex_data[i * 2 + 0] = g3d_stream_read_float_le(stream);
334 object->tex_vertex_data[i * 2 + 1] = g3d_stream_read_float_le(stream);
335 }
336
337 /* read triangles */
338 g3d_stream_seek(stream, off_start + off_tris, G_SEEK_SET);
339 for(i = 0; i < ntris; i ++)
340 {
341 face = g_new0(G3DFace, 1);
342 face->vertex_count = 3;
343 face->vertex_indices = g_new0(guint32, 3);
344 face->material = material;
345
346 face->flags |= G3D_FLAG_FAC_NORMALS;
347 face->normals = g_new0(G3DFloat, 3 * 3);
348
349 face->tex_image = image;
350 if(face->tex_image)
351 {
352 face->tex_vertex_data = g_new0(G3DFloat, 3 * 2);
353 face->flags |= G3D_FLAG_FAC_TEXMAP;
354 }
355
356 for(j = 0; j < 3; j ++)
357 {
358 face->vertex_indices[j] = g3d_stream_read_int32_le(stream);
359
360 /* copy normals */
361 face->normals[j * 3 + 0] =
362 normals[face->vertex_indices[j] * 3 + 0];
363 face->normals[j * 3 + 1] =
364 normals[face->vertex_indices[j] * 3 + 1];
365 face->normals[j * 3 + 2] =
366 normals[face->vertex_indices[j] * 3 + 2];
367
368 /* texture stuff */
369 if(face->tex_image)
370 {
371 face->tex_vertex_data[j * 2 + 0] =
372 object->tex_vertex_data[face->vertex_indices[j] * 2 + 0];
373 face->tex_vertex_data[j * 2 + 1] =
374 object->tex_vertex_data[face->vertex_indices[j] * 2 + 1];
375 }
376 }
377
378 object->faces = g_slist_append(object->faces, face);
379 }
380
381 /* free unused data */
382 if(object->tex_vertex_data)
383 {
384 g_free(object->tex_vertex_data);
385 object->tex_vertex_data = NULL;
386 }
387 if(normals)
388 g_free(normals);
389
390 model->objects = g_slist_append(model->objects, object);
391
392 g3d_stream_seek(stream, off_start + mlength, G_SEEK_SET);
393
394 return TRUE;
395}
396
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile
new file mode 100644
index 0000000..736615a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_nff/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_nff
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_nff_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_nff_la_OBJECTS = imp_nff.lo
59imp_nff_la_OBJECTS = $(am_imp_nff_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_nff_la_SOURCES)
73DIST_SOURCES = $(imp_nff_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_nff.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_nff_la_SOURCES = imp_nff.c
229imp_nff_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_nff.la: $(imp_nff_la_OBJECTS) $(imp_nff_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_nff_la_OBJECTS) $(imp_nff_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_nff.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.am
new file mode 100644
index 0000000..828eed3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_nff.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_nff_la_SOURCES = imp_nff.c
20imp_nff_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.in
new file mode 100644
index 0000000..a428579
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_nff
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_nff_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_nff_la_OBJECTS = imp_nff.lo
59imp_nff_la_OBJECTS = $(am_imp_nff_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_nff_la_SOURCES)
73DIST_SOURCES = $(imp_nff_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_nff.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_nff_la_SOURCES = imp_nff.c
229imp_nff_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_nff/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_nff.la: $(imp_nff_la_OBJECTS) $(imp_nff_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_nff_la_OBJECTS) $(imp_nff_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_nff.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c
new file mode 100644
index 0000000..bb9009b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_nff/imp_nff.c
@@ -0,0 +1,169 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <math.h>
26#include <locale.h>
27
28#include <g3d/g3d.h>
29#include <g3d/stream.h>
30
31/*****************************************************************************/
32/* plugin interface */
33/*****************************************************************************/
34
35#define NFF_SEC_NOSECTION 0
36#define NFF_SEC_VIEWPOINT 1
37#define NFF_SEC_BGCOLOR 2
38#define NFF_SEC_POSLIGHT 3
39#define NFF_SEC_MATERIAL 4
40#define NFF_SEC_CONECYL 5
41#define NFF_SEC_SPHERE 6
42#define NFF_SEC_POLYGON 7
43#define NFF_SEC_POLPATCH 8
44
45static gboolean nff_readline(G3DStream *stream, gchar *line, guint32 maxlen);
46
47EAPI
48gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
49 G3DModel *model, gpointer plugin_data)
50{
51 gchar line[1024];
52 G3DObject *object;
53 G3DMaterial *material = NULL;
54 G3DFace *face;
55 guint32 section = NFF_SEC_NOSECTION;
56 G3DFloat r,g,b, Kd, Ks, Sh, T, refr;
57 G3DFloat v1,v2,v3, n1,n2,n3;
58 gint32 i, num, index;
59 gchar name[128];
60
61 setlocale(LC_NUMERIC, "C");
62
63 g_return_val_if_fail(model != NULL, FALSE);
64
65 object = g_new0(G3DObject, 1);
66 object->name = g_strdup("NFF Object");
67 model->objects = g_slist_append(model->objects, object);
68
69 while(nff_readline(stream, line, 1024)) {
70 if(strcmp(line, "v") == 0) {
71 section = NFF_SEC_VIEWPOINT;
72 } else if(sscanf(line, "b " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &r, &g, &b) == 3) {
73 g3d_context_set_bgcolor(context, r, g, b, 1.0);
74 } else if(sscanf(line, "f " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
75 &r, &g, &b, &Kd, &Ks, &Sh, &T, &refr) == 8) {
76 material = g3d_material_new();
77 material->r = r;
78 material->g = g;
79 material->b = b;
80 material->a = 1.0 - T;
81 material->shininess = Sh;
82 material->specular[0] = r * Ks;
83 material->specular[1] = g * Ks;
84 material->specular[2] = b * Ks;
85 if(T > 0) material->flags |= G3D_FLAG_MAT_TWOSIDE;
86 object->materials = g_slist_append(object->materials, material);
87 g_snprintf(name, 128, "material #%d",
88 g_slist_length(object->materials));
89 material->name = g_strdup(name);
90 } else if((sscanf(line, "pp %d", &num) == 1) ||
91 (sscanf(line, "p %d", &num) == 1)) {
92 face = g_new0(G3DFace, 1);
93
94 if(strncmp(line, "pp", 2) == 0) section = NFF_SEC_POLPATCH;
95 else section = NFF_SEC_POLYGON;
96
97 object->vertex_count += num;
98 object->vertex_data = g_realloc(object->vertex_data,
99 object->vertex_count * 3 * sizeof(G3DFloat));
100
101 face->material = material;
102 face->vertex_count = num;
103 face->vertex_indices = g_malloc0(num * sizeof(guint32));
104 object->faces = g_slist_prepend(object->faces, face);
105 if(section == NFF_SEC_POLPATCH) {
106 face->flags |= G3D_FLAG_FAC_NORMALS;
107 face->normals = g_malloc0(num * 3 * sizeof(G3DFloat));
108 }
109 /* most faces are in this direction, but there are wrong models */
110 for(i = num - 1; i >= 0; i --) {
111 if(!nff_readline(stream, line, 1024)) {
112 g_warning("reading vertices failed");
113 return FALSE;
114 }
115 if((section == NFF_SEC_POLPATCH) &&
116 (sscanf(line, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT,
117 &v1,&v2,&v3,
118 &n1,&n2,&n3) == 6)) {
119 index = object->vertex_count - num + i;
120 object->vertex_data[index*3+0] = v1;
121 object->vertex_data[index*3+1] = v2;
122 object->vertex_data[index*3+2] = v3;
123 face->vertex_indices[i] = index;
124 face->normals[i*3+0] = -n1;
125 face->normals[i*3+1] = -n2;
126 face->normals[i*3+2] = -n3;
127 } else if(sscanf(line, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &v1,&v2,&v3) == 3) {
128 index = object->vertex_count - num + i;
129 object->vertex_data[index*3+0] = v1;
130 object->vertex_data[index*3+1] = v2;
131 object->vertex_data[index*3+2] = v3;
132 face->vertex_indices[i] = index;
133 } else
134 g_warning("error in line '%s'", line);
135 }
136 }
137 }
138 return TRUE;
139}
140
141EAPI
142gchar *plugin_description(G3DContext *context)
143{
144 return g_strdup("Neutral File Format models.");
145}
146
147EAPI
148gchar **plugin_extensions(G3DContext *context)
149{
150 return g_strsplit("nff", ":", 0);
151}
152
153/*****************************************************************************/
154/* private functions */
155/*****************************************************************************/
156
157static gboolean nff_readline(G3DStream *stream, gchar *line, guint32 maxlen)
158{
159 if(g3d_stream_read_line(stream, line, maxlen) == NULL)
160 return FALSE;
161 g_strstrip(line);
162
163 if((strlen(line) == 0) || (line[0] == '#')) {
164 /* get next line if empty or comment */
165 return nff_readline(stream, line, maxlen);
166 }
167 return TRUE;
168}
169
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile
new file mode 100644
index 0000000..80f516c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_obj/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_obj
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_obj_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_obj_la_OBJECTS = imp_obj.lo
59imp_obj_la_OBJECTS = $(am_imp_obj_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_obj_la_SOURCES)
73DIST_SOURCES = $(imp_obj_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_obj.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_obj_la_SOURCES = imp_obj.c
229imp_obj_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_obj.la: $(imp_obj_la_OBJECTS) $(imp_obj_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_obj_la_OBJECTS) $(imp_obj_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_obj.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.am
new file mode 100644
index 0000000..1145ba4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_obj.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_obj_la_SOURCES = imp_obj.c
20imp_obj_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.in
new file mode 100644
index 0000000..be48ab4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_obj
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_obj_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_obj_la_OBJECTS = imp_obj.lo
59imp_obj_la_OBJECTS = $(am_imp_obj_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_obj_la_SOURCES)
73DIST_SOURCES = $(imp_obj_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_obj.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_obj_la_SOURCES = imp_obj.c
229imp_obj_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_obj/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_obj.la: $(imp_obj_la_OBJECTS) $(imp_obj_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_obj_la_OBJECTS) $(imp_obj_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_obj.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c
new file mode 100644
index 0000000..7c2ce37
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_obj/imp_obj.c
@@ -0,0 +1,403 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <stdlib.h>
25#include <string.h>
26#include <errno.h>
27#include <locale.h>
28
29#include <g3d/context.h>
30#include <g3d/types.h>
31#include <g3d/material.h>
32#include <g3d/stream.h>
33
34#define OBJ_USE_GROUPING 0
35
36typedef struct {
37 goffset goff;
38 goffset ooff;
39 G3DObject *object;
40} ObjGroupOffset;
41
42static gboolean obj_tryloadmat(G3DModel *model, const gchar *filename);
43static G3DMaterial *obj_usemat(G3DModel *model, const gchar *matname);
44
45static G3DObject *obj_object_by_name(G3DModel *model, const gchar *name);
46#if OBJ_USE_GROUPING
47static G3DObject *obj_get_offset(GSList *group_list, guint32 *voffp,
48 guint32 index, G3DObject *defobj);
49#endif
50
51EAPI
52gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
53 G3DModel *model, gpointer user_data)
54{
55 gchar line[2048], matname[128], matfile[1024];
56 gchar *filename;
57 G3DObject *object = NULL;
58 G3DMaterial *material = NULL;
59 G3DFloat pcnt, prev_pcnt = 0.0;
60 gdouble x,y,z;
61 guint32 num_v, v_off = 1, v_cnt = 0;
62#if OBJ_USE_GROUPING
63 gchar oname[128];
64 ObjGroupOffset *grpoff;
65 GSList *group_list = NULL;
66#endif
67 goffset global_vertex_count = 0;
68
69 setlocale(LC_NUMERIC, "C");
70 filename = g3d_stream_get_uri(stream);
71
72 strncpy(matfile, filename, strlen(filename) - 3);
73 matfile[strlen(filename)-3] = '\0';
74 strcat(matfile, "mtl");
75 obj_tryloadmat(model, matfile);
76
77 object = obj_object_by_name(model, "(default)");
78
79 while(!g3d_stream_eof(stream))
80 {
81 memset(line, 0, 2048);
82 g3d_stream_read_line(stream, line, 2048);
83 /* remove leading and trailing whitespace characters */
84 g_strstrip(line);
85 if(strlen(line) > 0) {
86 switch(line[0]) {
87 case '#':
88 continue;
89 break;
90
91 case 'g': /* group */
92#if OBJ_USE_GROUPING
93 if(strlen(line) == 1)
94 strcpy(oname, "(default)");
95 else
96 sscanf(line, "g %s", oname);
97
98 material = obj_usemat(model, oname);
99
100 grpoff = g_new0(ObjGroupOffset, 1);
101 grpoff->object = obj_object_by_name(model, oname);
102 grpoff->goff = global_vertex_count;
103 grpoff->ooff = grpoff->object->vertex_count;
104 group_list = g_slist_append(group_list, grpoff);
105#if DEBUG > 0
106 g_debug("[g] 0x%08x / 0x%08x: \"%s\"",
107 (guint32)grpoff->goff,
108 (guint32)grpoff->ooff, grpoff->object->name);
109#endif
110 object = grpoff->object;
111 v_cnt = grpoff->ooff;
112#endif
113 break;
114
115 case 'l': /* line */
116 break;
117
118 case 'o': /* object */
119 break;
120
121 case 'v': /* vertex */
122 if(strncmp(line, "vn ", 3) == 0)
123 {
124 /* normal ? */
125 }
126 else if(strncmp(line, "vt ", 3) == 0)
127 {
128 /* ?? */
129 }
130 else if(sscanf(line, "v %lf %lf %lf", &x, &y, &z) == 3)
131 {
132 object->vertex_count ++;
133 object->vertex_data = g_realloc(object->vertex_data,
134 object->vertex_count * 3 * sizeof(G3DFloat));
135 object->vertex_data[v_cnt * 3 + 0] = x;
136 object->vertex_data[v_cnt * 3 + 1] = y;
137 object->vertex_data[v_cnt * 3 + 2] = z;
138
139 v_cnt ++;
140 global_vertex_count ++;
141 }
142 else g_warning("parse error in line: %s", line);
143 break;
144
145 case 'f': /* face */
146 if(strncmp("f ", line, 2) == 0)
147 {
148 G3DFace *face;
149 gchar **vertex, **vstrs = g_strsplit(line, " ", 0);
150 int i;
151
152 num_v = 0;
153 face = g_new0(G3DFace, 1);
154 if(material != NULL)
155 face->material = material;
156 else face->material =
157 g_slist_nth_data(object->materials, 0);
158
159 /* find number of vertices in line */
160 vertex = vstrs;
161 while(*vertex != NULL) { num_v++; vertex++; }
162 face->vertex_count = num_v - 1;
163
164 /* next one if # of vertices < 3 */
165 if(face->vertex_count < 3)
166 continue;
167
168 /* calculate object-local vertex offset, indices
169 * in .obj files are absolute */
170 i = strtol(vstrs[1], NULL, 10);
171#if OBJ_USE_GROUPING
172 object = obj_get_offset(group_list, &v_off,
173 (i < 0) ? global_vertex_count - i - 1 : i,
174 object);
175#else
176 v_off = 0;
177#endif
178 if(object == NULL) {
179 g_warning("error: face before object");
180 return FALSE;
181 }
182
183 /* read vertices */
184 face->vertex_indices = g_new0(guint32, num_v - 1);
185 for(i = 1; i < num_v; i ++) {
186 gint32 index = strtol(vstrs[i], NULL, 10);
187
188 if(index < 0)
189 face->vertex_indices[i - 1] =
190 global_vertex_count + index + v_off - 1;
191 else
192 face->vertex_indices[i - 1] = MIN(
193 (index - 1) + v_off,
194 object->vertex_count - 1);
195 }
196 g_strfreev(vstrs);
197 object->faces = g_slist_prepend(object->faces, face);
198 }
199 else
200 g_warning("parse error in line: %s", line);
201 break;
202
203 case 'u': /* usemat? */
204 case 'm':
205 case 's':
206 if(sscanf(line, "usemtl %s", matname) == 1) {
207 material = obj_usemat(model, matname);
208 } else if(sscanf(line, "mtllib %s", matfile) == 1) {
209 /* loads external material library */
210 if(obj_tryloadmat(model, matfile) != TRUE)
211 g_warning("error loading material library '%s'",
212 matfile);
213 }
214 break;
215 default:
216#if DEBUG > 0
217 g_debug("unknown type of line: %s", line);
218#endif
219 break;
220 }
221 }
222
223#if 1
224 pcnt = (G3DFloat)g3d_stream_tell(stream) /
225 (G3DFloat)g3d_stream_size(stream);
226 if((pcnt - prev_pcnt) > 0.01) {
227 prev_pcnt = pcnt;
228 g3d_context_update_progress_bar(context, pcnt, TRUE);
229 }
230#endif
231 g3d_context_update_interface(context);
232 } /* !eof(stream) */
233 return TRUE;
234}
235
236EAPI
237gchar *plugin_description(void)
238{
239 return g_strdup("Maya .obj models.");
240}
241
242EAPI
243gchar **plugin_extensions(void)
244{
245 return g_strsplit("obj", ":", 0);
246}
247
248/*****************************************************************************/
249
250/*****************************************************************************/
251/* material file ops */
252/*****************************************************************************/
253
254int obj_tryloadmat(G3DModel *model, const char *filename)
255{
256 FILE *f;
257 G3DMaterial *material = NULL;
258
259 f = fopen(filename, "r");
260 if(f == NULL) {
261#if DEBUG > 1
262 g_warning("obj_tryloadmat: loading '%s' failed: %s", filename,
263 strerror(errno));
264#endif
265 return FALSE;
266 }
267#if DEBUG > 0
268 g_debug("loading material library %s", filename);
269#endif
270 while(!feof(f)) {
271 char line[2048];
272 float r,g,b, t1,t2, ni;
273 int tf, ns, il;
274
275 fgets(line, 2048, f);
276 g_strstrip(line);
277 if(strlen(line))
278 {
279 char mname[128];
280
281 if(line[0] == '#') continue; /* comments */
282 if(line[0] == '\n') continue; /* empty lines */
283
284 if(sscanf(line, "newmtl %s", mname) == 1)
285 {
286 /* new material */
287 material = g3d_material_new();
288 material->name = g_strdup(mname);
289 model->materials = g_slist_append(model->materials, material);
290 }
291 else if(sscanf(line, " Kd %f %f %f", &r, &g, &b) == 3)
292 {
293 /* material color? */
294 if(material != NULL)
295 {
296 material->r = r;
297 material->g = g;
298 material->b = b;
299 }
300 }
301 else if(sscanf(line, " Ks %f %f %f", &r, &g, &b) == 3)
302 {
303 /* ?? */
304 }
305 else if(sscanf(line, " Tf %f %f %d", &t1, &t2, &tf) == 3)
306 {
307 /* transparency ?? */
308 if(material != NULL)
309 {
310 if(tf == 1) material->a = 1.0 - t1;
311 }
312 }
313 else if(sscanf(line, " Ns %d Ni %f", &ns, &ni) == 2)
314 {
315 /* ?? */
316 }
317 else if(sscanf(line, " illum %d", &il) == 1)
318 {
319 /* ?? */
320 }
321 else {
322#if DEBUG > 0
323 g_warning("unknown type of line: %s", line);
324#endif
325 }
326 }
327 } /* !feof */
328 return TRUE;
329}
330
331G3DMaterial *obj_usemat(G3DModel *model, const gchar *matname)
332{
333 /* sets new active material from named list */
334 GSList *mlist = model->materials;
335 while(mlist != NULL)
336 {
337 G3DMaterial *mat = (G3DMaterial*)mlist->data;
338 if(strcmp(matname, mat->name) == 0)
339 {
340 return mat;
341 }
342 mlist = mlist->next;
343 }
344
345 return NULL;
346}
347
348static G3DObject *obj_object_by_name(G3DModel *model, const gchar *name)
349{
350 G3DObject *object;
351 G3DMaterial *material;
352 GSList *oitem;
353
354#if DEBUG > 4
355 g_debug("looking for object '%s'", name);
356#endif
357
358 for(oitem = model->objects; oitem != NULL; oitem = oitem->next) {
359 object = oitem->data;
360 if(strcmp(object->name, name) == 0)
361 return object;
362 }
363
364 material = g3d_material_new();
365 material->name = g_strdup("(default material)");
366
367 object = g_new0(G3DObject, 1);
368 object->name = g_strdup(name);
369 object->materials = g_slist_append(object->materials, material);
370 model->objects = g_slist_append(model->objects, object);
371
372 return object;
373}
374
375#if OBJ_USE_GROUPING
376static G3DObject *obj_get_offset(GSList *group_list, guint32 *voffp,
377 guint32 index, G3DObject *defobj)
378{
379 GSList *leitem, *gitem;
380 ObjGroupOffset *grpoff;
381
382 for(leitem = gitem = group_list; gitem != NULL; gitem = gitem->next) {
383 grpoff = gitem->data;
384
385 /* this one is too big */
386 if(grpoff->goff > index) {
387 grpoff = leitem->data;
388 *voffp = grpoff->ooff - grpoff->goff;
389#if DEBUG > 0
390 g_debug("[o]: i=%-6d, go=%-6d, oo=%-6d, vo=%-6d (%s, %d vtxs)",
391 index, (guint32)grpoff->goff, (guint32)grpoff->ooff, *voffp,
392 grpoff->object->name, grpoff->object->vertex_count);
393#endif
394 return grpoff->object;
395 }
396 leitem = gitem;
397 }
398
399 *voffp = 0;
400 return defobj;
401}
402#endif
403
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile
new file mode 100644
index 0000000..fd1df87
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile
@@ -0,0 +1,511 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_osm/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_osm
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_osm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_osm_la_OBJECTS = imp_osm.lo
59imp_osm_la_OBJECTS = $(am_imp_osm_la_OBJECTS)
60#am_imp_osm_la_rpath = -rpath \
61# $(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_osm_la_SOURCES)
75DIST_SOURCES = $(imp_osm_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_osm
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm
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_osm.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 -I/usr/include/libxml2
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 -avoid-version -export-dynamic
229
230imp_osm_la_SOURCES = imp_osm.c
231imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 -L/usr/lib/x86_64-linux-gnu -lxml2
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_osm.la: $(imp_osm_la_OBJECTS) $(imp_osm_la_DEPENDENCIES)
293 $(LINK) $(am_imp_osm_la_rpath) $(imp_osm_la_OBJECTS) $(imp_osm_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301include ./$(DEPDIR)/imp_osm.Plo
302
303.c.o:
304 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
305 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
306# source='$<' object='$@' libtool=no \
307# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
308# $(COMPILE) -c $<
309
310.c.obj:
311 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
312 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
313# source='$<' object='$@' libtool=no \
314# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
315# $(COMPILE) -c `$(CYGPATH_W) '$<'`
316
317.c.lo:
318 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
319 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
320# source='$<' object='$@' libtool=yes \
321# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
322# $(LTCOMPILE) -c -o $@ $<
323
324mostlyclean-libtool:
325 -rm -f *.lo
326
327clean-libtool:
328 -rm -rf .libs _libs
329
330ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 mkid -fID $$unique
338tags: TAGS
339
340TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
341 $(TAGS_FILES) $(LISP)
342 tags=; \
343 here=`pwd`; \
344 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
345 unique=`for i in $$list; do \
346 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347 done | \
348 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
349 END { if (nonempty) { for (i in files) print i; }; }'`; \
350 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
351 test -n "$$unique" || unique=$$empty_fix; \
352 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
353 $$tags $$unique; \
354 fi
355ctags: CTAGS
356CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
357 $(TAGS_FILES) $(LISP)
358 tags=; \
359 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
360 unique=`for i in $$list; do \
361 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
362 done | \
363 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
364 END { if (nonempty) { for (i in files) print i; }; }'`; \
365 test -z "$(CTAGS_ARGS)$$tags$$unique" \
366 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
367 $$tags $$unique
368
369GTAGS:
370 here=`$(am__cd) $(top_builddir) && pwd` \
371 && cd $(top_srcdir) \
372 && gtags -i $(GTAGS_ARGS) $$here
373
374distclean-tags:
375 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
376
377distdir: $(DISTFILES)
378 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 list='$(DISTFILES)'; \
381 dist_files=`for file in $$list; do echo $$file; done | \
382 sed -e "s|^$$srcdirstrip/||;t" \
383 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
384 case $$dist_files in \
385 */*) $(MKDIR_P) `echo "$$dist_files" | \
386 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
387 sort -u` ;; \
388 esac; \
389 for file in $$dist_files; do \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 if test -d $$d/$$file; then \
392 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
393 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
394 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
395 fi; \
396 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
397 else \
398 test -f $(distdir)/$$file \
399 || cp -p $$d/$$file $(distdir)/$$file \
400 || exit 1; \
401 fi; \
402 done
403check-am: all-am
404check: check-am
405all-am: Makefile $(LTLIBRARIES)
406installdirs:
407 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
408 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
409 done
410install: install-am
411install-exec: install-exec-am
412install-data: install-data-am
413uninstall: uninstall-am
414
415install-am: all-am
416 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
417
418installcheck: installcheck-am
419install-strip:
420 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
421 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
422 `test -z '$(STRIP)' || \
423 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
424mostlyclean-generic:
425
426clean-generic:
427
428distclean-generic:
429 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
430
431maintainer-clean-generic:
432 @echo "This command is intended for maintainers to use"
433 @echo "it deletes files that may require special tools to rebuild."
434clean: clean-am
435
436clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
437 mostlyclean-am
438
439distclean: distclean-am
440 -rm -rf ./$(DEPDIR)
441 -rm -f Makefile
442distclean-am: clean-am distclean-compile distclean-generic \
443 distclean-tags
444
445dvi: dvi-am
446
447dvi-am:
448
449html: html-am
450
451info: info-am
452
453info-am:
454
455install-data-am: install-pluginimpLTLIBRARIES
456
457install-dvi: install-dvi-am
458
459install-exec-am:
460
461install-html: install-html-am
462
463install-info: install-info-am
464
465install-man:
466
467install-pdf: install-pdf-am
468
469install-ps: install-ps-am
470
471installcheck-am:
472
473maintainer-clean: maintainer-clean-am
474 -rm -rf ./$(DEPDIR)
475 -rm -f Makefile
476maintainer-clean-am: distclean-am maintainer-clean-generic
477
478mostlyclean: mostlyclean-am
479
480mostlyclean-am: mostlyclean-compile mostlyclean-generic \
481 mostlyclean-libtool
482
483pdf: pdf-am
484
485pdf-am:
486
487ps: ps-am
488
489ps-am:
490
491uninstall-am: uninstall-pluginimpLTLIBRARIES
492
493.MAKE: install-am install-strip
494
495.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
496 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
497 distclean-compile distclean-generic distclean-libtool \
498 distclean-tags distdir dvi dvi-am html html-am info info-am \
499 install install-am install-data install-data-am install-dvi \
500 install-dvi-am install-exec install-exec-am install-html \
501 install-html-am install-info install-info-am install-man \
502 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
503 install-ps install-ps-am install-strip installcheck \
504 installcheck-am installdirs maintainer-clean \
505 maintainer-clean-generic mostlyclean mostlyclean-compile \
506 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
507 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
508
509# Tell versions [3.59,3.63) of GNU make to not export all variables.
510# Otherwise a system limit (for SysV at least) may be exceeded.
511.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am
new file mode 100644
index 0000000..1e6b4ae
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.am
@@ -0,0 +1,24 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4if HAVE_LIBXML2
5pluginimp_LTLIBRARIES = imp_osm.la
6endif
7endif
8
9AM_CFLAGS = \
10 -Wall -ansi -pedantic \
11 -DG_LOG_DOMAIN=\"LibG3D\" \
12 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
13 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
14
15INCLUDES = -I$(top_srcdir)/include
16
17AM_LDFLAGS = \
18 -no-undefined -module \
19 @PLUGINS_LDFLAGS@
20
21LIBTOOL += --quiet
22
23imp_osm_la_SOURCES = imp_osm.c
24imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in
new file mode 100644
index 0000000..a875726
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/Makefile.in
@@ -0,0 +1,511 @@
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_osm
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_osm_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_osm_la_OBJECTS = imp_osm.lo
59imp_osm_la_OBJECTS = $(am_imp_osm_la_OBJECTS)
60@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@am_imp_osm_la_rpath = -rpath \
61@EXPERIMENTAL_TRUE@@HAVE_LIBXML2_TRUE@ $(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_osm_la_SOURCES)
75DIST_SOURCES = $(imp_osm_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@@HAVE_LIBXML2_TRUE@pluginimp_LTLIBRARIES = imp_osm.la
219AM_CFLAGS = \
220 -Wall -ansi -pedantic \
221 -DG_LOG_DOMAIN=\"LibG3D\" \
222 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
223 @GLIB_CFLAGS@ @LIBXML2_CFLAGS@
224
225INCLUDES = -I$(top_srcdir)/include
226AM_LDFLAGS = \
227 -no-undefined -module \
228 @PLUGINS_LDFLAGS@
229
230imp_osm_la_SOURCES = imp_osm.c
231imp_osm_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ @LIBXML2_LIBS@
232all: all-am
233
234.SUFFIXES:
235.SUFFIXES: .c .lo .o .obj
236$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
237 @for dep in $?; do \
238 case '$(am__configure_deps)' in \
239 *$$dep*) \
240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 && exit 0; \
242 exit 1;; \
243 esac; \
244 done; \
245 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile'; \
246 cd $(top_srcdir) && \
247 $(AUTOMAKE) --gnu plugins/import/imp_osm/Makefile
248.PRECIOUS: Makefile
249Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
250 @case '$?' in \
251 *config.status*) \
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
253 *) \
254 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
255 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
256 esac;
257
258$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
259 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260
261$(top_srcdir)/configure: $(am__configure_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263$(ACLOCAL_M4): $(am__aclocal_m4_deps)
264 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
265install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
266 @$(NORMAL_INSTALL)
267 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
268 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
269 if test -f $$p; then \
270 f=$(am__strip_dir) \
271 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
272 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
273 else :; fi; \
274 done
275
276uninstall-pluginimpLTLIBRARIES:
277 @$(NORMAL_UNINSTALL)
278 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
279 p=$(am__strip_dir) \
280 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
281 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
282 done
283
284clean-pluginimpLTLIBRARIES:
285 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
288 test "$$dir" != "$$p" || dir=.; \
289 echo "rm -f \"$${dir}/so_locations\""; \
290 rm -f "$${dir}/so_locations"; \
291 done
292imp_osm.la: $(imp_osm_la_OBJECTS) $(imp_osm_la_DEPENDENCIES)
293 $(LINK) $(am_imp_osm_la_rpath) $(imp_osm_la_OBJECTS) $(imp_osm_la_LIBADD) $(LIBS)
294
295mostlyclean-compile:
296 -rm -f *.$(OBJEXT)
297
298distclean-compile:
299 -rm -f *.tab.c
300
301@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_osm.Plo@am__quote@
302
303.c.o:
304@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
305@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
307@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
308@am__fastdepCC_FALSE@ $(COMPILE) -c $<
309
310.c.obj:
311@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
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 `$(CYGPATH_W) '$<'`
316
317.c.lo:
318@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
319@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
321@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
322@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
323
324mostlyclean-libtool:
325 -rm -f *.lo
326
327clean-libtool:
328 -rm -rf .libs _libs
329
330ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
331 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
332 unique=`for i in $$list; do \
333 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
334 done | \
335 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
336 END { if (nonempty) { for (i in files) print i; }; }'`; \
337 mkid -fID $$unique
338tags: TAGS
339
340TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
341 $(TAGS_FILES) $(LISP)
342 tags=; \
343 here=`pwd`; \
344 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
345 unique=`for i in $$list; do \
346 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347 done | \
348 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
349 END { if (nonempty) { for (i in files) print i; }; }'`; \
350 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
351 test -n "$$unique" || unique=$$empty_fix; \
352 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
353 $$tags $$unique; \
354 fi
355ctags: CTAGS
356CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
357 $(TAGS_FILES) $(LISP)
358 tags=; \
359 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
360 unique=`for i in $$list; do \
361 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
362 done | \
363 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
364 END { if (nonempty) { for (i in files) print i; }; }'`; \
365 test -z "$(CTAGS_ARGS)$$tags$$unique" \
366 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
367 $$tags $$unique
368
369GTAGS:
370 here=`$(am__cd) $(top_builddir) && pwd` \
371 && cd $(top_srcdir) \
372 && gtags -i $(GTAGS_ARGS) $$here
373
374distclean-tags:
375 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
376
377distdir: $(DISTFILES)
378 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
380 list='$(DISTFILES)'; \
381 dist_files=`for file in $$list; do echo $$file; done | \
382 sed -e "s|^$$srcdirstrip/||;t" \
383 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
384 case $$dist_files in \
385 */*) $(MKDIR_P) `echo "$$dist_files" | \
386 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
387 sort -u` ;; \
388 esac; \
389 for file in $$dist_files; do \
390 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
391 if test -d $$d/$$file; then \
392 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
393 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
394 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
395 fi; \
396 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
397 else \
398 test -f $(distdir)/$$file \
399 || cp -p $$d/$$file $(distdir)/$$file \
400 || exit 1; \
401 fi; \
402 done
403check-am: all-am
404check: check-am
405all-am: Makefile $(LTLIBRARIES)
406installdirs:
407 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
408 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
409 done
410install: install-am
411install-exec: install-exec-am
412install-data: install-data-am
413uninstall: uninstall-am
414
415install-am: all-am
416 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
417
418installcheck: installcheck-am
419install-strip:
420 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
421 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
422 `test -z '$(STRIP)' || \
423 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
424mostlyclean-generic:
425
426clean-generic:
427
428distclean-generic:
429 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
430
431maintainer-clean-generic:
432 @echo "This command is intended for maintainers to use"
433 @echo "it deletes files that may require special tools to rebuild."
434clean: clean-am
435
436clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
437 mostlyclean-am
438
439distclean: distclean-am
440 -rm -rf ./$(DEPDIR)
441 -rm -f Makefile
442distclean-am: clean-am distclean-compile distclean-generic \
443 distclean-tags
444
445dvi: dvi-am
446
447dvi-am:
448
449html: html-am
450
451info: info-am
452
453info-am:
454
455install-data-am: install-pluginimpLTLIBRARIES
456
457install-dvi: install-dvi-am
458
459install-exec-am:
460
461install-html: install-html-am
462
463install-info: install-info-am
464
465install-man:
466
467install-pdf: install-pdf-am
468
469install-ps: install-ps-am
470
471installcheck-am:
472
473maintainer-clean: maintainer-clean-am
474 -rm -rf ./$(DEPDIR)
475 -rm -f Makefile
476maintainer-clean-am: distclean-am maintainer-clean-generic
477
478mostlyclean: mostlyclean-am
479
480mostlyclean-am: mostlyclean-compile mostlyclean-generic \
481 mostlyclean-libtool
482
483pdf: pdf-am
484
485pdf-am:
486
487ps: ps-am
488
489ps-am:
490
491uninstall-am: uninstall-pluginimpLTLIBRARIES
492
493.MAKE: install-am install-strip
494
495.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
496 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
497 distclean-compile distclean-generic distclean-libtool \
498 distclean-tags distdir dvi dvi-am html html-am info info-am \
499 install install-am install-data install-data-am install-dvi \
500 install-dvi-am install-exec install-exec-am install-html \
501 install-html-am install-info install-info-am install-man \
502 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
503 install-ps install-ps-am install-strip installcheck \
504 installcheck-am installdirs maintainer-clean \
505 maintainer-clean-generic mostlyclean mostlyclean-compile \
506 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
507 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
508
509# Tell versions [3.59,3.63) of GNU make to not export all variables.
510# Otherwise a system limit (for SysV at least) may be exceeded.
511.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c
new file mode 100644
index 0000000..f541925
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_osm/imp_osm.c
@@ -0,0 +1,334 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24#include <locale.h>
25#include <math.h>
26
27#include <libxml/parser.h>
28#include <libxml/tree.h>
29
30#include <g3d/types.h>
31#include <g3d/stream.h>
32#include <g3d/material.h>
33#include <g3d/object.h>
34#include <g3d/vector.h>
35#include <g3d/matrix.h>
36#include <g3d/primitive.h>
37
38typedef struct {
39 guint32 length;
40 guint32 *ids;
41} OSMNodeTransList;
42
43typedef struct {
44 const gchar *name;
45 gdouble r, g, b, a;
46} OSMMaterial;
47
48static OSMMaterial osm_materials[] = {
49 { "default", 0.7, 0.7, 0.7, 0.7 },
50 { "highway:primary", 1.0, 0.8, 0.1, 1.0 },
51 { "highway:secondary", 1.0, 0.2, 0.2, 1.0 },
52 { "highway:footway", 0.2, 1.0, 0.2, 1.0 },
53 { "waterway:canal", 0.0, 0.1, 1.0, 0.7 },
54 { "waterway:river", 0.0, 0.4, 1.0, 0.7 },
55 { "waterway:riverbank", 0.0, 0.4, 1.0, 0.7 },
56 { NULL, 0.0, 0.0, 0.0, 0.0 }
57};
58
59static int osm_input_read_cb(gpointer ctx, gchar *buffer, gint len);
60static void osm_add_node(G3DObject *object, OSMNodeTransList *translist,
61 xmlNodePtr node);
62static void osm_add_way(G3DObject *object, OSMNodeTransList *translist,
63 xmlNodePtr node, GHashTable *materials);
64
65EAPI
66gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
67 G3DModel *model)
68{
69 xmlDocPtr xmldoc;
70 xmlNodePtr rootnode, node;
71 OSMNodeTransList *translist;
72 G3DObject *object;
73 GHashTable *materials;
74 G3DMaterial *material;
75 OSMMaterial *mentry;
76
77 setlocale(LC_NUMERIC, "C");
78
79 xmlInitParser();
80
81 xmldoc = xmlReadIO(osm_input_read_cb, NULL, stream, stream->uri, NULL, 0);
82 if(xmldoc == NULL) {
83 g_warning("OSM: failed to parse XML file '%s'", stream->uri);
84 xmlCleanupParser();
85 return FALSE;
86 }
87
88 /* create material table */
89 materials = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
90 for(mentry = osm_materials; mentry->name != NULL; mentry ++) {
91 material = g3d_material_new();
92 material->name = g_strdup(mentry->name);
93 material->r = mentry->r;
94 material->g = mentry->g;
95 material->b = mentry->b;
96 material->a = mentry->a;
97 model->materials = g_slist_append(model->materials, material);
98 g_hash_table_insert(materials, g_strdup(material->name), material);
99 }
100
101 translist = g_new0(OSMNodeTransList, 1);
102 object = g_new0(G3DObject, 1);
103 object->name = g_strdup("OpenStreetMap object");
104 model->objects = g_slist_append(model->objects, object);
105
106 rootnode = xmlDocGetRootElement(xmldoc);
107 for(node = rootnode->children; node != NULL; node = node->next) {
108 /* skip non-element nodes */
109 if(node->type != XML_ELEMENT_NODE)
110 continue;
111
112 if(xmlStrcmp((xmlChar *)"node", node->name) == 0) {
113 /* "node" nodes */
114 osm_add_node(object, translist, node);
115 } else if(xmlStrcmp((xmlChar *)"way", node->name) == 0) {
116 /* "way" nodes */
117 osm_add_way(object, translist, node, materials);
118 } else if(xmlStrcmp((xmlChar *)"relation", node->name) == 0) {
119 /* "relation" nodes */
120 }
121 }
122
123 /* clean up */
124 if(object->vertex_data) {
125 /* reference points not needed anymore */
126 g_free(object->vertex_data);
127 object->vertex_data = NULL;
128 object->vertex_count = 0;
129 }
130 g_hash_table_destroy(materials);
131 if(translist->ids)
132 g_free(translist->ids);
133 g_free(translist);
134 xmlFreeDoc(xmldoc);
135 xmlCleanupParser();
136
137 return TRUE;
138}
139
140EAPI
141char *plugin_description(void)
142{
143 return g_strdup("OpenStreetMap maps.");
144}
145
146EAPI
147char **plugin_extensions(void)
148{
149 return g_strsplit("osm", ":", 0);
150}
151
152/*****************************************************************************/
153/* helper functions
154 *****************************************************************************/
155
156static int osm_input_read_cb(gpointer ctx, gchar *buffer, gint len)
157{
158 return g3d_stream_read((G3DStream *)ctx, buffer, len);
159}
160
161#if 0
162#define G(i) (gdouble)(i)
163
164static gdouble misc_angle(gdouble x1, gdouble y1, gdouble x2, gdouble y2)
165{
166 gdouble at;
167
168 if(x1 == x2) {
169 if(y1 > y2)
170 return G_PI * 1.5;
171 else
172 return G_PI / 2.0;
173 }
174 at = atan((G(y2) - G(y1)) / (G(x2) - G(x1)));
175 if(x2 < x1)
176 return G_PI + at;
177 else
178 return at;
179}
180
181static gdouble misc_delta(gdouble x1, gdouble y1, gdouble x2, gdouble y2)
182{
183 gdouble a, b;
184
185 a = ABS(G(x2) - G(x1));
186 b = ABS(G(y2) - G(y1));
187 return sqrt(a * a + b * b);
188}
189#endif
190
191/*****************************************************************************/
192/* OSM specific functions
193 *****************************************************************************/
194
195static gint32 osm_translist_lookup(OSMNodeTransList *translist, guint32 id)
196{
197 gint32 i;
198
199 for(i = 0; i < translist->length; i ++)
200 if(translist->ids[i] == id)
201 return i;
202 return -1;
203}
204
205static void osm_add_node(G3DObject *object, OSMNodeTransList *translist,
206 xmlNodePtr node)
207{
208 gdouble lat, lon;
209
210 lat = strtod((char *)xmlGetProp(node, (xmlChar *)"lat"), NULL);
211 lon = strtod((char *)xmlGetProp(node, (xmlChar *)"lon"), NULL);
212
213 translist->length ++;
214 translist->ids = g_realloc(translist->ids,
215 translist->length * sizeof(guint32));
216 translist->ids[translist->length - 1] = strtoul(
217 (char *)xmlGetProp(node, (xmlChar *)"id"), NULL, 10);
218
219 object->vertex_count ++;
220 object->vertex_data = g_realloc(object->vertex_data,
221 object->vertex_count * sizeof(gdouble) * 3);
222 object->vertex_data[(object->vertex_count - 1) * 3 + 0] =
223 (lat * G_PI / 180) * cos(lon * G_PI / 180) * 180 / G_PI;
224 object->vertex_data[(object->vertex_count - 1) * 3 + 1] = 0.0;
225 object->vertex_data[(object->vertex_count - 1) * 3 + 2] =
226 (lat * G_PI / 180) * sin(lon * G_PI / 180) * 180 / G_PI;
227}
228
229static void osm_add_street(G3DObject *object, OSMNodeTransList *translist,
230 guint32 refcount, guint32 *refdata,
231 GHashTable *tags, GHashTable *materials)
232{
233 gint32 i, n;
234 gdouble *vdata;
235 G3DFloat matrix[16];
236 G3DObject *ostreet = NULL;
237 gchar *name, *mname;
238 G3DMaterial *material = NULL;
239
240 /* lookup material */
241 name = g_hash_table_lookup(tags, "highway");
242 if(name != NULL) {
243 mname = g_strdup_printf("highway:%s", name);
244 material = g_hash_table_lookup(materials, mname);
245 g_free(mname);
246 } else {
247 name = g_hash_table_lookup(tags, "waterway");
248 if(name != NULL) {
249 mname = g_strdup_printf("waterway:%s", name);
250 material = g_hash_table_lookup(materials, mname);
251 g_free(mname);
252 }
253 }
254 if(material == NULL) {
255 material = g_hash_table_lookup(materials, "default");
256 g_return_if_fail(material != NULL);
257 }
258
259 /* create strip */
260 vdata = g_new0(gdouble, refcount * 2);
261 for(i = 0; i < refcount; i ++) {
262 n = osm_translist_lookup(translist, refdata[i]);
263 if(n == -1) {
264 g_warning("OSM: looking up reference %d failed", refdata[i]);
265 continue;
266 }
267 vdata[i * 2 + 0] = object->vertex_data[n * 3 + 0];
268 vdata[i * 2 + 1] = object->vertex_data[n * 3 + 2];
269 }
270 ostreet = g3d_primitive_box_strip_2d(refcount, vdata, 0.00003, 0.0003,
271 material);
272 g_free(vdata);
273
274 if(ostreet == NULL)
275 return;
276
277 /* bridge? */
278 name = g_hash_table_lookup(tags, "bridge");
279 if(name && (strcmp(name, "true") == 0)) {
280 g3d_matrix_identity(matrix);
281 g3d_matrix_translate(0.0, 0.00005, 0.0, matrix);
282 g3d_object_transform(ostreet, matrix);
283 }
284
285 /* name? */
286 name = g_hash_table_lookup(tags, "name");
287 if(name == NULL)
288 ostreet->name = g_strdup("unnamed street");
289 else
290 ostreet->name = g_strdup(name);
291 object->objects = g_slist_append(object->objects, ostreet);
292}
293
294static void osm_add_way(G3DObject *object, OSMNodeTransList *translist,
295 xmlNodePtr node, GHashTable *materials)
296{
297 guint32 refcount = 0;
298 guint32 *refdata = NULL;
299 GHashTable *tags;
300 xmlNodePtr subnode;
301
302 tags = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
303
304 /* parse subnodes */
305 for(subnode = node->children; subnode != NULL; subnode = subnode->next) {
306 if(subnode->type != XML_ELEMENT_NODE)
307 continue;
308
309 if(xmlStrcmp((xmlChar *)"nd", subnode->name) == 0) {
310 refcount ++;
311 refdata = g_realloc(refdata, refcount * sizeof(guint32));
312 refdata[refcount - 1] = strtoul(
313 (char *)xmlGetProp(subnode, (xmlChar *)"ref"), NULL, 10);
314 } else if(xmlStrcmp((xmlChar *)"tag", subnode->name) == 0) {
315 g_hash_table_insert(tags,
316 g_strdup((char *)xmlGetProp(subnode, (xmlChar *)"k")),
317 g_strdup((char *)xmlGetProp(subnode, (xmlChar *)"v")));
318 } else {
319 /* unknown "way" subnode */
320 g_debug("OSM: 'way': unknown subnode '%s'",
321 (gchar *)subnode->name);
322 }
323 }
324
325 /* do something with the collected data */
326 if((g_hash_table_lookup(tags, "highway") != NULL) ||
327 (g_hash_table_lookup(tags, "waterway") != NULL))
328 osm_add_street(object, translist, refcount, refdata, tags, materials);
329
330 /* clean up */
331 g_hash_table_destroy(tags);
332 if(refdata)
333 g_free(refdata);
334}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile
new file mode 100644
index 0000000..8d8d55e
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_q3o/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_q3o
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_q3o_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_q3o_la_OBJECTS = imp_q3o.lo
59imp_q3o_la_OBJECTS = $(am_imp_q3o_la_OBJECTS)
60DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_q3o_la_SOURCES)
73DIST_SOURCES = $(imp_q3o_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
78AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
79AR = ar
80AS = as
81AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
82AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
83AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
84AWK = gawk
85CC = gcc
86CCDEPMODE = depmode=gcc3
87CFLAGS = -g -O2
88CPP = gcc -E
89CPPFLAGS =
90CXX = g++
91CXXCPP = g++ -E
92CXXDEPMODE = depmode=gcc3
93CXXFLAGS = -g -O2
94CYGPATH_W = echo
95DBG_CFLAGS = -O2
96DEBUG = 0
97DEFS = -DHAVE_CONFIG_H
98DEPDIR = .deps
99DLLTOOL = dlltool
100ECHO = echo
101ECHO_C =
102ECHO_N = -n
103ECHO_T =
104EGREP = /bin/grep -E
105EXEEXT =
106F77 =
107FFLAGS =
108GDKPIXBUF_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
109GDKPIXBUF_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
110GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
111GLIB_GENMARSHAL = glib-genmarshal
112GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
113GLIB_MKENUMS = glib-mkenums
114GOBJECT_QUERY = gobject-query
115GREP = /bin/grep
116GTKDOC_CHECK = /usr/bin/gtkdoc-check
117GTK_CFLAGS = -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12
118GTK_LIBS = -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0
119HTML_DIR = ${datadir}/gtk-doc/html
120INSTALL = /usr/bin/install -c
121INSTALL_DATA = ${INSTALL} -m 644
122INSTALL_PROGRAM = ${INSTALL}
123INSTALL_SCRIPT = ${INSTALL}
124INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
125LDFLAGS =
126LEX = flex
127LEXLIB = -lfl
128LEX_OUTPUT_ROOT = lex.yy
129LIBGSF_CFLAGS = -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libgsf-1
130LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
131LIBOBJS =
132LIBS = -lm
133LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
134LIBXML2_CFLAGS = -I/usr/include/libxml2
135LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
136LN_S = ln -s
137LTLIBOBJS =
138LTVERSION = 0:8:0
139MAGIC_LIBS = -lmagic
140MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
141MATH_LIBS = -lm
142MKDIR_P = /bin/mkdir -p
143OBJDUMP = objdump
144OBJEXT = o
145PACKAGE = libg3d
146PACKAGE_BUGREPORT =
147PACKAGE_NAME =
148PACKAGE_STRING =
149PACKAGE_TARNAME =
150PACKAGE_VERSION =
151PATH_SEPARATOR = :
152PKG_CONFIG = /usr/bin/pkg-config
153PLUGINS_LDFLAGS = -avoid-version -export-dynamic
154RANLIB = ranlib
155SET_MAKE =
156SHELL = /bin/bash
157STRIP = strip
158VERSION = 0.0.8
159XML2_CONFIG = /usr/bin/xml2-config
160XML_CPPFLAGS = -I/usr/include/libxml2
161XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
162Z_CFLAGS =
163Z_LIBS = -lz
164abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o
165abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o
166abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
167abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168ac_ct_CC = gcc
169ac_ct_CXX = g++
170ac_ct_F77 =
171am__include = include
172am__leading_dot = .
173am__quote =
174am__tar = ${AMTAR} chof - "$$tardir"
175am__untar = ${AMTAR} xf -
176bindir = ${exec_prefix}/bin
177build = x86_64-unknown-linux-gnu
178build_alias =
179build_cpu = x86_64
180build_os = linux-gnu
181build_vendor = unknown
182builddir = .
183datadir = ${datarootdir}
184datarootdir = ${prefix}/share
185docdir = ${datarootdir}/doc/${PACKAGE}
186dvidir = ${docdir}
187exec_prefix = ${prefix}
188host = x86_64-unknown-linux-gnu
189host_alias =
190host_cpu = x86_64
191host_os = linux-gnu
192host_vendor = unknown
193htmldir = ${docdir}
194includedir = ${prefix}/include
195infodir = ${datarootdir}/info
196install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
197libdir = ${exec_prefix}/lib
198libexecdir = ${exec_prefix}/libexec
199localedir = ${datarootdir}/locale
200localstatedir = ${prefix}/var
201mandir = ${datarootdir}/man
202mkdir_p = /bin/mkdir -p
203oldincludedir = /usr/include
204pdfdir = ${docdir}
205prefix = /usr/local
206program_transform_name = s,x,x,
207psdir = ${docdir}
208sbindir = ${exec_prefix}/sbin
209sharedstatedir = ${prefix}/com
210srcdir = .
211sysconfdir = ${prefix}/etc
212target_alias =
213top_builddir = ../../..
214top_srcdir = ../../..
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_q3o.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 -O2 -DDEBUG=0 \
221 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 -avoid-version -export-dynamic
227
228imp_q3o_la_SOURCES = imp_q3o.c
229imp_q3o_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_q3o.la: $(imp_q3o_la_OBJECTS) $(imp_q3o_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_q3o_la_OBJECTS) $(imp_q3o_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299include ./$(DEPDIR)/imp_q3o.Plo
300
301.c.o:
302 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304# source='$<' object='$@' libtool=no \
305# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
306# $(COMPILE) -c $<
307
308.c.obj:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318# source='$<' object='$@' libtool=yes \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.am
new file mode 100644
index 0000000..a4c53cb
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.am
@@ -0,0 +1,20 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3pluginimp_LTLIBRARIES = imp_q3o.la
4
5AM_CFLAGS = \
6 -Wall -ansi -pedantic \
7 -DG_LOG_DOMAIN=\"LibG3D\" \
8 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
9 @GLIB_CFLAGS@
10
11INCLUDES = -I$(top_srcdir)/include
12
13AM_LDFLAGS = \
14 -no-undefined -module \
15 @PLUGINS_LDFLAGS@
16
17LIBTOOL += --quiet
18
19imp_q3o_la_SOURCES = imp_q3o.c
20imp_q3o_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.in
new file mode 100644
index 0000000..0091221
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/Makefile.in
@@ -0,0 +1,509 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@
19pkglibdir = $(libdir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
22install_sh_DATA = $(install_sh) -c -m 644
23install_sh_PROGRAM = $(install_sh) -c
24install_sh_SCRIPT = $(install_sh) -c
25INSTALL_HEADER = $(INSTALL_DATA)
26transform = $(program_transform_name)
27NORMAL_INSTALL = :
28PRE_INSTALL = :
29POST_INSTALL = :
30NORMAL_UNINSTALL = :
31PRE_UNINSTALL = :
32POST_UNINSTALL = :
33build_triplet = @build@
34host_triplet = @host@
35subdir = plugins/import/imp_q3o
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_q3o_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_q3o_la_OBJECTS = imp_q3o.lo
59imp_q3o_la_OBJECTS = $(am_imp_q3o_la_OBJECTS)
60DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
61depcomp = $(SHELL) $(top_srcdir)/config/depcomp
62am__depfiles_maybe = depfiles
63COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
65LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
66 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
67 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
68CCLD = $(CC)
69LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
71 $(LDFLAGS) -o $@
72SOURCES = $(imp_q3o_la_SOURCES)
73DIST_SOURCES = $(imp_q3o_la_SOURCES)
74ETAGS = etags
75CTAGS = ctags
76DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77ACLOCAL = @ACLOCAL@
78AMTAR = @AMTAR@
79AR = @AR@
80AS = @AS@
81AUTOCONF = @AUTOCONF@
82AUTOHEADER = @AUTOHEADER@
83AUTOMAKE = @AUTOMAKE@
84AWK = @AWK@
85CC = @CC@
86CCDEPMODE = @CCDEPMODE@
87CFLAGS = @CFLAGS@
88CPP = @CPP@
89CPPFLAGS = @CPPFLAGS@
90CXX = @CXX@
91CXXCPP = @CXXCPP@
92CXXDEPMODE = @CXXDEPMODE@
93CXXFLAGS = @CXXFLAGS@
94CYGPATH_W = @CYGPATH_W@
95DBG_CFLAGS = @DBG_CFLAGS@
96DEBUG = @DEBUG@
97DEFS = @DEFS@
98DEPDIR = @DEPDIR@
99DLLTOOL = @DLLTOOL@
100ECHO = @ECHO@
101ECHO_C = @ECHO_C@
102ECHO_N = @ECHO_N@
103ECHO_T = @ECHO_T@
104EGREP = @EGREP@
105EXEEXT = @EXEEXT@
106F77 = @F77@
107FFLAGS = @FFLAGS@
108GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
109GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
110GLIB_CFLAGS = @GLIB_CFLAGS@
111GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
112GLIB_LIBS = @GLIB_LIBS@
113GLIB_MKENUMS = @GLIB_MKENUMS@
114GOBJECT_QUERY = @GOBJECT_QUERY@
115GREP = @GREP@
116GTKDOC_CHECK = @GTKDOC_CHECK@
117GTK_CFLAGS = @GTK_CFLAGS@
118GTK_LIBS = @GTK_LIBS@
119HTML_DIR = @HTML_DIR@
120INSTALL = @INSTALL@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_PROGRAM = @INSTALL_PROGRAM@
123INSTALL_SCRIPT = @INSTALL_SCRIPT@
124INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125LDFLAGS = @LDFLAGS@
126LEX = @LEX@
127LEXLIB = @LEXLIB@
128LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
129LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
130LIBGSF_LIBS = @LIBGSF_LIBS@
131LIBOBJS = @LIBOBJS@
132LIBS = @LIBS@
133LIBTOOL = @LIBTOOL@ --quiet
134LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
135LIBXML2_LIBS = @LIBXML2_LIBS@
136LN_S = @LN_S@
137LTLIBOBJS = @LTLIBOBJS@
138LTVERSION = @LTVERSION@
139MAGIC_LIBS = @MAGIC_LIBS@
140MAKEINFO = @MAKEINFO@
141MATH_LIBS = @MATH_LIBS@
142MKDIR_P = @MKDIR_P@
143OBJDUMP = @OBJDUMP@
144OBJEXT = @OBJEXT@
145PACKAGE = @PACKAGE@
146PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
147PACKAGE_NAME = @PACKAGE_NAME@
148PACKAGE_STRING = @PACKAGE_STRING@
149PACKAGE_TARNAME = @PACKAGE_TARNAME@
150PACKAGE_VERSION = @PACKAGE_VERSION@
151PATH_SEPARATOR = @PATH_SEPARATOR@
152PKG_CONFIG = @PKG_CONFIG@
153PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
154RANLIB = @RANLIB@
155SET_MAKE = @SET_MAKE@
156SHELL = @SHELL@
157STRIP = @STRIP@
158VERSION = @VERSION@
159XML2_CONFIG = @XML2_CONFIG@
160XML_CPPFLAGS = @XML_CPPFLAGS@
161XML_LIBS = @XML_LIBS@
162Z_CFLAGS = @Z_CFLAGS@
163Z_LIBS = @Z_LIBS@
164abs_builddir = @abs_builddir@
165abs_srcdir = @abs_srcdir@
166abs_top_builddir = @abs_top_builddir@
167abs_top_srcdir = @abs_top_srcdir@
168ac_ct_CC = @ac_ct_CC@
169ac_ct_CXX = @ac_ct_CXX@
170ac_ct_F77 = @ac_ct_F77@
171am__include = @am__include@
172am__leading_dot = @am__leading_dot@
173am__quote = @am__quote@
174am__tar = @am__tar@
175am__untar = @am__untar@
176bindir = @bindir@
177build = @build@
178build_alias = @build_alias@
179build_cpu = @build_cpu@
180build_os = @build_os@
181build_vendor = @build_vendor@
182builddir = @builddir@
183datadir = @datadir@
184datarootdir = @datarootdir@
185docdir = @docdir@
186dvidir = @dvidir@
187exec_prefix = @exec_prefix@
188host = @host@
189host_alias = @host_alias@
190host_cpu = @host_cpu@
191host_os = @host_os@
192host_vendor = @host_vendor@
193htmldir = @htmldir@
194includedir = @includedir@
195infodir = @infodir@
196install_sh = @install_sh@
197libdir = @libdir@
198libexecdir = @libexecdir@
199localedir = @localedir@
200localstatedir = @localstatedir@
201mandir = @mandir@
202mkdir_p = @mkdir_p@
203oldincludedir = @oldincludedir@
204pdfdir = @pdfdir@
205prefix = @prefix@
206program_transform_name = @program_transform_name@
207psdir = @psdir@
208sbindir = @sbindir@
209sharedstatedir = @sharedstatedir@
210srcdir = @srcdir@
211sysconfdir = @sysconfdir@
212target_alias = @target_alias@
213top_builddir = @top_builddir@
214top_srcdir = @top_srcdir@
215pluginimpdir = $(pkglibdir)/plugins/import
216pluginimp_LTLIBRARIES = imp_q3o.la
217AM_CFLAGS = \
218 -Wall -ansi -pedantic \
219 -DG_LOG_DOMAIN=\"LibG3D\" \
220 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
221 @GLIB_CFLAGS@
222
223INCLUDES = -I$(top_srcdir)/include
224AM_LDFLAGS = \
225 -no-undefined -module \
226 @PLUGINS_LDFLAGS@
227
228imp_q3o_la_SOURCES = imp_q3o.c
229imp_q3o_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
230all: all-am
231
232.SUFFIXES:
233.SUFFIXES: .c .lo .o .obj
234$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
235 @for dep in $?; do \
236 case '$(am__configure_deps)' in \
237 *$$dep*) \
238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
239 && exit 0; \
240 exit 1;; \
241 esac; \
242 done; \
243 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile'; \
244 cd $(top_srcdir) && \
245 $(AUTOMAKE) --gnu plugins/import/imp_q3o/Makefile
246.PRECIOUS: Makefile
247Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 @case '$?' in \
249 *config.status*) \
250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
251 *) \
252 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
253 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 esac;
255
256$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258
259$(top_srcdir)/configure: $(am__configure_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261$(ACLOCAL_M4): $(am__aclocal_m4_deps)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
264 @$(NORMAL_INSTALL)
265 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
266 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
267 if test -f $$p; then \
268 f=$(am__strip_dir) \
269 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
270 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
271 else :; fi; \
272 done
273
274uninstall-pluginimpLTLIBRARIES:
275 @$(NORMAL_UNINSTALL)
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 p=$(am__strip_dir) \
278 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
279 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
280 done
281
282clean-pluginimpLTLIBRARIES:
283 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
284 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
285 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
286 test "$$dir" != "$$p" || dir=.; \
287 echo "rm -f \"$${dir}/so_locations\""; \
288 rm -f "$${dir}/so_locations"; \
289 done
290imp_q3o.la: $(imp_q3o_la_OBJECTS) $(imp_q3o_la_DEPENDENCIES)
291 $(LINK) -rpath $(pluginimpdir) $(imp_q3o_la_OBJECTS) $(imp_q3o_la_LIBADD) $(LIBS)
292
293mostlyclean-compile:
294 -rm -f *.$(OBJEXT)
295
296distclean-compile:
297 -rm -f *.tab.c
298
299@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_q3o.Plo@am__quote@
300
301.c.o:
302@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
303@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
304@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
306@am__fastdepCC_FALSE@ $(COMPILE) -c $<
307
308.c.obj:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
314
315.c.lo:
316@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
321
322mostlyclean-libtool:
323 -rm -f *.lo
324
325clean-libtool:
326 -rm -rf .libs _libs
327
328ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
330 unique=`for i in $$list; do \
331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
332 done | \
333 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
334 END { if (nonempty) { for (i in files) print i; }; }'`; \
335 mkid -fID $$unique
336tags: TAGS
337
338TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
347 END { if (nonempty) { for (i in files) print i; }; }'`; \
348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
349 test -n "$$unique" || unique=$$empty_fix; \
350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
351 $$tags $$unique; \
352 fi
353ctags: CTAGS
354CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
355 $(TAGS_FILES) $(LISP)
356 tags=; \
357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
358 unique=`for i in $$list; do \
359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360 done | \
361 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
362 END { if (nonempty) { for (i in files) print i; }; }'`; \
363 test -z "$(CTAGS_ARGS)$$tags$$unique" \
364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
365 $$tags $$unique
366
367GTAGS:
368 here=`$(am__cd) $(top_builddir) && pwd` \
369 && cd $(top_srcdir) \
370 && gtags -i $(GTAGS_ARGS) $$here
371
372distclean-tags:
373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
374
375distdir: $(DISTFILES)
376 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 list='$(DISTFILES)'; \
379 dist_files=`for file in $$list; do echo $$file; done | \
380 sed -e "s|^$$srcdirstrip/||;t" \
381 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
382 case $$dist_files in \
383 */*) $(MKDIR_P) `echo "$$dist_files" | \
384 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
385 sort -u` ;; \
386 esac; \
387 for file in $$dist_files; do \
388 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
389 if test -d $$d/$$file; then \
390 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
393 fi; \
394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
395 else \
396 test -f $(distdir)/$$file \
397 || cp -p $$d/$$file $(distdir)/$$file \
398 || exit 1; \
399 fi; \
400 done
401check-am: all-am
402check: check-am
403all-am: Makefile $(LTLIBRARIES)
404installdirs:
405 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
406 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
407 done
408install: install-am
409install-exec: install-exec-am
410install-data: install-data-am
411uninstall: uninstall-am
412
413install-am: all-am
414 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
415
416installcheck: installcheck-am
417install-strip:
418 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
419 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
420 `test -z '$(STRIP)' || \
421 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
422mostlyclean-generic:
423
424clean-generic:
425
426distclean-generic:
427 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
428
429maintainer-clean-generic:
430 @echo "This command is intended for maintainers to use"
431 @echo "it deletes files that may require special tools to rebuild."
432clean: clean-am
433
434clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
435 mostlyclean-am
436
437distclean: distclean-am
438 -rm -rf ./$(DEPDIR)
439 -rm -f Makefile
440distclean-am: clean-am distclean-compile distclean-generic \
441 distclean-tags
442
443dvi: dvi-am
444
445dvi-am:
446
447html: html-am
448
449info: info-am
450
451info-am:
452
453install-data-am: install-pluginimpLTLIBRARIES
454
455install-dvi: install-dvi-am
456
457install-exec-am:
458
459install-html: install-html-am
460
461install-info: install-info-am
462
463install-man:
464
465install-pdf: install-pdf-am
466
467install-ps: install-ps-am
468
469installcheck-am:
470
471maintainer-clean: maintainer-clean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474maintainer-clean-am: distclean-am maintainer-clean-generic
475
476mostlyclean: mostlyclean-am
477
478mostlyclean-am: mostlyclean-compile mostlyclean-generic \
479 mostlyclean-libtool
480
481pdf: pdf-am
482
483pdf-am:
484
485ps: ps-am
486
487ps-am:
488
489uninstall-am: uninstall-pluginimpLTLIBRARIES
490
491.MAKE: install-am install-strip
492
493.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
494 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
495 distclean-compile distclean-generic distclean-libtool \
496 distclean-tags distdir dvi dvi-am html html-am info info-am \
497 install install-am install-data install-data-am install-dvi \
498 install-dvi-am install-exec install-exec-am install-html \
499 install-html-am install-info install-info-am install-man \
500 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
501 install-ps install-ps-am install-strip installcheck \
502 installcheck-am installdirs maintainer-clean \
503 maintainer-clean-generic mostlyclean mostlyclean-compile \
504 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
505 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
506
507# Tell versions [3.59,3.63) of GNU make to not export all variables.
508# Otherwise a system limit (for SysV at least) may be exceeded.
509.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c
new file mode 100644
index 0000000..b8d83a4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_q3o/imp_q3o.c
@@ -0,0 +1,586 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <g3d/types.h>
27#include <g3d/context.h>
28#include <g3d/material.h>
29#include <g3d/stream.h>
30
31/*
32 * format description:
33 * http://www.quick3d.com/guide/guidec.html
34 */
35
36static void q3o_update_face_textures(G3DModel *model, G3DContext *context);
37static gboolean q3o_read_mesh(G3DStream *stream, G3DModel *model,
38 guint32 n_textures, G3DContext *context);
39static gboolean q3o_read_material(G3DStream *stream, G3DModel *model,
40 guint32 index, guint32 n_textures);
41static gboolean q3o_read_texture(G3DStream *stream, G3DModel *model,
42 guint32 *idx);
43static gboolean q3o_read_scene(G3DStream *stream, G3DContext *context);
44static gboolean q3o_read_eof(G3DStream *stream);
45
46EAPI
47gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
48 G3DModel *model, gpointer user_data)
49{
50 gchar signature[8], ver_min, ver_maj, id;
51 guint32 nmeshes, nmats, ntexs, i, tex_index = 0;
52
53 g3d_stream_read(stream, signature, 8);
54 if(strncmp(signature, "quick3Ds", 8) && strncmp(signature, "quick3Do", 8))
55 {
56 g_warning("file '%s' is not a Quick3D file", stream->uri);
57 return FALSE;
58 }
59
60 ver_maj = g3d_stream_read_int8(stream);
61 ver_min = g3d_stream_read_int8(stream);
62#if DEBUG > 0
63 g_debug("Q3O: version %c.%c", ver_maj, ver_min);
64#endif
65
66 nmeshes = g3d_stream_read_int32_le(stream);
67 nmats = g3d_stream_read_int32_le(stream);
68 ntexs = g3d_stream_read_int32_le(stream);
69#if DEBUG > 0
70 g_debug("Q3O: %d meshes, %d materials, %d textures",
71 nmeshes, nmats, ntexs);
72#endif
73
74 /* generate (emtpy) materials */
75 for(i = 0; i < nmats; i ++) {
76 G3DMaterial *material = g3d_material_new();
77 model->materials = g_slist_append(model->materials, material);
78 }
79
80 while((id = g3d_stream_read_int8(stream)) != 0) {
81#if DEBUG > 0
82 g_debug("Q3O: chunk type 0x%02x @ 0x%08x", id,
83 (guint32)g3d_stream_tell(stream) - 1);
84#endif
85 switch(id) {
86 case 'm': /* mesh */
87 for(i = 0; i < nmeshes; i ++)
88 q3o_read_mesh(stream, model, ntexs, context);
89 break;
90
91 case 'c': /* material */
92 for(i = 0; i < nmats; i ++)
93 q3o_read_material(stream, model, i, ntexs);
94 break;
95
96 case 't': /* texture */
97 for(i = 0; i < ntexs; i ++)
98 q3o_read_texture(stream, model, &tex_index);
99 break;
100
101 case 's': /* scene */
102 q3o_read_scene(stream, context);
103 break;
104
105 case 'q': /* EOF signature? */
106 q3o_read_eof(stream);
107 break;
108
109 default:
110 g_warning("Q3O: unknown chunk type 0x%02x\n", id);
111 return TRUE;
112 break;
113 }
114 }
115
116 /* update texture images */
117 q3o_update_face_textures(model, context);
118
119 return TRUE;
120}
121
122EAPI
123gchar *plugin_description(void)
124{
125 return g_strdup("Quick3D models.");
126}
127
128EAPI
129gchar **plugin_extensions(void)
130{
131 return g_strsplit("q3o:q3s", ":", 0);
132}
133
134/*
135 * Q3O specific stuff
136 */
137
138static void q3o_update_face_textures(G3DModel *model, G3DContext *context)
139{
140 GSList *oitem, *fitem;
141 G3DObject *object;
142 G3DFace *face;
143
144 oitem = model->objects;
145 while(oitem)
146 {
147 object = (G3DObject *)oitem->data;
148 fitem = object->faces;
149 while(fitem)
150 {
151 face = (G3DFace *)fitem->data;
152 face->tex_image = face->material->tex_image;
153 if(face->tex_image && face->tex_image->width)
154 face->flags |= G3D_FLAG_FAC_TEXMAP;
155 else
156 {
157 face->tex_vertex_count = 0;
158 if(face->tex_vertex_data)
159 g_free(face->tex_vertex_data);
160 }
161 fitem = fitem->next;
162 }
163
164 g3d_context_update_interface(context);
165 oitem = oitem->next;
166 }
167}
168
169static G3DImage *q3o_get_texture_nth(G3DModel *model, guint32 n)
170{
171 gchar number[32];
172 G3DImage *image;
173
174 if(model->tex_images == NULL)
175 model->tex_images = g_hash_table_new(g_str_hash, g_str_equal);
176
177#if DEBUG > 5
178 g_debug("Q3O: texture #%d wanted", n);
179#endif
180
181 sprintf(number, "%d", n);
182 image = g_hash_table_lookup(model->tex_images, number);
183 if(image) {
184#if DEBUG > 5
185 g_debug("Q3O: texture #%d from hash table", n);
186#endif
187 return image;
188 }
189
190#if DEBUG > 5
191 g_debug("Q3O: texture #%d created", n);
192#endif
193
194 image = g_new0(G3DImage, 1);
195 image->tex_scale_u = 1.0;
196 image->tex_scale_v = 1.0;
197 image->name = g_strdup_printf("would be %d", n + 1);
198
199 g_hash_table_insert(model->tex_images, g_strdup(number), image);
200
201 return image;
202}
203
204static gboolean q3o_read_mesh(G3DStream *stream, G3DModel *model,
205 guint32 n_textures, G3DContext *context)
206{
207 guint32 i, j, nfaces, mat, nnormals, ntexco, index, nfaceverts = 0;
208 guint16 *faceshapes;
209 G3DFloat *normals;
210 GSList *fitem;
211 G3DObject *object;
212 G3DFace *face;
213 G3DMaterial *material;
214
215 object = g_new0(G3DObject, 1);
216 object->name = g_strdup("Q3O mesh");
217 model->objects = g_slist_append(model->objects, object);
218
219 material = g3d_material_new();
220 material->name = g_strdup("fallback material");
221 object->materials = g_slist_append(object->materials, material);
222
223 /* vertices */
224 object->vertex_count = g3d_stream_read_int32_le(stream);
225#if DEBUG > 3
226 g_debug("Q3O: number of vertices: %d", object->vertex_count);
227#endif
228 object->vertex_data = g_new0(G3DFloat,object->vertex_count * 3);
229 for(i = 0; i < object->vertex_count; i ++)
230 {
231 object->vertex_data[i*3+0] = g3d_stream_read_float_le(stream);
232 object->vertex_data[i*3+1] = g3d_stream_read_float_le(stream);
233 object->vertex_data[i*3+2] = g3d_stream_read_float_le(stream);
234
235 g3d_context_update_interface(context);
236 }
237
238 /* faces */
239 nfaces = g3d_stream_read_int32_le(stream);
240#if DEBUG > 3
241 g_debug("Q3O: number of faces: %d", nfaces);
242#endif
243 faceshapes = g_new0(guint16, nfaces);
244 for(i = 0; i < nfaces; i ++)
245 {
246 faceshapes[i] = g3d_stream_read_int16_le(stream);
247 nfaceverts += faceshapes[i];
248
249 g3d_context_update_interface(context);
250 }
251
252 for(i = 0; i < nfaces; i ++)
253 {
254 face = g_new0(G3DFace, 1);
255 face->vertex_count = faceshapes[i];
256 face->vertex_indices = g_new0(guint32, face->vertex_count);
257 for(j = 0; j < face->vertex_count; j ++)
258 {
259 face->vertex_indices[j] = g3d_stream_read_int32_le(stream);
260 if(face->vertex_indices[j] >= object->vertex_count)
261 {
262 g_warning("Q3O: vertex_indices >= vertex_count");
263 }
264
265 g3d_context_update_interface(context);
266 }
267 /* fallback material */
268 face->material = (G3DMaterial *)g_slist_nth_data(object->materials, 0);
269 g_assert(face->material);
270
271 object->faces = g_slist_append(object->faces, face);
272
273 g3d_context_update_interface(context);
274 }
275
276 /* material indices */
277 fitem = object->faces;
278 for(i = 0; i < nfaces; i ++)
279 {
280 face = (G3DFace *)fitem->data;
281 g_assert(face != NULL);
282 mat = g3d_stream_read_int32_le(stream);
283 face->material = (G3DMaterial*)g_slist_nth_data(model->materials, mat);
284 if(face->material == NULL)
285 {
286 if(mat != -1) g_warning("Q3O: material is NULL (index %d)", mat);
287 face->material = g_slist_nth_data(object->materials, 0);
288 }
289
290 g3d_context_update_interface(context);
291 fitem = fitem->next;
292 }
293
294 /* normals */
295 nnormals = g3d_stream_read_int32_le(stream);
296 normals = g_new0(G3DFloat, nnormals * 3);
297#if DEBUG > 3
298 g_debug("Q3O: number of normals: %d", nnormals);
299#endif
300 for(i = 0; i < nnormals; i ++) {
301 normals[i * 3 + 0] = g3d_stream_read_float_le(stream);
302 normals[i * 3 + 1] = g3d_stream_read_float_le(stream);
303 normals[i * 3 + 2] = g3d_stream_read_float_le(stream);
304
305 g3d_context_update_interface(context);
306 }
307
308 /* update faces */
309 if(object->vertex_count == nnormals) {
310 fitem = object->faces;
311 for(i = 0; i < nfaces; i ++) {
312 face = (G3DFace *)fitem->data;
313 face->normals = g_new0(G3DFloat, faceshapes[i] * 3);
314 face->flags |= G3D_FLAG_FAC_NORMALS;
315 for(j = 0; j < faceshapes[i]; j ++)
316 {
317 face->normals[j * 3 + 0] =
318 normals[face->vertex_indices[j] * 3 + 0];
319 face->normals[j * 3 + 1] =
320 normals[face->vertex_indices[j] * 3 + 1];
321 face->normals[j * 3 + 2] =
322 normals[face->vertex_indices[j] * 3 + 2];
323 }
324
325 g3d_context_update_interface(context);
326 fitem = fitem->next;
327 }
328
329 }
330
331 /* texture stuff */
332 ntexco = g3d_stream_read_int32_le(stream);
333#if DEBUG > 3
334 g_debug("Q3O: number of texture coordinates: %d", ntexco);
335#endif
336 if(n_textures > 0)
337 {
338 object->tex_vertex_count = ntexco;
339 object->tex_vertex_data = g_new0(G3DFloat, 2 * ntexco);
340
341 for(i = 0; i < ntexco; i ++)
342 {
343 object->tex_vertex_data[i * 2 + 0] = g3d_stream_read_float_le(stream);
344 object->tex_vertex_data[i * 2 + 1] = g3d_stream_read_float_le(stream);
345 }
346
347 fitem = object->faces;
348 for(i = 0; i < nfaces; i ++)
349 {
350 face = (G3DFace *)fitem->data;
351 face->tex_vertex_count = faceshapes[i];
352 face->tex_vertex_data = g_new0(G3DFloat, faceshapes[i] * 2);
353 for(j = 0; j < faceshapes[i]; j ++)
354 {
355 index = g3d_stream_read_int32_le(stream);
356 face->tex_vertex_data[j * 2 + 0] =
357 object->tex_vertex_data[face->vertex_indices[j] * 2 + 0];
358 face->tex_vertex_data[j * 2 + 1] =
359 object->tex_vertex_data[face->vertex_indices[j] * 2 + 1];
360 }
361
362 g3d_context_update_interface(context);
363 fitem = fitem->next;
364 }
365 }
366
367 /* centerOfMass */
368 g3d_stream_read_float_le(stream);
369 g3d_stream_read_float_le(stream);
370 g3d_stream_read_float_le(stream);
371
372 /* boundingBox */
373 g3d_stream_read_float_le(stream);
374 g3d_stream_read_float_le(stream);
375 g3d_stream_read_float_le(stream);
376
377 g3d_stream_read_float_le(stream);
378 g3d_stream_read_float_le(stream);
379 g3d_stream_read_float_le(stream);
380
381 /* clean up */
382 g_free(faceshapes);
383 if(object->tex_vertex_data)
384 {
385 /* should be in faces */
386 g_free(object->tex_vertex_data);
387 object->tex_vertex_data = NULL;
388 }
389 if(normals)
390 g_free(normals);
391
392 g3d_context_update_interface(context);
393
394 return TRUE;
395}
396
397static gboolean q3o_read_material(G3DStream *stream, G3DModel *model,
398 guint32 index, guint32 n_textures)
399{
400 gchar buffer[2048], *bufp;
401 G3DMaterial *material;
402 gint32 num;
403
404 material = g_slist_nth_data(model->materials, index);
405 memset(buffer, 0, 2048);
406 bufp = buffer;
407 while((*bufp = g3d_stream_read_int8(stream)) != '\0') bufp ++;
408 material->name = g_strdup(buffer);
409#if DEBUG > 0
410 g_debug("Q3O: material name: '%s'", buffer);
411#endif
412
413 /* ambientColor */
414 material->r = g3d_stream_read_float_le(stream);
415 material->g = g3d_stream_read_float_le(stream);
416 material->b = g3d_stream_read_float_le(stream);
417
418 /* diffuseColor */
419 material->r = g3d_stream_read_float_le(stream);
420 material->g = g3d_stream_read_float_le(stream);
421 material->b = g3d_stream_read_float_le(stream);
422
423 /* specularColor */
424 material->specular[0] = g3d_stream_read_float_le(stream);
425 material->specular[1] = g3d_stream_read_float_le(stream);
426 material->specular[2] = g3d_stream_read_float_le(stream);
427
428 /* transparency */
429 material->a = g3d_stream_read_float_le(stream);
430 if(material->a == 0.0) material->a = 1.0;
431 if(material->a < 0.1) material->a = 0.1;
432
433 /* texture */
434 num = g3d_stream_read_int32_le(stream);
435#if DEBUG > 4
436 g_debug("Q3O: material unknown uint32: %d", num);
437#endif
438 if((num != -1) && (num < n_textures))
439 material->tex_image = q3o_get_texture_nth(model, num);
440
441 return TRUE;
442}
443
444static gboolean q3o_read_texture(G3DStream *stream, G3DModel *model,
445 guint32 *idx)
446{
447 G3DImage *image;
448 gchar buffer[2048], *bufp;
449#if DEBUG > 2
450 gchar *ppmname;
451#endif
452 guint32 width, height, y, x;
453
454 memset(buffer, 0, 2048);
455 bufp = buffer;
456 while((*bufp = g3d_stream_read_int8(stream)) != '\0')
457 bufp ++;
458
459 width = g3d_stream_read_int32_le(stream);
460 height = g3d_stream_read_int32_le(stream);
461#if DEBUG > 0
462 g_debug("Q3O: texture #%d '%s': %dx%d", *idx, buffer, width, height);
463#endif
464
465 image = q3o_get_texture_nth(model, *idx);
466 (*idx) ++;
467
468 image->name = g_strdup(buffer);
469 image->width = width;
470 image->height = height;
471 image->depth = 32;
472 image->pixeldata = g_new0(guint8, width * height * 4);
473 image->tex_id = *idx;
474
475 for(y = 0; y < height; y ++)
476 for(x = 0; x < width; x ++) {
477 image->pixeldata[(y * width + x) * 4 + 0] =
478 g3d_stream_read_int8(stream);
479 image->pixeldata[(y * width + x) * 4 + 1] =
480 g3d_stream_read_int8(stream);
481 image->pixeldata[(y * width + x) * 4 + 2] =
482 g3d_stream_read_int8(stream);
483 image->pixeldata[(y * width + x) * 4 + 3] = 0xFF;
484 }
485
486#if DEBUG > 2
487 ppmname = g_strdup_printf("/tmp/%s.ppm", image->name);
488 g3d_image_dump_ppm(image, ppmname);
489 g_free(ppmname);
490#endif
491 return TRUE;
492}
493
494static gboolean q3o_read_scene(G3DStream *stream, G3DContext *context)
495{
496 gchar buffer[2048], *bufp;
497 guint32 bgw, bgh;
498 /* position: 3 x float */
499
500 g3d_stream_skip(stream, 12);
501
502 /* transformation: matrix */
503 g3d_stream_skip(stream, 64);
504
505 /* axis: 3 x float */
506 g3d_stream_skip(stream, 12);
507
508 /* angle: float */
509 g3d_stream_skip(stream, 4);
510
511 /* eyePosition: 3 x float */
512 g3d_stream_skip(stream, 12);
513
514 /* eyeRotation: 3 x float */
515 g3d_stream_skip(stream, 12);
516
517 /* foregroundColor: color */
518 g3d_stream_skip(stream, 12);
519
520 /* backgroundColor: color */
521 g3d_context_set_bgcolor(context,
522 g3d_stream_read_float_le(stream),
523 g3d_stream_read_float_le(stream),
524 g3d_stream_read_float_le(stream),
525 1.0);
526
527 /* usingEyeFilter: bool */
528 g3d_stream_read_int8(stream);
529
530 /* eyeFilterColor: color */
531 g3d_stream_skip(stream, 12);
532
533 /* eyeFilterAmount: float */
534 g3d_stream_read_float_le(stream);
535
536 /* lightColor: color */
537 g3d_stream_skip(stream, 12);
538
539 /* backgroundImageWidth: int */
540 bgw = g3d_stream_read_int32_le(stream);
541
542 /* backgroundImageHeight: int */
543 bgh = g3d_stream_read_int32_le(stream);
544
545 if(bgw * bgh) {
546
547 /* backgroundFilename */
548 memset(buffer, 0, 2048);
549 bufp = buffer;
550 while((*bufp = g3d_stream_read_int8(stream)) != '\0')
551 bufp ++;
552
553#if DEBUG > 0
554 g_debug("Q3O: scene: background image '%s' (%dx%d)",
555 buffer, bgw, bgh);
556#endif
557
558 /* backgroundImage: pixel[] */
559 g3d_stream_skip(stream, bgw * bgh * 3);
560 }
561
562 /* depthCuing: float */
563 g3d_stream_read_float_le(stream);
564
565 /* depthCueColor: color */
566 g3d_stream_skip(stream, 12);
567
568 /* gamma: float */
569 g3d_stream_read_float_le(stream);
570
571 return FALSE;
572}
573
574static gboolean q3o_read_eof(G3DStream *stream)
575{
576 gchar buffer[7];
577
578 if(g3d_stream_read(stream, buffer, 7) == 7) {
579 if(strncmp(buffer, "uick3Ds", 7) == 0) return TRUE;
580 g_warning("Q3O: did not get expected EOF marker");
581 } else {
582 g_warning("Q3O: premature end of file\n");
583 }
584 return FALSE;
585}
586
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile
new file mode 100644
index 0000000..338fcd4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile
@@ -0,0 +1,513 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_r4/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_r4
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_r4_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_r4_la_OBJECTS = imp_r4.lo imp_r4_callbacks.lo
59imp_r4_la_OBJECTS = $(am_imp_r4_la_OBJECTS)
60#am_imp_r4_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_r4_la_SOURCES)
74DIST_SOURCES = $(imp_r4_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_r4.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_r4_la_SOURCES = imp_r4.c imp_r4_chunks.h \
230 imp_r4_callbacks.c imp_r4_callbacks.h
231
232imp_r4_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_r4.la: $(imp_r4_la_OBJECTS) $(imp_r4_la_DEPENDENCIES)
294 $(LINK) $(am_imp_r4_la_rpath) $(imp_r4_la_OBJECTS) $(imp_r4_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302include ./$(DEPDIR)/imp_r4.Plo
303include ./$(DEPDIR)/imp_r4_callbacks.Plo
304
305.c.o:
306 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308# source='$<' object='$@' libtool=no \
309# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
310# $(COMPILE) -c $<
311
312.c.obj:
313 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315# source='$<' object='$@' libtool=no \
316# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
317# $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322# source='$<' object='$@' libtool=yes \
323# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
324# $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.am
new file mode 100644
index 0000000..cdbfd40
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.am
@@ -0,0 +1,23 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_r4.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_r4_la_SOURCES = imp_r4.c imp_r4_chunks.h \
22 imp_r4_callbacks.c imp_r4_callbacks.h
23imp_r4_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.in
new file mode 100644
index 0000000..1770521
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/Makefile.in
@@ -0,0 +1,513 @@
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_r4
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_r4_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_r4_la_OBJECTS = imp_r4.lo imp_r4_callbacks.lo
59imp_r4_la_OBJECTS = $(am_imp_r4_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_r4_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_r4_la_SOURCES)
74DIST_SOURCES = $(imp_r4_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_r4.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_r4_la_SOURCES = imp_r4.c imp_r4_chunks.h \
230 imp_r4_callbacks.c imp_r4_callbacks.h
231
232imp_r4_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_r4/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_r4.la: $(imp_r4_la_OBJECTS) $(imp_r4_la_DEPENDENCIES)
294 $(LINK) $(am_imp_r4_la_rpath) $(imp_r4_la_OBJECTS) $(imp_r4_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_r4.Plo@am__quote@
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_r4_callbacks.Plo@am__quote@
304
305.c.o:
306@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
310@am__fastdepCC_FALSE@ $(COMPILE) -c $<
311
312.c.obj:
313@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
317@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c
new file mode 100644
index 0000000..8367461
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4.c
@@ -0,0 +1,79 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25
26#include <glib.h>
27
28#include <g3d/stream.h>
29#include <g3d/iff.h>
30
31#include "imp_r4_chunks.h"
32
33EAPI
34gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
35 G3DModel *model, gpointer user_data)
36{
37 G3DIffGlobal *global;
38 G3DIffLocal *local;
39 guint32 id;
40 gsize len;
41
42 if(!g3d_iff_check(stream, &id, &len) ||
43 id != G3D_IFF_MKID('R','E','F','L')) {
44 g_warning("file is not an .r4 (REFL) file %s", stream->uri);
45 return FALSE;
46 }
47
48 local = g_new0(G3DIffLocal, 1);
49 global = g_new0(G3DIffGlobal, 1);
50
51 global->context = context;
52 global->model = model;
53 global->stream = stream;
54
55 local->parent_id = id;
56 local->nb = len;
57
58 g3d_iff_read_ctnr(global, local, r4_chunks, G3D_IFF_PAD1);
59
60 g_free(local);
61 g_free(global);
62
63 return TRUE;
64}
65
66EAPI
67gchar *plugin_description(void)
68{
69 return g_strdup(
70 "Reflections R4 models.");
71}
72
73EAPI
74gchar **plugin_extensions(void)
75{
76 return g_strsplit("r4:r3:mon", ":", 0);
77}
78
79
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.c
new file mode 100644
index 0000000..01505b4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.c
@@ -0,0 +1,418 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/iff.h>
23#include <g3d/stream.h>
24#include <g3d/material.h>
25#include <g3d/matrix.h>
26#include <g3d/vector.h>
27
28#include "imp_r4_chunks.h"
29
30#if DEBUG > 0
31static void hexdump(G3DStream *stream, guint32 len, gchar *prefix)
32{
33 guint32 i;
34 guint8 byte;
35
36 for(i = 0; i < len; i ++)
37 {
38 byte = g3d_stream_read_int8(stream);
39 if(((i % 16) == 0) && (i != 0))
40 g_print("\n");
41 if(((i % 16) == 0) && (i != (len - 1)))
42 g_print("%s: %06x: ", (prefix ? prefix : ""), i);
43 g_print("%02x", byte);
44 if((i % 4) == 3)
45 g_print(" ");
46 }
47 g_print("\n");
48}
49#endif
50
51static void dump_remaining(G3DIffGlobal *global, G3DIffLocal *local)
52{
53#if DEBUG > 0
54 gchar *id, *prefix;
55
56 id = g3d_iff_id_to_text(local->id);
57 prefix = g_strdup_printf("R4: %s", id);
58
59 if(local->nb > 0)
60 {
61 printf("R4: %s: %d bytes remaining @ 0x%08x\n", id, local->nb,
62 (guint32)g3d_stream_tell(global->stream));
63 hexdump(global->stream, local->nb, prefix);
64 local->nb = 0;
65 }
66
67 g_free(prefix);
68 g_free(id);
69#endif
70}
71
72#if DEBUG > 0
73static void flagstat_register(guint8 flags, guint32 *flagstats)
74{
75 guint32 i;
76
77 for(i = 0; i < 8; i ++)
78 if(flags & (1 << i))
79 flagstats[i] ++;
80}
81#endif
82
83static gchar *r4_read_string(G3DStream *stream, guint32 *r)
84{
85 gint32 len;
86 gchar *str;
87
88 len = g3d_stream_read_int16_be(stream);
89 str = g_malloc0(len + 1);
90 g3d_stream_read(stream, str, len);
91
92 if(r)
93 *r = len + 2;
94 return str;
95}
96
97/* triangles */
98gboolean r4_cb_DRE2(G3DIffGlobal *global, G3DIffLocal *local)
99{
100 G3DObject *object;
101 G3DFace *face;
102 guint32 ntris, r;
103 gint32 i, n_str;
104 guint8 u, max_u = 0;
105 gchar *name;
106#if DEBUG > 0
107 guint32 flagstats[8];
108#endif
109
110 object = g_new0(G3DObject, 1);
111 object->name = g_strdup("(default)");
112 global->model->objects = g_slist_append(global->model->objects, object);
113 local->object = object;
114
115 /* RGE1 */
116 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
117
118#if DEBUG > 2
119 printf("R4: DRE2 offset after RGE1 chunk: 0x%08x\n",
120 (guint32)g3d_stream_tell(global->stream));
121#endif
122
123 /* read triangles */
124 ntris = g3d_stream_read_int32_be(global->stream);
125#if DEBUG > 0
126 printf("R4: DRE2: %d triangles\n", ntris);
127#endif
128 local->nb -= 4;
129 for(i = 0; i < ntris; i ++)
130 {
131 face = g_new0(G3DFace, 1);
132 face->material = g_slist_nth_data(global->model->materials, 0);
133 face->vertex_count = 3;
134 face->vertex_indices = g_new0(guint32, 3);
135 face->vertex_indices[0] = g3d_stream_read_int32_be(global->stream);
136 face->vertex_indices[1] = g3d_stream_read_int32_be(global->stream);
137 face->vertex_indices[2] = g3d_stream_read_int32_be(global->stream);
138 local->nb -= 12;
139 object->faces = g_slist_append(object->faces, face);
140 }
141
142#if DEBUG > 0
143 /* flags/index of material? */
144 for(i = 0; i < 8; i ++)
145 flagstats[i] = 0;
146#endif
147
148 for(i = 0; i < ntris; i ++)
149 {
150 u = g3d_stream_read_int8(global->stream);
151 local->nb --;
152 if(u > max_u)
153 max_u = u;
154#if DEBUG > 0
155 flagstat_register(u, flagstats);
156#endif
157 }
158
159#if DEBUG > 0
160 for(i = 0; i < 8; i ++)
161 printf("R4: DRE2: flag 2^%d: %u\n", i, flagstats[i]);
162#endif
163
164#if DEBUG > 0
165 printf("R4: DRE2: max. flag: %d\n", max_u);
166#endif
167
168#if 1
169 /* some strings */
170 n_str = g3d_stream_read_int32_be(global->stream);
171 /* may be 0xFFFFFFFF = -1 */
172 local->nb -= 4;
173 g_debug("R4: DRE2: %d string(s) @ 0x%08x:", n_str,
174 (guint32)g3d_stream_tell(global->stream));
175 for(i = 0; i < MIN(n_str, 1); i ++) {
176 name = r4_read_string(global->stream, &r);
177 local->nb -= r;
178#if DEBUG > 0
179 g_debug("R4: DRE2: '%s' (%d)", name, r - 2);
180#endif
181 g_free(name);
182 }
183#endif
184
185 dump_remaining(global, local);
186
187 /* remove transformation if set */
188 if(object->transformation)
189 {
190 g_free(object->transformation);
191 object->transformation = NULL;
192 }
193
194 return TRUE;
195}
196
197/* material: GMAT, GMA0 */
198gboolean r4_cb_GMAx(G3DIffGlobal *global, G3DIffLocal *local)
199{
200 G3DMaterial *material;
201 gpointer object;
202
203 /* ROBJ */
204 object = g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
205
206 if(object)
207 {
208 material = g3d_material_new();
209 material->name = g_convert((gchar *)object, -1,
210 "UTF-8", "ISO-8859-1",
211 NULL, NULL, NULL);
212 g_free(object);
213
214 if(local->object)
215 ((G3DObject *)local->object)->materials = g_slist_append(
216 ((G3DObject *)local->object)->materials, material);
217 else
218 global->model->materials = g_slist_append(global->model->materials,
219 material);
220
221 if(local->id == G3D_IFF_MKID('G','M','A','T'))
222 {
223 material->r = g3d_stream_read_float_be(global->stream);
224 material->g = g3d_stream_read_float_be(global->stream);
225 material->b = g3d_stream_read_float_be(global->stream);
226 local->nb -= 12;
227 }
228 }
229
230 dump_remaining(global, local);
231
232 return TRUE;
233}
234
235/* coordinate system */
236gboolean r4_cb_KSYS(G3DIffGlobal *global, G3DIffLocal *local)
237{
238 G3DFloat x, y, z, f;
239 G3DObject *object;
240 G3DTransformation *transform;
241 gint32 i, j;
242
243 x = g3d_stream_read_float_be(global->stream);
244 y = g3d_stream_read_float_be(global->stream);
245 z = g3d_stream_read_float_be(global->stream);
246 local->nb -= 12;
247
248#if DEBUG > 2
249 printf("R4: KSYS: %f, %f, %f\n", x, y, z);
250#endif
251
252 object = (G3DObject *)local->object;
253 if(object)
254 {
255 transform = g_new0(G3DTransformation, 1);
256 g3d_matrix_identity(transform->matrix);
257 g3d_matrix_translate(x, y, z, transform->matrix);
258
259 object->transformation = transform;
260
261 /* matrix parts */
262 for(j = 0; j < 3; j ++)
263 for(i = 0; i < 3; i ++)
264 transform->matrix[j * 4 + i] = g3d_stream_read_float_be(global->stream);
265 local->nb -= 36;
266
267 /* scale part */
268 f = g3d_stream_read_float_be(global->stream);
269 local->nb -= 4;
270 g3d_matrix_scale(f, f, f, transform->matrix);
271 }
272
273 return TRUE;
274}
275
276/* sphere */
277gboolean r4_cb_KUG1(G3DIffGlobal *global, G3DIffLocal *local)
278{
279 /* RGE1 */
280 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
281
282 dump_remaining(global, local);
283
284 return TRUE;
285}
286
287/* light */
288gboolean r4_cb_LGH3(G3DIffGlobal *global, G3DIffLocal *local)
289{
290 /* RGE1 */
291 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
292
293 return TRUE;
294}
295
296/* points */
297gboolean r4_cb_PKTM(G3DIffGlobal *global, G3DIffLocal *local)
298{
299 gint32 i, j;
300 G3DObject *object;
301
302 object = (G3DObject *)local->object;
303 if(object)
304 {
305 object->vertex_count = g3d_stream_read_int32_be(global->stream);
306 local->nb -= 4;
307 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
308 for(i = 0; i < object->vertex_count; i ++) {
309 for(j = 0; j < 3; j ++)
310 object->vertex_data[i * 3 + j] =
311 g3d_stream_read_float_be(global->stream);
312 local->nb -= 12;
313
314 /* transform vertices */
315 if(object->transformation) {
316 g3d_vector_transform(
317 object->vertex_data + i * 3 + 0,
318 object->vertex_data + i * 3 + 1,
319 object->vertex_data + i * 3 + 2,
320 object->transformation->matrix);
321 }
322 }
323 }
324
325 return TRUE;
326}
327
328/* geometry or something */
329gboolean r4_cb_RGE1(G3DIffGlobal *global, G3DIffLocal *local)
330{
331 gchar *name;
332
333 /* ROBJ */
334 name =
335 (gchar *)g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
336
337 if(name && local->object) {
338 g_free(((G3DObject *)local->object)->name);
339 ((G3DObject *)local->object)->name = g_convert(name, -1,
340 "UTF-8", "ISO-8859-1", NULL, NULL, NULL);
341 }
342
343 /* KSYS */
344 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
345
346 /* PKTM */
347 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
348
349 /* skip remaining bytes */
350 if(local->nb) {
351 g3d_stream_skip(global->stream, local->nb);
352 local->nb = 0;
353 }
354
355 dump_remaining(global, local);
356
357 return TRUE;
358}
359
360/* camera related: RKA2, RKA3 */
361gboolean r4_cb_RKAx(G3DIffGlobal *global, G3DIffLocal *local)
362{
363 /* handle RGE1 chunk */
364 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
365
366 /* more stuff... */
367 /* TODO: */
368
369 return TRUE;
370}
371
372/* object name */
373gboolean r4_cb_ROBJ(G3DIffGlobal *global, G3DIffLocal *local)
374{
375 guint32 len;
376
377 local->level_object = r4_read_string(global->stream, &len);
378 local->nb -= (len + 2);
379
380#if DEBUG > 2
381 g_debug("[R4] ROBJ: %s", (gchar *)local->level_object);
382#endif
383
384 return TRUE;
385}
386
387/* surface: SURF, SUR1 */
388gboolean r4_cb_SURx(G3DIffGlobal *global, G3DIffLocal *local)
389{
390 /* GMAT or GMA1 */
391 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
392
393 dump_remaining(global, local);
394
395 return TRUE;
396}
397
398/* texture material */
399gboolean r4_cb_TXM1(G3DIffGlobal *global, G3DIffLocal *local)
400{
401 /* SURF */
402 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
403
404 dump_remaining(global, local);
405
406 return TRUE;
407}
408
409/* texture object? */
410gboolean r4_cb_TXO1(G3DIffGlobal *global, G3DIffLocal *local)
411{
412 /* RGE1 */
413 g3d_iff_handle_chunk(global, local, r4_chunks, G3D_IFF_PAD1);
414
415 dump_remaining(global, local);
416
417 return TRUE;
418}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.h
new file mode 100644
index 0000000..8ee67b4
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_callbacks.h
@@ -0,0 +1,40 @@
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 _G3D_R4_CALLBACKS_H
23#define _G3D_R4_CALLBACKS_H
24
25#include <g3d/iff.h>
26
27gboolean r4_cb_DRE2(G3DIffGlobal *global, G3DIffLocal *local);
28gboolean r4_cb_GMAx(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean r4_cb_KSYS(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean r4_cb_KUG1(G3DIffGlobal *global, G3DIffLocal *local);
31gboolean r4_cb_LGH3(G3DIffGlobal *global, G3DIffLocal *local);
32gboolean r4_cb_PKTM(G3DIffGlobal *global, G3DIffLocal *local);
33gboolean r4_cb_RGE1(G3DIffGlobal *global, G3DIffLocal *local);
34gboolean r4_cb_RKAx(G3DIffGlobal *global, G3DIffLocal *local);
35gboolean r4_cb_ROBJ(G3DIffGlobal *global, G3DIffLocal *local);
36gboolean r4_cb_SURx(G3DIffGlobal *global, G3DIffLocal *local);
37gboolean r4_cb_TXM1(G3DIffGlobal *global, G3DIffLocal *local);
38gboolean r4_cb_TXO1(G3DIffGlobal *global, G3DIffLocal *local);
39
40#endif /* _G3D_R4_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_chunks.h
new file mode 100644
index 0000000..3b36851
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_r4/imp_r4_chunks.h
@@ -0,0 +1,62 @@
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_R4_CHUNKS_H
23#define _IMP_R4_CHUNKS_H
24
25#include <g3d/iff.h>
26
27#include "imp_r4_callbacks.h"
28
29static G3DIffChunkInfo r4_chunks[] = {
30 { "AFX1", "unknown", 0, NULL }, /* mon */
31 { "DRE2", "triangles", 0, r4_cb_DRE2 },
32 { "DSP2", "unknown", 0, NULL }, /* R4.3 */
33 { "GLOW", "unknown", 0, NULL }, /* R4.3 */
34 { "GMA1", "material", 0, r4_cb_GMAx },
35 { "GMAT", "material", 0, r4_cb_GMAx },
36 { "INFO", "information", 0, NULL },
37 { "KSYS", "coordinate system", 0, r4_cb_KSYS },
38 { "KUG1", "sphere", 0, r4_cb_KUG1 },
39 { "LGH3", "light", 0, r4_cb_LGH3 },
40 { "MTEX", "unknown", 0, NULL }, /* mon */
41 { "NEB1", "fog?", 0, NULL }, /* mon */
42 { "NEBL", "fog?", 0, NULL },
43 { "PKL1", "unknown", 0, NULL }, /* R4.3 */
44 { "PKTM", "points", 0, r4_cb_PKTM },
45 { "POLY", "polygons", 0, NULL }, /* mon */
46 { "RGE1", "geometry", 0, r4_cb_RGE1 },
47 { "RKA2", "camera", 0, r4_cb_RKAx },
48 { "RKA3", "camera", 0, r4_cb_RKAx },
49 { "ROBJ", "object name", 0, r4_cb_ROBJ },
50 { "RSPG", "unknown", 0, NULL }, /* R4.3 */
51 { "SEQ1", "sequence", 0, NULL },
52 { "SEQ2", "sequence", 0, NULL },
53 { "SKE2", "unknown", 0, NULL }, /* R4.3 */
54 { "SUR1", "surface", 0, r4_cb_SURx },
55 { "SURF", "surface", 0, r4_cb_SURx },
56 { "TXM1", "unknown", 0, r4_cb_TXM1 },
57 { "TXO1", "unknown", 0, r4_cb_TXO1 },
58
59 { NULL, NULL, 0, NULL }
60};
61
62#endif /* _IMP_R4_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile
new file mode 100644
index 0000000..5438e31
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile
@@ -0,0 +1,513 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_rbh/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_rbh
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_rbh_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_rbh_la_OBJECTS = imp_rbh.lo imp_rbh_callbacks.lo
59imp_rbh_la_OBJECTS = $(am_imp_rbh_la_OBJECTS)
60#am_imp_rbh_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_rbh_la_SOURCES)
74DIST_SOURCES = $(imp_rbh_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_rbh.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_rbh_la_SOURCES = imp_rbh.c imp_rbh_chunks.h \
230 imp_rbh_callbacks.c imp_rbh_callbacks.h
231
232imp_rbh_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_rbh.la: $(imp_rbh_la_OBJECTS) $(imp_rbh_la_DEPENDENCIES)
294 $(LINK) $(am_imp_rbh_la_rpath) $(imp_rbh_la_OBJECTS) $(imp_rbh_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302include ./$(DEPDIR)/imp_rbh.Plo
303include ./$(DEPDIR)/imp_rbh_callbacks.Plo
304
305.c.o:
306 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308# source='$<' object='$@' libtool=no \
309# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
310# $(COMPILE) -c $<
311
312.c.obj:
313 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315# source='$<' object='$@' libtool=no \
316# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
317# $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322# source='$<' object='$@' libtool=yes \
323# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
324# $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.am
new file mode 100644
index 0000000..3a8a5da
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.am
@@ -0,0 +1,23 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_rbh.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_rbh_la_SOURCES = imp_rbh.c imp_rbh_chunks.h \
22 imp_rbh_callbacks.c imp_rbh_callbacks.h
23imp_rbh_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.in
new file mode 100644
index 0000000..0220749
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/Makefile.in
@@ -0,0 +1,513 @@
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_rbh
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_rbh_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_rbh_la_OBJECTS = imp_rbh.lo imp_rbh_callbacks.lo
59imp_rbh_la_OBJECTS = $(am_imp_rbh_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_rbh_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_rbh_la_SOURCES)
74DIST_SOURCES = $(imp_rbh_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_rbh.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_rbh_la_SOURCES = imp_rbh.c imp_rbh_chunks.h \
230 imp_rbh_callbacks.c imp_rbh_callbacks.h
231
232imp_rbh_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_rbh/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_rbh.la: $(imp_rbh_la_OBJECTS) $(imp_rbh_la_DEPENDENCIES)
294 $(LINK) $(am_imp_rbh_la_rpath) $(imp_rbh_la_OBJECTS) $(imp_rbh_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_rbh.Plo@am__quote@
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_rbh_callbacks.Plo@am__quote@
304
305.c.o:
306@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
310@am__fastdepCC_FALSE@ $(COMPILE) -c $<
311
312.c.obj:
313@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
317@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c
new file mode 100644
index 0000000..c763dab
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh.c
@@ -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
23#include <stdio.h>
24#include <string.h>
25
26#include <glib.h>
27
28#include <g3d/iff.h>
29#include <g3d/stream.h>
30
31#include "imp_rbh_chunks.h"
32
33EAPI
34gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
35 G3DModel *model, gpointer user_data)
36{
37 G3DIffGlobal *global;
38 G3DIffLocal *local;
39 guint32 id, len;
40
41 id = g3d_stream_read_int32_be(stream);
42 len = g3d_stream_read_int32_le(stream);
43
44 if(id != G3D_IFF_MKID('P', 'I', 'F', 'F'))
45 {
46 g_warning("%s is not a PIFF file", stream->uri);
47 return FALSE;
48 }
49
50 id = g3d_stream_read_int32_be(stream);
51 len -= 4;
52 if(id != G3D_IFF_MKID('R', 'B', 'H', 'F'))
53 {
54 g_warning("%s is not a RBHF file", stream->uri);
55 return FALSE;
56 }
57
58 local = g_new0(G3DIffLocal, 1);
59 global = g_new0(G3DIffGlobal, 1);
60
61 global->context = context;
62 global->model = model;
63 global->stream = stream;
64
65 local->parent_id = id;
66 local->nb = len;
67
68 g3d_iff_read_ctnr(global, local, rbh_chunks, G3D_IFF_LE | G3D_IFF_PAD2);
69
70 g_free(local);
71 g_free(global);
72
73 return TRUE;
74
75}
76
77EAPI
78gchar *plugin_description(void)
79{
80 return g_strdup("Discworld Noir models.");
81}
82
83EAPI
84gchar **plugin_extensions(void)
85{
86 return g_strsplit("rbh", ":", 0);
87}
88
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.c
new file mode 100644
index 0000000..04dca62
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.c
@@ -0,0 +1,116 @@
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 <g3d/iff.h>
25#include <g3d/stream.h>
26#include <g3d/material.h>
27#include <g3d/debug.h>
28
29static gchar *padding = " ";
30
31/* header */
32gboolean rbh_cb_RBHH(G3DIffGlobal *global, G3DIffLocal *local)
33{
34 guint32 x0, x1, x2;
35 guint32 i, num;
36
37 num = local->nb / 12;
38 for(i = 0; i < num; i ++)
39 {
40 x0 = g3d_stream_read_int32_le(global->stream);
41 x1 = g3d_stream_read_int32_le(global->stream);
42 x2 = g3d_stream_read_int32_le(global->stream);
43 local->nb -= 12;
44
45 g_debug("\\%s[RBH][RBHH] %d: 0x%08x 0x%08x 0x%08x",
46 padding + (strlen(padding) - local->level),
47 i + 1, x0, x1, x2);
48 }
49
50 return TRUE;
51}
52
53/* body */
54gboolean rbh_cb_BODY(G3DIffGlobal *global, G3DIffLocal *local)
55{
56 guint32 nverts, nfaces;
57 guint32 maxx = 0, x;
58 G3DObject *object;
59 G3DMaterial *material;
60
61 if(local->nb < 4) return TRUE; /* zero size BODY tags? */
62
63
64 nverts = g3d_stream_read_int16_le(global->stream);
65
66 nfaces = g3d_stream_read_int16_le(global->stream);
67 local->nb -= 4;
68
69 g_debug(
70 "\\%s[RBH][BODY] %d verts, %d faces, %d bytes remaining (%d x 4 + %d)",
71 padding + (strlen(padding) - local->level),
72 nverts, nfaces, local->nb,
73 local->nb / 4, local->nb % 4);
74
75 if(nverts == 0) return TRUE; /* skip for now */
76
77 object = g_new0(G3DObject, 1);
78 object->name = g_strdup("BODY");
79
80 material = g3d_material_new();
81 object->materials = g_slist_append(object->materials, material);
82
83 global->model->objects = g_slist_append(global->model->objects, object);
84
85 while(local->nb >= 4)
86 {
87 x = g3d_stream_read_int32_le(global->stream);
88 if(x > maxx) maxx = x;
89 local->nb -= 4;
90 }
91
92 g_debug("\\%s[RBH][BODY] max. value: %d",
93 padding + (strlen(padding) - local->level),
94 maxx);
95
96 return TRUE;
97}
98
99/* ?? */
100gboolean rbh_cb_RELC(G3DIffGlobal *global, G3DIffLocal *local)
101{
102 guint32 maxx = 0, x;
103
104 while(local->nb >= 4)
105 {
106 x = g3d_stream_read_int32_le(global->stream);
107 if(x > maxx) maxx = x;
108 local->nb -= 4;
109 }
110
111 g_debug("\\%s[RBH][RELC] max. value: %d",
112 padding + (strlen(padding) - local->level),
113 maxx);
114
115 return TRUE;
116}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.h
new file mode 100644
index 0000000..d6b8d1d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_callbacks.h
@@ -0,0 +1,32 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_RBH_CALLBACKS_H
24#define _IMP_RBH_CALLBACKS_H
25
26#include <g3d/iff.h>
27
28gboolean rbh_cb_RBHH(G3DIffGlobal *global, G3DIffLocal *local);
29gboolean rbh_cb_BODY(G3DIffGlobal *global, G3DIffLocal *local);
30gboolean rbh_cb_RELC(G3DIffGlobal *global, G3DIffLocal *local);
31
32#endif /* _IMP_RBH_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_chunks.h
new file mode 100644
index 0000000..da8be20
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_rbh/imp_rbh_chunks.h
@@ -0,0 +1,38 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_RBH_CHUNKS_H
24#define _IMP_RBH_CHUNKS_H
25
26#include <g3d/iff.h>
27
28#include "imp_rbh_callbacks.h"
29
30static G3DIffChunkInfo rbh_chunks[] = {
31 { "RBHH", "RBH header", 0, rbh_cb_RBHH },
32 { "BODY", "body", 0, rbh_cb_BODY },
33 { "RELC", "unknown", 0, rbh_cb_RELC },
34
35 { NULL, NULL, 0, NULL }
36};
37
38#endif /* _IMP_RBH_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile
new file mode 100644
index 0000000..0a8e16c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile
@@ -0,0 +1,516 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_skp/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_skp
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_skp_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_skp_la_OBJECTS = imp_skp.lo imp_skp_callbacks.lo \
59 imp_skp_read.lo
60imp_skp_la_OBJECTS = $(am_imp_skp_la_OBJECTS)
61#am_imp_skp_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_skp_la_SOURCES)
75DIST_SOURCES = $(imp_skp_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_skp
167abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp
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_skp.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_skp_la_SOURCES = imp_skp.c imp_skp.h imp_skp_types.h \
231 imp_skp_chunks.h imp_skp_callbacks.h imp_skp_callbacks.c \
232 imp_skp_read.c imp_skp_read.h
233
234imp_skp_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_skp.la: $(imp_skp_la_OBJECTS) $(imp_skp_la_DEPENDENCIES)
296 $(LINK) $(am_imp_skp_la_rpath) $(imp_skp_la_OBJECTS) $(imp_skp_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304include ./$(DEPDIR)/imp_skp.Plo
305include ./$(DEPDIR)/imp_skp_callbacks.Plo
306include ./$(DEPDIR)/imp_skp_read.Plo
307
308.c.o:
309 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
310 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311# source='$<' object='$@' libtool=no \
312# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
313# $(COMPILE) -c $<
314
315.c.obj:
316 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
317 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318# source='$<' object='$@' libtool=no \
319# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
320# $(COMPILE) -c `$(CYGPATH_W) '$<'`
321
322.c.lo:
323 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
324 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
325# source='$<' object='$@' libtool=yes \
326# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
327# $(LTCOMPILE) -c -o $@ $<
328
329mostlyclean-libtool:
330 -rm -f *.lo
331
332clean-libtool:
333 -rm -rf .libs _libs
334
335ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
336 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
337 unique=`for i in $$list; do \
338 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
339 done | \
340 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
341 END { if (nonempty) { for (i in files) print i; }; }'`; \
342 mkid -fID $$unique
343tags: TAGS
344
345TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
346 $(TAGS_FILES) $(LISP)
347 tags=; \
348 here=`pwd`; \
349 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
350 unique=`for i in $$list; do \
351 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
352 done | \
353 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
354 END { if (nonempty) { for (i in files) print i; }; }'`; \
355 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
356 test -n "$$unique" || unique=$$empty_fix; \
357 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
358 $$tags $$unique; \
359 fi
360ctags: CTAGS
361CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
363 tags=; \
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
369 END { if (nonempty) { for (i in files) print i; }; }'`; \
370 test -z "$(CTAGS_ARGS)$$tags$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$tags $$unique
373
374GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && cd $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) $$here
378
379distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382distdir: $(DISTFILES)
383 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
384 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 list='$(DISTFILES)'; \
386 dist_files=`for file in $$list; do echo $$file; done | \
387 sed -e "s|^$$srcdirstrip/||;t" \
388 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
389 case $$dist_files in \
390 */*) $(MKDIR_P) `echo "$$dist_files" | \
391 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
392 sort -u` ;; \
393 esac; \
394 for file in $$dist_files; do \
395 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
396 if test -d $$d/$$file; then \
397 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
398 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
399 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
400 fi; \
401 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
402 else \
403 test -f $(distdir)/$$file \
404 || cp -p $$d/$$file $(distdir)/$$file \
405 || exit 1; \
406 fi; \
407 done
408check-am: all-am
409check: check-am
410all-am: Makefile $(LTLIBRARIES)
411installdirs:
412 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
413 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
414 done
415install: install-am
416install-exec: install-exec-am
417install-data: install-data-am
418uninstall: uninstall-am
419
420install-am: all-am
421 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
422
423installcheck: installcheck-am
424install-strip:
425 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
426 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
427 `test -z '$(STRIP)' || \
428 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
429mostlyclean-generic:
430
431clean-generic:
432
433distclean-generic:
434 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
435
436maintainer-clean-generic:
437 @echo "This command is intended for maintainers to use"
438 @echo "it deletes files that may require special tools to rebuild."
439clean: clean-am
440
441clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
442 mostlyclean-am
443
444distclean: distclean-am
445 -rm -rf ./$(DEPDIR)
446 -rm -f Makefile
447distclean-am: clean-am distclean-compile distclean-generic \
448 distclean-tags
449
450dvi: dvi-am
451
452dvi-am:
453
454html: html-am
455
456info: info-am
457
458info-am:
459
460install-data-am: install-pluginimpLTLIBRARIES
461
462install-dvi: install-dvi-am
463
464install-exec-am:
465
466install-html: install-html-am
467
468install-info: install-info-am
469
470install-man:
471
472install-pdf: install-pdf-am
473
474install-ps: install-ps-am
475
476installcheck-am:
477
478maintainer-clean: maintainer-clean-am
479 -rm -rf ./$(DEPDIR)
480 -rm -f Makefile
481maintainer-clean-am: distclean-am maintainer-clean-generic
482
483mostlyclean: mostlyclean-am
484
485mostlyclean-am: mostlyclean-compile mostlyclean-generic \
486 mostlyclean-libtool
487
488pdf: pdf-am
489
490pdf-am:
491
492ps: ps-am
493
494ps-am:
495
496uninstall-am: uninstall-pluginimpLTLIBRARIES
497
498.MAKE: install-am install-strip
499
500.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
501 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
502 distclean-compile distclean-generic distclean-libtool \
503 distclean-tags distdir dvi dvi-am html html-am info info-am \
504 install install-am install-data install-data-am install-dvi \
505 install-dvi-am install-exec install-exec-am install-html \
506 install-html-am install-info install-info-am install-man \
507 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
508 install-ps install-ps-am install-strip installcheck \
509 installcheck-am installdirs maintainer-clean \
510 maintainer-clean-generic mostlyclean mostlyclean-compile \
511 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
512 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
513
514# Tell versions [3.59,3.63) of GNU make to not export all variables.
515# Otherwise a system limit (for SysV at least) may be exceeded.
516.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.am
new file mode 100644
index 0000000..5aa678f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.am
@@ -0,0 +1,24 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_skp.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_skp_la_SOURCES = imp_skp.c imp_skp.h imp_skp_types.h \
22 imp_skp_chunks.h imp_skp_callbacks.h imp_skp_callbacks.c \
23 imp_skp_read.c imp_skp_read.h
24imp_skp_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.in
new file mode 100644
index 0000000..ace9150
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/Makefile.in
@@ -0,0 +1,516 @@
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_skp
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_skp_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_skp_la_OBJECTS = imp_skp.lo imp_skp_callbacks.lo \
59 imp_skp_read.lo
60imp_skp_la_OBJECTS = $(am_imp_skp_la_OBJECTS)
61@EXPERIMENTAL_TRUE@am_imp_skp_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_skp_la_SOURCES)
75DIST_SOURCES = $(imp_skp_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_skp.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_skp_la_SOURCES = imp_skp.c imp_skp.h imp_skp_types.h \
231 imp_skp_chunks.h imp_skp_callbacks.h imp_skp_callbacks.c \
232 imp_skp_read.c imp_skp_read.h
233
234imp_skp_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
235all: all-am
236
237.SUFFIXES:
238.SUFFIXES: .c .lo .o .obj
239$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
240 @for dep in $?; do \
241 case '$(am__configure_deps)' in \
242 *$$dep*) \
243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
244 && exit 0; \
245 exit 1;; \
246 esac; \
247 done; \
248 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile'; \
249 cd $(top_srcdir) && \
250 $(AUTOMAKE) --gnu plugins/import/imp_skp/Makefile
251.PRECIOUS: Makefile
252Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
253 @case '$?' in \
254 *config.status*) \
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
256 *) \
257 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
258 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
259 esac;
260
261$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
263
264$(top_srcdir)/configure: $(am__configure_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266$(ACLOCAL_M4): $(am__aclocal_m4_deps)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
269 @$(NORMAL_INSTALL)
270 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
271 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
272 if test -f $$p; then \
273 f=$(am__strip_dir) \
274 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
275 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
276 else :; fi; \
277 done
278
279uninstall-pluginimpLTLIBRARIES:
280 @$(NORMAL_UNINSTALL)
281 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
282 p=$(am__strip_dir) \
283 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
284 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
285 done
286
287clean-pluginimpLTLIBRARIES:
288 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
289 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
290 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
291 test "$$dir" != "$$p" || dir=.; \
292 echo "rm -f \"$${dir}/so_locations\""; \
293 rm -f "$${dir}/so_locations"; \
294 done
295imp_skp.la: $(imp_skp_la_OBJECTS) $(imp_skp_la_DEPENDENCIES)
296 $(LINK) $(am_imp_skp_la_rpath) $(imp_skp_la_OBJECTS) $(imp_skp_la_LIBADD) $(LIBS)
297
298mostlyclean-compile:
299 -rm -f *.$(OBJEXT)
300
301distclean-compile:
302 -rm -f *.tab.c
303
304@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_skp.Plo@am__quote@
305@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_skp_callbacks.Plo@am__quote@
306@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_skp_read.Plo@am__quote@
307
308.c.o:
309@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
310@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
311@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
313@am__fastdepCC_FALSE@ $(COMPILE) -c $<
314
315.c.obj:
316@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
317@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
318@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
320@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
321
322.c.lo:
323@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
324@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
325@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
326@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
327@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
328
329mostlyclean-libtool:
330 -rm -f *.lo
331
332clean-libtool:
333 -rm -rf .libs _libs
334
335ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
336 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
337 unique=`for i in $$list; do \
338 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
339 done | \
340 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
341 END { if (nonempty) { for (i in files) print i; }; }'`; \
342 mkid -fID $$unique
343tags: TAGS
344
345TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
346 $(TAGS_FILES) $(LISP)
347 tags=; \
348 here=`pwd`; \
349 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
350 unique=`for i in $$list; do \
351 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
352 done | \
353 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
354 END { if (nonempty) { for (i in files) print i; }; }'`; \
355 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
356 test -n "$$unique" || unique=$$empty_fix; \
357 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
358 $$tags $$unique; \
359 fi
360ctags: CTAGS
361CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
362 $(TAGS_FILES) $(LISP)
363 tags=; \
364 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
365 unique=`for i in $$list; do \
366 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
367 done | \
368 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
369 END { if (nonempty) { for (i in files) print i; }; }'`; \
370 test -z "$(CTAGS_ARGS)$$tags$$unique" \
371 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
372 $$tags $$unique
373
374GTAGS:
375 here=`$(am__cd) $(top_builddir) && pwd` \
376 && cd $(top_srcdir) \
377 && gtags -i $(GTAGS_ARGS) $$here
378
379distclean-tags:
380 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
381
382distdir: $(DISTFILES)
383 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
384 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
385 list='$(DISTFILES)'; \
386 dist_files=`for file in $$list; do echo $$file; done | \
387 sed -e "s|^$$srcdirstrip/||;t" \
388 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
389 case $$dist_files in \
390 */*) $(MKDIR_P) `echo "$$dist_files" | \
391 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
392 sort -u` ;; \
393 esac; \
394 for file in $$dist_files; do \
395 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
396 if test -d $$d/$$file; then \
397 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
398 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
399 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
400 fi; \
401 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
402 else \
403 test -f $(distdir)/$$file \
404 || cp -p $$d/$$file $(distdir)/$$file \
405 || exit 1; \
406 fi; \
407 done
408check-am: all-am
409check: check-am
410all-am: Makefile $(LTLIBRARIES)
411installdirs:
412 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
413 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
414 done
415install: install-am
416install-exec: install-exec-am
417install-data: install-data-am
418uninstall: uninstall-am
419
420install-am: all-am
421 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
422
423installcheck: installcheck-am
424install-strip:
425 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
426 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
427 `test -z '$(STRIP)' || \
428 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
429mostlyclean-generic:
430
431clean-generic:
432
433distclean-generic:
434 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
435
436maintainer-clean-generic:
437 @echo "This command is intended for maintainers to use"
438 @echo "it deletes files that may require special tools to rebuild."
439clean: clean-am
440
441clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
442 mostlyclean-am
443
444distclean: distclean-am
445 -rm -rf ./$(DEPDIR)
446 -rm -f Makefile
447distclean-am: clean-am distclean-compile distclean-generic \
448 distclean-tags
449
450dvi: dvi-am
451
452dvi-am:
453
454html: html-am
455
456info: info-am
457
458info-am:
459
460install-data-am: install-pluginimpLTLIBRARIES
461
462install-dvi: install-dvi-am
463
464install-exec-am:
465
466install-html: install-html-am
467
468install-info: install-info-am
469
470install-man:
471
472install-pdf: install-pdf-am
473
474install-ps: install-ps-am
475
476installcheck-am:
477
478maintainer-clean: maintainer-clean-am
479 -rm -rf ./$(DEPDIR)
480 -rm -f Makefile
481maintainer-clean-am: distclean-am maintainer-clean-generic
482
483mostlyclean: mostlyclean-am
484
485mostlyclean-am: mostlyclean-compile mostlyclean-generic \
486 mostlyclean-libtool
487
488pdf: pdf-am
489
490pdf-am:
491
492ps: ps-am
493
494ps-am:
495
496uninstall-am: uninstall-pluginimpLTLIBRARIES
497
498.MAKE: install-am install-strip
499
500.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
501 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
502 distclean-compile distclean-generic distclean-libtool \
503 distclean-tags distdir dvi dvi-am html html-am info info-am \
504 install install-am install-data install-data-am install-dvi \
505 install-dvi-am install-exec install-exec-am install-html \
506 install-html-am install-info install-info-am install-man \
507 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
508 install-ps install-ps-am install-strip installcheck \
509 installcheck-am installdirs maintainer-clean \
510 maintainer-clean-generic mostlyclean mostlyclean-compile \
511 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
512 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
513
514# Tell versions [3.59,3.63) of GNU make to not export all variables.
515# Otherwise a system limit (for SysV at least) may be exceeded.
516.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c
new file mode 100644
index 0000000..64b74c8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.c
@@ -0,0 +1,218 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <string.h>
24
25#include <g3d/types.h>
26#include <g3d/context.h>
27#include <g3d/read.h>
28#include <g3d/stream.h>
29
30#include "imp_skp.h"
31#include "imp_skp_read.h"
32#include "imp_skp_chunks.h"
33
34static gboolean skp_parse_version_map(G3DStream *stream, guint32 *max_nlen,
35 guint32 *max_version);
36static gchar *skp_find_section(G3DStream *stream, guint32 max_nlen,
37 guint32 max_version, guint32 *version);
38static SkpChunkDesc *skp_get_chunk_desc(gchar *cname);
39
40EAPI
41gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
42 G3DModel *model, gpointer user_data)
43{
44 gchar *smagic, *sversion, *stmp, *ssection;
45 guint32 max_nlen = 0, max_version = 0, version = 0;
46 SkpChunkDesc *desc;
47 SkpGlobalData *global;
48 SkpLocalData *local;
49
50 smagic = skp_read_wchar(stream);
51 if(smagic == NULL) {
52 g_warning("not a valid .skp file: '%s'", stream->uri);
53 return FALSE;
54 }
55 sversion = skp_read_wchar(stream);
56 if(sversion == NULL) {
57 g_warning("failed to read version from '%s'", stream->uri);
58 g_free(smagic);
59 return FALSE;
60 }
61
62 g_debug("SKP: magic: '%s', version: '%s'", smagic, sversion);
63 g_free(smagic);
64 g_free(sversion);
65
66 g3d_stream_seek(stream, 16, G_SEEK_CUR);
67 stmp = skp_read_wchar(stream);
68 if(stmp != NULL)
69 g_free(stmp);
70 g3d_stream_read_int32_le(stream);
71
72 ssection = skp_read_char(stream);
73 if(ssection) {
74 if(strcmp(ssection, "CVersionMap") == 0)
75 g_debug("\\CVersionMap");
76 skp_parse_version_map(stream, &max_nlen, &max_version);
77 g_free(ssection);
78 }
79
80 global = g_new0(SkpGlobalData, 1);
81 global->context = context;
82 global->model = model;
83 global->stream = stream;
84
85 ssection = skp_find_section(stream, max_nlen, max_version, &version);
86 while(ssection != NULL) {
87 desc = skp_get_chunk_desc(ssection);
88 if(desc == NULL) {
89 g_warning("SKP: unknown chunk type '%s'", ssection);
90 } else {
91 if((version > desc->max_ver) || (version < desc->min_ver)) {
92 g_warning("SKP: %s: unhandled version %u (%u - %u)",
93 ssection, version, desc->min_ver, desc->max_ver);
94 } else {
95 if(desc->callback) {
96 local = g_new0(SkpLocalData, 1);
97 local->id = desc->id;
98 local->version = version;
99
100 desc->callback(global, local);
101
102 g_free(local);
103 }
104 } /* version check */
105 } /* has desc */
106
107 ssection = skp_find_section(stream, max_nlen, max_version, &version);
108 } /* sections */
109
110 /* clean up */
111 g_free(global);
112
113 return TRUE;
114}
115
116EAPI
117gchar *plugin_description(void)
118{
119 return g_strdup("SketchUp models.");
120}
121
122EAPI
123gchar **plugin_extensions(void)
124{
125 return g_strsplit("skp", ":", 0);
126}
127
128
129/*****************************************************************************/
130
131static gboolean skp_parse_version_map(G3DStream *stream, guint32 *max_nlen,
132 guint32 *max_version)
133{
134 gchar *part;
135 guint32 version;
136
137 while(TRUE) {
138 part = skp_read_wchar(stream);
139 if(part == NULL)
140 return FALSE;
141 version = g3d_stream_read_int32_le(stream);
142#if DEBUG > 1
143 g_debug("\t%-30s %u", part, version);
144#endif
145 if(strcmp(part, "End-Of-Version-Map") == 0) {
146 g_free(part);
147 return TRUE;
148 }
149
150 if(version > *max_version)
151 *max_version = version;
152 if(strlen(part) > *max_nlen)
153 *max_nlen = strlen(part);
154
155 g_free(part);
156 }
157 return FALSE;
158}
159
160static gchar *skp_find_section(G3DStream *stream, guint32 max_nlen,
161 guint32 max_version, guint32 *version)
162{
163 goffset offset;
164 guint32 ver, nlen;
165 guint16 w1;
166 gchar *name;
167
168 while(!g3d_stream_eof(stream) && (g3d_stream_read_int8(stream) != 0xFF));
169
170 if(g3d_stream_eof(stream))
171 return NULL;
172
173 offset = g3d_stream_tell(stream);
174 if(g3d_stream_read_int8(stream) != 0xFF) {
175 g3d_stream_seek(stream, offset, G_SEEK_SET);
176 return skp_find_section(stream, max_nlen, max_version, version);
177 }
178
179 ver = g3d_stream_read_int16_le(stream);
180 if(ver > max_version) {
181 g3d_stream_seek(stream, offset, G_SEEK_SET);
182 return skp_find_section(stream, max_nlen, max_version, version);
183 }
184
185 nlen = g3d_stream_read_int16_le(stream);
186 if(nlen > max_nlen) {
187 g3d_stream_seek(stream, offset, G_SEEK_SET);
188 return skp_find_section(stream, max_nlen, max_version, version);
189 }
190
191 name = g_new0(gchar, nlen + 1);
192 g3d_stream_read(stream, name, nlen);
193 if(name[0] != 'C') {
194 g_free(name);
195 g3d_stream_seek(stream, offset, G_SEEK_SET);
196 return skp_find_section(stream, max_nlen, max_version, version);
197 }
198 *version = ver;
199
200 w1 = g3d_stream_read_int16_le(stream);
201 g3d_stream_seek(stream, -2, G_SEEK_CUR);
202
203 g_debug("\\%-30s v%-2u @ 0x%08x (0x%04x)", name, ver,
204 (guint32)g3d_stream_tell(stream), w1);
205
206 return name;
207}
208
209static SkpChunkDesc *skp_get_chunk_desc(gchar *cname)
210{
211 guint32 i;
212
213 for(i = 0; skp_chunks[i].id != NULL; i ++) {
214 if(strcmp(cname, skp_chunks[i].id) == 0)
215 return &(skp_chunks[i]);
216 }
217 return NULL;
218}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h
new file mode 100644
index 0000000..037b50b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp.h
@@ -0,0 +1,25 @@
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_SKB_H
23#define _IMP_SKB_H
24
25#endif /* _IMP_SKB_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.c
new file mode 100644
index 0000000..938a93c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.c
@@ -0,0 +1,614 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#include <g3d/types.h>
23#include <g3d/material.h>
24
25#include "imp_skp.h"
26#include "imp_skp_callbacks.h"
27#include "imp_skp_read.h"
28#include "imp_skp_types.h"
29
30gboolean skp_cb_arc_curve(SkpGlobalData *global, SkpLocalData *local)
31{
32 guint16 w1;
33
34 w1 = g3d_stream_read_int16_le(global->stream);
35 g_return_val_if_fail(w1 == 0x0000, FALSE);
36
37 return TRUE;
38}
39
40/*****************************************************************************/
41
42gboolean skp_cb_attribute_container(SkpGlobalData *global, SkpLocalData *local)
43{
44 guint16 w1;
45
46 w1 = g3d_stream_read_int16_le(global->stream);
47 g_return_val_if_fail(w1 == 0x0000, FALSE);
48
49 return TRUE;
50}
51
52/*****************************************************************************/
53
54gboolean skp_cb_attribute_named(SkpGlobalData *global, SkpLocalData *local)
55{
56 guint32 x1;
57 guint16 w1, w2, w3;
58 guint8 u1, u2;
59 gdouble d1;
60 gchar *name, *val, *tmp;
61
62 w1 = g3d_stream_read_int16_le(global->stream);
63 w2 = g3d_stream_read_int16_le(global->stream);
64 w3 = g3d_stream_read_int16_le(global->stream);
65
66 name = skp_read_wchar(global->stream);
67 while(name != NULL) {
68 tmp = skp_read_wchar(global->stream);
69 if(tmp != NULL) {
70 /* got a section */
71#if DEBUG > 1
72 g_debug("\t%s", name);
73#endif
74 g_free(name);
75 name = tmp;
76 continue;
77 }
78 u1 = g3d_stream_read_int8(global->stream);
79 switch(u1) {
80 case 0x00: /* end of CAttributeNamed */
81 g_free(name);
82 return TRUE;
83 break;
84 case 0x04: /* 32-bit */
85 x1 = g3d_stream_read_int32_le(global->stream);
86#if DEBUG > 1
87 g_debug("\t\t%-20s: 0x%08x", name, x1);
88#endif
89 break;
90 case 0x06: /* double */
91 d1 = g3d_stream_read_double_le(global->stream);
92#if DEBUG > 1
93 g_debug("\t\t%-20s: %.4f", name, d1);
94#endif
95 break;
96 case 0x07: /* boolean */
97 u2 = g3d_stream_read_int8(global->stream);
98#if DEBUG > 1
99 g_debug("\t\t%-20s: %s", name, (u2 ? "true" : "false"));
100#endif
101 break;
102 case 0x09: /* end of section? */
103 g3d_stream_seek(global->stream, 7, G_SEEK_CUR);
104#if DEBUG > 1
105 g_debug("\t\t%-20s: EOS", name);
106#endif
107 break;
108 case 0x0A: /* string */
109 val = skp_read_wchar(global->stream);
110 g_return_val_if_fail(val != NULL, FALSE);
111#if DEBUG > 1
112 g_debug("\t\t%-20s: %s", name, val);
113#endif
114 g_free(val);
115 break;
116 default:
117 g_warning(
118 "SKP: CAttributeNamed: unknown attribute type: 0x%02X",
119 u1);
120 return FALSE;
121 break;
122 }
123
124 g_free(name);
125 name = skp_read_wchar(global->stream);
126 }
127 return TRUE;
128}
129
130/*****************************************************************************/
131
132gboolean skp_cb_component_definition(SkpGlobalData *global,
133 SkpLocalData *local)
134{
135 SkpComponent *comp;
136 guint32 x1, w1;
137 gchar *s;
138 gdouble d1, d2;
139
140 w1 = g3d_stream_read_int16_le(global->stream);
141 g_return_val_if_fail(w1 == 0x0000, FALSE);
142
143 skp_read_10b(global->stream);
144 skp_read_10b(global->stream);
145
146 x1 = g3d_stream_read_int32_le(global->stream);
147 g_debug("CComponentDefinition: %d", x1);
148
149 w1 = g3d_stream_read_int16_le(global->stream);
150 if(!(w1 & 0x8000)) {
151 g_warning("CComponentDefinition: layerid=0x%04x", w1);
152 return FALSE;
153 }
154 w1 &= 0x7FFF;
155 g3d_stream_read_int16_le(global->stream); /* 0000 */
156
157 s = skp_read_wchar(global->stream);
158 if(s == NULL) {
159 g_warning("CComponentDefinition: s[0] == NULL");
160 return FALSE;
161 }
162 g3d_stream_seek(global->stream, 3, G_SEEK_CUR);
163 s = skp_read_wchar(global->stream);
164 if(s == NULL) {
165 g_warning("CComponentDefinition: s[1] == NULL");
166 return FALSE;
167 }
168 g3d_stream_seek(global->stream, 6, G_SEEK_CUR);
169 s = skp_read_wchar(global->stream);
170 if(s == NULL) {
171 g_warning("CComponentDefinition: s[2] == NULL");
172 return FALSE;
173 }
174
175 d1 = g3d_stream_read_double_le(global->stream);
176 d2 = g3d_stream_read_double_le(global->stream);
177 g_debug("CComponentDefinition: d1=%.2f, d2=%.2f", d1, d2);
178
179 g3d_stream_seek(global->stream, 5, G_SEEK_CUR);
180
181 comp = g_new0(SkpComponent, 1);
182 comp->layerid = w1;
183
184 comp->id0 = g3d_stream_read_int16_le(global->stream);
185 g3d_stream_read_int32_le(global->stream);
186 g3d_stream_read_int8(global->stream);
187 comp->id1 = g3d_stream_read_int16_le(global->stream);
188
189 g_debug("Component: 0x%02x, 0x%02x (0x%02x)",
190 comp->id0, comp->id1, comp->layerid);
191
192 global->components = g_slist_append(global->components, comp);
193
194 return TRUE;
195}
196
197/*****************************************************************************/
198
199static gboolean skp_read_5b(G3DStream *stream)
200{
201 guint32 w1, w2, u1;
202
203 w1 = g3d_stream_read_int16_le(stream);
204 u1 = g3d_stream_read_int8(stream);
205 w2 = g3d_stream_read_int16_le(stream);
206 g_debug("\tread 5b: %04x %02x %04x", w1, u1, w2);
207 return TRUE;
208}
209
210gboolean skp_cb_edge_use(SkpGlobalData *global, SkpLocalData *local)
211{
212 guint16 w1, w2;
213 guint32 x1;
214 gdouble d1, d2, d3, d4;
215 gboolean handled;
216 GSList *item;
217 SkpComponent *comp;
218
219 w1 = g3d_stream_read_int16_le(global->stream);
220 g_return_val_if_fail(w1 == 0x0000, FALSE);
221
222 skp_read_5b(global->stream);
223
224 do {
225 w1 = g3d_stream_read_int16_le(global->stream);
226 handled = FALSE;
227
228 g_debug("opcode: 0x%04x", w1);
229 if(w1 == 0xFFFF) {
230 g3d_stream_seek(global->stream, -2, G_SEEK_CUR);
231 return TRUE;
232 }
233 if(w1 & 0x8000) {
234 g3d_stream_read_int16_le(global->stream);
235 w1 &= 0x7FFF;
236 }
237 if(w1 == 0x0000) {
238 handled = TRUE;
239 }
240
241 for(item = global->components;
242 (handled == FALSE) && (item != NULL);
243 item = item->next) {
244
245 comp = item->data;
246
247 switch(w1 - comp->id0) {
248 case 1:
249 skp_read_10b(global->stream);
250 w2 = g3d_stream_read_int16_le(global->stream);
251 handled = TRUE;
252 g_debug("\tw2=0x%04x", w2);
253 break;
254 case 3:
255 skp_read_dbl3(global->stream, &d1, &d2, &d3);
256 g_debug("\tvertex: %.4f, %.4f, %.4f", d1, d2, d3);
257 handled = TRUE;
258 break;
259 case 4:
260 case 5:
261 case 7:
262 g_debug("\tempty");
263 handled = TRUE;
264 break;
265 default:
266 break;
267 }
268 if(handled)
269 break;
270 switch(w1 - comp->id1) {
271 case 0:
272 skp_read_10b(global->stream);
273 d1 = g3d_stream_read_double_le(global->stream);
274 d2 = g3d_stream_read_double_le(global->stream);
275 d3 = g3d_stream_read_double_le(global->stream);
276 d4 = g3d_stream_read_double_le(global->stream);
277 x1 = g3d_stream_read_int32_le(global->stream);
278 g_debug("\tid1+4: dbl4: %.2f, %.2f, %.2f, %.2f (%i)",
279 d1, d2, d3, d4, x1);
280 handled = TRUE;
281 break;
282 case 2:
283 w2 = g3d_stream_read_int16_le(global->stream);
284 g_debug("\ti16: 0x%04x", w2);
285 handled = TRUE;
286 break;
287 case 4:
288 skp_read_5b(global->stream);
289 handled = TRUE;
290 break;
291 case 5:
292 case 9:
293 case 17:
294 case 19:
295 g_debug("\tempty");
296 handled = TRUE;
297 break;
298 default:
299 break;
300 }
301 } /* loop through known layers */
302
303 if(handled == FALSE) {
304 g_debug("vertex: unknown opcode %#04x (layer0: 0x%04x, 0x%04x)",
305 w1,
306 global->components ?
307 ((SkpComponent *)(global->components->data))->id0 : -1,
308 global->components ?
309 ((SkpComponent *)(global->components->data))->id1 : -1);
310 }
311 } while(TRUE);
312
313 return FALSE;
314
315}
316
317/*****************************************************************************/
318
319gboolean skp_cb_face_texture_coords(SkpGlobalData *global, SkpLocalData *local)
320{
321#if DEBUG > 1
322 gint32 i;
323 guint16 w1;
324 G3DFloat f1, f2, f3, f4;
325
326 w1 = g3d_stream_read_int16_le(global->stream);
327 g_return_val_if_fail(w1 == 0x0000, FALSE);
328
329 for(i = 0; i < 24; i ++) {
330 f1 = g3d_stream_read_float_le(global->stream);
331 f2 = g3d_stream_read_float_le(global->stream);
332 f3 = g3d_stream_read_float_le(global->stream);
333 f4 = g3d_stream_read_float_le(global->stream);
334 g_debug("\tf: %.4f, %.4f, %.4f, %.4f", f1, f2, f3, f4);
335 }
336#endif
337 return TRUE;
338}
339
340/*****************************************************************************/
341
342gboolean skp_cb_layer(SkpGlobalData *global, SkpLocalData *local)
343{
344 guint32 x1;
345 guint16 w1;
346 guint8 u1, u2, u3;
347 gchar *s1, *s2;
348
349 do {
350 w1 = g3d_stream_read_int16_le(global->stream);
351 g_return_val_if_fail(w1 == 0x0000, FALSE);
352
353 s1 = skp_read_wchar(global->stream);
354 u1 = g3d_stream_read_int8(global->stream);
355 u2 = g3d_stream_read_int8(global->stream);
356 u3 = g3d_stream_read_int8(global->stream);
357
358 g_debug("\\ %s (0x%02X, 0x%02X, 0x%02X)", s1, u1, u2, u3);
359
360 s2 = skp_read_wchar(global->stream);
361 u1 = g3d_stream_read_int8(global->stream);
362 u2 = g3d_stream_read_int8(global->stream);
363 g_return_val_if_fail(u2 == 0x01, FALSE);
364
365 /* layer color? */
366 x1 = g3d_stream_read_int32_le(global->stream);
367 g_debug("\\ %s (0x%02X, 0x%02X, 0x%08x)", s2, u1, u2, x1);
368
369 x1 = g3d_stream_read_int32_le(global->stream);
370 if(x1 == 0x00fffeff)
371 g3d_stream_seek(global->stream, 21, G_SEEK_CUR);
372 else if(x1 == 0xfffffeff)
373 g3d_stream_seek(global->stream, 20, G_SEEK_CUR);
374 else {
375 g_warning("CLayer: unexpected value 0x%08x @ 0x%08x", x1,
376 (guint32)g3d_stream_tell(global->stream) - 4);
377 return FALSE;
378 }
379 w1 = g3d_stream_read_int16_le(global->stream);
380 global->layers = g_slist_append(global->layers,
381 GINT_TO_POINTER(w1 & 0x7FFF));
382 g_debug("CLayer ID: 0x%2x", w1 & 0x7FFF);
383
384 if(s1)
385 g_free(s1);
386 if(s2)
387 g_free(s2);
388
389 } while(w1 & 0x8000);
390
391 x1 = g3d_stream_read_int32_le(global->stream);
392 g_debug("CLayer: last 0x%08x", x1);
393
394 return TRUE;
395}
396
397/*****************************************************************************/
398
399gboolean skp_cb_material(SkpGlobalData *global, SkpLocalData *local)
400{
401 gchar *name, *tmp;
402 guint8 u1, u2, u3;
403 guint32 x1, type, size;
404 G3DFloat r, g, b, a;
405 G3DMaterial *material;
406
407 g3d_stream_read_int16_le(global->stream);
408
409 name = skp_read_wchar(global->stream);
410 while(name) {
411 tmp = NULL;
412 size = 0;
413
414 material = g3d_material_new();
415 material->name = g_strdup(name);
416 global->model->materials = g_slist_append(global->model->materials,
417 material);
418
419 type = g3d_stream_read_int16_le(global->stream);
420 switch(type) {
421 case 0x0000: /* simple color */
422 r = g3d_stream_read_int8(global->stream);
423 g = g3d_stream_read_int8(global->stream);
424 b = g3d_stream_read_int8(global->stream);
425 a = g3d_stream_read_int8(global->stream);
426
427 material->r = r / 255.0;
428 material->g = g / 255.0;
429 material->b = b / 255.0;
430 material->a = a / 255.0;
431#if DEBUG > 1
432 g_debug(
433 "\tmaterial: %-30s 0x%04x, "
434 "color (%.1f, %.1f, %.1f)",
435 name, type, material->r, material->g, material->b);
436#endif
437 break;
438
439 case 0x0001: /* texture */
440 u1 = g3d_stream_read_int8(global->stream);
441 u2 = g3d_stream_read_int8(global->stream);
442 u3 = g3d_stream_read_int8(global->stream);
443 if(u3 == 0x80) {
444 /* number of textures? */
445 x1 = g3d_stream_read_int32_le(global->stream);
446 if(x1 > 0) {
447 size = g3d_stream_read_int32_le(global->stream);
448 g3d_stream_seek(global->stream, size, G_SEEK_CUR);
449 }
450 } else {
451 x1 = 0x0004;
452 }
453 switch(x1) {
454 case 0x0000:
455 g3d_stream_seek(global->stream, 12, G_SEEK_CUR);
456 break;
457 case 0x0001:
458 g3d_stream_seek(global->stream, 20, G_SEEK_CUR);
459 break;
460 case 0x0002:
461 g3d_stream_seek(global->stream, 16, G_SEEK_CUR);
462 break;
463 case 0x0004:
464 g3d_stream_seek(global->stream, 16, G_SEEK_CUR);
465 break;
466 default:
467 g3d_stream_seek(global->stream, 16, G_SEEK_CUR);
468 g_debug("SKP: mat0001: x1=%x: "
469 "%02X%02X %02X%02X %02X%02X %02X%02X", x1,
470 g3d_stream_read_int8(global->stream),
471 g3d_stream_read_int8(global->stream),
472 g3d_stream_read_int8(global->stream),
473 g3d_stream_read_int8(global->stream),
474 g3d_stream_read_int8(global->stream),
475 g3d_stream_read_int8(global->stream),
476 g3d_stream_read_int8(global->stream),
477 g3d_stream_read_int8(global->stream));
478 break;
479 }
480 tmp = skp_read_wchar(global->stream);
481 g3d_stream_seek(global->stream, 8, G_SEEK_CUR);
482#if DEBUG > 1
483 g_debug(
484 "\tmaterial: %-30s 0x%04x, %02X, %02X, %02X, 0x%08x\n"
485 "\t\ttexture (%d bytes, 0x%08x):\n\t\t%s",
486 name, type, u1, u2, u3, x1, size,
487 (guint32)g3d_stream_tell(global->stream), tmp);
488#endif
489
490 break;
491
492 case 0x0101: /* texture */
493 /* number of textures? */
494 x1 = g3d_stream_read_int32_le(global->stream);
495 size = g3d_stream_read_int32_le(global->stream);
496 g3d_stream_seek(global->stream, size, G_SEEK_CUR);
497 g3d_stream_seek(global->stream, 16, G_SEEK_CUR);
498 tmp = skp_read_wchar(global->stream);
499 g3d_stream_seek(global->stream, 8, G_SEEK_CUR);
500#if DEBUG > 1
501 g_debug(
502 "\tmaterial: %-30s 0x%04x, 0x%08x\n"
503 "\t\ttexture (%i bytes):\n\t\t%s",
504 name, type, x1, size, tmp);
505#endif
506 break;
507
508 default:
509 g_debug("SKP: material: unknown type 0x%04X @ 0x%08x",
510 type, (guint32)g3d_stream_tell(global->stream));
511 return FALSE;
512 }
513
514 x1 = g3d_stream_read_int32_be(global->stream);
515 switch(x1 & 0x00FFL) {
516 case 0x00:
517 g3d_stream_seek(global->stream, 21, G_SEEK_CUR);
518 break;
519 case 0xFF:
520 g3d_stream_seek(global->stream, 22, G_SEEK_CUR);
521 break;
522 default:
523 g_debug("x1: 0x%08x", x1);
524 break;
525 }
526
527 /* clean up */
528 if(tmp)
529 g_free(tmp);
530 g_free(name);
531
532 /* next one */
533 name = skp_read_wchar(global->stream);
534 }
535 return TRUE;
536}
537
538/*****************************************************************************/
539
540gboolean skp_cb_vertex(SkpGlobalData *global, SkpLocalData *local)
541{
542 guint16 w1;
543 gdouble d1, d2, d3;
544 gboolean handled;
545 GSList *item;
546 SkpComponent *comp;
547
548 return FALSE;
549
550 w1 = g3d_stream_read_int16_le(global->stream);
551 g_return_val_if_fail(w1 == 0x0000, FALSE);
552
553 skp_read_dbl3(global->stream, &d1, &d2, &d3);
554 g_debug("\tvertex: %.4f, %.4f, %.4f", d1, d2, d3);
555
556 do {
557 w1 = g3d_stream_read_int16_le(global->stream);
558 handled = FALSE;
559
560 g_debug("opcode: 0x%04x", w1);
561 if(w1 == 0xFFFF) {
562 g3d_stream_seek(global->stream, -2, G_SEEK_CUR);
563 return TRUE;
564 }
565 if(w1 & 0x8000) {
566 g3d_stream_read_int16_le(global->stream);
567 w1 &= 0x7FFF;
568 }
569 if(w1 == 0x0000) {
570 handled = TRUE;
571 }
572
573 for(item = global->components;
574 (handled == FALSE) && (item != NULL);
575 item = item->next) {
576
577 comp = item->data;
578
579 switch(w1 - comp->id0) {
580 case 1:
581 skp_read_10b(global->stream);
582 handled = TRUE;
583 break;
584 case 3:
585 skp_read_dbl3(global->stream, &d1, &d2, &d3);
586 g_debug("\tvertex: %.4f, %.4f, %.4f", d1, d2, d3);
587 handled = TRUE;
588 break;
589 case 4:
590 case 5:
591 case 7:
592 case 9:
593 case 11:
594 case 13:
595 g_debug("\tempty");
596 handled = TRUE;
597 break;
598 default:
599 break;
600 }
601 } /* loop through known layers */
602
603 if(handled == FALSE) {
604 g_debug("vertex: unknown opcode %#04x (layer0: 0x%04x, 0x%04x)",
605 w1,
606 global->components ?
607 ((SkpComponent *)(global->components->data))->id0 : -1,
608 global->components ?
609 ((SkpComponent *)(global->components->data))->id1 : -1);
610 }
611 } while(TRUE);
612
613 return FALSE;
614}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h
new file mode 100644
index 0000000..92af752
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_callbacks.h
@@ -0,0 +1,59 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_SKP_CALLBACKS_H
24#define _IMP_SKP_CALLBACKS_H
25
26#include <g3d/types.h>
27
28typedef struct {
29 G3DContext *context;
30 G3DModel *model;
31 G3DStream *stream;
32 GSList *layers;
33 GSList *components;
34} SkpGlobalData;
35
36typedef struct {
37 gchar *id;
38 guint32 version;
39 gpointer object;
40} SkpLocalData;
41
42typedef gboolean (* SkpCallback)(SkpGlobalData *global, SkpLocalData *local);
43
44/* callbacks */
45
46gboolean skp_cb_arc_curve(SkpGlobalData *global, SkpLocalData *local);
47gboolean skp_cb_attribute_container(SkpGlobalData *global,
48 SkpLocalData *local);
49gboolean skp_cb_attribute_named(SkpGlobalData *global, SkpLocalData *local);
50gboolean skp_cb_component_definition(SkpGlobalData *global,
51 SkpLocalData *local);
52gboolean skp_cb_edge_use(SkpGlobalData *global, SkpLocalData *local);
53gboolean skp_cb_face_texture_coords(SkpGlobalData *global,
54 SkpLocalData *local);
55gboolean skp_cb_layer(SkpGlobalData *global, SkpLocalData *local);
56gboolean skp_cb_material(SkpGlobalData *global, SkpLocalData *local);
57gboolean skp_cb_vertex(SkpGlobalData *global, SkpLocalData *local);
58
59#endif /* _IMP_SKP_CALLBACKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_chunks.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_chunks.h
new file mode 100644
index 0000000..bbee439
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_chunks.h
@@ -0,0 +1,62 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_SKP_CHUNKS_H
24#define _IMP_SKP_CHUNKS_H
25
26#include "imp_skp_callbacks.h"
27
28typedef struct {
29 gchar *id;
30 guint32 min_ver;
31 guint32 max_ver;
32 SkpCallback callback;
33} SkpChunkDesc;
34
35static SkpChunkDesc skp_chunks[] = {
36 { "CArcCurve", 1, 1, skp_cb_arc_curve },
37 { "CAttributeContainer", 0, 0, skp_cb_attribute_container },
38 { "CAttributeNamed", 0, 0, skp_cb_attribute_named },
39 { "CCamera", 4, 5, NULL },
40 { "CComponentDefinition", 10, 10, skp_cb_component_definition },
41 { "CComponentInstance", 4, 4, NULL },
42 { "CCurve", 4, 4, NULL },
43 { "CDib", 2, 3, NULL },
44 { "CEdge", 2, 2, NULL },
45 { "CEdgeUse", 1, 1, skp_cb_edge_use },
46 { "CFace", 3, 3, NULL },
47 { "CFaceTextureCoords", 4, 4, skp_cb_face_texture_coords },
48 { "CGroup", 1, 1, NULL },
49 { "CLayer", 2, 2, skp_cb_layer },
50 { "CLoop", 1, 1, NULL },
51 { "CMaterial", 12, 12, skp_cb_material },
52 { "CRelationship", 0, 0, NULL },
53 { "CSkFont", 0, 1, NULL },
54 { "CSkpStyle", 1, 1, NULL },
55 { "CThumbnail", 1, 1, NULL },
56 { "CVertex", 0, 0, skp_cb_vertex },
57 { "CViewPage", 9, 11, NULL },
58
59 { NULL, 0, 0, NULL }
60};
61
62#endif /* _IMP_SKP_CHUNKS_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.c
new file mode 100644
index 0000000..7f95477
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.c
@@ -0,0 +1,114 @@
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 "imp_skp.h"
23#include "imp_skp_read.h"
24
25guint32 skp_read_xint16(G3DStream *stream)
26{
27 guint32 val;
28
29 val = g3d_stream_read_int16_le(stream);
30 if(val & 0x8000L) {
31 val &= 0x7FFF;
32 val |= (g3d_stream_read_int16_le(stream) << 16);
33 }
34 return val;
35}
36
37gchar *skp_read_char(G3DStream *stream)
38{
39 guint32 magic, n;
40 gchar *text;
41
42 magic = g3d_stream_read_int32_be(stream);
43 if(magic != 0xffff0000) {
44 g_warning("SKP: wrong text magic: 0x%08x", magic);
45 return NULL;
46 }
47 n = g3d_stream_read_int16_le(stream);
48
49 text = g_new0(gchar, n + 1);
50 g3d_stream_read(stream, text, n);
51
52 return text;
53}
54
55gchar *skp_read_wchar(G3DStream *stream)
56{
57 gint32 i;
58 guint32 magic, n;
59 gunichar2 *u16text;
60 gchar *text;
61 GError *error = NULL;
62
63 magic = g3d_stream_read_int32_be(stream);
64 if((magic & 0xFFFFFF00) != 0xfffeff00) {
65#if DEBUG > 1
66 g_debug("SKP: wrong UTF-16 magic: 0x%08x", magic);
67#endif
68 g3d_stream_seek(stream, -4, G_SEEK_CUR);
69 return NULL;
70 }
71 n = magic & 0x000000FF;
72
73 u16text = g_new0(gunichar2, n + 1);
74 for(i = 0; i < n; i ++) {
75 u16text[i] = g3d_stream_read_int16_le(stream);
76 }
77
78 text = g_utf16_to_utf8(u16text, n, NULL, NULL, &error);
79 if(error != NULL) {
80 g_warning("UTF-16 to UTF-8 conversion failed: %s",
81 error->message);
82 g_error_free(error);
83 }
84 g_free(u16text);
85
86 return text;
87}
88
89gboolean skp_read_dbl3(G3DStream *stream,
90 gdouble *d1, gdouble *d2, gdouble *d3)
91{
92 *d1 = g3d_stream_read_double_le(stream);
93 *d2 = g3d_stream_read_double_le(stream);
94 *d3 = g3d_stream_read_double_le(stream);
95 return TRUE;
96}
97
98gboolean skp_read_10b(G3DStream *stream)
99{
100 guint32 x1, x2;
101 guint8 u1, u2;
102
103 x1 = g3d_stream_read_int32_be(stream);
104 u1 = g3d_stream_read_int8(stream);
105
106 if(((x1 & 0x00FFFFFF) != 0x0001) || (u1 != 0x01)) {
107 g_warning("skp_read_10b: %#08x, %#02x", x1, u1);
108 }
109 u2 = g3d_stream_read_int8(stream);
110 x2 = g3d_stream_read_int32_le(stream);
111 g_debug("\tread 10b: %08x %02x %02x %08x", x1, u1, u2, x2);
112 return TRUE;
113}
114
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.h
new file mode 100644
index 0000000..fc1dc4d
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_read.h
@@ -0,0 +1,35 @@
1#ifndef _IMP_SKP_READ_H
2/* $Id:$ */
3
4/*
5 libg3d - 3D object loading library
6
7 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22*/
23#define _IMP_SKP_READ_H
24
25#include <g3d/stream.h>
26
27guint32 skp_read_xint16(G3DStream *stream);
28gchar *skp_read_char(G3DStream *stream);
29gchar *skp_read_wchar(G3DStream *stream);
30
31gboolean skp_read_dbl3(G3DStream *stream,
32 gdouble *d1, gdouble *d2, gdouble *d3);
33gboolean skp_read_10b(G3DStream *stream);
34
35#endif /* _IMP_SKP_READ_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_types.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_types.h
new file mode 100644
index 0000000..a2a95c7
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_skp/imp_skp_types.h
@@ -0,0 +1,33 @@
1/* $Id:$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22#ifndef _IMP_SKP_TYPES_H
23#define _IMP_SKP_TYPES_H
24
25#include <glib.h>
26
27typedef struct {
28 guint32 id0;
29 guint32 id1;
30 guint32 layerid;
31} SkpComponent;
32
33#endif /* _IMP_SKP_TYPES_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile
new file mode 100644
index 0000000..bc7cf94
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_stl/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_stl
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_stl_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_stl_la_OBJECTS = imp_stl.lo
59imp_stl_la_OBJECTS = $(am_imp_stl_la_OBJECTS)
60#am_imp_stl_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_stl_la_SOURCES)
74DIST_SOURCES = $(imp_stl_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_stl.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_stl_la_SOURCES = imp_stl.c
230imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_stl.la: $(imp_stl_la_OBJECTS) $(imp_stl_la_DEPENDENCIES)
292 $(LINK) $(am_imp_stl_la_rpath) $(imp_stl_la_OBJECTS) $(imp_stl_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300include ./$(DEPDIR)/imp_stl.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am
new file mode 100644
index 0000000..3171c69
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.am
@@ -0,0 +1,22 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_stl.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_stl_la_SOURCES = imp_stl.c
22imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in
new file mode 100644
index 0000000..8f437e5
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/Makefile.in
@@ -0,0 +1,510 @@
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_stl
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_stl_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_stl_la_OBJECTS = imp_stl.lo
59imp_stl_la_OBJECTS = $(am_imp_stl_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_stl_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_stl_la_SOURCES)
74DIST_SOURCES = $(imp_stl_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_stl.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_stl_la_SOURCES = imp_stl.c
230imp_stl_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_stl/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_stl.la: $(imp_stl_la_OBJECTS) $(imp_stl_la_DEPENDENCIES)
292 $(LINK) $(am_imp_stl_la_rpath) $(imp_stl_la_OBJECTS) $(imp_stl_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_stl.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c
new file mode 100644
index 0000000..04a0f4a
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_stl/imp_stl.c
@@ -0,0 +1,200 @@
1/*
2 libg3d - 3D object loading library
3
4 Copyright (C) 2006 Oliver Dippel <o.dippel@gmx.de>
5 2008 Markus Dahms <mad@automagically.de>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20*/
21
22#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25#include <locale.h>
26
27#include <g3d/types.h>
28#include <g3d/stream.h>
29#include <g3d/material.h>
30
31/*
32 Infos for the STL(A)-Format:
33 http://www.csit.fsu.edu/~burkardt/data/stla/stla.html
34 Infos for the STL(B)-Format:
35 http://www.csit.fsu.edu/~burkardt/data/stlb/stlb.html
36*/
37
38#define STL_ASCII 0
39#define STL_BINARY 1
40
41static gboolean stl_load_binary(G3DContext *context, G3DModel *model,
42 G3DStream *stream);
43static gboolean stl_load_text(G3DContext *context, G3DModel *model,
44 G3DStream *stream);
45
46EAPI
47gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
48 G3DModel *model, gpointer user_data)
49{
50 gchar line[1024];
51 guint32 type;
52
53 /* Check Filetype (ASCII or BINARY) */
54 type = STL_BINARY;
55 while(!g3d_stream_eof(stream)) {
56 if(!g3d_stream_read_line(stream, line, 1023))
57 break;
58 if(strstr(line, "solid")) {
59 setlocale(LC_NUMERIC, "C");
60 type = STL_ASCII;
61 break;
62 }
63 }
64 /* rewind */
65 g3d_stream_seek(stream, 0, G_SEEK_SET);
66
67 if (type == STL_BINARY)
68 return stl_load_binary(context, model, stream);
69 else
70 return stl_load_text(context, model, stream);
71}
72
73EAPI
74gchar *plugin_description(G3DContext *context)
75{
76 return g_strdup("STLA and STLB stereolithography models.\n"
77 "Author: Oliver Dippel");
78}
79
80EAPI
81gchar **plugin_extensions(G3DContext *context)
82{
83 return g_strsplit("stl:stla:stlb", ":", 0);
84}
85
86/*****************************************************************************/
87
88static gboolean stl_load_binary(G3DContext *context, G3DModel *model,
89 G3DStream *stream)
90{
91 G3DObject *object;
92 G3DMaterial *material;
93 G3DFace *face;
94 gchar name[81];
95 guint32 num_faces, index = 0;
96 gint32 n, i, j;
97
98#if DEBUG > 0
99 g_debug("STL: format is BINARY");
100#endif
101
102 g3d_stream_read(stream, name, 80);
103 name[80] = 0;
104 num_faces = g3d_stream_read_int32_le(stream);
105
106 object = g_new0(G3DObject, 1);
107 object->name = g_strdup("STL-Model");
108 model->objects = g_slist_append(model->objects, object);
109
110 material = g3d_material_new();
111 material->name = g_strdup("default material");
112 object->materials = g_slist_append(object->materials, material);
113
114 object->vertex_count = num_faces * 3;
115#if DEBUG > 2
116 g_debug("STL: BINARY: vertex_count: %i", object->vertex_count);
117#endif
118 object->vertex_data = g_new0(G3DFloat, object->vertex_count * 3);
119 for(n = 0; n < num_faces; n ++) {
120 face = g_new0(G3DFace, 1);
121 face->material = material;
122 face->vertex_count = 3;
123 face->vertex_indices = g_new0(guint32, face->vertex_count);
124 face->vertex_indices[0] = index + 0;
125 face->vertex_indices[1] = index + 1;
126 face->vertex_indices[2] = index + 2;
127 object->faces = g_slist_prepend(object->faces, face);
128 /* normal */
129 for(j = 0; j < 3; j ++)
130 g3d_stream_read_float_le(stream);
131 /* triangle */
132 for(i = 0; i < 3; i ++) {
133 for(j = 0; j < 3; j ++)
134 object->vertex_data[index * 3 + j] =
135 g3d_stream_read_float_le(stream);
136 index ++;
137 }
138 /* 2 Byte Dummy read */
139 g3d_stream_read_int16_le(stream);
140 }
141 return TRUE;
142}
143
144static gboolean stl_load_text(G3DContext *context, G3DModel *model,
145 G3DStream *stream)
146{
147 G3DObject *object;
148 G3DMaterial *material;
149 G3DFace *face;
150 gchar line[1024];
151 guint32 index = 0;
152 G3DFloat x, y, z;
153
154#if DEBUG > 0
155 g_debug("STL: format is ASCII");
156#endif
157
158 object = g_new0(G3DObject, 1);
159 object->name = g_strdup("STL-Model");
160 model->objects = g_slist_append(model->objects, object);
161 material = g3d_material_new();
162 material->name = g_strdup("default material");
163 object->materials = g_slist_append(object->materials, material);
164 object->vertex_count = 0;
165 while(!g3d_stream_eof(stream)) {
166 line[0] = 0;
167 if(!g3d_stream_read_line(stream, line, 1023))
168 break;
169 g_strstrip(line);
170 if(strncmp(line, "solid", 5) == 0) {
171 g_free(object->name);
172 object->name = g_strdup(line + 6);
173 } else if(strncmp(line, "vertex", 6) == 0) {
174 object->vertex_count ++;
175 object->vertex_data = g_realloc(object->vertex_data,
176 object->vertex_count * 3 * sizeof(G3DFloat));
177 if(sscanf(line + 7, G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT " " G3D_SCANF_FLOAT, &x, &y, &z) == 3) {
178 object->vertex_data[(object->vertex_count - 1) * 3 + 0] = x;
179 object->vertex_data[(object->vertex_count - 1) * 3 + 1] = y;
180 object->vertex_data[(object->vertex_count - 1) * 3 + 2] = z;
181 } else {
182#if DEBUG > 0
183 g_debug("imp_stl: parse error in vertex line: %s", line);
184#endif
185 }
186 } else if(strncmp(line, "facet", 5) == 0) {
187 face = g_new0(G3DFace, 1);
188 face->material = material;
189 face->vertex_count = 3;
190 face->vertex_indices = g_new0(guint32, face->vertex_count);
191 face->vertex_indices[0] = index + 0;
192 face->vertex_indices[1] = index + 1;
193 face->vertex_indices[2] = index + 2;
194 object->faces = g_slist_prepend(object->faces, face);
195 index += 3;
196 }
197 }
198 return TRUE;
199}
200
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile
new file mode 100644
index 0000000..b633909
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile
@@ -0,0 +1,513 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_ta/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_ta
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_ta_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ta_la_OBJECTS = imp_ta.lo imp_ta_3do.lo
59imp_ta_la_OBJECTS = $(am_imp_ta_la_OBJECTS)
60#am_imp_ta_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ta_la_SOURCES)
74DIST_SOURCES = $(imp_ta_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_ta.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_ta_la_SOURCES = imp_ta.c imp_ta_3do_palette.h \
230 imp_ta_3do.c imp_ta_3do.h
231
232imp_ta_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_ta.la: $(imp_ta_la_OBJECTS) $(imp_ta_la_DEPENDENCIES)
294 $(LINK) $(am_imp_ta_la_rpath) $(imp_ta_la_OBJECTS) $(imp_ta_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302include ./$(DEPDIR)/imp_ta.Plo
303include ./$(DEPDIR)/imp_ta_3do.Plo
304
305.c.o:
306 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308# source='$<' object='$@' libtool=no \
309# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
310# $(COMPILE) -c $<
311
312.c.obj:
313 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315# source='$<' object='$@' libtool=no \
316# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
317# $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322# source='$<' object='$@' libtool=yes \
323# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
324# $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.am
new file mode 100644
index 0000000..4d5ad2f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.am
@@ -0,0 +1,23 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_ta.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_ta_la_SOURCES = imp_ta.c imp_ta_3do_palette.h \
22 imp_ta_3do.c imp_ta_3do.h
23imp_ta_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.in
new file mode 100644
index 0000000..cc697db
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/Makefile.in
@@ -0,0 +1,513 @@
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_ta
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_ta_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_ta_la_OBJECTS = imp_ta.lo imp_ta_3do.lo
59imp_ta_la_OBJECTS = $(am_imp_ta_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_ta_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_ta_la_SOURCES)
74DIST_SOURCES = $(imp_ta_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_ta.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_ta_la_SOURCES = imp_ta.c imp_ta_3do_palette.h \
230 imp_ta_3do.c imp_ta_3do.h
231
232imp_ta_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
233all: all-am
234
235.SUFFIXES:
236.SUFFIXES: .c .lo .o .obj
237$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
238 @for dep in $?; do \
239 case '$(am__configure_deps)' in \
240 *$$dep*) \
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
242 && exit 0; \
243 exit 1;; \
244 esac; \
245 done; \
246 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile'; \
247 cd $(top_srcdir) && \
248 $(AUTOMAKE) --gnu plugins/import/imp_ta/Makefile
249.PRECIOUS: Makefile
250Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
251 @case '$?' in \
252 *config.status*) \
253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
254 *) \
255 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
256 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
257 esac;
258
259$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
261
262$(top_srcdir)/configure: $(am__configure_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264$(ACLOCAL_M4): $(am__aclocal_m4_deps)
265 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
266install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
267 @$(NORMAL_INSTALL)
268 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
269 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
270 if test -f $$p; then \
271 f=$(am__strip_dir) \
272 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
273 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
274 else :; fi; \
275 done
276
277uninstall-pluginimpLTLIBRARIES:
278 @$(NORMAL_UNINSTALL)
279 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
280 p=$(am__strip_dir) \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
283 done
284
285clean-pluginimpLTLIBRARIES:
286 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
287 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
288 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
289 test "$$dir" != "$$p" || dir=.; \
290 echo "rm -f \"$${dir}/so_locations\""; \
291 rm -f "$${dir}/so_locations"; \
292 done
293imp_ta.la: $(imp_ta_la_OBJECTS) $(imp_ta_la_DEPENDENCIES)
294 $(LINK) $(am_imp_ta_la_rpath) $(imp_ta_la_OBJECTS) $(imp_ta_la_LIBADD) $(LIBS)
295
296mostlyclean-compile:
297 -rm -f *.$(OBJEXT)
298
299distclean-compile:
300 -rm -f *.tab.c
301
302@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ta.Plo@am__quote@
303@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_ta_3do.Plo@am__quote@
304
305.c.o:
306@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
307@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
308@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
309@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
310@am__fastdepCC_FALSE@ $(COMPILE) -c $<
311
312.c.obj:
313@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
314@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
317@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
318
319.c.lo:
320@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
321@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
325
326mostlyclean-libtool:
327 -rm -f *.lo
328
329clean-libtool:
330 -rm -rf .libs _libs
331
332ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
333 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
334 unique=`for i in $$list; do \
335 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
336 done | \
337 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
338 END { if (nonempty) { for (i in files) print i; }; }'`; \
339 mkid -fID $$unique
340tags: TAGS
341
342TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
343 $(TAGS_FILES) $(LISP)
344 tags=; \
345 here=`pwd`; \
346 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
347 unique=`for i in $$list; do \
348 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
349 done | \
350 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
351 END { if (nonempty) { for (i in files) print i; }; }'`; \
352 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
353 test -n "$$unique" || unique=$$empty_fix; \
354 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
355 $$tags $$unique; \
356 fi
357ctags: CTAGS
358CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
359 $(TAGS_FILES) $(LISP)
360 tags=; \
361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
362 unique=`for i in $$list; do \
363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
364 done | \
365 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
366 END { if (nonempty) { for (i in files) print i; }; }'`; \
367 test -z "$(CTAGS_ARGS)$$tags$$unique" \
368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
369 $$tags $$unique
370
371GTAGS:
372 here=`$(am__cd) $(top_builddir) && pwd` \
373 && cd $(top_srcdir) \
374 && gtags -i $(GTAGS_ARGS) $$here
375
376distclean-tags:
377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
378
379distdir: $(DISTFILES)
380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
382 list='$(DISTFILES)'; \
383 dist_files=`for file in $$list; do echo $$file; done | \
384 sed -e "s|^$$srcdirstrip/||;t" \
385 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
386 case $$dist_files in \
387 */*) $(MKDIR_P) `echo "$$dist_files" | \
388 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
389 sort -u` ;; \
390 esac; \
391 for file in $$dist_files; do \
392 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
393 if test -d $$d/$$file; then \
394 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
395 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
396 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
397 fi; \
398 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
399 else \
400 test -f $(distdir)/$$file \
401 || cp -p $$d/$$file $(distdir)/$$file \
402 || exit 1; \
403 fi; \
404 done
405check-am: all-am
406check: check-am
407all-am: Makefile $(LTLIBRARIES)
408installdirs:
409 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
410 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
411 done
412install: install-am
413install-exec: install-exec-am
414install-data: install-data-am
415uninstall: uninstall-am
416
417install-am: all-am
418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
419
420installcheck: installcheck-am
421install-strip:
422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
424 `test -z '$(STRIP)' || \
425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
426mostlyclean-generic:
427
428clean-generic:
429
430distclean-generic:
431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
432
433maintainer-clean-generic:
434 @echo "This command is intended for maintainers to use"
435 @echo "it deletes files that may require special tools to rebuild."
436clean: clean-am
437
438clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
439 mostlyclean-am
440
441distclean: distclean-am
442 -rm -rf ./$(DEPDIR)
443 -rm -f Makefile
444distclean-am: clean-am distclean-compile distclean-generic \
445 distclean-tags
446
447dvi: dvi-am
448
449dvi-am:
450
451html: html-am
452
453info: info-am
454
455info-am:
456
457install-data-am: install-pluginimpLTLIBRARIES
458
459install-dvi: install-dvi-am
460
461install-exec-am:
462
463install-html: install-html-am
464
465install-info: install-info-am
466
467install-man:
468
469install-pdf: install-pdf-am
470
471install-ps: install-ps-am
472
473installcheck-am:
474
475maintainer-clean: maintainer-clean-am
476 -rm -rf ./$(DEPDIR)
477 -rm -f Makefile
478maintainer-clean-am: distclean-am maintainer-clean-generic
479
480mostlyclean: mostlyclean-am
481
482mostlyclean-am: mostlyclean-compile mostlyclean-generic \
483 mostlyclean-libtool
484
485pdf: pdf-am
486
487pdf-am:
488
489ps: ps-am
490
491ps-am:
492
493uninstall-am: uninstall-pluginimpLTLIBRARIES
494
495.MAKE: install-am install-strip
496
497.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
498 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
499 distclean-compile distclean-generic distclean-libtool \
500 distclean-tags distdir dvi dvi-am html html-am info info-am \
501 install install-am install-data install-data-am install-dvi \
502 install-dvi-am install-exec install-exec-am install-html \
503 install-html-am install-info install-info-am install-man \
504 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
505 install-ps install-ps-am install-strip installcheck \
506 installcheck-am installdirs maintainer-clean \
507 maintainer-clean-generic mostlyclean mostlyclean-compile \
508 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
509 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
510
511# Tell versions [3.59,3.63) of GNU make to not export all variables.
512# Otherwise a system limit (for SysV at least) may be exceeded.
513.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c
new file mode 100644
index 0000000..c472be1
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta.c
@@ -0,0 +1,77 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <glib.h>
24#include <g3d/types.h>
25
26#include "imp_ta_3do.h"
27#include "imp_ta_3do_palette.h"
28
29EAPI
30gpointer plugin_init(G3DContext *context)
31{
32 G3DMaterial *materials;
33 guint32 i;
34
35#if DEBUG > 0
36 g_debug("TA: initializing 3DO palette");
37#endif
38
39 materials = g_new0(G3DMaterial, 256);
40 for(i = 0; i < 256; i ++)
41 {
42 materials[i].r = ((G3DFloat)ta_3do_palette[i * 3 + 0]) / 255.0;
43 materials[i].g = ((G3DFloat)ta_3do_palette[i * 3 + 1]) / 255.0;
44 materials[i].b = ((G3DFloat)ta_3do_palette[i * 3 + 2]) / 255.0;
45 materials[i].a = 1.0;
46 }
47
48 return materials;
49}
50
51EAPI
52void plugin_cleanup(gpointer user_data)
53{
54 /* (G3DMaterials *) */
55 g_free(user_data);
56}
57
58EAPI
59gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
60 G3DModel *model, gpointer user_data)
61{
62 return ta_3do_load_object(context, stream, model,
63 (G3DMaterial *)user_data);
64}
65
66EAPI
67gchar *plugin_description(void)
68{
69 return g_strdup("Total Annihilation unit models.");
70}
71
72EAPI
73gchar **plugin_extensions(void)
74{
75 return g_strsplit("3do", ":", 0);
76}
77
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.c
new file mode 100644
index 0000000..5c0de7b
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.c
@@ -0,0 +1,183 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24
25#include <g3d/types.h>
26#include <g3d/stream.h>
27#include <g3d/matrix.h>
28
29gboolean ta_3do_read_children(G3DContext *context, G3DStream *stream,
30 GSList **list, G3DMaterial *materials);
31
32gboolean ta_3do_load_object(G3DContext *context, G3DStream *stream,
33 G3DModel *model, G3DMaterial *materials)
34{
35 return ta_3do_read_children(context, stream, &(model->objects), materials);
36}
37
38gboolean ta_3do_read_children(G3DContext *context, G3DStream *stream,
39 GSList **list, G3DMaterial *materials)
40{
41 G3DObject *object;
42 G3DFace *face;
43 goffset off_save, off_sav2, off_sibl, off_chld, off_vert, off_prim, off_i;
44 guint32 num_prims, colidx;
45 gchar buffer[1025];
46 gint32 i, j, x, y, z;
47
48 while(!g3d_stream_eof(stream)) {
49 /* signature */
50 if(g3d_stream_read_int32_le(stream) != 1)
51 return FALSE;
52
53 object = g_new0(G3DObject, 1);
54 *list = g_slist_append(*list, object);
55
56 /* number of vertices */
57 object->vertex_count = g3d_stream_read_int32_le(stream);
58 object->vertex_data = g_new0(G3DFloat, 3 * object->vertex_count);
59
60 /* number of primitives */
61 num_prims = g3d_stream_read_int32_le(stream);
62
63 /* offset of selection primitive */
64 g3d_stream_read_int32_le(stream);
65
66 /* translation from parent */
67 x = g3d_stream_read_int32_le(stream);
68 y = g3d_stream_read_int32_le(stream);
69 z = g3d_stream_read_int32_le(stream);
70 object->transformation = g_new0(G3DTransformation, 1);
71 g3d_matrix_identity(object->transformation->matrix);
72 g3d_matrix_translate(x, y, z, object->transformation->matrix);
73
74 /* offset of object name */
75 off_save = g3d_stream_tell(stream) + 4;
76 g3d_stream_seek(stream, g3d_stream_read_int32_le(stream), G_SEEK_SET);
77 g3d_stream_read_cstr(stream, buffer, 1024);
78 buffer[1024] = '\0';
79 object->name = g_strdup(buffer);
80 g3d_stream_seek(stream, off_save, G_SEEK_SET);
81#if DEBUG > 1
82 g_debug("TA: object '%s'", object->name);
83#endif
84
85 /* always 0 */
86 g3d_stream_read_int32_le(stream);
87
88 /* offset of vertex array */
89 off_vert = g3d_stream_read_int32_le(stream);
90 off_save = g3d_stream_tell(stream);
91 g3d_stream_seek(stream, off_vert, G_SEEK_SET);
92 for(i = 0; i < object->vertex_count; i ++)
93 {
94 object->vertex_data[i * 3 + 0] = g3d_stream_read_int32_le(stream);
95 object->vertex_data[i * 3 + 1] = g3d_stream_read_int32_le(stream);
96 object->vertex_data[i * 3 + 2] = g3d_stream_read_int32_le(stream);
97 }
98 g3d_stream_seek(stream, off_save, G_SEEK_SET);
99
100 /* offset of primitive array */
101 off_prim = g3d_stream_read_int32_le(stream);
102 off_save = g3d_stream_tell(stream);
103 g3d_stream_seek(stream, off_prim, G_SEEK_SET);
104 for(i = 0; i < num_prims; i ++)
105 {
106 face = g_new0(G3DFace, 1);
107
108 /* color index */
109 colidx = g3d_stream_read_int32_le(stream);
110#if DEBUG > 2
111 g_debug("TA: color index: %d", colidx);
112#endif
113 if(colidx > 255)
114 {
115 g_warning("TA: color index > 255 (%d)\n", colidx);
116 g_free(face);
117 g3d_stream_skip(stream, 28);
118 continue;
119 }
120 face->material = &(materials[colidx]);
121
122 /* number of vertices */
123 face->vertex_count = g3d_stream_read_int32_le(stream);
124 if(face->vertex_count < 3)
125 {
126 /* skip this primitive */
127 g_free(face);
128 g3d_stream_skip(stream, 24);
129 continue;
130 }
131 face->vertex_indices = g_new0(guint32, face->vertex_count);
132
133 /* always 0 */
134 g3d_stream_read_int32_le(stream);
135
136 /* offset of vertex index array */
137 off_i = g3d_stream_read_int32_le(stream);
138 off_sav2 = g3d_stream_tell(stream);
139#if DEBUG > 2
140 g_debug("TA: vertex index offset: 0x%08x", off_i);
141#endif
142 g3d_stream_seek(stream, off_i, G_SEEK_SET);
143 for(j = 0; j < face->vertex_count; j ++)
144 face->vertex_indices[j] = g3d_stream_read_int16_le(stream);
145 g3d_stream_seek(stream, off_sav2, G_SEEK_SET);
146
147 /* offset of texture name */
148 g3d_stream_read_int32_le(stream);
149
150 /* unknown */
151 g3d_stream_skip(stream, 12);
152
153 object->faces = g_slist_prepend(object->faces, face);
154 }
155 g3d_stream_seek(stream, off_save, G_SEEK_SET);
156
157 /* offset of sibling object */
158 off_sibl = g3d_stream_read_int32_le(stream);
159
160 /* offset of child object */
161 off_chld = g3d_stream_read_int32_le(stream);
162
163#if DEBUG > 3
164 g_debug("TA: child @ 0x%08x, sibling @ 0x%08x", off_chld, off_sibl);
165#endif
166
167 if(off_chld != 0)
168 {
169 off_save = g3d_stream_tell(stream);
170 g3d_stream_seek(stream, off_chld, G_SEEK_SET);
171 ta_3do_read_children(context, stream, &(object->objects),
172 materials);
173 g3d_stream_seek(stream, off_save, G_SEEK_SET);
174 }
175
176 if(off_sibl == 0)
177 return TRUE;
178
179 g3d_stream_seek(stream, off_sibl, G_SEEK_SET);
180 }
181
182 return FALSE;
183}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.h
new file mode 100644
index 0000000..c243c1c
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do.h
@@ -0,0 +1,31 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_TA_3DO_H
24#define _IMP_TA_3DO_H
25
26#include <g3d/types.h>
27
28gboolean ta_3do_load_object(G3DContext *context, G3DStream *stream,
29 G3DModel *model, G3DMaterial *materials);
30
31#endif /* _IMP_TA_3DO_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do_palette.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do_palette.h
new file mode 100644
index 0000000..65a3f3f
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_ta/imp_ta_3do_palette.h
@@ -0,0 +1,286 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _IMP_TA_3DO_PALETTE_H
24#define _IMP_TA_3DO_PALETTE_H
25
26#include <glib.h>
27
28static guint8 ta_3do_palette[768] = {
29 0x00, 0x00, 0x00,
30 0x80, 0x00, 0x00,
31 0x00, 0x80, 0x00,
32 0x80, 0x80, 0x00,
33 0x00, 0x00, 0x80,
34 0x80, 0x00, 0x80,
35 0x00, 0x80, 0x80,
36 0x80, 0x80, 0x80,
37 0xC0, 0xDC, 0xC0,
38 0x54, 0x54, 0xFC,
39 0x00, 0x00, 0x00,
40 0x00, 0x00, 0x00,
41 0x00, 0x00, 0x00,
42 0x00, 0x00, 0x00,
43 0x00, 0x00, 0x00,
44 0x00, 0x00, 0x00,
45 0xFF, 0xEB, 0xF3,
46 0xEB, 0xC7, 0xD3,
47 0xD7, 0xA3, 0xB3,
48 0xC3, 0x87, 0x97,
49 0xAF, 0x6F, 0x7F,
50 0x9B, 0x5B, 0x63,
51 0x8B, 0x47, 0x4F,
52 0x7B, 0x3B, 0x47,
53 0x6F, 0x33, 0x3B,
54 0x63, 0x2B, 0x33,
55 0x57, 0x23, 0x2B,
56 0x4B, 0x1B, 0x27,
57 0x3B, 0x17, 0x1F,
58 0x2F, 0x0F, 0x17,
59 0x23, 0x0B, 0x0F,
60 0x17, 0x07, 0x0B,
61 0x73, 0xFF, 0xDF,
62 0x57, 0xE7, 0xBF,
63 0x43, 0xCF, 0x9F,
64 0x2F, 0xB7, 0x83,
65 0x1F, 0x9F, 0x67,
66 0x13, 0x8B, 0x4F,
67 0x0F, 0x77, 0x3F,
68 0x0B, 0x6B, 0x37,
69 0x07, 0x5F, 0x2F,
70 0x07, 0x53, 0x2B,
71 0x00, 0x47, 0x27,
72 0x00, 0x3F, 0x23,
73 0x00, 0x33, 0x1B,
74 0x00, 0x27, 0x17,
75 0x00, 0x1B, 0x0F,
76 0x00, 0x13, 0x0B,
77 0xE3, 0xEF, 0xFF,
78 0xC7, 0xDF, 0xE7,
79 0xAF, 0xCF, 0xCB,
80 0x93, 0xB7, 0xA7,
81 0x7F, 0x9F, 0x83,
82 0x6B, 0x87, 0x67,
83 0x5F, 0x6F, 0x53,
84 0x5F, 0x63, 0x47,
85 0x5B, 0x57, 0x3B,
86 0x53, 0x43, 0x33,
87 0x47, 0x3B, 0x2B,
88 0x3B, 0x33, 0x23,
89 0x2F, 0x2B, 0x1B,
90 0x23, 0x1F, 0x13,
91 0x17, 0x13, 0x0F,
92 0x0B, 0x0B, 0x07,
93 0xFB, 0xFB, 0xD7,
94 0xDF, 0xDF, 0xB7,
95 0xC3, 0xC3, 0x9B,
96 0xAB, 0xAB, 0x83,
97 0x93, 0x93, 0x6F,
98 0x77, 0x77, 0x57,
99 0x63, 0x63, 0x43,
100 0x53, 0x53, 0x33,
101 0x43, 0x43, 0x23,
102 0x33, 0x33, 0x17,
103 0x23, 0x23, 0x0F,
104 0x1B, 0x1B, 0x07,
105 0x17, 0x17, 0x07,
106 0x13, 0x13, 0x00,
107 0x0F, 0x0F, 0x00,
108 0x0B, 0x0B, 0x00,
109 0xFB, 0xFB, 0xFB,
110 0xEB, 0xEB, 0xEB,
111 0xDB, 0xDB, 0xDB,
112 0xCB, 0xCB, 0xCB,
113 0xBB, 0xBB, 0xBB,
114 0xAB, 0xAB, 0xAB,
115 0x9B, 0x9B, 0x9B,
116 0x8B, 0x8B, 0x8B,
117 0x7B, 0x7B, 0x7B,
118 0x6B, 0x6B, 0x6B,
119 0x5B, 0x5B, 0x5B,
120 0x4B, 0x4B, 0x4B,
121 0x3B, 0x3B, 0x3B,
122 0x2B, 0x2B, 0x2B,
123 0x1F, 0x1F, 0x1F,
124 0x0F, 0x0F, 0x0F,
125 0xEB, 0xF3, 0xFF,
126 0xCB, 0xE3, 0xFF,
127 0xAF, 0xCF, 0xFF,
128 0x97, 0xB3, 0xFF,
129 0x7B, 0x97, 0xFF,
130 0x67, 0x7F, 0xFF,
131 0x53, 0x6B, 0xEF,
132 0x3F, 0x5B, 0xE3,
133 0x33, 0x4B, 0xD7,
134 0x23, 0x3B, 0xCB,
135 0x17, 0x2F, 0xAF,
136 0x0F, 0x27, 0x97,
137 0x07, 0x1F, 0x7B,
138 0x07, 0x17, 0x63,
139 0x00, 0x0F, 0x47,
140 0x00, 0x0B, 0x2F,
141 0xE3, 0xF7, 0xFF,
142 0xBF, 0xDB, 0xE7,
143 0x9F, 0xBF, 0xCF,
144 0x83, 0xA7, 0xB7,
145 0x6B, 0x8F, 0xA3,
146 0x53, 0x77, 0x8B,
147 0x3F, 0x5F, 0x73,
148 0x2F, 0x4B, 0x5F,
149 0x27, 0x3F, 0x57,
150 0x23, 0x37, 0x4F,
151 0x1F, 0x2F, 0x47,
152 0x1B, 0x27, 0x3F,
153 0x17, 0x1F, 0x37,
154 0x13, 0x1B, 0x2F,
155 0x0F, 0x13, 0x27,
156 0x0B, 0x0F, 0x1F,
157 0xD7, 0xEF, 0xFF,
158 0xBB, 0xE3, 0xEF,
159 0x9B, 0xCB, 0xDF,
160 0x83, 0xB7, 0xCF,
161 0x6B, 0xA3, 0xC3,
162 0x53, 0x8F, 0xB3,
163 0x3F, 0x7B, 0xA3,
164 0x2F, 0x6B, 0x97,
165 0x23, 0x5B, 0x87,
166 0x1B, 0x4B, 0x77,
167 0x13, 0x3F, 0x67,
168 0x0B, 0x33, 0x57,
169 0x07, 0x27, 0x47,
170 0x00, 0x1B, 0x37,
171 0x00, 0x13, 0x27,
172 0x00, 0x0B, 0x1B,
173 0xFF, 0xE7, 0xFF,
174 0xE7, 0xC7, 0xEB,
175 0xD3, 0xAB, 0xD7,
176 0xBB, 0x93, 0xC3,
177 0xA7, 0x7B, 0xB3,
178 0x8F, 0x63, 0x9F,
179 0x77, 0x4B, 0x8F,
180 0x63, 0x3B, 0x7F,
181 0x4F, 0x2B, 0x6F,
182 0x43, 0x1F, 0x63,
183 0x37, 0x17, 0x57,
184 0x2B, 0x0F, 0x47,
185 0x1F, 0x07, 0x3B,
186 0x13, 0x00, 0x2B,
187 0x0B, 0x00, 0x1F,
188 0x07, 0x00, 0x13,
189 0xD7, 0xFF, 0xA7,
190 0xAB, 0xE7, 0x7F,
191 0x83, 0xD3, 0x5B,
192 0x67, 0xBF, 0x3F,
193 0x4B, 0xAB, 0x2B,
194 0x43, 0x97, 0x2B,
195 0x37, 0x87, 0x27,
196 0x2F, 0x77, 0x1B,
197 0x2B, 0x67, 0x13,
198 0x23, 0x5B, 0x0F,
199 0x1F, 0x4F, 0x0B,
200 0x1B, 0x43, 0x07,
201 0x17, 0x33, 0x00,
202 0x0F, 0x27, 0x00,
203 0x0B, 0x1B, 0x00,
204 0x07, 0x0F, 0x00,
205 0xFF, 0xE3, 0x9F,
206 0xE3, 0xC7, 0x73,
207 0xCB, 0xAF, 0x53,
208 0xB3, 0x97, 0x3F,
209 0x9B, 0x83, 0x2F,
210 0x83, 0x6F, 0x23,
211 0x6B, 0x5B, 0x17,
212 0x53, 0x47, 0x0F,
213 0x4B, 0x3B, 0x0B,
214 0x43, 0x33, 0x07,
215 0x3B, 0x2B, 0x07,
216 0x37, 0x23, 0x00,
217 0x2F, 0x1B, 0x00,
218 0x27, 0x13, 0x00,
219 0x1F, 0x0F, 0x00,
220 0x1B, 0x0B, 0x00,
221 0xFF, 0xFF, 0xA3,
222 0xFB, 0xF3, 0x83,
223 0xF7, 0xE3, 0x67,
224 0xF3, 0xD3, 0x4F,
225 0xEF, 0xBB, 0x33,
226 0xEF, 0xA7, 0x1B,
227 0xEB, 0x8F, 0x13,
228 0xE7, 0x7B, 0x0F,
229 0xDF, 0x4F, 0x07,
230 0xD7, 0x23, 0x00,
231 0xBF, 0x1F, 0x00,
232 0xA7, 0x1B, 0x00,
233 0x93, 0x17, 0x00,
234 0x7B, 0x13, 0x00,
235 0x63, 0x13, 0x00,
236 0x4F, 0x0F, 0x00,
237 0xFF, 0xFF, 0x00,
238 0xFF, 0xBF, 0x00,
239 0xFF, 0x83, 0x00,
240 0xFF, 0x47, 0x00,
241 0xD3, 0x2B, 0x00,
242 0xAB, 0x17, 0x00,
243 0x7F, 0x07, 0x00,
244 0x57, 0x00, 0x00,
245 0xDF, 0xCB, 0xFF,
246 0xBB, 0x9F, 0xDF,
247 0x9B, 0x77, 0xBF,
248 0x7F, 0x57, 0x9F,
249 0x67, 0x3B, 0x7F,
250 0x4B, 0x23, 0x5F,
251 0x33, 0x13, 0x3F,
252 0x1B, 0x07, 0x1F,
253 0xD3, 0xDB, 0xFF,
254 0x87, 0x9F, 0xF7,
255 0x43, 0x6F, 0xEF,
256 0x17, 0x47, 0xE7,
257 0x0B, 0x2B, 0xBB,
258 0x07, 0x17, 0x8F,
259 0x00, 0x07, 0x63,
260 0x00, 0x00, 0x37,
261 0x7B, 0xFF, 0x77,
262 0x53, 0xDF, 0x4F,
263 0x33, 0xBF, 0x2B,
264 0x1B, 0x9F, 0x13,
265 0x1B, 0x7F, 0x0B,
266 0x17, 0x5F, 0x07,
267 0x13, 0x3F, 0x00,
268 0x0B, 0x1F, 0x00,
269 0x00, 0x00, 0x00,
270 0x00, 0x00, 0x00,
271 0x00, 0x00, 0x00,
272 0x00, 0x00, 0x00,
273 0x00, 0x00, 0x00,
274 0x00, 0x00, 0x00,
275 0xFF, 0xFB, 0xF0,
276 0xA0, 0xA0, 0xA4,
277 0x80, 0x80, 0x80,
278 0xFF, 0x00, 0x00,
279 0x00, 0xFF, 0x00,
280 0xFF, 0xFF, 0x00,
281 0x00, 0x00, 0xFF,
282 0xFF, 0x00, 0xFF,
283 0x00, 0xFF, 0xFF,
284 0xFF, 0xFF, 0xFF};
285
286#endif /* _IMP_TA_3DO_PALETTE_H */
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile
new file mode 100644
index 0000000..0b88eab
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile
@@ -0,0 +1,510 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_test/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_test
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_test_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_test_la_OBJECTS = imp_test.lo
59imp_test_la_OBJECTS = $(am_imp_test_la_OBJECTS)
60#am_imp_test_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_test_la_SOURCES)
74DIST_SOURCES = $(imp_test_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
79AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
80AR = ar
81AS = as
82AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
83AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
84AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
85AWK = gawk
86CC = gcc
87CCDEPMODE = depmode=gcc3
88CFLAGS = -g -O2
89CPP = gcc -E
90CPPFLAGS =
91CXX = g++
92CXXCPP = g++ -E
93CXXDEPMODE = depmode=gcc3
94CXXFLAGS = -g -O2
95CYGPATH_W = echo
96DBG_CFLAGS = -O2
97DEBUG = 0
98DEFS = -DHAVE_CONFIG_H
99DEPDIR = .deps
100DLLTOOL = dlltool
101ECHO = echo
102ECHO_C =
103ECHO_N = -n
104ECHO_T =
105EGREP = /bin/grep -E
106EXEEXT =
107F77 =
108FFLAGS =
109GDKPIXBUF_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
110GDKPIXBUF_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
111GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
112GLIB_GENMARSHAL = glib-genmarshal
113GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
114GLIB_MKENUMS = glib-mkenums
115GOBJECT_QUERY = gobject-query
116GREP = /bin/grep
117GTKDOC_CHECK = /usr/bin/gtkdoc-check
118GTK_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
119GTK_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
120HTML_DIR = ${datadir}/gtk-doc/html
121INSTALL = /usr/bin/install -c
122INSTALL_DATA = ${INSTALL} -m 644
123INSTALL_PROGRAM = ${INSTALL}
124INSTALL_SCRIPT = ${INSTALL}
125INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
126LDFLAGS =
127LEX = flex
128LEXLIB = -lfl
129LEX_OUTPUT_ROOT = lex.yy
130LIBGSF_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
131LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
132LIBOBJS =
133LIBS = -lm
134LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
135LIBXML2_CFLAGS = -I/usr/include/libxml2
136LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
137LN_S = ln -s
138LTLIBOBJS =
139LTVERSION = 0:8:0
140MAGIC_LIBS = -lmagic
141MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
142MATH_LIBS = -lm
143MKDIR_P = /bin/mkdir -p
144OBJDUMP = objdump
145OBJEXT = o
146PACKAGE = libg3d
147PACKAGE_BUGREPORT =
148PACKAGE_NAME =
149PACKAGE_STRING =
150PACKAGE_TARNAME =
151PACKAGE_VERSION =
152PATH_SEPARATOR = :
153PKG_CONFIG = /usr/bin/pkg-config
154PLUGINS_LDFLAGS = -avoid-version -export-dynamic
155RANLIB = ranlib
156SET_MAKE =
157SHELL = /bin/bash
158STRIP = strip
159VERSION = 0.0.8
160XML2_CONFIG = /usr/bin/xml2-config
161XML_CPPFLAGS = -I/usr/include/libxml2
162XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
163Z_CFLAGS =
164Z_LIBS = -lz
165abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test
166abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test
167abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
168abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
169ac_ct_CC = gcc
170ac_ct_CXX = g++
171ac_ct_F77 =
172am__include = include
173am__leading_dot = .
174am__quote =
175am__tar = ${AMTAR} chof - "$$tardir"
176am__untar = ${AMTAR} xf -
177bindir = ${exec_prefix}/bin
178build = x86_64-unknown-linux-gnu
179build_alias =
180build_cpu = x86_64
181build_os = linux-gnu
182build_vendor = unknown
183builddir = .
184datadir = ${datarootdir}
185datarootdir = ${prefix}/share
186docdir = ${datarootdir}/doc/${PACKAGE}
187dvidir = ${docdir}
188exec_prefix = ${prefix}
189host = x86_64-unknown-linux-gnu
190host_alias =
191host_cpu = x86_64
192host_os = linux-gnu
193host_vendor = unknown
194htmldir = ${docdir}
195includedir = ${prefix}/include
196infodir = ${datarootdir}/info
197install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
198libdir = ${exec_prefix}/lib
199libexecdir = ${exec_prefix}/libexec
200localedir = ${datarootdir}/locale
201localstatedir = ${prefix}/var
202mandir = ${datarootdir}/man
203mkdir_p = /bin/mkdir -p
204oldincludedir = /usr/include
205pdfdir = ${docdir}
206prefix = /usr/local
207program_transform_name = s,x,x,
208psdir = ${docdir}
209sbindir = ${exec_prefix}/sbin
210sharedstatedir = ${prefix}/com
211srcdir = .
212sysconfdir = ${prefix}/etc
213target_alias =
214top_builddir = ../../..
215top_srcdir = ../../..
216pluginimpdir = $(pkglibdir)/plugins/import
217#pluginimp_LTLIBRARIES = imp_test.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 -O2 -DDEBUG=0 \
222 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 -avoid-version -export-dynamic
228
229imp_test_la_SOURCES = imp_test.c
230imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_test.la: $(imp_test_la_OBJECTS) $(imp_test_la_DEPENDENCIES)
292 $(LINK) $(am_imp_test_la_rpath) $(imp_test_la_OBJECTS) $(imp_test_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300include ./$(DEPDIR)/imp_test.Plo
301
302.c.o:
303 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305# source='$<' object='$@' libtool=no \
306# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
307# $(COMPILE) -c $<
308
309.c.obj:
310 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312# source='$<' object='$@' libtool=no \
313# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
314# $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319# source='$<' object='$@' libtool=yes \
320# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
321# $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am
new file mode 100644
index 0000000..cbe6ea8
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.am
@@ -0,0 +1,22 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if EXPERIMENTAL
4pluginimp_LTLIBRARIES = imp_test.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_test_la_SOURCES = imp_test.c
22imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in
new file mode 100644
index 0000000..aee0e06
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/Makefile.in
@@ -0,0 +1,510 @@
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_test
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_test_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la
58am_imp_test_la_OBJECTS = imp_test.lo
59imp_test_la_OBJECTS = $(am_imp_test_la_OBJECTS)
60@EXPERIMENTAL_TRUE@am_imp_test_la_rpath = -rpath $(pluginimpdir)
61DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
62depcomp = $(SHELL) $(top_srcdir)/config/depcomp
63am__depfiles_maybe = depfiles
64COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
67 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
68 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69CCLD = $(CC)
70LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
71 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
72 $(LDFLAGS) -o $@
73SOURCES = $(imp_test_la_SOURCES)
74DIST_SOURCES = $(imp_test_la_SOURCES)
75ETAGS = etags
76CTAGS = ctags
77DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78ACLOCAL = @ACLOCAL@
79AMTAR = @AMTAR@
80AR = @AR@
81AS = @AS@
82AUTOCONF = @AUTOCONF@
83AUTOHEADER = @AUTOHEADER@
84AUTOMAKE = @AUTOMAKE@
85AWK = @AWK@
86CC = @CC@
87CCDEPMODE = @CCDEPMODE@
88CFLAGS = @CFLAGS@
89CPP = @CPP@
90CPPFLAGS = @CPPFLAGS@
91CXX = @CXX@
92CXXCPP = @CXXCPP@
93CXXDEPMODE = @CXXDEPMODE@
94CXXFLAGS = @CXXFLAGS@
95CYGPATH_W = @CYGPATH_W@
96DBG_CFLAGS = @DBG_CFLAGS@
97DEBUG = @DEBUG@
98DEFS = @DEFS@
99DEPDIR = @DEPDIR@
100DLLTOOL = @DLLTOOL@
101ECHO = @ECHO@
102ECHO_C = @ECHO_C@
103ECHO_N = @ECHO_N@
104ECHO_T = @ECHO_T@
105EGREP = @EGREP@
106EXEEXT = @EXEEXT@
107F77 = @F77@
108FFLAGS = @FFLAGS@
109GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
110GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
111GLIB_CFLAGS = @GLIB_CFLAGS@
112GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
113GLIB_LIBS = @GLIB_LIBS@
114GLIB_MKENUMS = @GLIB_MKENUMS@
115GOBJECT_QUERY = @GOBJECT_QUERY@
116GREP = @GREP@
117GTKDOC_CHECK = @GTKDOC_CHECK@
118GTK_CFLAGS = @GTK_CFLAGS@
119GTK_LIBS = @GTK_LIBS@
120HTML_DIR = @HTML_DIR@
121INSTALL = @INSTALL@
122INSTALL_DATA = @INSTALL_DATA@
123INSTALL_PROGRAM = @INSTALL_PROGRAM@
124INSTALL_SCRIPT = @INSTALL_SCRIPT@
125INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
126LDFLAGS = @LDFLAGS@
127LEX = @LEX@
128LEXLIB = @LEXLIB@
129LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
130LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
131LIBGSF_LIBS = @LIBGSF_LIBS@
132LIBOBJS = @LIBOBJS@
133LIBS = @LIBS@
134LIBTOOL = @LIBTOOL@ --quiet
135LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
136LIBXML2_LIBS = @LIBXML2_LIBS@
137LN_S = @LN_S@
138LTLIBOBJS = @LTLIBOBJS@
139LTVERSION = @LTVERSION@
140MAGIC_LIBS = @MAGIC_LIBS@
141MAKEINFO = @MAKEINFO@
142MATH_LIBS = @MATH_LIBS@
143MKDIR_P = @MKDIR_P@
144OBJDUMP = @OBJDUMP@
145OBJEXT = @OBJEXT@
146PACKAGE = @PACKAGE@
147PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
148PACKAGE_NAME = @PACKAGE_NAME@
149PACKAGE_STRING = @PACKAGE_STRING@
150PACKAGE_TARNAME = @PACKAGE_TARNAME@
151PACKAGE_VERSION = @PACKAGE_VERSION@
152PATH_SEPARATOR = @PATH_SEPARATOR@
153PKG_CONFIG = @PKG_CONFIG@
154PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
155RANLIB = @RANLIB@
156SET_MAKE = @SET_MAKE@
157SHELL = @SHELL@
158STRIP = @STRIP@
159VERSION = @VERSION@
160XML2_CONFIG = @XML2_CONFIG@
161XML_CPPFLAGS = @XML_CPPFLAGS@
162XML_LIBS = @XML_LIBS@
163Z_CFLAGS = @Z_CFLAGS@
164Z_LIBS = @Z_LIBS@
165abs_builddir = @abs_builddir@
166abs_srcdir = @abs_srcdir@
167abs_top_builddir = @abs_top_builddir@
168abs_top_srcdir = @abs_top_srcdir@
169ac_ct_CC = @ac_ct_CC@
170ac_ct_CXX = @ac_ct_CXX@
171ac_ct_F77 = @ac_ct_F77@
172am__include = @am__include@
173am__leading_dot = @am__leading_dot@
174am__quote = @am__quote@
175am__tar = @am__tar@
176am__untar = @am__untar@
177bindir = @bindir@
178build = @build@
179build_alias = @build_alias@
180build_cpu = @build_cpu@
181build_os = @build_os@
182build_vendor = @build_vendor@
183builddir = @builddir@
184datadir = @datadir@
185datarootdir = @datarootdir@
186docdir = @docdir@
187dvidir = @dvidir@
188exec_prefix = @exec_prefix@
189host = @host@
190host_alias = @host_alias@
191host_cpu = @host_cpu@
192host_os = @host_os@
193host_vendor = @host_vendor@
194htmldir = @htmldir@
195includedir = @includedir@
196infodir = @infodir@
197install_sh = @install_sh@
198libdir = @libdir@
199libexecdir = @libexecdir@
200localedir = @localedir@
201localstatedir = @localstatedir@
202mandir = @mandir@
203mkdir_p = @mkdir_p@
204oldincludedir = @oldincludedir@
205pdfdir = @pdfdir@
206prefix = @prefix@
207program_transform_name = @program_transform_name@
208psdir = @psdir@
209sbindir = @sbindir@
210sharedstatedir = @sharedstatedir@
211srcdir = @srcdir@
212sysconfdir = @sysconfdir@
213target_alias = @target_alias@
214top_builddir = @top_builddir@
215top_srcdir = @top_srcdir@
216pluginimpdir = $(pkglibdir)/plugins/import
217@EXPERIMENTAL_TRUE@pluginimp_LTLIBRARIES = imp_test.la
218AM_CFLAGS = \
219 -Wall -ansi -pedantic \
220 -DG_LOG_DOMAIN=\"LibG3D\" \
221 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
222 @GLIB_CFLAGS@
223
224INCLUDES = -I$(top_srcdir)/include
225AM_LDFLAGS = \
226 -no-undefined -module \
227 @PLUGINS_LDFLAGS@
228
229imp_test_la_SOURCES = imp_test.c
230imp_test_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@
231all: all-am
232
233.SUFFIXES:
234.SUFFIXES: .c .lo .o .obj
235$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
236 @for dep in $?; do \
237 case '$(am__configure_deps)' in \
238 *$$dep*) \
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
240 && exit 0; \
241 exit 1;; \
242 esac; \
243 done; \
244 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile'; \
245 cd $(top_srcdir) && \
246 $(AUTOMAKE) --gnu plugins/import/imp_test/Makefile
247.PRECIOUS: Makefile
248Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
249 @case '$?' in \
250 *config.status*) \
251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
252 *) \
253 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
254 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
255 esac;
256
257$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259
260$(top_srcdir)/configure: $(am__configure_deps)
261 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
262$(ACLOCAL_M4): $(am__aclocal_m4_deps)
263 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
264install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
265 @$(NORMAL_INSTALL)
266 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
267 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
268 if test -f $$p; then \
269 f=$(am__strip_dir) \
270 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
271 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
272 else :; fi; \
273 done
274
275uninstall-pluginimpLTLIBRARIES:
276 @$(NORMAL_UNINSTALL)
277 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
278 p=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
281 done
282
283clean-pluginimpLTLIBRARIES:
284 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
285 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
286 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
287 test "$$dir" != "$$p" || dir=.; \
288 echo "rm -f \"$${dir}/so_locations\""; \
289 rm -f "$${dir}/so_locations"; \
290 done
291imp_test.la: $(imp_test_la_OBJECTS) $(imp_test_la_DEPENDENCIES)
292 $(LINK) $(am_imp_test_la_rpath) $(imp_test_la_OBJECTS) $(imp_test_la_LIBADD) $(LIBS)
293
294mostlyclean-compile:
295 -rm -f *.$(OBJEXT)
296
297distclean-compile:
298 -rm -f *.tab.c
299
300@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_test.Plo@am__quote@
301
302.c.o:
303@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
304@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
305@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
306@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307@am__fastdepCC_FALSE@ $(COMPILE) -c $<
308
309.c.obj:
310@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
311@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
312@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
313@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
315
316.c.lo:
317@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
318@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
319@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
320@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
322
323mostlyclean-libtool:
324 -rm -f *.lo
325
326clean-libtool:
327 -rm -rf .libs _libs
328
329ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
335 END { if (nonempty) { for (i in files) print i; }; }'`; \
336 mkid -fID $$unique
337tags: TAGS
338
339TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
340 $(TAGS_FILES) $(LISP)
341 tags=; \
342 here=`pwd`; \
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
350 test -n "$$unique" || unique=$$empty_fix; \
351 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
352 $$tags $$unique; \
353 fi
354ctags: CTAGS
355CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
356 $(TAGS_FILES) $(LISP)
357 tags=; \
358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
359 unique=`for i in $$list; do \
360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
361 done | \
362 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
363 END { if (nonempty) { for (i in files) print i; }; }'`; \
364 test -z "$(CTAGS_ARGS)$$tags$$unique" \
365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
366 $$tags $$unique
367
368GTAGS:
369 here=`$(am__cd) $(top_builddir) && pwd` \
370 && cd $(top_srcdir) \
371 && gtags -i $(GTAGS_ARGS) $$here
372
373distclean-tags:
374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
375
376distdir: $(DISTFILES)
377 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
379 list='$(DISTFILES)'; \
380 dist_files=`for file in $$list; do echo $$file; done | \
381 sed -e "s|^$$srcdirstrip/||;t" \
382 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
383 case $$dist_files in \
384 */*) $(MKDIR_P) `echo "$$dist_files" | \
385 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
386 sort -u` ;; \
387 esac; \
388 for file in $$dist_files; do \
389 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
390 if test -d $$d/$$file; then \
391 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
394 fi; \
395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
396 else \
397 test -f $(distdir)/$$file \
398 || cp -p $$d/$$file $(distdir)/$$file \
399 || exit 1; \
400 fi; \
401 done
402check-am: all-am
403check: check-am
404all-am: Makefile $(LTLIBRARIES)
405installdirs:
406 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
407 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
408 done
409install: install-am
410install-exec: install-exec-am
411install-data: install-data-am
412uninstall: uninstall-am
413
414install-am: all-am
415 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
416
417installcheck: installcheck-am
418install-strip:
419 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
420 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
421 `test -z '$(STRIP)' || \
422 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
423mostlyclean-generic:
424
425clean-generic:
426
427distclean-generic:
428 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
429
430maintainer-clean-generic:
431 @echo "This command is intended for maintainers to use"
432 @echo "it deletes files that may require special tools to rebuild."
433clean: clean-am
434
435clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
436 mostlyclean-am
437
438distclean: distclean-am
439 -rm -rf ./$(DEPDIR)
440 -rm -f Makefile
441distclean-am: clean-am distclean-compile distclean-generic \
442 distclean-tags
443
444dvi: dvi-am
445
446dvi-am:
447
448html: html-am
449
450info: info-am
451
452info-am:
453
454install-data-am: install-pluginimpLTLIBRARIES
455
456install-dvi: install-dvi-am
457
458install-exec-am:
459
460install-html: install-html-am
461
462install-info: install-info-am
463
464install-man:
465
466install-pdf: install-pdf-am
467
468install-ps: install-ps-am
469
470installcheck-am:
471
472maintainer-clean: maintainer-clean-am
473 -rm -rf ./$(DEPDIR)
474 -rm -f Makefile
475maintainer-clean-am: distclean-am maintainer-clean-generic
476
477mostlyclean: mostlyclean-am
478
479mostlyclean-am: mostlyclean-compile mostlyclean-generic \
480 mostlyclean-libtool
481
482pdf: pdf-am
483
484pdf-am:
485
486ps: ps-am
487
488ps-am:
489
490uninstall-am: uninstall-pluginimpLTLIBRARIES
491
492.MAKE: install-am install-strip
493
494.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
495 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
496 distclean-compile distclean-generic distclean-libtool \
497 distclean-tags distdir dvi dvi-am html html-am info info-am \
498 install install-am install-data install-data-am install-dvi \
499 install-dvi-am install-exec install-exec-am install-html \
500 install-html-am install-info install-info-am install-man \
501 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
502 install-ps install-ps-am install-strip installcheck \
503 installcheck-am installdirs maintainer-clean \
504 maintainer-clean-generic mostlyclean mostlyclean-compile \
505 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
506 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
507
508# Tell versions [3.59,3.63) of GNU make to not export all variables.
509# Otherwise a system limit (for SysV at least) may be exceeded.
510.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c
new file mode 100644
index 0000000..0b4e062
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_test/imp_test.c
@@ -0,0 +1,164 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <g3d/types.h>
24#include <g3d/context.h>
25#include <g3d/material.h>
26#include <g3d/matrix.h>
27#include <g3d/primitive.h>
28#include <g3d/object.h>
29#include <g3d/texture.h>
30
31static gboolean test_primitive_transfrom(G3DModel *model);
32static gboolean test_texture_uv(G3DContext *context, G3DModel *model);
33
34/*****************************************************************************/
35/* plugin interface */
36/*****************************************************************************/
37
38
39EAPI
40gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
41 G3DModel *model, gpointer user_data)
42{
43 guint32 test = 1;
44
45 switch(test) {
46 case 0:
47 return test_primitive_transfrom(model);
48 break;
49 case 1:
50 return test_texture_uv(context, model);
51 break;
52 default:
53 break;
54 }
55 return FALSE;
56}
57
58EAPI
59gchar *plugin_description(G3DContext *context)
60{
61 return g_strdup("Test plugin.");
62}
63
64EAPI
65gchar **plugin_extensions(G3DContext *context)
66{
67 return g_strsplit("test", ":", 0);
68}
69
70/****************************************************************************/
71
72static gboolean test_primitive_transfrom(G3DModel *model)
73{
74 G3DObject *sphere, *cntr;
75 G3DMaterial *material;
76 G3DTransformation *tf;
77 G3DFloat matrix[16];
78 /* gint32 i, j; */
79
80 cntr = g_new0(G3DObject, 1);
81 cntr->name = g_strdup("container");
82
83 tf = g_new0(G3DTransformation, 1);
84 g3d_matrix_identity(tf->matrix);
85 g3d_matrix_scale(1.0, 1.0, 2.0, tf->matrix);
86 cntr->transformation = tf;
87 model->objects = g_slist_append(model->objects, cntr);
88
89 material = g3d_material_new();
90 model->materials = g_slist_append(model->materials, material);
91
92 /* 1 */
93 sphere = g3d_primitive_sphere(1.0, 36, 36, material);
94 cntr->objects = g_slist_append(cntr->objects, sphere);
95
96 /* 2 */
97 sphere = g3d_primitive_sphere(1.0, 6, 6, material);
98 cntr->objects = g_slist_append(cntr->objects, sphere);
99
100 tf = g_new0(G3DTransformation, 1);
101 g3d_matrix_identity(tf->matrix);
102 g3d_matrix_translate(2.5, 1.0, 1.0, tf->matrix);
103 sphere->transformation = tf;
104
105 /* 3 */
106 sphere = g3d_primitive_sphere(1.0, 12, 12, material);
107 cntr->objects = g_slist_append(cntr->objects, sphere);
108
109 g3d_matrix_identity(matrix);
110 g3d_matrix_translate(5, 2.0, 2.0, matrix);
111 g3d_matrix_scale(2.0, 2.0, 1.0, matrix);
112 g3d_object_transform(sphere, matrix);
113
114 return TRUE;
115}
116
117static gboolean test_texture_uv(G3DContext *context, G3DModel *model)
118{
119 G3DObject *box;
120 G3DMaterial *material;
121 G3DFace *face;
122 GSList *item;
123
124 material = g3d_material_new();
125 material->r = 1.0;
126 material->g = 0.8;
127 material->b = 0.2;
128 material->a = 0.9;
129 material->name = g_strdup("default texture");
130 material->tex_image = g3d_texture_load_cached(context, model,
131 "test-texture.png");
132
133 box = g3d_primitive_box(1.0, 1.0, 1.0, material);
134 box->name = g_strdup("test box");
135
136 if(material->tex_image != NULL) {
137 material->tex_image->tex_env = G3D_TEXENV_REPLACE;
138
139 for(item = box->faces; item != NULL; item = item->next) {
140 face = (G3DFace *)item->data;
141 face->tex_image = material->tex_image;
142 face->flags |= G3D_FLAG_FAC_TEXMAP;
143
144#define MIN_U 0.0
145#define MAX_U 1.0
146#define MIN_V -0.5
147#define MAX_V 1.5
148
149 face->tex_vertex_data[0 * 2 + 0] = MIN_U;
150 face->tex_vertex_data[0 * 2 + 1] = MIN_V;
151 face->tex_vertex_data[1 * 2 + 0] = MIN_U;
152 face->tex_vertex_data[1 * 2 + 1] = MAX_V;
153 face->tex_vertex_data[2 * 2 + 0] = MAX_U;
154 face->tex_vertex_data[2 * 2 + 1] = MAX_V;
155 face->tex_vertex_data[3 * 2 + 0] = MAX_U;
156 face->tex_vertex_data[3 * 2 + 1] = MIN_V;
157 }
158 }
159
160 model->objects = g_slist_append(model->objects, box);
161 model->materials = g_slist_append(model->materials, material);
162
163 return TRUE;
164}
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile
new file mode 100644
index 0000000..b9a3491
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile
@@ -0,0 +1,524 @@
1# Makefile.in generated by automake 1.10.1 from Makefile.am.
2# plugins/import/imp_vrml/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_vrml
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
37 imp_vrml_v1.c
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55am__installdirs = "$(DESTDIR)$(pluginimpdir)"
56pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
57LTLIBRARIES = $(pluginimp_LTLIBRARIES)
58am__DEPENDENCIES_1 =
59imp_vrml_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la \
60 $(am__DEPENDENCIES_1)
61am_imp_vrml_la_OBJECTS = imp_vrml_v1.lo imp_vrml.lo
62imp_vrml_la_OBJECTS = $(am_imp_vrml_la_OBJECTS)
63am_imp_vrml_la_rpath = -rpath $(pluginimpdir)
64DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/g3d
65depcomp = $(SHELL) $(top_srcdir)/config/depcomp
66am__depfiles_maybe = depfiles
67COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
68 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
71 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
72CCLD = $(CC)
73LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
74 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
75 $(LDFLAGS) -o $@
76LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
77LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78 --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS)
79YLWRAP = $(top_srcdir)/config/ylwrap
80SOURCES = $(imp_vrml_la_SOURCES)
81DIST_SOURCES = $(imp_vrml_la_SOURCES)
82ETAGS = etags
83CTAGS = ctags
84DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
85ACLOCAL = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run aclocal-1.10
86AMTAR = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run tar
87AR = ar
88AS = as
89AUTOCONF = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoconf
90AUTOHEADER = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run autoheader
91AUTOMAKE = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run automake-1.10
92AWK = gawk
93CC = gcc
94CCDEPMODE = depmode=gcc3
95CFLAGS = -g -O2
96CPP = gcc -E
97CPPFLAGS =
98CXX = g++
99CXXCPP = g++ -E
100CXXDEPMODE = depmode=gcc3
101CXXFLAGS = -g -O2
102CYGPATH_W = echo
103DBG_CFLAGS = -O2
104DEBUG = 0
105DEFS = -DHAVE_CONFIG_H
106DEPDIR = .deps
107DLLTOOL = dlltool
108ECHO = echo
109ECHO_C =
110ECHO_N = -n
111ECHO_T =
112EGREP = /bin/grep -E
113EXEEXT =
114F77 =
115FFLAGS =
116GDKPIXBUF_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
117GDKPIXBUF_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
118GLIB_CFLAGS = -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
119GLIB_GENMARSHAL = glib-genmarshal
120GLIB_LIBS = -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0
121GLIB_MKENUMS = glib-mkenums
122GOBJECT_QUERY = gobject-query
123GREP = /bin/grep
124GTKDOC_CHECK = /usr/bin/gtkdoc-check
125GTK_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
126GTK_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
127HTML_DIR = ${datadir}/gtk-doc/html
128INSTALL = /usr/bin/install -c
129INSTALL_DATA = ${INSTALL} -m 644
130INSTALL_PROGRAM = ${INSTALL}
131INSTALL_SCRIPT = ${INSTALL}
132INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
133LDFLAGS =
134LEX = flex
135LEXLIB = -lfl
136LEX_OUTPUT_ROOT = lex.yy
137LIBGSF_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
138LIBGSF_LIBS = -lgsf-1 -lgobject-2.0 -lxml2 -lglib-2.0
139LIBOBJS =
140LIBS = -lm
141LIBTOOL = $(SHELL) $(top_builddir)/libtool --quiet
142LIBXML2_CFLAGS = -I/usr/include/libxml2
143LIBXML2_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
144LN_S = ln -s
145LTLIBOBJS =
146LTVERSION = 0:8:0
147MAGIC_LIBS = -lmagic
148MAKEINFO = ${SHELL} /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/missing --run makeinfo
149MATH_LIBS = -lm
150MKDIR_P = /bin/mkdir -p
151OBJDUMP = objdump
152OBJEXT = o
153PACKAGE = libg3d
154PACKAGE_BUGREPORT =
155PACKAGE_NAME =
156PACKAGE_STRING =
157PACKAGE_TARNAME =
158PACKAGE_VERSION =
159PATH_SEPARATOR = :
160PKG_CONFIG = /usr/bin/pkg-config
161PLUGINS_LDFLAGS = -avoid-version -export-dynamic
162RANLIB = ranlib
163SET_MAKE =
164SHELL = /bin/bash
165STRIP = strip
166VERSION = 0.0.8
167XML2_CONFIG = /usr/bin/xml2-config
168XML_CPPFLAGS = -I/usr/include/libxml2
169XML_LIBS = -L/usr/lib/x86_64-linux-gnu -lxml2
170Z_CFLAGS =
171Z_LIBS = -lz
172abs_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml
173abs_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml
174abs_top_builddir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
175abs_top_srcdir = /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8
176ac_ct_CC = gcc
177ac_ct_CXX = g++
178ac_ct_F77 =
179am__include = include
180am__leading_dot = .
181am__quote =
182am__tar = ${AMTAR} chof - "$$tardir"
183am__untar = ${AMTAR} xf -
184bindir = ${exec_prefix}/bin
185build = x86_64-unknown-linux-gnu
186build_alias =
187build_cpu = x86_64
188build_os = linux-gnu
189build_vendor = unknown
190builddir = .
191datadir = ${datarootdir}
192datarootdir = ${prefix}/share
193docdir = ${datarootdir}/doc/${PACKAGE}
194dvidir = ${docdir}
195exec_prefix = ${prefix}
196host = x86_64-unknown-linux-gnu
197host_alias =
198host_cpu = x86_64
199host_os = linux-gnu
200host_vendor = unknown
201htmldir = ${docdir}
202includedir = ${prefix}/include
203infodir = ${datarootdir}/info
204install_sh = $(SHELL) /home/dvs1/VirtualWorlds/SOURCE/SledjHamr/src/others/mimesh/libg3d-0.0.8/config/install-sh
205libdir = ${exec_prefix}/lib
206libexecdir = ${exec_prefix}/libexec
207localedir = ${datarootdir}/locale
208localstatedir = ${prefix}/var
209mandir = ${datarootdir}/man
210mkdir_p = /bin/mkdir -p
211oldincludedir = /usr/include
212pdfdir = ${docdir}
213prefix = /usr/local
214program_transform_name = s,x,x,
215psdir = ${docdir}
216sbindir = ${exec_prefix}/sbin
217sharedstatedir = ${prefix}/com
218srcdir = .
219sysconfdir = ${prefix}/etc
220target_alias =
221top_builddir = ../../..
222top_srcdir = ../../..
223pluginimpdir = $(pkglibdir)/plugins/import
224pluginimp_LTLIBRARIES = imp_vrml.la
225AM_CFLAGS = \
226 -Wall -ansi -pedantic \
227 -DG_LOG_DOMAIN=\"LibG3D\" \
228 -O2 -DDEBUG=0 \
229 -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
230
231INCLUDES = -I$(top_srcdir)/include
232AM_LDFLAGS = \
233 -no-undefined -module \
234 -avoid-version -export-dynamic
235
236AM_LFLAGS = -o${LEX_OUTPUT_ROOT}.c --header-file=${LEX_OUTPUT_ROOT}.h -R
237imp_vrml_la_SOURCES = imp_vrml_v1.l imp_vrml_v1.h imp_vrml.c
238imp_vrml_la_LIBADD = $(top_builddir)/src/libg3d.la -Wl,--export-dynamic -pthread -lgmodule-2.0 -lrt -lgobject-2.0 -lglib-2.0 ${LEXLIB}
239EXTRA_DIST = imp_vrml_v1.c imp_vrml_v1.h
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .l .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_vrml.la: $(imp_vrml_la_OBJECTS) $(imp_vrml_la_DEPENDENCIES)
301 $(LINK) $(am_imp_vrml_la_rpath) $(imp_vrml_la_OBJECTS) $(imp_vrml_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309include ./$(DEPDIR)/imp_vrml.Plo
310include ./$(DEPDIR)/imp_vrml_v1.Plo
311
312.c.o:
313 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
314 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315# source='$<' object='$@' libtool=no \
316# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
317# $(COMPILE) -c $<
318
319.c.obj:
320 $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
321 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
322# source='$<' object='$@' libtool=no \
323# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
324# $(COMPILE) -c `$(CYGPATH_W) '$<'`
325
326.c.lo:
327 $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
328 mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
329# source='$<' object='$@' libtool=yes \
330# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
331# $(LTCOMPILE) -c -o $@ $<
332
333.l.c:
334 $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446 -rm -f imp_vrml_v1.c
447clean: clean-am
448
449clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
450 mostlyclean-am
451
452distclean: distclean-am
453 -rm -rf ./$(DEPDIR)
454 -rm -f Makefile
455distclean-am: clean-am distclean-compile distclean-generic \
456 distclean-tags
457
458dvi: dvi-am
459
460dvi-am:
461
462html: html-am
463
464info: info-am
465
466info-am:
467
468install-data-am: install-pluginimpLTLIBRARIES
469
470install-dvi: install-dvi-am
471
472install-exec-am:
473
474install-html: install-html-am
475
476install-info: install-info-am
477
478install-man:
479
480install-pdf: install-pdf-am
481
482install-ps: install-ps-am
483
484installcheck-am:
485
486maintainer-clean: maintainer-clean-am
487 -rm -rf ./$(DEPDIR)
488 -rm -f Makefile
489maintainer-clean-am: distclean-am maintainer-clean-generic
490
491mostlyclean: mostlyclean-am
492
493mostlyclean-am: mostlyclean-compile mostlyclean-generic \
494 mostlyclean-libtool
495
496pdf: pdf-am
497
498pdf-am:
499
500ps: ps-am
501
502ps-am:
503
504uninstall-am: uninstall-pluginimpLTLIBRARIES
505
506.MAKE: install-am install-strip
507
508.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
509 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
510 distclean-compile distclean-generic distclean-libtool \
511 distclean-tags distdir dvi dvi-am html html-am info info-am \
512 install install-am install-data install-data-am install-dvi \
513 install-dvi-am install-exec install-exec-am install-html \
514 install-html-am install-info install-info-am install-man \
515 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
516 install-ps install-ps-am install-strip installcheck \
517 installcheck-am installdirs maintainer-clean \
518 maintainer-clean-generic mostlyclean mostlyclean-compile \
519 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
520 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
521
522# Tell versions [3.59,3.63) of GNU make to not export all variables.
523# Otherwise a system limit (for SysV at least) may be exceeded.
524.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.am b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.am
new file mode 100644
index 0000000..656f588
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.am
@@ -0,0 +1,26 @@
1pluginimpdir = $(pkglibdir)/plugins/import
2
3if OS_WIN32
4else
5pluginimp_LTLIBRARIES = imp_vrml.la
6endif
7
8AM_CFLAGS = \
9 -Wall -ansi -pedantic \
10 -DG_LOG_DOMAIN=\"LibG3D\" \
11 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
12 @GLIB_CFLAGS@
13
14INCLUDES = -I$(top_srcdir)/include
15
16AM_LDFLAGS = \
17 -no-undefined -module \
18 @PLUGINS_LDFLAGS@
19
20AM_LFLAGS = -o${LEX_OUTPUT_ROOT}.c --header-file=${LEX_OUTPUT_ROOT}.h -R
21LIBTOOL += --quiet
22
23imp_vrml_la_SOURCES = imp_vrml_v1.l imp_vrml_v1.h imp_vrml.c
24imp_vrml_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ ${LEXLIB}
25
26EXTRA_DIST = imp_vrml_v1.c imp_vrml_v1.h
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.in b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.in
new file mode 100644
index 0000000..2efd826
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/Makefile.in
@@ -0,0 +1,524 @@
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_vrml
36DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
37 imp_vrml_v1.c
38ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
40 $(top_srcdir)/m4/glib-2.0.m4 $(top_srcdir)/m4/gtk-2.0.m4 \
41 $(top_srcdir)/m4/gtk-doc.m4 $(top_srcdir)/m4/libtool.m4 \
42 $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/win32.m4 \
43 $(top_srcdir)/configure.in
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46mkinstalldirs = $(install_sh) -d
47CONFIG_HEADER = $(top_builddir)/include/g3d/config.h
48CONFIG_CLEAN_FILES =
49am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55am__installdirs = "$(DESTDIR)$(pluginimpdir)"
56pluginimpLTLIBRARIES_INSTALL = $(INSTALL)
57LTLIBRARIES = $(pluginimp_LTLIBRARIES)
58am__DEPENDENCIES_1 =
59imp_vrml_la_DEPENDENCIES = $(top_builddir)/src/libg3d.la \
60 $(am__DEPENDENCIES_1)
61am_imp_vrml_la_OBJECTS = imp_vrml_v1.lo imp_vrml.lo
62imp_vrml_la_OBJECTS = $(am_imp_vrml_la_OBJECTS)
63@OS_WIN32_FALSE@am_imp_vrml_la_rpath = -rpath $(pluginimpdir)
64DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include/g3d
65depcomp = $(SHELL) $(top_srcdir)/config/depcomp
66am__depfiles_maybe = depfiles
67COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
68 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
69LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
70 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
71 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
72CCLD = $(CC)
73LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
74 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
75 $(LDFLAGS) -o $@
76LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS)
77LTLEXCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
78 --mode=compile $(LEX) $(LFLAGS) $(AM_LFLAGS)
79YLWRAP = $(top_srcdir)/config/ylwrap
80SOURCES = $(imp_vrml_la_SOURCES)
81DIST_SOURCES = $(imp_vrml_la_SOURCES)
82ETAGS = etags
83CTAGS = ctags
84DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
85ACLOCAL = @ACLOCAL@
86AMTAR = @AMTAR@
87AR = @AR@
88AS = @AS@
89AUTOCONF = @AUTOCONF@
90AUTOHEADER = @AUTOHEADER@
91AUTOMAKE = @AUTOMAKE@
92AWK = @AWK@
93CC = @CC@
94CCDEPMODE = @CCDEPMODE@
95CFLAGS = @CFLAGS@
96CPP = @CPP@
97CPPFLAGS = @CPPFLAGS@
98CXX = @CXX@
99CXXCPP = @CXXCPP@
100CXXDEPMODE = @CXXDEPMODE@
101CXXFLAGS = @CXXFLAGS@
102CYGPATH_W = @CYGPATH_W@
103DBG_CFLAGS = @DBG_CFLAGS@
104DEBUG = @DEBUG@
105DEFS = @DEFS@
106DEPDIR = @DEPDIR@
107DLLTOOL = @DLLTOOL@
108ECHO = @ECHO@
109ECHO_C = @ECHO_C@
110ECHO_N = @ECHO_N@
111ECHO_T = @ECHO_T@
112EGREP = @EGREP@
113EXEEXT = @EXEEXT@
114F77 = @F77@
115FFLAGS = @FFLAGS@
116GDKPIXBUF_CFLAGS = @GDKPIXBUF_CFLAGS@
117GDKPIXBUF_LIBS = @GDKPIXBUF_LIBS@
118GLIB_CFLAGS = @GLIB_CFLAGS@
119GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
120GLIB_LIBS = @GLIB_LIBS@
121GLIB_MKENUMS = @GLIB_MKENUMS@
122GOBJECT_QUERY = @GOBJECT_QUERY@
123GREP = @GREP@
124GTKDOC_CHECK = @GTKDOC_CHECK@
125GTK_CFLAGS = @GTK_CFLAGS@
126GTK_LIBS = @GTK_LIBS@
127HTML_DIR = @HTML_DIR@
128INSTALL = @INSTALL@
129INSTALL_DATA = @INSTALL_DATA@
130INSTALL_PROGRAM = @INSTALL_PROGRAM@
131INSTALL_SCRIPT = @INSTALL_SCRIPT@
132INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
133LDFLAGS = @LDFLAGS@
134LEX = @LEX@
135LEXLIB = @LEXLIB@
136LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
137LIBGSF_CFLAGS = @LIBGSF_CFLAGS@
138LIBGSF_LIBS = @LIBGSF_LIBS@
139LIBOBJS = @LIBOBJS@
140LIBS = @LIBS@
141LIBTOOL = @LIBTOOL@ --quiet
142LIBXML2_CFLAGS = @LIBXML2_CFLAGS@
143LIBXML2_LIBS = @LIBXML2_LIBS@
144LN_S = @LN_S@
145LTLIBOBJS = @LTLIBOBJS@
146LTVERSION = @LTVERSION@
147MAGIC_LIBS = @MAGIC_LIBS@
148MAKEINFO = @MAKEINFO@
149MATH_LIBS = @MATH_LIBS@
150MKDIR_P = @MKDIR_P@
151OBJDUMP = @OBJDUMP@
152OBJEXT = @OBJEXT@
153PACKAGE = @PACKAGE@
154PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
155PACKAGE_NAME = @PACKAGE_NAME@
156PACKAGE_STRING = @PACKAGE_STRING@
157PACKAGE_TARNAME = @PACKAGE_TARNAME@
158PACKAGE_VERSION = @PACKAGE_VERSION@
159PATH_SEPARATOR = @PATH_SEPARATOR@
160PKG_CONFIG = @PKG_CONFIG@
161PLUGINS_LDFLAGS = @PLUGINS_LDFLAGS@
162RANLIB = @RANLIB@
163SET_MAKE = @SET_MAKE@
164SHELL = @SHELL@
165STRIP = @STRIP@
166VERSION = @VERSION@
167XML2_CONFIG = @XML2_CONFIG@
168XML_CPPFLAGS = @XML_CPPFLAGS@
169XML_LIBS = @XML_LIBS@
170Z_CFLAGS = @Z_CFLAGS@
171Z_LIBS = @Z_LIBS@
172abs_builddir = @abs_builddir@
173abs_srcdir = @abs_srcdir@
174abs_top_builddir = @abs_top_builddir@
175abs_top_srcdir = @abs_top_srcdir@
176ac_ct_CC = @ac_ct_CC@
177ac_ct_CXX = @ac_ct_CXX@
178ac_ct_F77 = @ac_ct_F77@
179am__include = @am__include@
180am__leading_dot = @am__leading_dot@
181am__quote = @am__quote@
182am__tar = @am__tar@
183am__untar = @am__untar@
184bindir = @bindir@
185build = @build@
186build_alias = @build_alias@
187build_cpu = @build_cpu@
188build_os = @build_os@
189build_vendor = @build_vendor@
190builddir = @builddir@
191datadir = @datadir@
192datarootdir = @datarootdir@
193docdir = @docdir@
194dvidir = @dvidir@
195exec_prefix = @exec_prefix@
196host = @host@
197host_alias = @host_alias@
198host_cpu = @host_cpu@
199host_os = @host_os@
200host_vendor = @host_vendor@
201htmldir = @htmldir@
202includedir = @includedir@
203infodir = @infodir@
204install_sh = @install_sh@
205libdir = @libdir@
206libexecdir = @libexecdir@
207localedir = @localedir@
208localstatedir = @localstatedir@
209mandir = @mandir@
210mkdir_p = @mkdir_p@
211oldincludedir = @oldincludedir@
212pdfdir = @pdfdir@
213prefix = @prefix@
214program_transform_name = @program_transform_name@
215psdir = @psdir@
216sbindir = @sbindir@
217sharedstatedir = @sharedstatedir@
218srcdir = @srcdir@
219sysconfdir = @sysconfdir@
220target_alias = @target_alias@
221top_builddir = @top_builddir@
222top_srcdir = @top_srcdir@
223pluginimpdir = $(pkglibdir)/plugins/import
224@OS_WIN32_FALSE@pluginimp_LTLIBRARIES = imp_vrml.la
225AM_CFLAGS = \
226 -Wall -ansi -pedantic \
227 -DG_LOG_DOMAIN=\"LibG3D\" \
228 @DBG_CFLAGS@ -DDEBUG=@DEBUG@ \
229 @GLIB_CFLAGS@
230
231INCLUDES = -I$(top_srcdir)/include
232AM_LDFLAGS = \
233 -no-undefined -module \
234 @PLUGINS_LDFLAGS@
235
236AM_LFLAGS = -o${LEX_OUTPUT_ROOT}.c --header-file=${LEX_OUTPUT_ROOT}.h -R
237imp_vrml_la_SOURCES = imp_vrml_v1.l imp_vrml_v1.h imp_vrml.c
238imp_vrml_la_LIBADD = $(top_builddir)/src/libg3d.la @GLIB_LIBS@ ${LEXLIB}
239EXTRA_DIST = imp_vrml_v1.c imp_vrml_v1.h
240all: all-am
241
242.SUFFIXES:
243.SUFFIXES: .c .l .lo .o .obj
244$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
245 @for dep in $?; do \
246 case '$(am__configure_deps)' in \
247 *$$dep*) \
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
249 && exit 0; \
250 exit 1;; \
251 esac; \
252 done; \
253 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile'; \
254 cd $(top_srcdir) && \
255 $(AUTOMAKE) --gnu plugins/import/imp_vrml/Makefile
256.PRECIOUS: Makefile
257Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258 @case '$?' in \
259 *config.status*) \
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
261 *) \
262 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
263 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
264 esac;
265
266$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
267 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
268
269$(top_srcdir)/configure: $(am__configure_deps)
270 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
271$(ACLOCAL_M4): $(am__aclocal_m4_deps)
272 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
273install-pluginimpLTLIBRARIES: $(pluginimp_LTLIBRARIES)
274 @$(NORMAL_INSTALL)
275 test -z "$(pluginimpdir)" || $(MKDIR_P) "$(DESTDIR)$(pluginimpdir)"
276 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
277 if test -f $$p; then \
278 f=$(am__strip_dir) \
279 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(pluginimpdir)/$$f'"; \
280 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(pluginimpLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(pluginimpdir)/$$f"; \
281 else :; fi; \
282 done
283
284uninstall-pluginimpLTLIBRARIES:
285 @$(NORMAL_UNINSTALL)
286 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
287 p=$(am__strip_dir) \
288 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(pluginimpdir)/$$p'"; \
289 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(pluginimpdir)/$$p"; \
290 done
291
292clean-pluginimpLTLIBRARIES:
293 -test -z "$(pluginimp_LTLIBRARIES)" || rm -f $(pluginimp_LTLIBRARIES)
294 @list='$(pluginimp_LTLIBRARIES)'; for p in $$list; do \
295 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
296 test "$$dir" != "$$p" || dir=.; \
297 echo "rm -f \"$${dir}/so_locations\""; \
298 rm -f "$${dir}/so_locations"; \
299 done
300imp_vrml.la: $(imp_vrml_la_OBJECTS) $(imp_vrml_la_DEPENDENCIES)
301 $(LINK) $(am_imp_vrml_la_rpath) $(imp_vrml_la_OBJECTS) $(imp_vrml_la_LIBADD) $(LIBS)
302
303mostlyclean-compile:
304 -rm -f *.$(OBJEXT)
305
306distclean-compile:
307 -rm -f *.tab.c
308
309@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml.Plo@am__quote@
310@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imp_vrml_v1.Plo@am__quote@
311
312.c.o:
313@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
314@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
317@am__fastdepCC_FALSE@ $(COMPILE) -c $<
318
319.c.obj:
320@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
321@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
322@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
323@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
325
326.c.lo:
327@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
328@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
329@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
330@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
331@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
332
333.l.c:
334 $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE)
335
336mostlyclean-libtool:
337 -rm -f *.lo
338
339clean-libtool:
340 -rm -rf .libs _libs
341
342ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
344 unique=`for i in $$list; do \
345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
346 done | \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
349 mkid -fID $$unique
350tags: TAGS
351
352TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
353 $(TAGS_FILES) $(LISP)
354 tags=; \
355 here=`pwd`; \
356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
357 unique=`for i in $$list; do \
358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
359 done | \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
363 test -n "$$unique" || unique=$$empty_fix; \
364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
365 $$tags $$unique; \
366 fi
367ctags: CTAGS
368CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
369 $(TAGS_FILES) $(LISP)
370 tags=; \
371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
372 unique=`for i in $$list; do \
373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
374 done | \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
379 $$tags $$unique
380
381GTAGS:
382 here=`$(am__cd) $(top_builddir) && pwd` \
383 && cd $(top_srcdir) \
384 && gtags -i $(GTAGS_ARGS) $$here
385
386distclean-tags:
387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
388
389distdir: $(DISTFILES)
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
407 fi; \
408 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
409 else \
410 test -f $(distdir)/$$file \
411 || cp -p $$d/$$file $(distdir)/$$file \
412 || exit 1; \
413 fi; \
414 done
415check-am: all-am
416check: check-am
417all-am: Makefile $(LTLIBRARIES)
418installdirs:
419 for dir in "$(DESTDIR)$(pluginimpdir)"; do \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
421 done
422install: install-am
423install-exec: install-exec-am
424install-data: install-data-am
425uninstall: uninstall-am
426
427install-am: all-am
428 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
429
430installcheck: installcheck-am
431install-strip:
432 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
433 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
434 `test -z '$(STRIP)' || \
435 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
436mostlyclean-generic:
437
438clean-generic:
439
440distclean-generic:
441 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
442
443maintainer-clean-generic:
444 @echo "This command is intended for maintainers to use"
445 @echo "it deletes files that may require special tools to rebuild."
446 -rm -f imp_vrml_v1.c
447clean: clean-am
448
449clean-am: clean-generic clean-libtool clean-pluginimpLTLIBRARIES \
450 mostlyclean-am
451
452distclean: distclean-am
453 -rm -rf ./$(DEPDIR)
454 -rm -f Makefile
455distclean-am: clean-am distclean-compile distclean-generic \
456 distclean-tags
457
458dvi: dvi-am
459
460dvi-am:
461
462html: html-am
463
464info: info-am
465
466info-am:
467
468install-data-am: install-pluginimpLTLIBRARIES
469
470install-dvi: install-dvi-am
471
472install-exec-am:
473
474install-html: install-html-am
475
476install-info: install-info-am
477
478install-man:
479
480install-pdf: install-pdf-am
481
482install-ps: install-ps-am
483
484installcheck-am:
485
486maintainer-clean: maintainer-clean-am
487 -rm -rf ./$(DEPDIR)
488 -rm -f Makefile
489maintainer-clean-am: distclean-am maintainer-clean-generic
490
491mostlyclean: mostlyclean-am
492
493mostlyclean-am: mostlyclean-compile mostlyclean-generic \
494 mostlyclean-libtool
495
496pdf: pdf-am
497
498pdf-am:
499
500ps: ps-am
501
502ps-am:
503
504uninstall-am: uninstall-pluginimpLTLIBRARIES
505
506.MAKE: install-am install-strip
507
508.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
509 clean-libtool clean-pluginimpLTLIBRARIES ctags distclean \
510 distclean-compile distclean-generic distclean-libtool \
511 distclean-tags distdir dvi dvi-am html html-am info info-am \
512 install install-am install-data install-data-am install-dvi \
513 install-dvi-am install-exec install-exec-am install-html \
514 install-html-am install-info install-info-am install-man \
515 install-pdf install-pdf-am install-pluginimpLTLIBRARIES \
516 install-ps install-ps-am install-strip installcheck \
517 installcheck-am installdirs maintainer-clean \
518 maintainer-clean-generic mostlyclean mostlyclean-compile \
519 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
520 tags uninstall uninstall-am uninstall-pluginimpLTLIBRARIES
521
522# Tell versions [3.59,3.63) of GNU make to not export all variables.
523# Otherwise a system limit (for SysV at least) may be exceeded.
524.NOEXPORT:
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml.c
new file mode 100644
index 0000000..15069d3
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml.c
@@ -0,0 +1,122 @@
1/* $Id$ */
2
3/*
4 libg3d - 3D object loading library
5
6 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 2.1 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#include <stdio.h>
24#include <string.h>
25#include <locale.h>
26
27#include <glib.h>
28
29#include <g3d/types.h>
30#include <g3d/stream.h>
31#include <g3d/material.h>
32
33#include "imp_vrml_v1.h"
34
35#define VRML_FT_VRML 0x01
36#define VRML_FT_INVENTOR 0x02
37
38#define MAX_LINE_SIZE 2048
39
40EAPI
41gboolean plugin_load_model_from_stream(G3DContext *context, G3DStream *stream,
42 G3DModel *model, gpointer user_data)
43{
44 yyscan_t scanner;
45 YY_BUFFER_STATE bufstate;
46 G3DMaterial *material;
47 gchar line[MAX_LINE_SIZE + 1], *buffer, *bufp;
48 guint32 ver_maj, ver_min, filetype, buflen;
49
50 memset(line, 0, MAX_LINE_SIZE);
51 g3d_stream_read_line(stream, line, MAX_LINE_SIZE);
52 if(strncmp(line, "#VRML", 5) == 0)
53 filetype = VRML_FT_VRML;
54 else if(strncmp(line, "#Inventor", 9) == 0)
55 filetype = VRML_FT_INVENTOR;
56 else {
57 g_warning("file '%s' is not a VRML file", stream->uri);
58 return FALSE;
59 }
60
61 /* FIXME: more than one space between VRML and Vx.x? */
62 ver_maj = line[7] - '0';
63 ver_min = line[9] - '0';
64
65#if DEBUG > 0
66 g_debug("VRML: version %d.%d", ver_maj, ver_min);
67#endif
68
69 setlocale(LC_NUMERIC, "C");
70
71 if((filetype == VRML_FT_INVENTOR) || (ver_maj == 1)) {
72 /* Inventor / VRML 1.x */
73 /* read complete file to buffer */
74 buflen = g3d_stream_size(stream) + 1;
75 buffer = g_new0(gchar, buflen);
76 bufp = buffer;
77 memset(buffer, 0, buflen);
78 memset(line, 0, MAX_LINE_SIZE);
79 while(!g3d_stream_eof(stream) &&
80 g3d_stream_read_line(stream, line, MAX_LINE_SIZE)) {
81 memcpy(bufp, line, strlen(line));
82 bufp += strlen(line);
83 }
84 material = g3d_material_new();
85 material->name = g_strdup("fallback material");
86 model->materials = g_slist_append(model->materials, material);
87
88 vrml_v1_yylex_init(&scanner);
89 vrml_v1_yyset_extra(model, scanner);
90 bufstate = vrml_v1_yy_scan_string(buffer, scanner);
91 if(bufstate) {
92 vrml_v1_yylex(scanner);
93 vrml_v1_yy_delete_buffer(bufstate, scanner);
94 }
95 vrml_v1_yylex_destroy(scanner);
96 g_free(buffer);
97 } else if(ver_maj == 2) {
98 g_warning("VRML 2 is not yet supported");
99 return FALSE;
100 } else {
101 g_warning("unknown VRML version %d.%d", ver_maj, ver_min);
102 return FALSE;
103 }
104
105 return TRUE;
106}
107
108EAPI
109gchar *plugin_description(void)
110{
111 return g_strdup("VRML 1.x & SGI inventor models.");
112}
113
114EAPI
115gchar **plugin_extensions(void)
116{
117 return g_strsplit("vrml:iv", ":", 0);
118}
119
120/* FIXME */
121extern int yywrap(yyscan_t yyscanner);
122int vrml_v1_yywrap(yyscan_t yyscanner) { return yywrap(yyscanner); }
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.c b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.c
new file mode 100644
index 0000000..38e0497
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.c
@@ -0,0 +1,2788 @@
1#line 2 "imp_vrml_v1.c"
2
3#line 4 "imp_vrml_v1.c"
4
5#define YY_INT_ALIGNED short int
6
7/* A lexical scanner generated by flex */
8
9#define FLEX_SCANNER
10#define YY_FLEX_MAJOR_VERSION 2
11#define YY_FLEX_MINOR_VERSION 5
12#define YY_FLEX_SUBMINOR_VERSION 35
13#if YY_FLEX_SUBMINOR_VERSION > 0
14#define FLEX_BETA
15#endif
16
17/* First, we deal with platform-specific or compiler-specific issues. */
18
19/* begin standard C headers. */
20#include <stdio.h>
21#include <string.h>
22#include <errno.h>
23#include <stdlib.h>
24
25/* end standard C headers. */
26
27/* flex integer type definitions */
28
29#ifndef FLEXINT_H
30#define FLEXINT_H
31
32/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
33
34#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
35
36/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
37 * if you want the limit (max/min) macros for int types.
38 */
39#ifndef __STDC_LIMIT_MACROS
40#define __STDC_LIMIT_MACROS 1
41#endif
42
43#include <inttypes.h>
44typedef int8_t flex_int8_t;
45typedef uint8_t flex_uint8_t;
46typedef int16_t flex_int16_t;
47typedef uint16_t flex_uint16_t;
48typedef int32_t flex_int32_t;
49typedef uint32_t flex_uint32_t;
50#else
51typedef signed char flex_int8_t;
52typedef short int flex_int16_t;
53typedef int flex_int32_t;
54typedef unsigned char flex_uint8_t;
55typedef unsigned short int flex_uint16_t;
56typedef unsigned int flex_uint32_t;
57
58/* Limits of integral types. */
59#ifndef INT8_MIN
60#define INT8_MIN (-128)
61#endif
62#ifndef INT16_MIN
63#define INT16_MIN (-32767-1)
64#endif
65#ifndef INT32_MIN
66#define INT32_MIN (-2147483647-1)
67#endif
68#ifndef INT8_MAX
69#define INT8_MAX (127)
70#endif
71#ifndef INT16_MAX
72#define INT16_MAX (32767)
73#endif
74#ifndef INT32_MAX
75#define INT32_MAX (2147483647)
76#endif
77#ifndef UINT8_MAX
78#define UINT8_MAX (255U)
79#endif
80#ifndef UINT16_MAX
81#define UINT16_MAX (65535U)
82#endif
83#ifndef UINT32_MAX
84#define UINT32_MAX (4294967295U)
85#endif
86
87#endif /* ! C99 */
88
89#endif /* ! FLEXINT_H */
90
91#ifdef __cplusplus
92
93/* The "const" storage-class-modifier is valid. */
94#define YY_USE_CONST
95
96#else /* ! __cplusplus */
97
98/* C99 requires __STDC__ to be defined as 1. */
99#if defined (__STDC__)
100
101#define YY_USE_CONST
102
103#endif /* defined (__STDC__) */
104#endif /* ! __cplusplus */
105
106#ifdef YY_USE_CONST
107#define yyconst const
108#else
109#define yyconst
110#endif
111
112/* Returned upon end-of-file. */
113#define YY_NULL 0
114
115/* Promotes a possibly negative, possibly signed char to an unsigned
116 * integer for use as an array index. If the signed char is negative,
117 * we want to instead treat it as an 8-bit unsigned char, hence the
118 * double cast.
119 */
120#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
121
122/* An opaque pointer. */
123#ifndef YY_TYPEDEF_YY_SCANNER_T
124#define YY_TYPEDEF_YY_SCANNER_T
125typedef void* yyscan_t;
126#endif
127
128/* For convenience, these vars (plus the bison vars far below)
129 are macros in the reentrant scanner. */
130#define yyin yyg->yyin_r
131#define yyout yyg->yyout_r
132#define yyextra yyg->yyextra_r
133#define yyleng yyg->yyleng_r
134#define yytext yyg->yytext_r
135#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
136#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
137#define yy_flex_debug yyg->yy_flex_debug_r
138
139/* Enter a start condition. This macro really ought to take a parameter,
140 * but we do it the disgusting crufty way forced on us by the ()-less
141 * definition of BEGIN.
142 */
143#define BEGIN yyg->yy_start = 1 + 2 *
144
145/* Translate the current start state into a value that can be later handed
146 * to BEGIN to return to the state. The YYSTATE alias is for lex
147 * compatibility.
148 */
149#define YY_START ((yyg->yy_start - 1) / 2)
150#define YYSTATE YY_START
151
152/* Action number for EOF rule of a given start state. */
153#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
154
155/* Special action meaning "start processing a new file". */
156#define YY_NEW_FILE vrml_v1_yyrestart(yyin ,yyscanner )
157
158#define YY_END_OF_BUFFER_CHAR 0
159
160/* Size of default input buffer. */
161#ifndef YY_BUF_SIZE
162#define YY_BUF_SIZE 16384
163#endif
164
165/* The state buf must be large enough to hold one state per character in the main buffer.
166 */
167#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
168
169#ifndef YY_TYPEDEF_YY_BUFFER_STATE
170#define YY_TYPEDEF_YY_BUFFER_STATE
171typedef struct yy_buffer_state *YY_BUFFER_STATE;
172#endif
173
174#define EOB_ACT_CONTINUE_SCAN 0
175#define EOB_ACT_END_OF_FILE 1
176#define EOB_ACT_LAST_MATCH 2
177
178 #define YY_LESS_LINENO(n)
179
180/* Return all but the first "n" matched characters back to the input stream. */
181#define yyless(n) \
182 do \
183 { \
184 /* Undo effects of setting up yytext. */ \
185 int yyless_macro_arg = (n); \
186 YY_LESS_LINENO(yyless_macro_arg);\
187 *yy_cp = yyg->yy_hold_char; \
188 YY_RESTORE_YY_MORE_OFFSET \
189 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
190 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
191 } \
192 while ( 0 )
193
194#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
195
196#ifndef YY_TYPEDEF_YY_SIZE_T
197#define YY_TYPEDEF_YY_SIZE_T
198typedef size_t yy_size_t;
199#endif
200
201#ifndef YY_STRUCT_YY_BUFFER_STATE
202#define YY_STRUCT_YY_BUFFER_STATE
203struct yy_buffer_state
204 {
205 FILE *yy_input_file;
206
207 char *yy_ch_buf; /* input buffer */
208 char *yy_buf_pos; /* current position in input buffer */
209
210 /* Size of input buffer in bytes, not including room for EOB
211 * characters.
212 */
213 yy_size_t yy_buf_size;
214
215 /* Number of characters read into yy_ch_buf, not including EOB
216 * characters.
217 */
218 int yy_n_chars;
219
220 /* Whether we "own" the buffer - i.e., we know we created it,
221 * and can realloc() it to grow it, and should free() it to
222 * delete it.
223 */
224 int yy_is_our_buffer;
225
226 /* Whether this is an "interactive" input source; if so, and
227 * if we're using stdio for input, then we want to use getc()
228 * instead of fread(), to make sure we stop fetching input after
229 * each newline.
230 */
231 int yy_is_interactive;
232
233 /* Whether we're considered to be at the beginning of a line.
234 * If so, '^' rules will be active on the next match, otherwise
235 * not.
236 */
237 int yy_at_bol;
238
239 int yy_bs_lineno; /**< The line count. */
240 int yy_bs_column; /**< The column count. */
241
242 /* Whether to try to fill the input buffer when we reach the
243 * end of it.
244 */
245 int yy_fill_buffer;
246
247 int yy_buffer_status;
248
249#define YY_BUFFER_NEW 0
250#define YY_BUFFER_NORMAL 1
251 /* When an EOF's been seen but there's still some text to process
252 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
253 * shouldn't try reading from the input source any more. We might
254 * still have a bunch of tokens to match, though, because of
255 * possible backing-up.
256 *
257 * When we actually see the EOF, we change the status to "new"
258 * (via vrml_v1_yyrestart()), so that the user can continue scanning by
259 * just pointing yyin at a new input file.
260 */
261#define YY_BUFFER_EOF_PENDING 2
262
263 };
264#endif /* !YY_STRUCT_YY_BUFFER_STATE */
265
266/* We provide macros for accessing buffer states in case in the
267 * future we want to put the buffer states in a more general
268 * "scanner state".
269 *
270 * Returns the top of the stack, or NULL.
271 */
272#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
273 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
274 : NULL)
275
276/* Same as previous macro, but useful when we know that the buffer stack is not
277 * NULL or when we need an lvalue. For internal use only.
278 */
279#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
280
281void vrml_v1_yyrestart (FILE *input_file ,yyscan_t yyscanner );
282void vrml_v1_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
283YY_BUFFER_STATE vrml_v1_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
284void vrml_v1_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
285void vrml_v1_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
286void vrml_v1_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
287void vrml_v1_yypop_buffer_state (yyscan_t yyscanner );
288
289static void vrml_v1_yyensure_buffer_stack (yyscan_t yyscanner );
290static void vrml_v1_yy_load_buffer_state (yyscan_t yyscanner );
291static void vrml_v1_yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner );
292
293#define YY_FLUSH_BUFFER vrml_v1_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
294
295YY_BUFFER_STATE vrml_v1_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
296YY_BUFFER_STATE vrml_v1_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
297YY_BUFFER_STATE vrml_v1_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
298
299void *vrml_v1_yyalloc (yy_size_t ,yyscan_t yyscanner );
300void *vrml_v1_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
301void vrml_v1_yyfree (void * ,yyscan_t yyscanner );
302
303#define yy_new_buffer vrml_v1_yy_create_buffer
304
305#define yy_set_interactive(is_interactive) \
306 { \
307 if ( ! YY_CURRENT_BUFFER ){ \
308 vrml_v1_yyensure_buffer_stack (yyscanner); \
309 YY_CURRENT_BUFFER_LVALUE = \
310 vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
311 } \
312 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
313 }
314
315#define yy_set_bol(at_bol) \
316 { \
317 if ( ! YY_CURRENT_BUFFER ){\
318 vrml_v1_yyensure_buffer_stack (yyscanner); \
319 YY_CURRENT_BUFFER_LVALUE = \
320 vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
321 } \
322 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
323 }
324
325#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
326
327/* Begin user sect3 */
328
329typedef unsigned char YY_CHAR;
330
331typedef int yy_state_type;
332
333#define yytext_ptr yytext_r
334
335static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
336static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
337static int yy_get_next_buffer (yyscan_t yyscanner );
338static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
339
340/* Done after the current pattern has been matched and before the
341 * corresponding action - sets up yytext.
342 */
343#define YY_DO_BEFORE_ACTION \
344 yyg->yytext_ptr = yy_bp; \
345 yyleng = (size_t) (yy_cp - yy_bp); \
346 yyg->yy_hold_char = *yy_cp; \
347 *yy_cp = '\0'; \
348 yyg->yy_c_buf_p = yy_cp;
349
350#define YY_NUM_RULES 32
351#define YY_END_OF_BUFFER 33
352/* This struct is not used in this scanner,
353 but its presence is necessary. */
354struct yy_trans_info
355 {
356 flex_int32_t yy_verify;
357 flex_int32_t yy_nxt;
358 };
359static yyconst flex_int16_t yy_acclist[299] =
360 { 0,
361 33, 30, 32, 31, 32, 30, 32, 15, 30, 32,
362 30, 32,16411, 30, 32,16411, 30, 32,16411, 30,
363 32,16411, 30, 32,16411, 30, 32,16411, 26, 30,
364 32, 30, 32, 30, 32, 30, 32, 30, 32, 30,
365 32, 30, 32, 30, 32, 30, 32, 28, 30, 32,
366 29, 30, 32, 1, 30, 32, 30, 32, 4, 30,
367 32, 5, 31, 32, 4, 30, 32, 4, 15, 30,
368 32, 4, 30, 32,16411, 4, 30, 32,16411, 4,
369 30, 32,16411, 4, 30, 32,16411, 4, 30, 32,
370 16411, 4, 30, 32,16411, 4, 30, 32,16411, 4,
371
372 26, 30, 32, 4, 30, 32, 4, 30, 32, 4,
373 30, 32, 4, 30, 32, 4, 30, 32, 4, 30,
374 32, 4, 30, 32, 4, 30, 32, 4, 28, 30,
375 32, 4, 29, 30, 32, 6, 30, 32, 7, 31,
376 32, 6, 30, 32, 6, 15, 30, 32, 6, 30,
377 32,16411, 6, 30, 32,16411, 6, 30, 32,16411,
378 6, 30, 32,16411, 6, 30, 32,16411, 6, 30,
379 32,16411, 6, 26, 30, 32, 6, 30, 32, 6,
380 30, 32, 6, 30, 32, 6, 30, 32, 6, 30,
381 32, 6, 30, 32, 6, 30, 32, 6, 30, 32,
382
383 6, 28, 30, 32, 6, 29, 30, 32, 15, 15,
384 15, 14, 15,16411, 8219,16411,16411,16411,16411,16411,
385 1, 3, 3,16411,16411,16411,16411,16411,16411,16411,
386 16411,16411,16411,16411,16411,16411,16411,16411,16411,16411,
387 16411,16411, 9, 8219,16411,16411,16411,16411, 25, 22,
388 16411, 9,16411,16411,16411,16411, 2,16411,16411,16411,
389 16411,16411,16411,16411, 10, 8219,16411,16411,16411,16411,
390 16411, 8, 8219, 20,16411,16411,16411, 23, 12, 8219,
391 16411,16411,16411,16411, 16, 17, 21,16411,16411, 19,
392 24, 18, 13, 8219,16411, 11, 8219, 11
393
394 } ;
395
396static yyconst flex_int16_t yy_accept[276] =
397 { 0,
398 1, 1, 1, 1, 1, 1, 1, 2, 4, 6,
399 8, 11, 14, 17, 20, 23, 26, 29, 32, 34,
400 36, 38, 40, 42, 44, 46, 48, 51, 54, 57,
401 59, 62, 65, 68, 72, 76, 80, 84, 88, 92,
402 96, 100, 104, 107, 110, 113, 116, 119, 122, 125,
403 128, 132, 136, 139, 142, 145, 149, 153, 157, 161,
404 165, 169, 173, 177, 180, 183, 186, 189, 192, 195,
405 198, 201, 205, 209, 210, 211, 212, 213, 214, 214,
406 214, 215, 216, 217, 218, 219, 220, 221, 221, 221,
407 221, 221, 221, 221, 221, 221, 221, 221, 222, 222,
408
409 223, 225, 226, 227, 228, 229, 230, 230, 230, 230,
410 230, 230, 230, 230, 230, 230, 230, 231, 232, 233,
411 234, 235, 236, 236, 236, 236, 236, 236, 236, 236,
412 236, 236, 236, 236, 237, 238, 239, 240, 241, 242,
413 242, 242, 242, 242, 242, 242, 242, 242, 242, 242,
414 242, 243, 243, 243, 245, 246, 247, 248, 249, 249,
415 249, 249, 249, 249, 250, 250, 251, 251, 251, 251,
416 251, 252, 253, 254, 255, 256, 257, 257, 257, 257,
417 257, 257, 257, 257, 257, 258, 259, 260, 261, 262,
418 263, 263, 263, 263, 263, 263, 263, 263, 263, 264,
419
420 265, 265, 267, 268, 269, 269, 269, 269, 269, 269,
421 269, 269, 269, 270, 271, 272, 272, 274, 274, 274,
422 274, 274, 274, 274, 275, 275, 275, 276, 277, 278,
423 278, 278, 279, 279, 279, 279, 279, 279, 279, 281,
424 282, 283, 283, 283, 283, 283, 283, 283, 284, 285,
425 285, 286, 286, 287, 287, 287, 287, 287, 288, 289,
426 290, 290, 291, 291, 292, 292, 293, 293, 295, 296,
427 296, 296, 298, 299, 299
428 } ;
429
430static yyconst flex_int32_t yy_ec[256] =
431 { 0,
432 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
433 2, 2, 2, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 4, 1, 1, 5, 1, 1, 1, 1, 1,
436 1, 1, 1, 6, 7, 8, 1, 9, 9, 9,
437 10, 9, 9, 9, 9, 9, 9, 1, 1, 1,
438 1, 1, 1, 1, 11, 11, 12, 11, 11, 13,
439 14, 11, 15, 11, 11, 16, 17, 11, 11, 11,
440 11, 18, 19, 20, 11, 21, 11, 11, 11, 11,
441 22, 1, 23, 1, 1, 1, 24, 25, 26, 27,
442
443 28, 29, 30, 31, 32, 30, 30, 33, 34, 35,
444 36, 37, 30, 38, 39, 40, 41, 42, 30, 43,
445 44, 30, 45, 1, 46, 1, 1, 1, 1, 1,
446 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
447 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
453
454 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
455 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
456 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
457 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
458 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
459 1, 1, 1, 1, 1
460 } ;
461
462static yyconst flex_int32_t yy_meta[47] =
463 { 0,
464 1, 2, 2, 3, 1, 4, 5, 5, 3, 3,
465 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
466 6, 1, 4, 6, 6, 6, 6, 7, 6, 6,
467 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
468 6, 6, 6, 6, 6, 1
469 } ;
470
471static yyconst flex_int16_t yy_base[278] =
472 { 0,
473 0, 42, 81, 0, 127, 0, 619, 620, 620, 39,
474 172, 173, 179, 181, 182, 180, 183, 620, 584, 581,
475 584, 581, 590, 577, 19, 574, 620, 620, 590, 183,
476 620, 620, 42, 0, 185, 187, 193, 194, 188, 206,
477 197, 620, 576, 573, 576, 573, 582, 569, 22, 566,
478 620, 620, 620, 620, 45, 0, 190, 204, 198, 209,
479 192, 217, 620, 569, 566, 569, 566, 575, 562, 26,
480 559, 620, 620, 0, 0, 51, 620, 0, 52, 205,
481 237, 620, 242, 243, 244, 251, 248, 571, 559, 565,
482 561, 552, 559, 558, 561, 564, 568, 620, 251, 56,
483
484 249, 257, 256, 264, 270, 259, 549, 538, 546, 533,
485 34, 536, 534, 542, 531, 548, 272, 266, 262, 268,
486 280, 276, 536, 536, 521, 522, 522, 527, 518, 525,
487 515, 516, 538, 296, 316, 282, 312, 319, 318, 518,
488 537, 512, 518, 517, 505, 327, 512, 513, 508, 540,
489 320, 330, 333, 620, 339, 322, 334, 336, 503, 507,
490 512, 497, 513, 620, 348, 620, 508, 510, 509, 492,
491 335, 620, 343, 341, 344, 349, 500, 482, 495, 476,
492 470, 462, 459, 437, 620, 356, 367, 354, 368, 364,
493 436, 439, 428, 435, 422, 390, 269, 249, 365, 369,
494
495 373, 620, 386, 379, 242, 230, 236, 231, 230, 401,
496 228, 168, 396, 383, 393, 394, 620, 163, 413, 157,
497 157, 53, 423, 620, 46, 52, 403, 415, 404, 39,
498 440, 620, 38, 38, 45, 35, 26, 416, 620, 418,
499 432, 448, 451, 31, 25, 29, 454, 426, 436, 476,
500 620, 480, 620, 483, 486, 489, 492, 620, 455, 465,
501 513, 620, 516, 620, 519, 620, 461, 620, 522, 525,
502 528, 620, 620, 620, 571, 577, 580
503 } ;
504
505static yyconst flex_int16_t yy_def[278] =
506 { 0,
507 274, 1, 274, 3, 274, 5, 274, 274, 274, 274,
508 274, 275, 275, 275, 275, 275, 275, 274, 274, 274,
509 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
510 274, 274, 274, 11, 275, 275, 275, 275, 275, 275,
511 275, 274, 274, 274, 274, 274, 274, 274, 274, 274,
512 274, 274, 274, 274, 274, 11, 275, 275, 275, 275,
513 275, 275, 274, 274, 274, 274, 274, 274, 274, 274,
514 274, 274, 274, 11, 276, 11, 274, 11, 277, 274,
515 275, 274, 275, 275, 275, 275, 275, 274, 274, 274,
516 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
517
518 275, 275, 275, 275, 275, 275, 274, 274, 274, 274,
519 274, 274, 274, 274, 274, 274, 275, 275, 275, 275,
520 275, 275, 274, 274, 274, 274, 274, 274, 274, 274,
521 274, 274, 274, 275, 275, 275, 275, 275, 275, 274,
522 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
523 275, 274, 274, 274, 275, 275, 275, 275, 274, 274,
524 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
525 275, 274, 275, 275, 275, 275, 274, 274, 274, 274,
526 274, 274, 274, 274, 274, 275, 275, 275, 275, 275,
527 274, 274, 274, 274, 274, 274, 274, 274, 275, 275,
528
529 274, 274, 275, 275, 274, 274, 274, 274, 274, 274,
530 274, 274, 275, 275, 275, 274, 274, 274, 274, 274,
531 274, 274, 274, 274, 274, 274, 275, 275, 275, 274,
532 274, 274, 274, 274, 274, 274, 274, 274, 274, 275,
533 275, 274, 274, 274, 274, 274, 274, 275, 275, 274,
534 274, 274, 274, 274, 274, 274, 274, 274, 275, 275,
535 274, 274, 274, 274, 274, 274, 274, 274, 275, 274,
536 274, 274, 274, 0, 274, 274, 274
537 } ;
538
539static yyconst flex_int16_t yy_nxt[667] =
540 { 0,
541 8, 8, 9, 8, 8, 8, 10, 8, 11, 11,
542 12, 13, 12, 14, 15, 12, 16, 12, 17, 12,
543 12, 8, 18, 19, 8, 20, 21, 22, 8, 8,
544 8, 8, 8, 23, 8, 8, 24, 8, 25, 26,
545 8, 8, 8, 8, 27, 28, 29, 74, 74, 94,
546 74, 74, 94, 74, 74, 95, 94, 77, 95, 76,
547 76, 127, 95, 100, 100, 100, 256, 255, 254, 247,
548 246, 128, 245, 244, 77, 243, 242, 237, 236, 235,
549 30, 31, 31, 32, 31, 31, 31, 33, 31, 34,
550 34, 35, 36, 35, 37, 38, 35, 39, 35, 40,
551
552 35, 41, 31, 42, 43, 31, 44, 45, 46, 31,
553 31, 31, 31, 31, 47, 31, 31, 48, 31, 49,
554 50, 31, 31, 31, 31, 51, 52, 53, 53, 54,
555 53, 53, 53, 55, 53, 56, 56, 57, 58, 57,
556 59, 60, 57, 61, 57, 62, 57, 57, 53, 63,
557 64, 53, 65, 66, 67, 53, 53, 53, 53, 53,
558 68, 53, 53, 69, 53, 70, 71, 53, 53, 53,
559 53, 72, 73, 75, 75, 76, 80, 77, 76, 76,
560 78, 78, 80, 80, 80, 80, 80, 98, 80, 234,
561 80, 80, 233, 80, 77, 80, 80, 80, 230, 79,
562
563 80, 80, 226, 86, 100, 101, 101, 80, 80, 80,
564 87, 86, 80, 94, 83, 86, 85, 82, 84, 95,
565 80, 99, 83, 82, 82, 82, 82, 82, 85, 82,
566 84, 82, 82, 87, 82, 84, 82, 82, 82, 83,
567 80, 82, 82, 85, 87, 80, 80, 80, 82, 82,
568 82, 80, 80, 82, 80, 98, 100, 101, 101, 80,
569 80, 82, 80, 225, 222, 80, 221, 80, 220, 80,
570 104, 80, 219, 80, 218, 80, 212, 102, 103, 80,
571 211, 82, 122, 80, 106, 80, 82, 82, 82, 99,
572 105, 119, 82, 82, 117, 82, 118, 120, 134, 80,
573
574 82, 82, 135, 82, 136, 137, 82, 121, 82, 155,
575 82, 138, 82, 139, 82, 80, 82, 152, 152, 153,
576 82, 80, 80, 80, 82, 80, 82, 151, 165, 165,
577 165, 152, 152, 152, 152, 152, 153, 80, 80, 80,
578 82, 158, 80, 156, 80, 174, 80, 80, 166, 165,
579 165, 165, 80, 175, 171, 187, 82, 201, 186, 80,
580 154, 157, 82, 82, 82, 173, 82, 80, 80, 166,
581 80, 80, 80, 188, 172, 176, 201, 154, 82, 82,
582 82, 189, 216, 82, 190, 82, 80, 82, 82, 80,
583 200, 203, 213, 82, 214, 199, 80, 216, 202, 80,
584
585 82, 204, 223, 223, 223, 227, 238, 80, 82, 82,
586 228, 82, 82, 82, 231, 231, 231, 202, 80, 238,
587 215, 80, 224, 217, 223, 223, 223, 82, 210, 80,
588 82, 229, 241, 240, 232, 80, 209, 82, 217, 80,
589 82, 231, 231, 231, 224, 248, 208, 239, 82, 250,
590 250, 250, 252, 252, 252, 257, 257, 257, 267, 82,
591 239, 232, 82, 207, 267, 259, 206, 249, 80, 251,
592 82, 205, 253, 260, 198, 258, 82, 250, 250, 250,
593 82, 252, 252, 252, 261, 261, 261, 263, 263, 263,
594 265, 265, 265, 257, 257, 257, 197, 251, 269, 268,
595
596 196, 253, 195, 194, 262, 268, 193, 264, 192, 82,
597 266, 191, 185, 258, 261, 261, 261, 263, 263, 263,
598 265, 265, 265, 270, 270, 271, 270, 270, 270, 270,
599 270, 271, 184, 183, 262, 182, 181, 264, 180, 179,
600 266, 178, 177, 170, 169, 168, 167, 164, 163, 162,
601 161, 160, 159, 150, 149, 148, 147, 146, 145, 144,
602 143, 142, 141, 140, 133, 132, 272, 131, 130, 273,
603 129, 126, 272, 81, 125, 124, 81, 81, 75, 75,
604 123, 75, 79, 79, 79, 116, 79, 115, 114, 113,
605 112, 111, 110, 109, 108, 107, 96, 93, 92, 91,
606
607 90, 89, 88, 96, 93, 92, 91, 90, 89, 88,
608 97, 96, 93, 92, 91, 90, 89, 88, 274, 7,
609 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
610 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
611 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
612 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
613 274, 274, 274, 274, 274, 274
614 } ;
615
616static yyconst flex_int16_t yy_chk[667] =
617 { 0,
618 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
619 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
620 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
621 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
622 1, 1, 1, 1, 1, 1, 2, 10, 10, 25,
623 33, 33, 49, 55, 55, 25, 70, 79, 49, 76,
624 76, 111, 70, 100, 100, 100, 246, 245, 244, 237,
625 236, 111, 235, 234, 79, 233, 230, 226, 225, 222,
626 2, 3, 3, 3, 3, 3, 3, 3, 3, 3,
627 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
628
629 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
630 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
631 3, 3, 3, 3, 3, 3, 3, 5, 5, 5,
632 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
633 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
634 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
635 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
636 5, 5, 5, 11, 11, 11, 12, 11, 11, 11,
637 11, 11, 13, 16, 14, 15, 17, 30, 35, 221,
638 36, 39, 220, 57, 11, 61, 37, 38, 218, 11,
639
640 41, 59, 212, 16, 41, 41, 41, 58, 80, 40,
641 17, 39, 60, 30, 13, 61, 15, 12, 14, 30,
642 62, 30, 36, 13, 16, 14, 15, 17, 38, 35,
643 37, 36, 39, 40, 57, 59, 61, 37, 38, 58,
644 81, 41, 59, 60, 62, 83, 84, 85, 58, 80,
645 40, 87, 101, 60, 86, 99, 101, 101, 101, 103,
646 102, 62, 106, 211, 209, 119, 208, 104, 207, 118,
647 85, 120, 206, 105, 205, 117, 198, 83, 84, 122,
648 197, 81, 106, 121, 87, 136, 83, 84, 85, 99,
649 86, 104, 87, 101, 102, 86, 103, 105, 117, 134,
650
651 103, 102, 118, 106, 119, 120, 119, 105, 104, 136,
652 118, 121, 120, 122, 105, 137, 117, 135, 135, 135,
653 122, 139, 138, 151, 121, 156, 136, 134, 146, 146,
654 146, 152, 152, 152, 153, 153, 153, 157, 171, 158,
655 134, 139, 155, 137, 174, 156, 173, 175, 146, 165,
656 165, 165, 176, 157, 151, 173, 137, 188, 171, 186,
657 135, 138, 139, 138, 151, 155, 156, 190, 199, 165,
658 187, 189, 200, 174, 152, 158, 201, 153, 157, 171,
659 158, 175, 204, 155, 176, 174, 214, 173, 175, 203,
660 187, 189, 199, 176, 200, 186, 215, 216, 188, 213,
661
662 186, 190, 210, 210, 210, 213, 227, 229, 190, 199,
663 214, 187, 189, 200, 219, 219, 219, 201, 228, 238,
664 203, 240, 210, 204, 223, 223, 223, 214, 196, 248,
665 203, 215, 229, 228, 219, 241, 195, 215, 216, 249,
666 213, 231, 231, 231, 223, 240, 194, 227, 229, 242,
667 242, 242, 243, 243, 243, 247, 247, 247, 259, 228,
668 238, 231, 240, 193, 267, 248, 192, 241, 260, 242,
669 248, 191, 243, 249, 184, 247, 241, 250, 250, 250,
670 249, 252, 252, 252, 254, 254, 254, 255, 255, 255,
671 256, 256, 256, 257, 257, 257, 183, 250, 260, 259,
672
673 182, 252, 181, 180, 254, 267, 179, 255, 178, 260,
674 256, 177, 170, 257, 261, 261, 261, 263, 263, 263,
675 265, 265, 265, 269, 269, 269, 270, 270, 270, 271,
676 271, 271, 169, 168, 261, 167, 163, 263, 162, 161,
677 265, 160, 159, 150, 149, 148, 147, 145, 144, 143,
678 142, 141, 140, 133, 132, 131, 130, 129, 128, 127,
679 126, 125, 124, 123, 116, 115, 269, 114, 113, 270,
680 112, 110, 271, 275, 109, 108, 275, 275, 276, 276,
681 107, 276, 277, 277, 277, 97, 277, 96, 95, 94,
682 93, 92, 91, 90, 89, 88, 71, 69, 68, 67,
683
684 66, 65, 64, 50, 48, 47, 46, 45, 44, 43,
685 29, 26, 24, 23, 22, 21, 20, 19, 7, 274,
686 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
687 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
688 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
689 274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
690 274, 274, 274, 274, 274, 274
691 } ;
692
693#define YY_TRAILING_MASK 0x2000
694#define YY_TRAILING_HEAD_MASK 0x4000
695#define REJECT \
696{ \
697*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */ \
698yy_cp = yyg->yy_full_match; /* restore poss. backed-over text */ \
699yyg->yy_lp = yyg->yy_full_lp; /* restore orig. accepting pos. */ \
700yyg->yy_state_ptr = yyg->yy_full_state; /* restore orig. state */ \
701yy_current_state = *yyg->yy_state_ptr; /* restore curr. state */ \
702++yyg->yy_lp; \
703goto find_rule; \
704}
705
706#define yymore() yymore_used_but_not_detected
707#define YY_MORE_ADJ 0
708#define YY_RESTORE_YY_MORE_OFFSET
709#line 1 "imp_vrml_v1.l"
710/* $Id$ */
711/*
712 libg3d - 3D object loading library
713
714 Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
715
716 This library is free software; you can redistribute it and/or
717 modify it under the terms of the GNU Lesser General Public
718 License as published by the Free Software Foundation; either
719 version 2.1 of the License, or (at your option) any later version.
720
721 This library is distributed in the hope that it will be useful,
722 but WITHOUT ANY WARRANTY; without even the implied warranty of
723 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
724 Lesser General Public License for more details.
725
726 You should have received a copy of the GNU Lesser General Public
727 License along with this library; if not, write to the Free Software
728 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
729*/
730
731
732/* $Id$ */
733/*
734libg3d - 3D object loading library
735Copyright (C) 2005-2009 Markus Dahms <mad@automagically.de>
736This library is free software; you can redistribute it and/or
737modify it under the terms of the GNU Lesser General Public
738License as published by the Free Software Foundation; either
739version 2.1 of the License, or (at your option) any later version.
740This library is distributed in the hope that it will be useful,
741but WITHOUT ANY WARRANTY; without even the implied warranty of
742MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
743Lesser General Public License for more details.
744You should have received a copy of the GNU Lesser General Public
745License along with this library; if not, write to the Free Software
746Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
747*/
748#define __USE_POSIX 1
749#define _XOPEN_SOURCE 500
750#define _POSIX_C_SOURCE 200112L
751#include <stdio.h>
752#include <string.h>
753#include <locale.h>
754#include <g3d/types.h>
755#include <g3d/material.h>
756#include <g3d/vector.h>
757#if DEBUG > 0
758# define vrml_dump_hier(level, section) g_debug("\\%.*s[%s]", \
759level, " ", section)
760#else
761# define vrml_dump_hier(level, section) /* */
762#endif
763#define VRML_OTYPE_MAT 0x0100
764#define VRML_OTYPE_MAT_AMBIENTCOLOR 0x0101
765#define VRML_OTYPE_MAT_DIFFUSECOLOR 0x0102
766#define VRML_OTYPE_MAT_SPECULARCOLOR 0x0103
767#define VRML_OTYPE_MAT_EMISSIVECOLOR 0x0104
768#define VRML_OTYPE_MAT_SHININESS 0x0105
769#define VRML_OTYPE_MAT_TRANSPARENCY 0x0106
770#define VRML_OTYPE_COORD3 0x0200
771#define VRML_OTYPE_COORD3_POINT 0x0201
772#define VRML_OTYPE_IDXFACESET 0x0300
773#define VRML_OTYPE_IDXFACESET_COORDIDX 0x0301
774#define VRML_OTYPE_IDXFACESET_MATIDX 0x0302
775#define VRML_OTYPE_MTRANS 0x0400
776#define VRML_OTYPE_MTRANS_MATRIX 0x0401
777#line 778 "imp_vrml_v1.c"
778
779#define INITIAL 0
780#define VRMLHEADER 1
781#define COMMENT 2
782
783#ifndef YY_NO_UNISTD_H
784/* Special case for "unistd.h", since it is non-ANSI. We include it way
785 * down here because we want the user's section 1 to have been scanned first.
786 * The user has a chance to override it with an option.
787 */
788#include <unistd.h>
789#endif
790
791#ifndef YY_EXTRA_TYPE
792#define YY_EXTRA_TYPE void *
793#endif
794
795/* Holds the entire state of the reentrant scanner. */
796struct yyguts_t
797 {
798
799 /* User-defined. Not touched by flex. */
800 YY_EXTRA_TYPE yyextra_r;
801
802 /* The rest are the same as the globals declared in the non-reentrant scanner. */
803 FILE *yyin_r, *yyout_r;
804 size_t yy_buffer_stack_top; /**< index of top of stack. */
805 size_t yy_buffer_stack_max; /**< capacity of stack. */
806 YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */
807 char yy_hold_char;
808 int yy_n_chars;
809 int yyleng_r;
810 char *yy_c_buf_p;
811 int yy_init;
812 int yy_start;
813 int yy_did_buffer_switch_on_eof;
814 int yy_start_stack_ptr;
815 int yy_start_stack_depth;
816 int *yy_start_stack;
817 yy_state_type yy_last_accepting_state;
818 char* yy_last_accepting_cpos;
819
820 int yylineno_r;
821 int yy_flex_debug_r;
822
823 yy_state_type *yy_state_buf;
824 yy_state_type *yy_state_ptr;
825 char *yy_full_match;
826 int yy_lp;
827
828 /* These are only needed for trailing context rules,
829 * but there's no conditional variable for that yet. */
830 int yy_looking_for_trail_begin;
831 int yy_full_lp;
832 int *yy_full_state;
833
834 char *yytext_r;
835 int yy_more_flag;
836 int yy_more_len;
837
838 }; /* end struct yyguts_t */
839
840static int yy_init_globals (yyscan_t yyscanner );
841
842int vrml_v1_yylex_init (yyscan_t* scanner);
843
844int vrml_v1_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
845
846/* Accessor methods to globals.
847 These are made visible to non-reentrant scanners for convenience. */
848
849int vrml_v1_yylex_destroy (yyscan_t yyscanner );
850
851int vrml_v1_yyget_debug (yyscan_t yyscanner );
852
853void vrml_v1_yyset_debug (int debug_flag ,yyscan_t yyscanner );
854
855YY_EXTRA_TYPE vrml_v1_yyget_extra (yyscan_t yyscanner );
856
857void vrml_v1_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
858
859FILE *vrml_v1_yyget_in (yyscan_t yyscanner );
860
861void vrml_v1_yyset_in (FILE * in_str ,yyscan_t yyscanner );
862
863FILE *vrml_v1_yyget_out (yyscan_t yyscanner );
864
865void vrml_v1_yyset_out (FILE * out_str ,yyscan_t yyscanner );
866
867int vrml_v1_yyget_leng (yyscan_t yyscanner );
868
869char *vrml_v1_yyget_text (yyscan_t yyscanner );
870
871int vrml_v1_yyget_lineno (yyscan_t yyscanner );
872
873void vrml_v1_yyset_lineno (int line_number ,yyscan_t yyscanner );
874
875/* Macros after this point can all be overridden by user definitions in
876 * section 1.
877 */
878
879#ifndef YY_SKIP_YYWRAP
880#ifdef __cplusplus
881extern "C" int vrml_v1_yywrap (yyscan_t yyscanner );
882#else
883extern int vrml_v1_yywrap (yyscan_t yyscanner );
884#endif
885#endif
886
887 static void yyunput (int c,char *buf_ptr ,yyscan_t yyscanner);
888
889#ifndef yytext_ptr
890static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
891#endif
892
893#ifdef YY_NEED_STRLEN
894static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
895#endif
896
897#ifndef YY_NO_INPUT
898
899#ifdef __cplusplus
900static int yyinput (yyscan_t yyscanner );
901#else
902static int input (yyscan_t yyscanner );
903#endif
904
905#endif
906
907/* Amount of stuff to slurp up with each read. */
908#ifndef YY_READ_BUF_SIZE
909#define YY_READ_BUF_SIZE 8192
910#endif
911
912/* Copy whatever the last rule matched to the standard output. */
913#ifndef ECHO
914/* This used to be an fputs(), but since the string might contain NUL's,
915 * we now use fwrite().
916 */
917#define ECHO fwrite( yytext, yyleng, 1, yyout )
918#endif
919
920/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
921 * is returned in "result".
922 */
923#ifndef YY_INPUT
924#define YY_INPUT(buf,result,max_size) \
925 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
926 { \
927 int c = '*'; \
928 size_t n; \
929 for ( n = 0; n < max_size && \
930 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
931 buf[n] = (char) c; \
932 if ( c == '\n' ) \
933 buf[n++] = (char) c; \
934 if ( c == EOF && ferror( yyin ) ) \
935 YY_FATAL_ERROR( "input in flex scanner failed" ); \
936 result = n; \
937 } \
938 else \
939 { \
940 errno=0; \
941 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
942 { \
943 if( errno != EINTR) \
944 { \
945 YY_FATAL_ERROR( "input in flex scanner failed" ); \
946 break; \
947 } \
948 errno=0; \
949 clearerr(yyin); \
950 } \
951 }\
952\
953
954#endif
955
956/* No semi-colon after return; correct usage is to write "yyterminate();" -
957 * we don't want an extra ';' after the "return" because that will cause
958 * some compilers to complain about unreachable statements.
959 */
960#ifndef yyterminate
961#define yyterminate() return YY_NULL
962#endif
963
964/* Number of entries by which start-condition stack grows. */
965#ifndef YY_START_STACK_INCR
966#define YY_START_STACK_INCR 25
967#endif
968
969/* Report a fatal error. */
970#ifndef YY_FATAL_ERROR
971#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
972#endif
973
974/* end tables serialization structures and prototypes */
975
976/* Default declaration of generated scanner - a define so the user can
977 * easily add parameters.
978 */
979#ifndef YY_DECL
980#define YY_DECL_IS_OURS 1
981
982extern int vrml_v1_yylex (yyscan_t yyscanner);
983
984#define YY_DECL int vrml_v1_yylex (yyscan_t yyscanner)
985#endif /* !YY_DECL */
986
987/* Code executed at the beginning of each rule, after yytext and yyleng
988 * have been set up.
989 */
990#ifndef YY_USER_ACTION
991#define YY_USER_ACTION
992#endif
993
994/* Code executed at the end of each rule. */
995#ifndef YY_BREAK
996#define YY_BREAK break;
997#endif
998
999#define YY_RULE_SETUP \
1000 if ( yyleng > 0 ) \
1001 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1002 (yytext[yyleng - 1] == '\n'); \
1003 YY_USER_ACTION
1004
1005/** The main scanner function which does all the work.
1006 */
1007YY_DECL
1008{
1009 register yy_state_type yy_current_state;
1010 register char *yy_cp, *yy_bp;
1011 register int yy_act;
1012 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1013
1014#line 86 "imp_vrml_v1.l"
1015
1016 G3DObject *object = NULL;
1017 G3DFace *face;
1018 G3DMaterial *material = NULL;
1019 guint32 level = 0, off, otype = 0, sep_level = 0;
1020 guint32 ohasmtrx = 0;
1021 guint32 faceidx = 0, faceidxbuf[128];
1022 guint32 matidx = 0;
1023 gint32 tmps32, i;
1024 G3DFloat matrix[16];
1025
1026#line 1027 "imp_vrml_v1.c"
1027
1028 if ( !yyg->yy_init )
1029 {
1030 yyg->yy_init = 1;
1031
1032#ifdef YY_USER_INIT
1033 YY_USER_INIT;
1034#endif
1035
1036 /* Create the reject buffer large enough to save one state per allowed character. */
1037 if ( ! yyg->yy_state_buf )
1038 yyg->yy_state_buf = (yy_state_type *)vrml_v1_yyalloc(YY_STATE_BUF_SIZE ,yyscanner);
1039 if ( ! yyg->yy_state_buf )
1040 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yylex()" );
1041
1042 if ( ! yyg->yy_start )
1043 yyg->yy_start = 1; /* first start state */
1044
1045 if ( ! yyin )
1046 yyin = stdin;
1047
1048 if ( ! yyout )
1049 yyout = stdout;
1050
1051 if ( ! YY_CURRENT_BUFFER ) {
1052 vrml_v1_yyensure_buffer_stack (yyscanner);
1053 YY_CURRENT_BUFFER_LVALUE =
1054 vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1055 }
1056
1057 vrml_v1_yy_load_buffer_state(yyscanner );
1058 }
1059
1060 while ( 1 ) /* loops until end-of-file is reached */
1061 {
1062 yy_cp = yyg->yy_c_buf_p;
1063
1064 /* Support of yytext. */
1065 *yy_cp = yyg->yy_hold_char;
1066
1067 /* yy_bp points to the position in yy_ch_buf of the start of
1068 * the current run.
1069 */
1070 yy_bp = yy_cp;
1071
1072 yy_current_state = yyg->yy_start;
1073 yy_current_state += YY_AT_BOL();
1074
1075 yyg->yy_state_ptr = yyg->yy_state_buf;
1076 *yyg->yy_state_ptr++ = yy_current_state;
1077
1078yy_match:
1079 do
1080 {
1081 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1082 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1083 {
1084 yy_current_state = (int) yy_def[yy_current_state];
1085 if ( yy_current_state >= 275 )
1086 yy_c = yy_meta[(unsigned int) yy_c];
1087 }
1088 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1089 *yyg->yy_state_ptr++ = yy_current_state;
1090 ++yy_cp;
1091 }
1092 while ( yy_base[yy_current_state] != 620 );
1093
1094yy_find_action:
1095 yy_current_state = *--yyg->yy_state_ptr;
1096 yyg->yy_lp = yy_accept[yy_current_state];
1097find_rule: /* we branch to this label when backing up */
1098 for ( ; ; ) /* until we find what rule we matched */
1099 {
1100 if ( yyg->yy_lp && yyg->yy_lp < yy_accept[yy_current_state + 1] )
1101 {
1102 yy_act = yy_acclist[yyg->yy_lp];
1103 if ( yy_act & YY_TRAILING_HEAD_MASK ||
1104 yyg->yy_looking_for_trail_begin )
1105 {
1106 if ( yy_act == yyg->yy_looking_for_trail_begin )
1107 {
1108 yyg->yy_looking_for_trail_begin = 0;
1109 yy_act &= ~YY_TRAILING_HEAD_MASK;
1110 break;
1111 }
1112 }
1113 else if ( yy_act & YY_TRAILING_MASK )
1114 {
1115 yyg->yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK;
1116 yyg->yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK;
1117 }
1118 else
1119 {
1120 yyg->yy_full_match = yy_cp;
1121 yyg->yy_full_state = yyg->yy_state_ptr;
1122 yyg->yy_full_lp = yyg->yy_lp;
1123 break;
1124 }
1125 ++yyg->yy_lp;
1126 goto find_rule;
1127 }
1128 --yy_cp;
1129 yy_current_state = *--yyg->yy_state_ptr;
1130 yyg->yy_lp = yy_accept[yy_current_state];
1131 }
1132
1133 YY_DO_BEFORE_ACTION;
1134
1135do_action: /* This label is used only to access EOF actions. */
1136
1137 switch ( yy_act )
1138 { /* beginning of action switch */
1139case 1:
1140YY_RULE_SETUP
1141#line 97 "imp_vrml_v1.l"
1142{
1143 BEGIN COMMENT;
1144}
1145 YY_BREAK
1146case 2:
1147*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1148yyg->yy_c_buf_p = yy_cp = yy_bp + 5;
1149YY_DO_BEFORE_ACTION; /* set up yytext again */
1150YY_RULE_SETUP
1151#line 101 "imp_vrml_v1.l"
1152{
1153 /* magic header */
1154 #if DEBUG > 0
1155 g_debug("VRML: got header");
1156 #endif
1157 BEGIN VRMLHEADER;
1158}
1159 YY_BREAK
1160case 3:
1161YY_RULE_SETUP
1162#line 109 "imp_vrml_v1.l"
1163{
1164 #if DEBUG > 0
1165 g_debug("VRML: version %s", yytext + 1);
1166 #endif
1167}
1168 YY_BREAK
1169case 4:
1170YY_RULE_SETUP
1171#line 115 "imp_vrml_v1.l"
1172/* */
1173 YY_BREAK
1174case 5:
1175/* rule 5 can match eol */
1176YY_RULE_SETUP
1177#line 117 "imp_vrml_v1.l"
1178{
1179 BEGIN INITIAL;
1180}
1181 YY_BREAK
1182case 6:
1183YY_RULE_SETUP
1184#line 121 "imp_vrml_v1.l"
1185{
1186 #if DEBUG > 0
1187 g_debug("COMMENT: %s", yytext);
1188 #endif
1189}
1190 YY_BREAK
1191case 7:
1192/* rule 7 can match eol */
1193YY_RULE_SETUP
1194#line 127 "imp_vrml_v1.l"
1195{
1196 BEGIN INITIAL;
1197}
1198 YY_BREAK
1199case 8:
1200*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1201yyg->yy_c_buf_p = yy_cp = yy_bp + 9;
1202YY_DO_BEFORE_ACTION; /* set up yytext again */
1203YY_RULE_SETUP
1204#line 131 "imp_vrml_v1.l"
1205{
1206 vrml_dump_hier(level, "Separator");
1207 if((object == NULL) || (object->vertex_count == 0))
1208 {
1209 object = g_new0(G3DObject, 1);
1210 ((G3DModel *)yyextra)->objects = g_slist_append(
1211 ((G3DModel *)yyextra)->objects, object);
1212 sep_level = level;
1213 ohasmtrx = 0;
1214 }
1215}
1216 YY_BREAK
1217case 9:
1218/* rule 9 can match eol */
1219*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1220yyg->yy_c_buf_p = yy_cp = yy_bp + 5;
1221YY_DO_BEFORE_ACTION; /* set up yytext again */
1222YY_RULE_SETUP
1223#line 143 "imp_vrml_v1.l"
1224{
1225 vrml_dump_hier(level, "Group");
1226}
1227 YY_BREAK
1228case 10:
1229*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1230yyg->yy_c_buf_p = yy_cp = yy_bp + 8;
1231YY_DO_BEFORE_ACTION; /* set up yytext again */
1232YY_RULE_SETUP
1233#line 147 "imp_vrml_v1.l"
1234{
1235 vrml_dump_hier(level, "Material");
1236 if(object)
1237 {
1238 material = g3d_material_new();
1239 material->name = g_strdup("object material");
1240 object->materials = g_slist_append(object->materials, material);
1241 }
1242 otype = VRML_OTYPE_MAT;
1243}
1244 YY_BREAK
1245case 11:
1246/* rule 11 can match eol */
1247*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1248yyg->yy_c_buf_p = yy_cp = yy_bp + 15;
1249YY_DO_BEFORE_ACTION; /* set up yytext again */
1250YY_RULE_SETUP
1251#line 158 "imp_vrml_v1.l"
1252{
1253 vrml_dump_hier(level, "MatrixTransform");
1254 otype = VRML_OTYPE_MTRANS;
1255}
1256 YY_BREAK
1257case 12:
1258*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1259yyg->yy_c_buf_p = yy_cp = yy_bp + 11;
1260YY_DO_BEFORE_ACTION; /* set up yytext again */
1261YY_RULE_SETUP
1262#line 163 "imp_vrml_v1.l"
1263{
1264 vrml_dump_hier(level, "Coordinate3");
1265 if(!object)
1266 {
1267 object = g_new0(G3DObject, 1);
1268 object->name = g_strdup("VRML 1 object");
1269 ((G3DModel *)yyextra)->objects = g_slist_append(
1270 ((G3DModel *)yyextra)->objects, object);
1271 ohasmtrx = 0;
1272 }
1273 otype = VRML_OTYPE_COORD3;
1274}
1275 YY_BREAK
1276case 13:
1277*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1278yyg->yy_c_buf_p = yy_cp = yy_bp + 14;
1279YY_DO_BEFORE_ACTION; /* set up yytext again */
1280YY_RULE_SETUP
1281#line 176 "imp_vrml_v1.l"
1282{
1283 vrml_dump_hier(level, "IndexedFaceSet");
1284 otype = VRML_OTYPE_IDXFACESET;
1285}
1286 YY_BREAK
1287case 14:
1288*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1289yyg->yy_c_buf_p = yy_cp -= 1;
1290YY_DO_BEFORE_ACTION; /* set up yytext again */
1291YY_RULE_SETUP
1292#line 181 "imp_vrml_v1.l"
1293{
1294 #if DEBUG > 3
1295 g_debug("# (0x%04x) %s", otype, yytext);
1296 #endif
1297 if((otype & 0xFF00) == VRML_OTYPE_MAT)
1298 {
1299 if(object == NULL) continue;
1300 material = g_slist_nth_data(object->materials, matidx);
1301 if(material == NULL)
1302 {
1303 material = g3d_material_new();
1304 material->name = g_strdup_printf("material #%d", matidx);
1305 object->materials = g_slist_append(object->materials, material);
1306 }
1307 matidx ++;
1308 switch(otype)
1309 {
1310 case VRML_OTYPE_MAT_DIFFUSECOLOR:
1311 if(sscanf(yytext, "%f%f%f",
1312 &(material->r), &(material->g), &(material->b)) != 3)
1313 {
1314 #if DEBUG > 0
1315 g_debug("VRML1: failed to get ambient color");
1316 #endif
1317 }
1318 break;
1319
1320 default:
1321 #if DEBUG > 0
1322 g_debug("VRML: unhandled material property: 0x%02x (%s)",
1323 otype, yytext);
1324 #endif
1325 break;
1326 }
1327 }
1328 else if(otype == VRML_OTYPE_COORD3_POINT)
1329 {
1330 off = object->vertex_count;
1331 object->vertex_count ++;
1332 object->vertex_data = g_realloc(object->vertex_data,
1333 object->vertex_count * 3 * sizeof(G3DFloat));
1334
1335 #if DEBUG > 3
1336 g_debug("VRML: object vertex count: %d", object->vertex_count);
1337 #endif
1338
1339 if(sscanf(yytext, "%f%f%f",
1340 &(object->vertex_data[off * 3 + 0]),
1341 &(object->vertex_data[off * 3 + 1]),
1342 &(object->vertex_data[off * 3 + 2])) != 3)
1343 {
1344 g_warning("VRML: failed to read vertex (%s)\n", yytext);
1345 }
1346 else
1347 {
1348 #if DEBUG > 3
1349 if((object->vertex_data[off * 3 + 0] == 0.0) ||
1350 (object->vertex_data[off * 3 + 1] == 0.0) ||
1351 (object->vertex_data[off * 3 + 2] == 0.0))
1352 {
1353 g_debug("VRML1: 0.0: %+2.2f %+2.2f %+2.2f (%s)",
1354 object->vertex_data[off * 3 + 0],
1355 object->vertex_data[off * 3 + 1],
1356 object->vertex_data[off * 3 + 2],
1357 yytext);
1358 }
1359 #endif
1360 if(ohasmtrx)
1361 g3d_vector_transform(
1362 &(object->vertex_data[off * 3 + 0]),
1363 &(object->vertex_data[off * 3 + 1]),
1364 &(object->vertex_data[off * 3 + 2]),
1365 matrix);
1366 }
1367 }
1368 else if(otype == VRML_OTYPE_IDXFACESET_COORDIDX)
1369 {
1370 sscanf(yytext, "%i", &tmps32);
1371 if(tmps32 == -1)
1372 {
1373 if(object == NULL) continue;
1374
1375 face = g_new0(G3DFace, 1);
1376 face->material = material;
1377 if(face->material == NULL)
1378 face->material = g_slist_nth_data(
1379 object->materials, 0);
1380 if(face->material == NULL)
1381 face->material = g_slist_nth_data(
1382 ((G3DModel *)yyextra)->materials, 0);
1383 face->vertex_count = faceidx;
1384 face->vertex_indices = g_new0(guint32, face->vertex_count);
1385 for(i = 0; i < face->vertex_count; i ++)
1386 {
1387 if(faceidxbuf[i] >= object->vertex_count)
1388 {
1389 g_debug("VRML: Face: index %d >= vertex count (%d)",
1390 faceidxbuf[i], object->vertex_count);
1391 }
1392 else
1393 {
1394 face->vertex_indices[i] = faceidxbuf[i];
1395 }
1396 }
1397
1398 if(face->vertex_count >= 3)
1399 object->faces = g_slist_prepend(object->faces, face);
1400 faceidx = 0;
1401 }
1402 else
1403 {
1404 #if DEBUG > 3
1405 if(tmps32 == 0)
1406 g_debug("VRML1: faceidx 0: %s", yytext);
1407 #endif
1408 faceidxbuf[faceidx] = tmps32;
1409 faceidx ++;
1410 }
1411 }
1412 else if(otype == VRML_OTYPE_IDXFACESET_MATIDX)
1413 {
1414 i = atoi(yytext);
1415 #if DEBUG > 3
1416 g_debug("VRML1: looking for object material #%d", i);
1417 #endif
1418 material = g_slist_nth_data(object->materials, i);
1419 if(material)
1420 {
1421 #if DEBUG > 3
1422 g_debug("VRML1: got material to update");
1423 #endif
1424 face = g_slist_nth_data(object->faces, faceidx);
1425 if(face)
1426 {
1427 face->material = material;
1428 #if DEBUG > 1
1429 g_debug("VRML1: updating material of face #%d", faceidx);
1430 #endif
1431 }
1432 }
1433 faceidx ++;
1434 }
1435}
1436 YY_BREAK
1437case 15:
1438/* rule 15 can match eol */
1439YY_RULE_SETUP
1440#line 325 "imp_vrml_v1.l"
1441{
1442 if(otype == VRML_OTYPE_MTRANS_MATRIX)
1443 {
1444 if(sscanf(yytext, "%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f%f",
1445 &matrix[0 * 4 + 0],
1446 &matrix[0 * 4 + 1],
1447 &matrix[0 * 4 + 2],
1448 &matrix[0 * 4 + 3],
1449
1450 &matrix[1 * 4 + 0],
1451 &matrix[1 * 4 + 1],
1452 &matrix[1 * 4 + 2],
1453 &matrix[1 * 4 + 3],
1454
1455 &matrix[2 * 4 + 0],
1456 &matrix[2 * 4 + 1],
1457 &matrix[2 * 4 + 2],
1458 &matrix[2 * 4 + 3],
1459
1460 &matrix[3 * 4 + 0],
1461 &matrix[3 * 4 + 1],
1462 &matrix[3 * 4 + 2],
1463 &matrix[3 * 4 + 3]) != 16)
1464 {
1465 g_warning("VRML: failed to read matrix line (%s)", yytext);
1466 }
1467 }
1468}
1469 YY_BREAK
1470case 16:
1471/* rule 16 can match eol */
1472*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1473yyg->yy_c_buf_p = yy_cp = yy_bp + 12;
1474YY_DO_BEFORE_ACTION; /* set up yytext again */
1475YY_RULE_SETUP
1476#line 354 "imp_vrml_v1.l"
1477{
1478 otype = VRML_OTYPE_MAT_AMBIENTCOLOR;
1479}
1480 YY_BREAK
1481case 17:
1482/* rule 17 can match eol */
1483*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1484yyg->yy_c_buf_p = yy_cp = yy_bp + 12;
1485YY_DO_BEFORE_ACTION; /* set up yytext again */
1486YY_RULE_SETUP
1487#line 358 "imp_vrml_v1.l"
1488{
1489 otype = VRML_OTYPE_MAT_DIFFUSECOLOR;
1490}
1491 YY_BREAK
1492case 18:
1493/* rule 18 can match eol */
1494*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1495yyg->yy_c_buf_p = yy_cp = yy_bp + 13;
1496YY_DO_BEFORE_ACTION; /* set up yytext again */
1497YY_RULE_SETUP
1498#line 362 "imp_vrml_v1.l"
1499{
1500 otype = VRML_OTYPE_MAT_SPECULARCOLOR;
1501}
1502 YY_BREAK
1503case 19:
1504/* rule 19 can match eol */
1505*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1506yyg->yy_c_buf_p = yy_cp = yy_bp + 13;
1507YY_DO_BEFORE_ACTION; /* set up yytext again */
1508YY_RULE_SETUP
1509#line 366 "imp_vrml_v1.l"
1510{
1511 otype = VRML_OTYPE_MAT_EMISSIVECOLOR;
1512}
1513 YY_BREAK
1514case 20:
1515/* rule 20 can match eol */
1516*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1517yyg->yy_c_buf_p = yy_cp = yy_bp + 9;
1518YY_DO_BEFORE_ACTION; /* set up yytext again */
1519YY_RULE_SETUP
1520#line 370 "imp_vrml_v1.l"
1521{
1522 otype = VRML_OTYPE_MAT_SHININESS;
1523}
1524 YY_BREAK
1525case 21:
1526/* rule 21 can match eol */
1527*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1528yyg->yy_c_buf_p = yy_cp = yy_bp + 12;
1529YY_DO_BEFORE_ACTION; /* set up yytext again */
1530YY_RULE_SETUP
1531#line 374 "imp_vrml_v1.l"
1532{
1533 otype = VRML_OTYPE_MAT_TRANSPARENCY;
1534}
1535 YY_BREAK
1536case 22:
1537/* rule 22 can match eol */
1538*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1539yyg->yy_c_buf_p = yy_cp = yy_bp + 5;
1540YY_DO_BEFORE_ACTION; /* set up yytext again */
1541YY_RULE_SETUP
1542#line 378 "imp_vrml_v1.l"
1543{
1544 otype = VRML_OTYPE_COORD3_POINT;
1545}
1546 YY_BREAK
1547case 23:
1548/* rule 23 can match eol */
1549*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1550yyg->yy_c_buf_p = yy_cp = yy_bp + 10;
1551YY_DO_BEFORE_ACTION; /* set up yytext again */
1552YY_RULE_SETUP
1553#line 382 "imp_vrml_v1.l"
1554{
1555 if(otype == VRML_OTYPE_IDXFACESET)
1556 otype = VRML_OTYPE_IDXFACESET_COORDIDX;
1557}
1558 YY_BREAK
1559case 24:
1560/* rule 24 can match eol */
1561*yy_cp = yyg->yy_hold_char; /* undo effects of setting up yytext */
1562yyg->yy_c_buf_p = yy_cp = yy_bp + 13;
1563YY_DO_BEFORE_ACTION; /* set up yytext again */
1564YY_RULE_SETUP
1565#line 387 "imp_vrml_v1.l"
1566{
1567 #if DEBUG > 0
1568 g_debug("VRML1: materialIndex");
1569 #endif
1570 /*if(otype == VRML_OTYPE_IDXFACESET)*/
1571 otype = VRML_OTYPE_IDXFACESET_MATIDX;
1572}
1573 YY_BREAK
1574case 25:
1575YY_RULE_SETUP
1576#line 395 "imp_vrml_v1.l"
1577{
1578 if(otype == VRML_OTYPE_MTRANS)
1579 {
1580 otype = VRML_OTYPE_MTRANS_MATRIX;
1581 ohasmtrx = 1;
1582 }
1583}
1584 YY_BREAK
1585case 26:
1586YY_RULE_SETUP
1587#line 403 "imp_vrml_v1.l"
1588{
1589 /* set to parent object */
1590 otype &= 0xFF00;
1591 matidx = 0;
1592 faceidx = 0;
1593}
1594 YY_BREAK
1595case 27:
1596YY_RULE_SETUP
1597#line 410 "imp_vrml_v1.l"
1598{
1599 vrml_dump_hier(level, yytext);
1600}
1601 YY_BREAK
1602case 28:
1603YY_RULE_SETUP
1604#line 414 "imp_vrml_v1.l"
1605{
1606 level ++;
1607}
1608 YY_BREAK
1609case 29:
1610YY_RULE_SETUP
1611#line 418 "imp_vrml_v1.l"
1612{
1613 #if DEBUG > 3
1614 g_debug("}");
1615 #endif
1616 level --;
1617
1618 if(material)
1619 material = NULL;
1620
1621 if(object && (sep_level == level))
1622 {
1623 object = NULL;
1624 }
1625
1626 /* reset object type */
1627 otype = 0x0000;
1628}
1629 YY_BREAK
1630case 30:
1631YY_RULE_SETUP
1632#line 436 "imp_vrml_v1.l"
1633/* */
1634 YY_BREAK
1635case 31:
1636/* rule 31 can match eol */
1637YY_RULE_SETUP
1638#line 437 "imp_vrml_v1.l"
1639/* */
1640 YY_BREAK
1641case YY_STATE_EOF(INITIAL):
1642case YY_STATE_EOF(VRMLHEADER):
1643case YY_STATE_EOF(COMMENT):
1644#line 439 "imp_vrml_v1.l"
1645{
1646 yyterminate();
1647}
1648 YY_BREAK
1649case 32:
1650YY_RULE_SETUP
1651#line 443 "imp_vrml_v1.l"
1652YY_FATAL_ERROR( "flex scanner jammed" );
1653 YY_BREAK
1654#line 1655 "imp_vrml_v1.c"
1655
1656 case YY_END_OF_BUFFER:
1657 {
1658 /* Amount of text matched not including the EOB char. */
1659 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1660
1661 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1662 *yy_cp = yyg->yy_hold_char;
1663 YY_RESTORE_YY_MORE_OFFSET
1664
1665 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1666 {
1667 /* We're scanning a new file or input source. It's
1668 * possible that this happened because the user
1669 * just pointed yyin at a new source and called
1670 * vrml_v1_yylex(). If so, then we have to assure
1671 * consistency between YY_CURRENT_BUFFER and our
1672 * globals. Here is the right place to do so, because
1673 * this is the first action (other than possibly a
1674 * back-up) that will match for the new input source.
1675 */
1676 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1677 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1678 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1679 }
1680
1681 /* Note that here we test for yy_c_buf_p "<=" to the position
1682 * of the first EOB in the buffer, since yy_c_buf_p will
1683 * already have been incremented past the NUL character
1684 * (since all states make transitions on EOB to the
1685 * end-of-buffer state). Contrast this with the test
1686 * in input().
1687 */
1688 if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1689 { /* This was really a NUL. */
1690 yy_state_type yy_next_state;
1691
1692 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1693
1694 yy_current_state = yy_get_previous_state( yyscanner );
1695
1696 /* Okay, we're now positioned to make the NUL
1697 * transition. We couldn't have
1698 * yy_get_previous_state() go ahead and do it
1699 * for us because it doesn't know how to deal
1700 * with the possibility of jamming (and we don't
1701 * want to build jamming into it because then it
1702 * will run more slowly).
1703 */
1704
1705 yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner);
1706
1707 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1708
1709 if ( yy_next_state )
1710 {
1711 /* Consume the NUL. */
1712 yy_cp = ++yyg->yy_c_buf_p;
1713 yy_current_state = yy_next_state;
1714 goto yy_match;
1715 }
1716
1717 else
1718 {
1719 yy_cp = yyg->yy_c_buf_p;
1720 goto yy_find_action;
1721 }
1722 }
1723
1724 else switch ( yy_get_next_buffer( yyscanner ) )
1725 {
1726 case EOB_ACT_END_OF_FILE:
1727 {
1728 yyg->yy_did_buffer_switch_on_eof = 0;
1729
1730 if ( vrml_v1_yywrap(yyscanner ) )
1731 {
1732 /* Note: because we've taken care in
1733 * yy_get_next_buffer() to have set up
1734 * yytext, we can now set up
1735 * yy_c_buf_p so that if some total
1736 * hoser (like flex itself) wants to
1737 * call the scanner after we return the
1738 * YY_NULL, it'll still work - another
1739 * YY_NULL will get returned.
1740 */
1741 yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
1742
1743 yy_act = YY_STATE_EOF(YY_START);
1744 goto do_action;
1745 }
1746
1747 else
1748 {
1749 if ( ! yyg->yy_did_buffer_switch_on_eof )
1750 YY_NEW_FILE;
1751 }
1752 break;
1753 }
1754
1755 case EOB_ACT_CONTINUE_SCAN:
1756 yyg->yy_c_buf_p =
1757 yyg->yytext_ptr + yy_amount_of_matched_text;
1758
1759 yy_current_state = yy_get_previous_state( yyscanner );
1760
1761 yy_cp = yyg->yy_c_buf_p;
1762 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1763 goto yy_match;
1764
1765 case EOB_ACT_LAST_MATCH:
1766 yyg->yy_c_buf_p =
1767 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
1768
1769 yy_current_state = yy_get_previous_state( yyscanner );
1770
1771 yy_cp = yyg->yy_c_buf_p;
1772 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1773 goto yy_find_action;
1774 }
1775 break;
1776 }
1777
1778 default:
1779 YY_FATAL_ERROR(
1780 "fatal flex scanner internal error--no action found" );
1781 } /* end of action switch */
1782 } /* end of scanning one token */
1783} /* end of vrml_v1_yylex */
1784
1785/* yy_get_next_buffer - try to read in a new buffer
1786 *
1787 * Returns a code representing an action:
1788 * EOB_ACT_LAST_MATCH -
1789 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1790 * EOB_ACT_END_OF_FILE - end of file
1791 */
1792static int yy_get_next_buffer (yyscan_t yyscanner)
1793{
1794 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1795 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1796 register char *source = yyg->yytext_ptr;
1797 register int number_to_move, i;
1798 int ret_val;
1799
1800 if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
1801 YY_FATAL_ERROR(
1802 "fatal flex scanner internal error--end of buffer missed" );
1803
1804 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1805 { /* Don't try to fill the buffer, so this is an EOF. */
1806 if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1807 {
1808 /* We matched a single character, the EOB, so
1809 * treat this as a final EOF.
1810 */
1811 return EOB_ACT_END_OF_FILE;
1812 }
1813
1814 else
1815 {
1816 /* We matched some text prior to the EOB, first
1817 * process it.
1818 */
1819 return EOB_ACT_LAST_MATCH;
1820 }
1821 }
1822
1823 /* Try to read more data. */
1824
1825 /* First move last chars to start of buffer. */
1826 number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1827
1828 for ( i = 0; i < number_to_move; ++i )
1829 *(dest++) = *(source++);
1830
1831 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1832 /* don't do the read, it's not guaranteed to return an EOF,
1833 * just force an EOF
1834 */
1835 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1836
1837 else
1838 {
1839 int num_to_read =
1840 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1841
1842 while ( num_to_read <= 0 )
1843 { /* Not enough room in the buffer - grow it. */
1844
1845 YY_FATAL_ERROR(
1846"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
1847
1848 }
1849
1850 if ( num_to_read > YY_READ_BUF_SIZE )
1851 num_to_read = YY_READ_BUF_SIZE;
1852
1853 /* Read in more data. */
1854 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1855 yyg->yy_n_chars, (size_t) num_to_read );
1856
1857 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1858 }
1859
1860 if ( yyg->yy_n_chars == 0 )
1861 {
1862 if ( number_to_move == YY_MORE_ADJ )
1863 {
1864 ret_val = EOB_ACT_END_OF_FILE;
1865 vrml_v1_yyrestart(yyin ,yyscanner);
1866 }
1867
1868 else
1869 {
1870 ret_val = EOB_ACT_LAST_MATCH;
1871 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1872 YY_BUFFER_EOF_PENDING;
1873 }
1874 }
1875
1876 else
1877 ret_val = EOB_ACT_CONTINUE_SCAN;
1878
1879 if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1880 /* Extend the array by 50%, plus the number we really need. */
1881 yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1882 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) vrml_v1_yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner );
1883 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1884 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1885 }
1886
1887 yyg->yy_n_chars += number_to_move;
1888 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1889 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1890
1891 yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1892
1893 return ret_val;
1894}
1895
1896/* yy_get_previous_state - get the state just before the EOB char was reached */
1897
1898 static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
1899{
1900 register yy_state_type yy_current_state;
1901 register char *yy_cp;
1902 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1903
1904 yy_current_state = yyg->yy_start;
1905 yy_current_state += YY_AT_BOL();
1906
1907 yyg->yy_state_ptr = yyg->yy_state_buf;
1908 *yyg->yy_state_ptr++ = yy_current_state;
1909
1910 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1911 {
1912 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1913 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1914 {
1915 yy_current_state = (int) yy_def[yy_current_state];
1916 if ( yy_current_state >= 275 )
1917 yy_c = yy_meta[(unsigned int) yy_c];
1918 }
1919 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1920 *yyg->yy_state_ptr++ = yy_current_state;
1921 }
1922
1923 return yy_current_state;
1924}
1925
1926/* yy_try_NUL_trans - try to make a transition on the NUL character
1927 *
1928 * synopsis
1929 * next_state = yy_try_NUL_trans( current_state );
1930 */
1931 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
1932{
1933 register int yy_is_jam;
1934 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
1935
1936 register YY_CHAR yy_c = 1;
1937 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1938 {
1939 yy_current_state = (int) yy_def[yy_current_state];
1940 if ( yy_current_state >= 275 )
1941 yy_c = yy_meta[(unsigned int) yy_c];
1942 }
1943 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1944 yy_is_jam = (yy_current_state == 274);
1945 if ( ! yy_is_jam )
1946 *yyg->yy_state_ptr++ = yy_current_state;
1947
1948 return yy_is_jam ? 0 : yy_current_state;
1949}
1950
1951 static void yyunput (int c, register char * yy_bp , yyscan_t yyscanner)
1952{
1953 register char *yy_cp;
1954 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1955
1956 yy_cp = yyg->yy_c_buf_p;
1957
1958 /* undo effects of setting up yytext */
1959 *yy_cp = yyg->yy_hold_char;
1960
1961 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1962 { /* need to shift things up to make room */
1963 /* +2 for EOB chars. */
1964 register int number_to_move = yyg->yy_n_chars + 2;
1965 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
1966 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
1967 register char *source =
1968 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1969
1970 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1971 *--dest = *--source;
1972
1973 yy_cp += (int) (dest - source);
1974 yy_bp += (int) (dest - source);
1975 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
1976 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
1977
1978 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1979 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1980 }
1981
1982 *--yy_cp = (char) c;
1983
1984 yyg->yytext_ptr = yy_bp;
1985 yyg->yy_hold_char = *yy_cp;
1986 yyg->yy_c_buf_p = yy_cp;
1987}
1988
1989#ifndef YY_NO_INPUT
1990#ifdef __cplusplus
1991 static int yyinput (yyscan_t yyscanner)
1992#else
1993 static int input (yyscan_t yyscanner)
1994#endif
1995
1996{
1997 int c;
1998 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1999
2000 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2001
2002 if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2003 {
2004 /* yy_c_buf_p now points to the character we want to return.
2005 * If this occurs *before* the EOB characters, then it's a
2006 * valid NUL; if not, then we've hit the end of the buffer.
2007 */
2008 if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
2009 /* This was really a NUL. */
2010 *yyg->yy_c_buf_p = '\0';
2011
2012 else
2013 { /* need more input */
2014 int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
2015 ++yyg->yy_c_buf_p;
2016
2017 switch ( yy_get_next_buffer( yyscanner ) )
2018 {
2019 case EOB_ACT_LAST_MATCH:
2020 /* This happens because yy_g_n_b()
2021 * sees that we've accumulated a
2022 * token and flags that we need to
2023 * try matching the token before
2024 * proceeding. But for input(),
2025 * there's no matching to consider.
2026 * So convert the EOB_ACT_LAST_MATCH
2027 * to EOB_ACT_END_OF_FILE.
2028 */
2029
2030 /* Reset buffer status. */
2031 vrml_v1_yyrestart(yyin ,yyscanner);
2032
2033 /*FALLTHROUGH*/
2034
2035 case EOB_ACT_END_OF_FILE:
2036 {
2037 if ( vrml_v1_yywrap(yyscanner ) )
2038 return EOF;
2039
2040 if ( ! yyg->yy_did_buffer_switch_on_eof )
2041 YY_NEW_FILE;
2042#ifdef __cplusplus
2043 return yyinput(yyscanner);
2044#else
2045 return input(yyscanner);
2046#endif
2047 }
2048
2049 case EOB_ACT_CONTINUE_SCAN:
2050 yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
2051 break;
2052 }
2053 }
2054 }
2055
2056 c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
2057 *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
2058 yyg->yy_hold_char = *++yyg->yy_c_buf_p;
2059
2060 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
2061
2062 return c;
2063}
2064#endif /* ifndef YY_NO_INPUT */
2065
2066/** Immediately switch to a different input stream.
2067 * @param input_file A readable stream.
2068 * @param yyscanner The scanner object.
2069 * @note This function does not reset the start condition to @c INITIAL .
2070 */
2071 void vrml_v1_yyrestart (FILE * input_file , yyscan_t yyscanner)
2072{
2073 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2074
2075 if ( ! YY_CURRENT_BUFFER ){
2076 vrml_v1_yyensure_buffer_stack (yyscanner);
2077 YY_CURRENT_BUFFER_LVALUE =
2078 vrml_v1_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
2079 }
2080
2081 vrml_v1_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
2082 vrml_v1_yy_load_buffer_state(yyscanner );
2083}
2084
2085/** Switch to a different input buffer.
2086 * @param new_buffer The new input buffer.
2087 * @param yyscanner The scanner object.
2088 */
2089 void vrml_v1_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2090{
2091 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2092
2093 /* TODO. We should be able to replace this entire function body
2094 * with
2095 * vrml_v1_yypop_buffer_state();
2096 * vrml_v1_yypush_buffer_state(new_buffer);
2097 */
2098 vrml_v1_yyensure_buffer_stack (yyscanner);
2099 if ( YY_CURRENT_BUFFER == new_buffer )
2100 return;
2101
2102 if ( YY_CURRENT_BUFFER )
2103 {
2104 /* Flush out information for old buffer. */
2105 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2106 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2107 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2108 }
2109
2110 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2111 vrml_v1_yy_load_buffer_state(yyscanner );
2112
2113 /* We don't actually know whether we did this switch during
2114 * EOF (vrml_v1_yywrap()) processing, but the only time this flag
2115 * is looked at is after vrml_v1_yywrap() is called, so it's safe
2116 * to go ahead and always set it.
2117 */
2118 yyg->yy_did_buffer_switch_on_eof = 1;
2119}
2120
2121static void vrml_v1_yy_load_buffer_state (yyscan_t yyscanner)
2122{
2123 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2124 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2125 yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2126 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2127 yyg->yy_hold_char = *yyg->yy_c_buf_p;
2128}
2129
2130/** Allocate and initialize an input buffer state.
2131 * @param file A readable stream.
2132 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2133 * @param yyscanner The scanner object.
2134 * @return the allocated buffer state.
2135 */
2136 YY_BUFFER_STATE vrml_v1_yy_create_buffer (FILE * file, int size , yyscan_t yyscanner)
2137{
2138 YY_BUFFER_STATE b;
2139
2140 b = (YY_BUFFER_STATE) vrml_v1_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2141 if ( ! b )
2142 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_create_buffer()" );
2143
2144 b->yy_buf_size = size;
2145
2146 /* yy_ch_buf has to be 2 characters longer than the size given because
2147 * we need to put in 2 end-of-buffer characters.
2148 */
2149 b->yy_ch_buf = (char *) vrml_v1_yyalloc(b->yy_buf_size + 2 ,yyscanner );
2150 if ( ! b->yy_ch_buf )
2151 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_create_buffer()" );
2152
2153 b->yy_is_our_buffer = 1;
2154
2155 vrml_v1_yy_init_buffer(b,file ,yyscanner);
2156
2157 return b;
2158}
2159
2160/** Destroy the buffer.
2161 * @param b a buffer created with vrml_v1_yy_create_buffer()
2162 * @param yyscanner The scanner object.
2163 */
2164 void vrml_v1_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2165{
2166 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2167
2168 if ( ! b )
2169 return;
2170
2171 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2172 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2173
2174 if ( b->yy_is_our_buffer )
2175 vrml_v1_yyfree((void *) b->yy_ch_buf ,yyscanner );
2176
2177 vrml_v1_yyfree((void *) b ,yyscanner );
2178}
2179
2180#ifndef __cplusplus
2181extern int isatty (int );
2182#endif /* __cplusplus */
2183
2184/* Initializes or reinitializes a buffer.
2185 * This function is sometimes called more than once on the same buffer,
2186 * such as during a vrml_v1_yyrestart() or at EOF.
2187 */
2188 static void vrml_v1_yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
2189
2190{
2191 int oerrno = errno;
2192 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2193
2194 vrml_v1_yy_flush_buffer(b ,yyscanner);
2195
2196 b->yy_input_file = file;
2197 b->yy_fill_buffer = 1;
2198
2199 /* If b is the current buffer, then vrml_v1_yy_init_buffer was _probably_
2200 * called from vrml_v1_yyrestart() or through yy_get_next_buffer.
2201 * In that case, we don't want to reset the lineno or column.
2202 */
2203 if (b != YY_CURRENT_BUFFER){
2204 b->yy_bs_lineno = 1;
2205 b->yy_bs_column = 0;
2206 }
2207
2208 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2209
2210 errno = oerrno;
2211}
2212
2213/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2214 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2215 * @param yyscanner The scanner object.
2216 */
2217 void vrml_v1_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
2218{
2219 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2220 if ( ! b )
2221 return;
2222
2223 b->yy_n_chars = 0;
2224
2225 /* We always need two end-of-buffer characters. The first causes
2226 * a transition to the end-of-buffer state. The second causes
2227 * a jam in that state.
2228 */
2229 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2230 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2231
2232 b->yy_buf_pos = &b->yy_ch_buf[0];
2233
2234 b->yy_at_bol = 1;
2235 b->yy_buffer_status = YY_BUFFER_NEW;
2236
2237 if ( b == YY_CURRENT_BUFFER )
2238 vrml_v1_yy_load_buffer_state(yyscanner );
2239}
2240
2241/** Pushes the new state onto the stack. The new state becomes
2242 * the current state. This function will allocate the stack
2243 * if necessary.
2244 * @param new_buffer The new state.
2245 * @param yyscanner The scanner object.
2246 */
2247void vrml_v1_yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
2248{
2249 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2250 if (new_buffer == NULL)
2251 return;
2252
2253 vrml_v1_yyensure_buffer_stack(yyscanner);
2254
2255 /* This block is copied from vrml_v1_yy_switch_to_buffer. */
2256 if ( YY_CURRENT_BUFFER )
2257 {
2258 /* Flush out information for old buffer. */
2259 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2260 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2261 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2262 }
2263
2264 /* Only push if top exists. Otherwise, replace top. */
2265 if (YY_CURRENT_BUFFER)
2266 yyg->yy_buffer_stack_top++;
2267 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2268
2269 /* copied from vrml_v1_yy_switch_to_buffer. */
2270 vrml_v1_yy_load_buffer_state(yyscanner );
2271 yyg->yy_did_buffer_switch_on_eof = 1;
2272}
2273
2274/** Removes and deletes the top of the stack, if present.
2275 * The next element becomes the new top.
2276 * @param yyscanner The scanner object.
2277 */
2278void vrml_v1_yypop_buffer_state (yyscan_t yyscanner)
2279{
2280 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2281 if (!YY_CURRENT_BUFFER)
2282 return;
2283
2284 vrml_v1_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
2285 YY_CURRENT_BUFFER_LVALUE = NULL;
2286 if (yyg->yy_buffer_stack_top > 0)
2287 --yyg->yy_buffer_stack_top;
2288
2289 if (YY_CURRENT_BUFFER) {
2290 vrml_v1_yy_load_buffer_state(yyscanner );
2291 yyg->yy_did_buffer_switch_on_eof = 1;
2292 }
2293}
2294
2295/* Allocates the stack if it does not exist.
2296 * Guarantees space for at least one push.
2297 */
2298static void vrml_v1_yyensure_buffer_stack (yyscan_t yyscanner)
2299{
2300 int num_to_alloc;
2301 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2302
2303 if (!yyg->yy_buffer_stack) {
2304
2305 /* First allocation is just for 2 elements, since we don't know if this
2306 * scanner will even need a stack. We use 2 instead of 1 to avoid an
2307 * immediate realloc on the next call.
2308 */
2309 num_to_alloc = 1;
2310 yyg->yy_buffer_stack = (struct yy_buffer_state**)vrml_v1_yyalloc
2311 (num_to_alloc * sizeof(struct yy_buffer_state*)
2312 , yyscanner);
2313 if ( ! yyg->yy_buffer_stack )
2314 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yyensure_buffer_stack()" );
2315
2316 memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2317
2318 yyg->yy_buffer_stack_max = num_to_alloc;
2319 yyg->yy_buffer_stack_top = 0;
2320 return;
2321 }
2322
2323 if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
2324
2325 /* Increase the buffer to prepare for a possible push. */
2326 int grow_size = 8 /* arbitrary grow size */;
2327
2328 num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
2329 yyg->yy_buffer_stack = (struct yy_buffer_state**)vrml_v1_yyrealloc
2330 (yyg->yy_buffer_stack,
2331 num_to_alloc * sizeof(struct yy_buffer_state*)
2332 , yyscanner);
2333 if ( ! yyg->yy_buffer_stack )
2334 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yyensure_buffer_stack()" );
2335
2336 /* zero only the new slots.*/
2337 memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
2338 yyg->yy_buffer_stack_max = num_to_alloc;
2339 }
2340}
2341
2342/** Setup the input buffer state to scan directly from a user-specified character buffer.
2343 * @param base the character buffer
2344 * @param size the size in bytes of the character buffer
2345 * @param yyscanner The scanner object.
2346 * @return the newly allocated buffer state object.
2347 */
2348YY_BUFFER_STATE vrml_v1_yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner)
2349{
2350 YY_BUFFER_STATE b;
2351
2352 if ( size < 2 ||
2353 base[size-2] != YY_END_OF_BUFFER_CHAR ||
2354 base[size-1] != YY_END_OF_BUFFER_CHAR )
2355 /* They forgot to leave room for the EOB's. */
2356 return 0;
2357
2358 b = (YY_BUFFER_STATE) vrml_v1_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
2359 if ( ! b )
2360 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_scan_buffer()" );
2361
2362 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2363 b->yy_buf_pos = b->yy_ch_buf = base;
2364 b->yy_is_our_buffer = 0;
2365 b->yy_input_file = 0;
2366 b->yy_n_chars = b->yy_buf_size;
2367 b->yy_is_interactive = 0;
2368 b->yy_at_bol = 1;
2369 b->yy_fill_buffer = 0;
2370 b->yy_buffer_status = YY_BUFFER_NEW;
2371
2372 vrml_v1_yy_switch_to_buffer(b ,yyscanner );
2373
2374 return b;
2375}
2376
2377/** Setup the input buffer state to scan a string. The next call to vrml_v1_yylex() will
2378 * scan from a @e copy of @a str.
2379 * @param yystr a NUL-terminated string to scan
2380 * @param yyscanner The scanner object.
2381 * @return the newly allocated buffer state object.
2382 * @note If you want to scan bytes that may contain NUL values, then use
2383 * vrml_v1_yy_scan_bytes() instead.
2384 */
2385YY_BUFFER_STATE vrml_v1_yy_scan_string (yyconst char * yystr , yyscan_t yyscanner)
2386{
2387
2388 return vrml_v1_yy_scan_bytes(yystr,strlen(yystr) ,yyscanner);
2389}
2390
2391/** Setup the input buffer state to scan the given bytes. The next call to vrml_v1_yylex() will
2392 * scan from a @e copy of @a bytes.
2393 * @param bytes the byte buffer to scan
2394 * @param len the number of bytes in the buffer pointed to by @a bytes.
2395 * @param yyscanner The scanner object.
2396 * @return the newly allocated buffer state object.
2397 */
2398YY_BUFFER_STATE vrml_v1_yy_scan_bytes (yyconst char * yybytes, int _yybytes_len , yyscan_t yyscanner)
2399{
2400 YY_BUFFER_STATE b;
2401 char *buf;
2402 yy_size_t n;
2403 int i;
2404
2405 /* Get memory for full buffer, including space for trailing EOB's. */
2406 n = _yybytes_len + 2;
2407 buf = (char *) vrml_v1_yyalloc(n ,yyscanner );
2408 if ( ! buf )
2409 YY_FATAL_ERROR( "out of dynamic memory in vrml_v1_yy_scan_bytes()" );
2410
2411 for ( i = 0; i < _yybytes_len; ++i )
2412 buf[i] = yybytes[i];
2413
2414 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2415
2416 b = vrml_v1_yy_scan_buffer(buf,n ,yyscanner);
2417 if ( ! b )
2418 YY_FATAL_ERROR( "bad buffer in vrml_v1_yy_scan_bytes()" );
2419
2420 /* It's okay to grow etc. this buffer, and we should throw it
2421 * away when we're done.
2422 */
2423 b->yy_is_our_buffer = 1;
2424
2425 return b;
2426}
2427
2428#ifndef YY_EXIT_FAILURE
2429#define YY_EXIT_FAILURE 2
2430#endif
2431
2432static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
2433{
2434 (void) fprintf( stderr, "%s\n", msg );
2435 exit( YY_EXIT_FAILURE );
2436}
2437
2438/* Redefine yyless() so it works in section 3 code. */
2439
2440#undef yyless
2441#define yyless(n) \
2442 do \
2443 { \
2444 /* Undo effects of setting up yytext. */ \
2445 int yyless_macro_arg = (n); \
2446 YY_LESS_LINENO(yyless_macro_arg);\
2447 yytext[yyleng] = yyg->yy_hold_char; \
2448 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2449 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2450 *yyg->yy_c_buf_p = '\0'; \
2451 yyleng = yyless_macro_arg; \
2452 } \
2453 while ( 0 )
2454
2455/* Accessor methods (get/set functions) to struct members. */
2456
2457/** Get the user-defined data for this scanner.
2458 * @param yyscanner The scanner object.
2459 */
2460YY_EXTRA_TYPE vrml_v1_yyget_extra (yyscan_t yyscanner)
2461{
2462 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2463 return yyextra;
2464}
2465
2466/** Get the current line number.
2467 * @param yyscanner The scanner object.
2468 */
2469int vrml_v1_yyget_lineno (yyscan_t yyscanner)
2470{
2471 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2472
2473 if (! YY_CURRENT_BUFFER)
2474 return 0;
2475
2476 return yylineno;
2477}
2478
2479/** Get the current column number.
2480 * @param yyscanner The scanner object.
2481 */
2482int vrml_v1_yyget_column (yyscan_t yyscanner)
2483{
2484 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2485
2486 if (! YY_CURRENT_BUFFER)
2487 return 0;
2488
2489 return yycolumn;
2490}
2491
2492/** Get the input stream.
2493 * @param yyscanner The scanner object.
2494 */
2495FILE *vrml_v1_yyget_in (yyscan_t yyscanner)
2496{
2497 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2498 return yyin;
2499}
2500
2501/** Get the output stream.
2502 * @param yyscanner The scanner object.
2503 */
2504FILE *vrml_v1_yyget_out (yyscan_t yyscanner)
2505{
2506 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2507 return yyout;
2508}
2509
2510/** Get the length of the current token.
2511 * @param yyscanner The scanner object.
2512 */
2513int vrml_v1_yyget_leng (yyscan_t yyscanner)
2514{
2515 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2516 return yyleng;
2517}
2518
2519/** Get the current token.
2520 * @param yyscanner The scanner object.
2521 */
2522
2523char *vrml_v1_yyget_text (yyscan_t yyscanner)
2524{
2525 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2526 return yytext;
2527}
2528
2529/** Set the user-defined data. This data is never touched by the scanner.
2530 * @param user_defined The data to be associated with this scanner.
2531 * @param yyscanner The scanner object.
2532 */
2533void vrml_v1_yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
2534{
2535 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2536 yyextra = user_defined ;
2537}
2538
2539/** Set the current line number.
2540 * @param line_number
2541 * @param yyscanner The scanner object.
2542 */
2543void vrml_v1_yyset_lineno (int line_number , yyscan_t yyscanner)
2544{
2545 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2546
2547 /* lineno is only valid if an input buffer exists. */
2548 if (! YY_CURRENT_BUFFER )
2549 yy_fatal_error( "vrml_v1_yyset_lineno called with no buffer" , yyscanner);
2550
2551 yylineno = line_number;
2552}
2553
2554/** Set the current column.
2555 * @param line_number
2556 * @param yyscanner The scanner object.
2557 */
2558void vrml_v1_yyset_column (int column_no , yyscan_t yyscanner)
2559{
2560 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2561
2562 /* column is only valid if an input buffer exists. */
2563 if (! YY_CURRENT_BUFFER )
2564 yy_fatal_error( "vrml_v1_yyset_column called with no buffer" , yyscanner);
2565
2566 yycolumn = column_no;
2567}
2568
2569/** Set the input stream. This does not discard the current
2570 * input buffer.
2571 * @param in_str A readable stream.
2572 * @param yyscanner The scanner object.
2573 * @see vrml_v1_yy_switch_to_buffer
2574 */
2575void vrml_v1_yyset_in (FILE * in_str , yyscan_t yyscanner)
2576{
2577 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2578 yyin = in_str ;
2579}
2580
2581void vrml_v1_yyset_out (FILE * out_str , yyscan_t yyscanner)
2582{
2583 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2584 yyout = out_str ;
2585}
2586
2587int vrml_v1_yyget_debug (yyscan_t yyscanner)
2588{
2589 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2590 return yy_flex_debug;
2591}
2592
2593void vrml_v1_yyset_debug (int bdebug , yyscan_t yyscanner)
2594{
2595 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2596 yy_flex_debug = bdebug ;
2597}
2598
2599/* Accessor methods for yylval and yylloc */
2600
2601/* User-visible API */
2602
2603/* vrml_v1_yylex_init is special because it creates the scanner itself, so it is
2604 * the ONLY reentrant function that doesn't take the scanner as the last argument.
2605 * That's why we explicitly handle the declaration, instead of using our macros.
2606 */
2607
2608int vrml_v1_yylex_init(yyscan_t* ptr_yy_globals)
2609
2610{
2611 if (ptr_yy_globals == NULL){
2612 errno = EINVAL;
2613 return 1;
2614 }
2615
2616 *ptr_yy_globals = (yyscan_t) vrml_v1_yyalloc ( sizeof( struct yyguts_t ), NULL );
2617
2618 if (*ptr_yy_globals == NULL){
2619 errno = ENOMEM;
2620 return 1;
2621 }
2622
2623 /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
2624 memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2625
2626 return yy_init_globals ( *ptr_yy_globals );
2627}
2628
2629/* vrml_v1_yylex_init_extra has the same functionality as vrml_v1_yylex_init, but follows the
2630 * convention of taking the scanner as the last argument. Note however, that
2631 * this is a *pointer* to a scanner, as it will be allocated by this call (and
2632 * is the reason, too, why this function also must handle its own declaration).
2633 * The user defined value in the first argument will be available to vrml_v1_yyalloc in
2634 * the yyextra field.
2635 */
2636
2637int vrml_v1_yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals )
2638
2639{
2640 struct yyguts_t dummy_yyguts;
2641
2642 vrml_v1_yyset_extra (yy_user_defined, &dummy_yyguts);
2643
2644 if (ptr_yy_globals == NULL){
2645 errno = EINVAL;
2646 return 1;
2647 }
2648
2649 *ptr_yy_globals = (yyscan_t) vrml_v1_yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts );
2650
2651 if (*ptr_yy_globals == NULL){
2652 errno = ENOMEM;
2653 return 1;
2654 }
2655
2656 /* By setting to 0xAA, we expose bugs in
2657 yy_init_globals. Leave at 0x00 for releases. */
2658 memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2659
2660 vrml_v1_yyset_extra (yy_user_defined, *ptr_yy_globals);
2661
2662 return yy_init_globals ( *ptr_yy_globals );
2663}
2664
2665static int yy_init_globals (yyscan_t yyscanner)
2666{
2667 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2668 /* Initialization is the same as for the non-reentrant scanner.
2669 * This function is called from vrml_v1_yylex_destroy(), so don't allocate here.
2670 */
2671
2672 yyg->yy_buffer_stack = 0;
2673 yyg->yy_buffer_stack_top = 0;
2674 yyg->yy_buffer_stack_max = 0;
2675 yyg->yy_c_buf_p = (char *) 0;
2676 yyg->yy_init = 0;
2677 yyg->yy_start = 0;
2678
2679 yyg->yy_start_stack_ptr = 0;
2680 yyg->yy_start_stack_depth = 0;
2681 yyg->yy_start_stack = NULL;
2682
2683 yyg->yy_state_buf = 0;
2684 yyg->yy_state_ptr = 0;
2685 yyg->yy_full_match = 0;
2686 yyg->yy_lp = 0;
2687
2688/* Defined in main.c */
2689#ifdef YY_STDINIT
2690 yyin = stdin;
2691 yyout = stdout;
2692#else
2693 yyin = (FILE *) 0;
2694 yyout = (FILE *) 0;
2695#endif
2696
2697 /* For future reference: Set errno on error, since we are called by
2698 * vrml_v1_yylex_init()
2699 */
2700 return 0;
2701}
2702
2703/* vrml_v1_yylex_destroy is for both reentrant and non-reentrant scanners. */
2704int vrml_v1_yylex_destroy (yyscan_t yyscanner)
2705{
2706 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2707
2708 /* Pop the buffer stack, destroying each element. */
2709 while(YY_CURRENT_BUFFER){
2710 vrml_v1_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner );
2711 YY_CURRENT_BUFFER_LVALUE = NULL;
2712 vrml_v1_yypop_buffer_state(yyscanner);
2713 }
2714
2715 /* Destroy the stack itself. */
2716 vrml_v1_yyfree(yyg->yy_buffer_stack ,yyscanner);
2717 yyg->yy_buffer_stack = NULL;
2718
2719 /* Destroy the start condition stack. */
2720 vrml_v1_yyfree(yyg->yy_start_stack ,yyscanner );
2721 yyg->yy_start_stack = NULL;
2722
2723 vrml_v1_yyfree ( yyg->yy_state_buf , yyscanner);
2724 yyg->yy_state_buf = NULL;
2725
2726 /* Reset the globals. This is important in a non-reentrant scanner so the next time
2727 * vrml_v1_yylex() is called, initialization will occur. */
2728 yy_init_globals( yyscanner);
2729
2730 /* Destroy the main struct (reentrant only). */
2731 vrml_v1_yyfree ( yyscanner , yyscanner );
2732 yyscanner = NULL;
2733 return 0;
2734}
2735
2736/*
2737 * Internal utility routines.
2738 */
2739
2740#ifndef yytext_ptr
2741static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner)
2742{
2743 register int i;
2744 for ( i = 0; i < n; ++i )
2745 s1[i] = s2[i];
2746}
2747#endif
2748
2749#ifdef YY_NEED_STRLEN
2750static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
2751{
2752 register int n;
2753 for ( n = 0; s[n]; ++n )
2754 ;
2755
2756 return n;
2757}
2758#endif
2759
2760void *vrml_v1_yyalloc (yy_size_t size , yyscan_t yyscanner)
2761{
2762 return (void *) malloc( size );
2763}
2764
2765void *vrml_v1_yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner)
2766{
2767 /* The cast to (char *) in the following accommodates both
2768 * implementations that use char* generic pointers, and those
2769 * that use void* generic pointers. It works with the latter
2770 * because both ANSI C and C++ allow castless assignment from
2771 * any pointer type to void*, and deal with argument conversions
2772 * as though doing an assignment.
2773 */
2774 return (void *) realloc( (char *) ptr, size );
2775}
2776
2777void vrml_v1_yyfree (void * ptr , yyscan_t yyscanner)
2778{
2779 free( (char *) ptr ); /* see vrml_v1_yyrealloc() for (char *) cast */
2780}
2781
2782#define YYTABLES_NAME "yytables"
2783
2784#line 443 "imp_vrml_v1.l"
2785
2786
2787
2788
diff --git a/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.h b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.h
new file mode 100644
index 0000000..404f8f6
--- /dev/null
+++ b/src/others/mimesh/libg3d-0.0.8/plugins/import/imp_vrml/imp_vrml_v1.h
@@ -0,0 +1,356 @@
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 vrml_v1_yyHEADER_H
23#define vrml_v1_yyHEADER_H 1
24#define vrml_v1_yyIN_HEADER 1
25
26#line 6 "imp_vrml_v1.h"
27
28#line 8 "imp_vrml_v1.h"
29
30#define YY_INT_ALIGNED short int
31
32/* A lexical scanner generated by flex */
33
34#define FLEX_SCANNER
35#define YY_FLEX_MAJOR_VERSION 2
36#define YY_FLEX_MINOR_VERSION 5
37#define YY_FLEX_SUBMINOR_VERSION 35
38#if YY_FLEX_SUBMINOR_VERSION > 0
39#define FLEX_BETA
40#endif
41
42/* First, we deal with platform-specific or compiler-specific issues. */
43
44/* begin standard C headers. */
45#include <stdio.h>
46#include <string.h>
47#include <errno.h>
48#include <stdlib.h>
49
50/* end standard C headers. */
51
52/* flex integer type definitions */
53
54#ifndef FLEXINT_H
55#define FLEXINT_H
56
57/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
58
59#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
60
61/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
62 * if you want the limit (max/min) macros for int types.
63 */
64#ifndef __STDC_LIMIT_MACROS
65#define __STDC_LIMIT_MACROS 1
66#endif
67
68#include <inttypes.h>
69typedef int8_t flex_int8_t;
70typedef uint8_t flex_uint8_t;
71typedef int16_t flex_int16_t;
72typedef uint16_t flex_uint16_t;
73typedef int32_t flex_int32_t;
74typedef uint32_t flex_uint32_t;
75#else
76typedef signed char flex_int8_t;
77typedef short int flex_int16_t;
78typedef int flex_int32_t;
79typedef unsigned char flex_uint8_t;
80typedef unsigned short int flex_uint16_t;
81typedef unsigned int flex_uint32_t;
82
83/* Limits of integral types. */
84#ifndef INT8_MIN
85#define INT8_MIN (-128)
86#endif
87#ifndef INT16_MIN
88#define INT16_MIN (-32767-1)
89#endif
90#ifndef INT32_MIN
91#define INT32_MIN (-2147483647-1)
92#endif
93#ifndef INT8_MAX
94#define INT8_MAX (127)
95#endif
96#ifndef INT16_MAX
97#define INT16_MAX (32767)
98#endif
99#ifndef INT32_MAX
100#define INT32_MAX (2147483647)
101#endif
102#ifndef UINT8_MAX
103#define UINT8_MAX (255U)
104#endif
105#ifndef UINT16_MAX
106#define UINT16_MAX (65535U)
107#endif
108#ifndef UINT32_MAX
109#define UINT32_MAX (4294967295U)
110#endif
111
112#endif /* ! C99 */
113
114#endif /* ! FLEXINT_H */
115
116#ifdef __cplusplus
117
118/* The "const" storage-class-modifier is valid. */
119#define YY_USE_CONST
120
121#else /* ! __cplusplus */
122
123/* C99 requires __STDC__ to be defined as 1. */
124#if defined (__STDC__)
125
126#define YY_USE_CONST
127
128#endif /* defined (__STDC__) */
129#endif /* ! __cplusplus */
130
131#ifdef YY_USE_CONST
132#define yyconst const
133#else
134#define yyconst
135#endif
136
137/* An opaque pointer. */
138#ifndef YY_TYPEDEF_YY_SCANNER_T
139#define YY_TYPEDEF_YY_SCANNER_T
140typedef void* yyscan_t;
141#endif
142
143/* For convenience, these vars (plus the bison vars far below)
144 are macros in the reentrant scanner. */
145#define yyin yyg->yyin_r
146#define yyout yyg->yyout_r
147#define yyextra yyg->yyextra_r
148#define yyleng yyg->yyleng_r
149#define yytext yyg->yytext_r
150#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
151#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
152#define yy_flex_debug yyg->yy_flex_debug_r
153
154/* Size of default input buffer. */
155#ifndef YY_BUF_SIZE
156#define YY_BUF_SIZE 16384
157#endif
158
159#ifndef YY_TYPEDEF_YY_BUFFER_STATE
160#define YY_TYPEDEF_YY_BUFFER_STATE
161typedef struct yy_buffer_state *YY_BUFFER_STATE;
162#endif
163
164#ifndef YY_TYPEDEF_YY_SIZE_T
165#define YY_TYPEDEF_YY_SIZE_T
166typedef size_t yy_size_t;
167#endif
168
169#ifndef YY_STRUCT_YY_BUFFER_STATE
170#define YY_STRUCT_YY_BUFFER_STATE
171struct yy_buffer_state
172 {
173 FILE *yy_input_file;
174
175 char *yy_ch_buf; /* input buffer */
176 char *yy_buf_pos; /* current position in input buffer */
177
178 /* Size of input buffer in bytes, not including room for EOB
179 * characters.
180 */
181 yy_size_t yy_buf_size;
182
183 /* Number of characters read into yy_ch_buf, not including EOB
184 * characters.
185 */
186 int yy_n_chars;
187
188 /* Whether we "own" the buffer - i.e., we know we created it,
189 * and can realloc() it to grow it, and should free() it to
190 * delete it.
191 */
192 int yy_is_our_buffer;
193
194 /* Whether this is an "interactive" input source; if so, and
195 * if we're using stdio for input, then we want to use getc()
196 * instead of fread(), to make sure we stop fetching input after
197 * each newline.
198 */
199 int yy_is_interactive;
200
201 /* Whether we're considered to be at the beginning of a line.
202 * If so, '^' rules will be active on the next match, otherwise
203 * not.
204 */
205 int yy_at_bol;
206
207 int yy_bs_lineno; /**< The line count. */
208 int yy_bs_column; /**< The column count. */
209
210 /* Whether to try to fill the input buffer when we reach the
211 * end of it.
212 */
213 int yy_fill_buffer;
214
215 int yy_buffer_status;
216
217 };
218#endif /* !YY_STRUCT_YY_BUFFER_STATE */
219
220void vrml_v1_yyrestart (FILE *input_file ,yyscan_t yyscanner );
221void vrml_v1_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
222YY_BUFFER_STATE vrml_v1_yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
223void vrml_v1_yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
224void vrml_v1_yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
225void vrml_v1_yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
226void vrml_v1_yypop_buffer_state (yyscan_t yyscanner );
227
228YY_BUFFER_STATE vrml_v1_yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
229YY_BUFFER_STATE vrml_v1_yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
230YY_BUFFER_STATE vrml_v1_yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
231
232void *vrml_v1_yyalloc (yy_size_t ,yyscan_t yyscanner );
233void *vrml_v1_yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
234void vrml_v1_yyfree (void * ,yyscan_t yyscanner );
235
236/* Begin user sect3 */
237
238#define yytext_ptr yytext_r
239
240#ifdef YY_HEADER_EXPORT_START_CONDITIONS
241#define INITIAL 0
242#define VRMLHEADER 1
243#define COMMENT 2
244
245#endif
246
247#ifndef YY_NO_UNISTD_H
248/* Special case for "unistd.h", since it is non-ANSI. We include it way
249 * down here because we want the user's section 1 to have been scanned first.
250 * The user has a chance to override it with an option.
251 */
252#include <unistd.h>
253#endif
254
255#ifndef YY_EXTRA_TYPE
256#define YY_EXTRA_TYPE void *
257#endif
258
259int vrml_v1_yylex_init (yyscan_t* scanner);
260
261int vrml_v1_yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
262
263/* Accessor methods to globals.
264 These are made visible to non-reentrant scanners for convenience. */
265
266int vrml_v1_yylex_destroy (yyscan_t yyscanner );
267
268int vrml_v1_yyget_debug (yyscan_t yyscanner );
269
270void vrml_v1_yyset_debug (int debug_flag ,yyscan_t yyscanner );
271
272YY_EXTRA_TYPE vrml_v1_yyget_extra (yyscan_t yyscanner );
273
274void vrml_v1_yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
275
276FILE *vrml_v1_yyget_in (yyscan_t yyscanner );
277
278void vrml_v1_yyset_in (FILE * in_str ,yyscan_t yyscanner );
279
280FILE *vrml_v1_yyget_out (yyscan_t yyscanner );
281
282void vrml_v1_yyset_out (FILE * out_str ,yyscan_t yyscanner );
283
284int vrml_v1_yyget_leng (yyscan_t yyscanner );
285
286char *vrml_v1_yyget_text (yyscan_t yyscanner );
287
288int vrml_v1_yyget_lineno (yyscan_t yyscanner );
289
290void vrml_v1_yyset_lineno (int line_number ,yyscan_t yyscanner );
291
292/* Macros after this point can all be overridden by user definitions in
293 * section 1.
294 */
295
296#ifndef YY_SKIP_YYWRAP
297#ifdef __cplusplus
298extern "C" int vrml_v1_yywrap (yyscan_t yyscanner );
299#else
300extern int vrml_v1_yywrap (yyscan_t yyscanner );
301#endif
302#endif
303
304#ifndef yytext_ptr
305static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
306#endif
307
308#ifdef YY_NEED_STRLEN
309static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
310#endif
311
312#ifndef YY_NO_INPUT
313
314#endif
315
316/* Amount of stuff to slurp up with each read. */
317#ifndef YY_READ_BUF_SIZE
318#define YY_READ_BUF_SIZE 8192
319#endif
320
321/* Number of entries by which start-condition stack grows. */
322#ifndef YY_START_STACK_INCR
323#define YY_START_STACK_INCR 25
324#endif
325
326/* Default declaration of generated scanner - a define so the user can
327 * easily add parameters.
328 */
329#ifndef YY_DECL
330#define YY_DECL_IS_OURS 1
331
332extern int vrml_v1_yylex (yyscan_t yyscanner);
333
334#define YY_DECL int vrml_v1_yylex (yyscan_t yyscanner)
335#endif /* !YY_DECL */
336
337/* yy_get_previous_state - get the state just before the EOB char was reached */
338
339#undef YY_NEW_FILE
340#undef YY_FLUSH_BUFFER
341#undef yy_set_bol
342#undef yy_new_buffer
343#undef yy_set_interactive
344#undef YY_DO_BEFORE_ACTION
345
346#ifdef YY_DECL_IS_OURS
347#undef YY_DECL_IS_OURS
348#undef YY_DECL
349#endif
350
351#line 446 "imp_vrml_v1.l"
352
353
354#line 334 "imp_vrml_v1.h"
355#undef vrml_v1_yyIN_HEADER
356#endif /* vrml_v1_yyHEADER_H */
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 */